	.file	"205142.c"
	.intel_syntax noprefix
	.text
	.globl	fun1
	.type	fun1, @function
fun1:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -20[rbp], eax
.L2:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fun1, .-fun1
	.globl	fun2
	.type	fun2, @function
fun2:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	sar	DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -4[rbp], eax
.L6:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fun2, .-fun2
	.section	.rodata
.LC0:
	.string	"\350\257\267\350\276\223\345\205\245\350\246\201\350\256\241\347\256\227\347\232\204\346\225\264\346\225\260:"
.LC1:
	.string	"%d"
.LC2:
	.string	"n\345\277\205\351\241\273\344\270\272\345\244\247\344\272\216 1 \347\232\204\346\225\264\351\231\244"
	.align 8
.LC3:
	.string	"1 ~ %d \350\277\231\344\272\233\346\225\260\344\270\255\345\217\257\344\273\245\350\242\253 2 \346\225\264\351\231\244\347\232\204\344\270\252\346\225\260\350\256\241\347\256\227\347\273\223\346\236\234\345\246\202\344\270\213\357\274\232\n"
.LC4:
	.string	"fun1 \347\232\204\347\273\223\346\236\234\344\270\272: %d\n"
.LC5:
	.string	"fun2 \347\232\204\347\273\223\346\236\234\344\270\272: %d\n"
	.align 8
.LC6:
	.string	"n! \347\232\204\344\272\214\350\277\233\345\210\266\350\241\250\347\244\272\346\263\225\357\274\214\346\234\200\344\275\216\344\275\2151\347\232\204\344\275\215\347\275\256\345\234\250\345\200\222\346\225\260\347\254\254 %d \344\275\215\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L10:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	fun1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	fun2
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"205142.c"
	.text
	.align	2
	.global	fun1
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun1, %function
fun1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fun1, .-fun1
	.align	2
	.global	fun2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun2, %function
fun2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-16]
	asr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fun2, .-fun2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\350\257\267\350\276\223\345\205\245\350\246\201\350"
	.ascii	"\256\241\347\256\227\347\232\204\346\225\264\346\225"
	.ascii	"\260:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"n\345\277\205\351\241\273\344\270\272\345\244\247\344"
	.ascii	"\272\216 1 \347\232\204\346\225\264\351\231\244\000"
	.align	2
.LC3:
	.ascii	"1 ~ %d \350\277\231\344\272\233\346\225\260\344\270"
	.ascii	"\255\345\217\257\344\273\245\350\242\253 2 \346\225"
	.ascii	"\264\351\231\244\347\232\204\344\270\252\346\225\260"
	.ascii	"\350\256\241\347\256\227\347\273\223\346\236\234\345"
	.ascii	"\246\202\344\270\213\357\274\232\012\000"
	.align	2
.LC4:
	.ascii	"fun1 \347\232\204\347\273\223\346\236\234\344\270\272"
	.ascii	": %d\012\000"
	.align	2
.LC5:
	.ascii	"fun2 \347\232\204\347\273\223\346\236\234\344\270\272"
	.ascii	": %d\012\000"
	.align	2
.LC6:
	.ascii	"n! \347\232\204\344\272\214\350\277\233\345\210\266"
	.ascii	"\350\241\250\347\244\272\346\263\225\357\274\214\346"
	.ascii	"\234\200\344\275\216\344\275\2151\347\232\204\344\275"
	.ascii	"\215\347\275\256\345\234\250\345\200\222\346\225\260"
	.ascii	"\347\254\254 %d \344\275\215\012\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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L14+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L10
	ldr	r0, .L14+12
	bl	puts
	mov	r3, #1
	b	.L12
.L10:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	fun1
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	fun2
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L14+20
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L14+24
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.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
