.section __TEXT,__text,regular,pure_instructions .section __DWARF,__debug_frame,regular,debug Lsection_debug_frame: .section __DWARF,__debug_info,regular,debug Lsection_info: .section __DWARF,__debug_abbrev,regular,debug Lsection_abbrev: .section __DWARF,__debug_aranges,regular,debug Lsection_aranges: .section __DWARF,__debug_macinfo,regular,debug Lsection_macinfo: Lsection_line: .section __DWARF,__debug_loc,regular,debug Lsection_loc: .section __DWARF,__debug_pubnames,regular,debug Lsection_pubnames: .section __DWARF,__debug_pubtypes,regular,debug Lsection_pubtypes: .section __DWARF,__debug_str,regular,debug Lsection_str: .section __DWARF,__debug_ranges,regular,debug Lsection_ranges: .section __TEXT,__text,regular,pure_instructions Ltext_begin: .section __DATA,__data Ldata_begin: .section __TEXT,__text,regular,pure_instructions .globl _swap .align 4, 0x90 _swap: Lfunc_begin1: Ltmp3: pushl %ebp Ltmp0: movl %esp, %ebp Ltmp1: pushl %esi Ltmp2: movl 8(%ebp), %eax Ltmp4: movl (%eax), %ecx movl 12(%ebp), %edx Ltmp5: Ltmp6: movl (%edx), %esi movl %esi, (%eax) Ltmp7: movl %ecx, (%edx) Ltmp8: popl %esi popl %ebp ret Ltmp9: Lfunc_end1: .globl _swap_l .align 4, 0x90 _swap_l: Lfunc_begin2: Ltmp13: pushl %ebp Ltmp10: movl %esp, %ebp Ltmp11: pushl %esi Ltmp12: movl 8(%ebp), %eax Ltmp14: movl (%eax), %ecx movl 12(%ebp), %edx Ltmp15: Ltmp16: movl (%edx), %esi movl %esi, (%eax) Ltmp17: movl %ecx, (%edx) Ltmp18: popl %esi popl %ebp ret Ltmp19: Lfunc_end2: .globl _call_swap .align 4, 0x90 _call_swap: Lfunc_begin3: Ltmp23: pushl %ebp Ltmp20: movl %esp, %ebp Ltmp21: subl $8, %esp Ltmp22: call L3$pb L3$pb: popl %eax leal _course2-L3$pb(%eax), %ecx Ltmp24: movl %ecx, 4(%esp) leal _course1-L3$pb(%eax), %eax movl %eax, (%esp) call _swap Ltmp25: addl $8, %esp popl %ebp ret Ltmp26: Lfunc_end3: .globl _main .align 4, 0x90 _main: Lfunc_begin4: Ltmp30: pushl %ebp Ltmp27: movl %esp, %ebp Ltmp28: pushl %esi subl $20, %esp Ltmp29: call L4$pb L4$pb: popl %esi Ltmp31: movl _course2-L4$pb(%esi), %eax movl _course1-L4$pb(%esi), %ecx movl %eax, 8(%esp) movl %ecx, 4(%esp) leal L_.str-L4$pb(%esi), %eax movl %eax, (%esp) call _printf Ltmp32: call _call_swap Ltmp33: movl _course2-L4$pb(%esi), %eax movl _course1-L4$pb(%esi), %ecx movl %eax, 8(%esp) movl %ecx, 4(%esp) leal L_.str1-L4$pb(%esi), %eax movl %eax, (%esp) call _printf xorl %eax, %eax Ltmp34: addl $20, %esp popl %esi popl %ebp ret Ltmp35: Lfunc_end4: .section __DATA,__data .globl _course1 .align 2 _course1: .long 15213 .globl _course2 .align 2 _course2: .long 18243 .section __TEXT,__cstring,cstring_literals .align 2 L_.str: .asciz "Initially: course1 = %d, course2 = %d\n" .align 2 L_.str1: .asciz "Finally: course1 = %d, course2 = %d\n" .section __TEXT,__text,regular,pure_instructions Ltext_end: .section __DATA,__data Ldata_end: .section __TEXT,__text,regular,pure_instructions Lsection_end1: .section __DWARF,__debug_frame,regular,debug Ldebug_frame_common: Lset0 = Ldebug_frame_common_end-Ldebug_frame_common_begin .long Lset0 Ldebug_frame_common_begin: .long 4294967295 .byte 1 .byte 0 .byte 1 .byte 124 .byte 8 .byte 12 .byte 4 .byte 4 .byte 136 .byte 1 .align 2 Ldebug_frame_common_end: Lset1 = Ldebug_frame_end1-Ldebug_frame_begin1 .long Lset1 Ldebug_frame_begin1: Lset2 = Ldebug_frame_common-Lsection_debug_frame .long Lset2 .long Lfunc_begin1 Lset3 = Lfunc_end1-Lfunc_begin1 .long Lset3 .byte 4 Lset4 = Ltmp0-Lfunc_begin1 .long Lset4 .byte 14 .byte 8 .byte 133 .byte 2 .byte 4 Lset5 = Ltmp1-Ltmp0 .long Lset5 .byte 13 .byte 5 .byte 4 Lset6 = Ltmp2-Ltmp1 .long Lset6 .byte 134 .byte 3 .align 2 Ldebug_frame_end1: Lset7 = Ldebug_frame_end2-Ldebug_frame_begin2 .long Lset7 Ldebug_frame_begin2: Lset8 = Ldebug_frame_common-Lsection_debug_frame .long Lset8 .long Lfunc_begin2 Lset9 = Lfunc_end2-Lfunc_begin2 .long Lset9 .byte 4 Lset10 = Ltmp10-Lfunc_begin2 .long Lset10 .byte 14 .byte 8 .byte 133 .byte 2 .byte 4 Lset11 = Ltmp11-Ltmp10 .long Lset11 .byte 13 .byte 5 .byte 4 Lset12 = Ltmp12-Ltmp11 .long Lset12 .byte 134 .byte 3 .align 2 Ldebug_frame_end2: Lset13 = Ldebug_frame_end3-Ldebug_frame_begin3 .long Lset13 Ldebug_frame_begin3: Lset14 = Ldebug_frame_common-Lsection_debug_frame .long Lset14 .long Lfunc_begin3 Lset15 = Lfunc_end3-Lfunc_begin3 .long Lset15 .byte 4 Lset16 = Ltmp20-Lfunc_begin3 .long Lset16 .byte 14 .byte 8 .byte 133 .byte 2 .byte 4 Lset17 = Ltmp21-Ltmp20 .long Lset17 .byte 13 .byte 5 .align 2 Ldebug_frame_end3: Lset18 = Ldebug_frame_end4-Ldebug_frame_begin4 .long Lset18 Ldebug_frame_begin4: Lset19 = Ldebug_frame_common-Lsection_debug_frame .long Lset19 .long Lfunc_begin4 Lset20 = Lfunc_end4-Lfunc_begin4 .long Lset20 .byte 4 Lset21 = Ltmp27-Lfunc_begin4 .long Lset21 .byte 14 .byte 8 .byte 133 .byte 2 .byte 4 Lset22 = Ltmp28-Ltmp27 .long Lset22 .byte 13 .byte 5 .byte 4 Lset23 = Ltmp29-Ltmp28 .long Lset23 .byte 134 .byte 3 .align 2 Ldebug_frame_end4: .section __DWARF,__debug_info,regular,debug Linfo_begin1: .long 509 .short 2 Lset24 = Labbrev_begin-Lsection_abbrev .long Lset24 .byte 4 .byte 1 .ascii "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)" .byte 0 .byte 1 .ascii "swap.c" .byte 0 .long 0 .long 0 .ascii "/Users/aykut/Documents/Academic/Courses/Hacettepe/BIL220/2012/codes/asm-procedures/" .byte 0 .byte 1 .byte 2 .long 254 .ascii "swap" .byte 0 .ascii "swap" .byte 0 .byte 1 .byte 5 .byte 1 .byte 1 .long Lfunc_begin1 .long Lfunc_end1 .byte 1 .byte 85 .byte 3 .byte 112 .byte 0 .byte 1 .byte 4 .long 480 .byte 2 .byte 145 .byte 8 .byte 3 .byte 113 .byte 0 .byte 1 .byte 4 .long 480 .byte 2 .byte 145 .byte 12 .byte 4 .long Ltmp4 .long Ltmp9 .byte 5 .byte 116 .byte 0 .byte 1 .byte 6 .long 386 .byte 1 .byte 81 .long Ltmp5 .byte 0 .byte 0 .byte 2 .long 337 .ascii "swap_l" .byte 0 .ascii "swap_l" .byte 0 .byte 1 .byte 12 .byte 1 .byte 1 .long Lfunc_begin2 .long Lfunc_end2 .byte 1 .byte 85 .byte 3 .byte 112 .byte 0 .byte 1 .byte 11 .long 500 .byte 2 .byte 145 .byte 8 .byte 3 .byte 113 .byte 0 .byte 1 .byte 11 .long 500 .byte 2 .byte 145 .byte 12 .byte 4 .long Ltmp14 .long Ltmp19 .byte 5 .byte 116 .byte 0 .byte 1 .byte 13 .long 488 .byte 1 .byte 81 .long Ltmp15 .byte 0 .byte 0 .byte 2 .long 386 .ascii "call_swap" .byte 0 .ascii "call_swap" .byte 0 .byte 1 .byte 21 .byte 1 .byte 1 .long Lfunc_begin3 .long Lfunc_end3 .byte 1 .byte 85 .byte 6 .long Ltmp24 .long Ltmp26 .byte 0 .byte 7 .byte 5 .ascii "int" .byte 0 .byte 4 .byte 8 .long 436 .ascii "main" .byte 0 .ascii "main" .byte 0 .byte 1 .byte 25 .byte 1 .long 386 .byte 1 .long Lfunc_begin4 .long Lfunc_end4 .byte 1 .byte 85 .byte 6 .long Ltmp31 .long Ltmp35 .byte 0 .byte 9 .ascii "course1" .byte 0 .long 386 .byte 1 .byte 1 .byte 18 .byte 5 .byte 3 .long _course1 .byte 9 .ascii "course2" .byte 0 .long 386 .byte 1 .byte 1 .byte 19 .byte 5 .byte 3 .long _course2 .byte 10 .long 386 .byte 4 .byte 1 .byte 0 .byte 7 .byte 5 .ascii "long int" .byte 0 .byte 4 .byte 10 .long 488 .byte 4 .byte 1 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 Linfo_end1: .section __DWARF,__debug_abbrev,regular,debug Labbrev_begin: .byte 1 .byte 17 .byte 1 .byte 37 .byte 8 .byte 19 .byte 11 .byte 3 .byte 8 .byte 82 .byte 1 .byte 16 .byte 6 .byte 27 .byte 8 .byte 225 .byte 127 .byte 12 .byte 0 .byte 0 .byte 2 .byte 46 .byte 1 .byte 1 .byte 19 .byte 3 .byte 8 .byte 135 .byte 64 .byte 8 .byte 58 .byte 11 .byte 59 .byte 11 .byte 39 .byte 12 .byte 63 .byte 12 .byte 17 .byte 1 .byte 18 .byte 1 .byte 64 .byte 10 .byte 0 .byte 0 .byte 3 .byte 5 .byte 0 .byte 3 .byte 8 .byte 58 .byte 11 .byte 59 .byte 11 .byte 73 .byte 19 .byte 2 .byte 10 .byte 0 .byte 0 .byte 4 .byte 11 .byte 1 .byte 17 .byte 1 .byte 18 .byte 1 .byte 0 .byte 0 .byte 5 .byte 52 .byte 0 .byte 3 .byte 8 .byte 58 .byte 11 .byte 59 .byte 11 .byte 73 .byte 19 .byte 2 .byte 10 .byte 44 .byte 1 .byte 0 .byte 0 .byte 6 .byte 11 .byte 0 .byte 17 .byte 1 .byte 18 .byte 1 .byte 0 .byte 0 .byte 7 .byte 36 .byte 0 .byte 62 .byte 11 .byte 3 .byte 8 .byte 11 .byte 11 .byte 0 .byte 0 .byte 8 .byte 46 .byte 1 .byte 1 .byte 19 .byte 3 .byte 8 .byte 135 .byte 64 .byte 8 .byte 58 .byte 11 .byte 59 .byte 11 .byte 39 .byte 12 .byte 73 .byte 19 .byte 63 .byte 12 .byte 17 .byte 1 .byte 18 .byte 1 .byte 64 .byte 10 .byte 0 .byte 0 .byte 9 .byte 52 .byte 0 .byte 3 .byte 8 .byte 73 .byte 19 .byte 63 .byte 12 .byte 58 .byte 11 .byte 59 .byte 11 .byte 2 .byte 10 .byte 0 .byte 0 .byte 10 .byte 15 .byte 0 .byte 73 .byte 19 .byte 11 .byte 11 .byte 58 .byte 11 .byte 59 .byte 11 .byte 0 .byte 0 .byte 0 Labbrev_end: .section __DWARF,__debug_line,regular,debug Lset25 = Lline_end-Lline_begin .long Lset25 Lline_begin: .short 2 Lset26 = Lline_prolog_end-Lline_prolog_begin .long Lset26 Lline_prolog_begin: .byte 1 .byte 1 .byte 246 .byte 245 .byte 10 .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .asciz "/Users/aykut/Documents/Academic/Courses/Hacettepe/BIL220/2012/codes/asm-procedures/" .byte 0 .asciz "swap.c" .byte 1 .byte 0 .byte 0 .byte 0 Lline_prolog_end: .byte 0 .byte 5 .byte 2 .long Ltmp3 .byte 24 .byte 0 .byte 5 .byte 2 .long Ltmp4 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp5 .byte 1 .byte 0 .byte 5 .byte 2 .long Ltmp6 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp7 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp8 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp13 .byte 23 .byte 0 .byte 5 .byte 2 .long Ltmp14 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp15 .byte 1 .byte 0 .byte 5 .byte 2 .long Ltmp16 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp17 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp18 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp23 .byte 25 .byte 0 .byte 5 .byte 2 .long Ltmp24 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp25 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp30 .byte 22 .byte 0 .byte 5 .byte 2 .long Ltmp31 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp32 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp33 .byte 21 .byte 0 .byte 5 .byte 2 .long Ltmp34 .byte 21 .byte 0 .byte 5 .byte 2 .long Lsection_end1 .byte 0 .byte 1 .byte 1 Lline_end: .section __DWARF,__debug_pubnames,regular,debug Lset27 = Lpubnames_end1-Lpubnames_begin1 .long Lset27 Lpubnames_begin1: .short 2 Lset28 = Linfo_begin1-Lsection_info .long Lset28 Lset29 = Linfo_end1-Linfo_begin1 .long Lset29 .long 436 .asciz "course1" .long 458 .asciz "course2" .long 393 .asciz "main" .long 254 .asciz "swap_l" .long 337 .asciz "call_swap" .long 175 .asciz "swap" .long 0 Lpubnames_end1: .section __DWARF,__debug_pubtypes,regular,debug Lset30 = Lpubtypes_end1-Lpubtypes_begin1 .long Lset30 Lpubtypes_begin1: .short 2 Lset31 = Linfo_begin1-Lsection_info .long Lset31 Lset32 = Linfo_end1-Linfo_begin1 .long Lset32 .long 0 Lpubtypes_end1: .section __DWARF,__debug_aranges,regular,debug .section __DWARF,__debug_ranges,regular,debug .section __DWARF,__debug_macinfo,regular,debug .section __DWARF,__debug_inlined,regular,debug Lset33 = Ldebug_inlined_end1-Ldebug_inlined_begin1 .long Lset33 Ldebug_inlined_begin1: .short 2 .byte 4 Ldebug_inlined_end1: .subsections_via_symbols