	.file	"932596.c"
	.intel_syntax noprefix
	.text
	.globl	testit
	.type	testit, @function
testit:
.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 -4[rbp], edi
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	testit, .-testit
	.section	.rodata
.LC0:
	.string	"%d\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 67108864
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	testit
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L5
.L4:
	mov	DWORD PTR -16[rbp], 33554432
	mov	DWORD PTR -12[rbp], 0
.L12:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	testit
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
.L7:
	cmp	DWORD PTR -8[rbp], -1023
	jl	.L8
	cmp	DWORD PTR -8[rbp], 1023
	jg	.L8
	cmp	DWORD PTR -4[rbp], 0
	jne	.L13
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L13
.L8:
	cmp	DWORD PTR -16[rbp], 8191
	jle	.L14
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -16[rbp], eax
	jmp	.L12
.L13:
	nop
	jmp	.L10
.L14:
	nop
.L10:
	cmp	DWORD PTR -16[rbp], 8191
	jg	.L5
	mov	DWORD PTR -16[rbp], 0
.L5:
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"932596.c"
	.text
	.align	2
	.global	testit
	.syntax unified
	.arm
	.fpu softvfp
	.type	testit, %function
testit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	testit, .-testit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #67108864
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	testit
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L5
.L4:
	mov	r3, #33554432
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
.L12:
	ldr	r0, [fp, #-20]
	bl	testit
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L7
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-12]
	cmn	r3, #1024
	ble	.L8
	ldr	r3, [fp, #-12]
	cmp	r3, #1024
	bge	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L13
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #8192
	blt	.L14
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L12
.L13:
	nop
	b	.L10
.L14:
	nop
.L10:
	ldr	r3, [fp, #-20]
	cmp	r3, #8192
	bge	.L5
	mov	r3, #0
	str	r3, [fp, #-20]
.L5:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L15+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L16:
	.align	2
.L15:
	.word	stdout
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
