.file "switchloop.cpp"
.section .rodata
.type _ZStL19piecewise_construct, @object
.size _ZStL19piecewise_construct, 1
_ZStL19piecewise_construct:
.zero 1
.local _ZStL8__ioinit
.comm _ZStL8__ioinit,1,1
.LC0:
.string "0 "
.LC1:
.string "1 "
.LC2:
.string "2 "
.LC3:
.string "out0\n"
.LC4:
.string "out1\n"
.LC5:
.string "out2\n"
.LC6:
.string "3 "
.LC7:
.string "4 "
.LC8:
.string "5 "
.LC9:
.string "out3\n"
.LC10:
.string "out4\n"
.LC11:
.string "out5\n"
.text
.globl main
.type main, @function
main:
.LFB1383:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $16, %rsp
movl $0, -8(%rbp)
.L19:
cmpl $14, -8(%rbp)
jg .L2
movl $0, -4(%rbp)
movl -8(%rbp), %ecx
movl $715827883, %edx
movl %ecx, %eax
imull %edx
movl %ecx, %eax
sarl $31, %eax
subl %eax, %edx
movl %edx, %eax
addl %eax, %eax
addl %edx, %eax
addl %eax, %eax
subl %eax, %ecx
movl %ecx, %edx
cmpl $5, %edx
ja .L3
movl %edx, %eax
movq .L5(,%rax,8), %rax
jmp *%rax
.section .rodata
.align 8
.align 4
.L5:
.quad .L4
.quad .L6
.quad .L7
.quad .L8
.quad .L9
.quad .L10
.text
.L29:
nop
.L4:
movl $.LC0, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
movl -4(%rbp), %eax
leal 1(%rax), %edx
movl %edx, -4(%rbp)
cmpl -8(%rbp), %eax
setg %al
testb %al, %al
jne .L27
.L6:
movl $.LC1, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
movl -4(%rbp), %eax
leal 1(%rax), %edx
movl %edx, -4(%rbp)
cmpl -8(%rbp), %eax
setg %al
testb %al, %al
jne .L28
.L7:
movl $.LC2, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
movl -4(%rbp), %eax
leal 1(%rax), %edx
movl %edx, -4(%rbp)
cmpl -8(%rbp), %eax
setg %al
testb %al, %al
je .L29
jmp .L23
.L27:
nop
.L11:
movl $.LC3, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
jmp .L3
.L28:
nop
.L12:
movl $.LC4, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
jmp .L3
.L23:
.L14:
movl $.LC5, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
jmp .L3
.L32:
nop
.L8:
movl $.LC6, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
movl -4(%rbp), %eax
leal 1(%rax), %edx
movl %edx, -4(%rbp)
cmpl -8(%rbp), %eax
setg %al
testb %al, %al
jne .L30
.L9:
movl $.LC7, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
movl -4(%rbp), %eax
leal 1(%rax), %edx
movl %edx, -4(%rbp)
cmpl -8(%rbp), %eax
setg %al
testb %al, %al
jne .L31
.L10:
movl $.LC8, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
movl -4(%rbp), %eax
leal 1(%rax), %edx
movl %edx, -4(%rbp)
cmpl -8(%rbp), %eax
setg %al
testb %al, %al
je .L32
jmp .L26
.L30:
nop
.L15:
movl $.LC9, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
jmp .L3
.L31:
nop
.L16:
movl $.LC10, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
jmp .L3
.L26:
.L18:
movl $.LC11, %esi
movl $_ZSt4cout, %edi
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
nop
.L3:
addl $1, -8(%rbp)
jmp .L19
.L2:
movl $0, %eax
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1383:
.size main, .-main
.type _Z41__static_initialization_and_destruction_0ii, @function
_Z41__static_initialization_and_destruction_0ii:
.LFB1567:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
cmpl $1, -4(%rbp)
jne .L35
cmpl $65535, -8(%rbp)
jne .L35
movl $_ZStL8__ioinit, %edi
call _ZNSt8ios_base4InitC1Ev
movl $__dso_handle, %edx
movl $_ZStL8__ioinit, %esi
movl $_ZNSt8ios_base4InitD1Ev, %edi
call __cxa_atexit
.L35:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1567:
.size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
.type _GLOBAL__sub_I_main, @function
_GLOBAL__sub_I_main:
.LFB1568:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl $65535, %esi
movl $1, %edi
call _Z41__static_initialization_and_destruction_0ii
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1568:
.size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
.section .init_array,"aw"
.align 8
.quad _GLOBAL__sub_I_main
.hidden __dso_handle
.ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609"
.section .note.GNU-stack,"",@progbits
|