	.file	"532565.c"
	.intel_syntax noprefix
	.text
	.globl	counter
	.bss
	.align 8
	.type	counter, @object
	.size	counter, 8
counter:
	.zero	8
	.section	.rodata
.LC0:
	.string	" %c2%c"
	.text
	.globl	move
	.type	move, @function
move:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, ecx
	mov	ecx, esi
	mov	BYTE PTR -8[rbp], cl
	mov	BYTE PTR -12[rbp], dl
	mov	BYTE PTR -16[rbp], al
	mov	rax, QWORD PTR counter[rip]
	add	rax, 1
	mov	QWORD PTR counter[rip], rax
	cmp	DWORD PTR -4[rbp], 1
	jne	.L2
	movsx	edx, BYTE PTR -16[rbp]
	movsx	eax, BYTE PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L2:
	movsx	ecx, BYTE PTR -12[rbp]
	movsx	edx, BYTE PTR -16[rbp]
	movsx	eax, BYTE PTR -8[rbp]
	mov	esi, DWORD PTR -4[rbp]
	lea	edi, -1[rsi]
	mov	esi, eax
	call	move
	movsx	edx, BYTE PTR -16[rbp]
	movsx	eax, BYTE PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	ecx, BYTE PTR -16[rbp]
	movsx	edx, BYTE PTR -8[rbp]
	movsx	eax, BYTE PTR -12[rbp]
	mov	esi, DWORD PTR -4[rbp]
	lea	edi, -1[rsi]
	mov	esi, eax
	call	move
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	move, .-move
	.section	.rodata
.LC1:
	.string	"title hanoi"
.LC2:
	.string	"How many? "
.LC3:
	.string	"%d"
.LC4:
	.string	"\nTotal steps (2^n-1) = %I64u"
.LC6:
	.string	"\nTime cost with echo = %fs\n"
.LC7:
	.string	"pause"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 99
	mov	edx, 98
	mov	esi, 97
	mov	edi, eax
	call	move
	mov	rax, QWORD PTR counter[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	sub	rax, QWORD PTR -16[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	system@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"532565.c"
	.text
	.global	counter
	.bss
	.align	3
	.type	counter, %object
	.size	counter, 8
counter:
	.space	8
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %c2%c\000"
	.text
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-17]
	mov	r3, r1
	strb	r3, [fp, #-18]
	mov	r3, r2
	strb	r3, [fp, #-19]
	ldr	r3, .L5
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, .L5
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L2
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L5+4
	bl	printf
	b	.L4
.L2:
	ldr	r3, [fp, #-16]
	sub	r0, r3, #1
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	ldrb	r1, [fp, #-17]	@ zero_extendqisi2
	bl	move
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L5+4
	bl	printf
	ldr	r3, [fp, #-16]
	sub	r0, r3, #1
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldrb	r1, [fp, #-18]	@ zero_extendqisi2
	bl	move
.L4:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	.align	2
.L5:
	.word	counter
	.word	.LC0
	.size	move, .-move
	.section	.rodata
	.align	2
.LC1:
	.ascii	"title hanoi\000"
	.align	2
.LC2:
	.ascii	"How many? \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012Total steps (2^n-1) = %I64u\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"\012Time cost with echo = %fs\012\000"
	.align	2
.LC6:
	.ascii	"pause\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	system
	ldr	r0, .L10+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L10+12
	bl	__isoc99_scanf
	bl	clock
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	mov	r3, #99
	mov	r2, #98
	mov	r1, #97
	bl	move
	ldr	r3, .L10+16
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+20
	bl	printf
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10+28
	bl	printf
	ldr	r0, .L10+32
	bl	system
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	counter
	.word	.LC4
	.word	1093567616
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
