Gokul-G
6/19/2017 - 11:53 AM

swiftc –emit-assembly main.swift

swiftc –emit-assembly main.swift

	.section	__TEXT,__text,regular,pure_instructions
	.macosx_version_min 10, 9
	.globl	_main
	.p2align	4, 0x90
_main:
	.cfi_startproc
	pushq	%rbp
Ltmp0:
	.cfi_def_cfa_offset 16
Ltmp1:
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
Ltmp2:
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movl	$1, %eax
	movl	%eax, %ecx
	movl	$2, %eax
	movl	%eax, %edx
	movl	%edi, -4(%rbp)
	movq	%rcx, %rdi
	movq	%rsi, -16(%rbp)
	movq	%rdx, %rsi
	callq	__TF4main3addFTSiSi_Si
	movq	%rax, __Tv4main6resultSi(%rip)
	callq	__TMaP_
	movl	$1, %r8d
	movl	%r8d, %edi
	movq	%rax, %rsi
	callq	__TFs27_allocateUninitializedArrayurFBwTGSax_Bp_
	movq	__TMSi@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rdx)
	movq	__Tv4main6resultSi(%rip), %rcx
	movq	%rcx, (%rdx)
	movq	%rax, -24(%rbp)
	callq	__TIFs5printFTGSaP__9separatorSS10terminatorSS_T_A0_
	movq	%rax, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	callq	__TIFs5printFTGSaP__9separatorSS10terminatorSS_T_A1_
	movq	-24(%rbp), %rdi
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %r9
	movq	%rdx, -56(%rbp)
	movq	%r9, %rdx
	movq	-48(%rbp), %r10
	movq	%rcx, -64(%rbp)
	movq	%r10, %rcx
	movq	%rax, %r8
	movq	-56(%rbp), %r9
	movq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	callq	__TFs5printFTGSaP__9separatorSS10terminatorSS_T_
	xorl	%eax, %eax
	addq	$80, %rsp
	popq	%rbp
	retq
	.cfi_endproc

	.private_extern	__TF4main3addFTSiSi_Si
	.globl	__TF4main3addFTSiSi_Si
	.p2align	4, 0x90
__TF4main3addFTSiSi_Si:
	.cfi_startproc
	pushq	%rbp
Ltmp3:
	.cfi_def_cfa_offset 16
Ltmp4:
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
Ltmp5:
	.cfi_def_cfa_register %rbp
	addq	%rsi, %rdi
	seto	%al
	movq	%rdi, -8(%rbp)
	movb	%al, -9(%rbp)
	jo	LBB1_2
	movq	-8(%rbp), %rax
	popq	%rbp
	retq
LBB1_2:
	ud2
	.cfi_endproc

	.private_extern	__TMaP_
	.globl	__TMaP_
	.weak_definition	__TMaP_
	.p2align	4, 0x90
__TMaP_:
	pushq	%rbp
	movq	%rsp, %rbp
	subq	$16, %rsp
	movq	__TMLP_(%rip), %rax
	cmpq	$0, %rax
	movq	%rax, -16(%rbp)
	jne	LBB2_2
	xorl	%eax, %eax
	movl	%eax, %edi
	leaq	-8(%rbp), %rsi
	callq	_swift_rt_swift_getExistentialTypeMetadata
	movq	%rax, %rsi
	movq	%rax, __TMLP_(%rip)
	movq	%rsi, -16(%rbp)
LBB2_2:
	movq	-16(%rbp), %rax
	addq	$16, %rsp
	popq	%rbp
	retq

	.private_extern	_swift_rt_swift_getExistentialTypeMetadata
	.globl	_swift_rt_swift_getExistentialTypeMetadata
	.weak_definition	_swift_rt_swift_getExistentialTypeMetadata
	.p2align	4, 0x90
_swift_rt_swift_getExistentialTypeMetadata:
	movq	__swift_getExistentialTypeMetadata@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmpq	*%rax

	.private_extern	__Tv4main6resultSi
	.globl	__Tv4main6resultSi
.zerofill __DATA,__common,__Tv4main6resultSi,8,3
	.private_extern	__TMLP_
	.section	__DATA,__data
	.globl	__TMLP_
	.weak_definition	__TMLP_
	.p2align	3
__TMLP_:
	.quad	0

	.private_extern	___swift_reflection_version
	.section	__TEXT,__const
	.globl	___swift_reflection_version
	.weak_definition	___swift_reflection_version
	.p2align	1
___swift_reflection_version:
	.short	1

	.no_dead_strip	___swift_reflection_version
	.linker_option "-lswiftCore"
	.linker_option "-lobjc"
	.section	__DATA,__objc_imageinfo,regular,no_dead_strip
L_OBJC_IMAGE_INFO:
	.long	0
	.long	1088


.subsections_via_symbols