	.file	"27775.c"
	.intel_syntax noprefix
	.text
	.globl	test1
	.type	test1, @function
test1:
.LFB0:
	.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 -12[rbp], 6
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L3
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	sub	DWORD PTR -8[rbp], 1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L4:
	sub	DWORD PTR -12[rbp], 1
	sub	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L5
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -4[rbp], 3
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	test1, .-test1
	.globl	test2
	.type	test2, @function
test2:
.LFB1:
	.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 -12[rbp], 10
	mov	DWORD PTR -8[rbp], 100
	cmp	DWORD PTR -12[rbp], 0
	jle	.L10
	mov	DWORD PTR -8[rbp], 1
	jmp	.L9
.L11:
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L11
.L9:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	test2, .-test2
	.globl	test3
	.type	test3, @function
test3:
.LFB2:
	.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], 1
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L14
	jmp	.L15
.L17:
	sub	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
.L16:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L17
.L15:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L16
.L14:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	test3, .-test3
	.globl	test4
	.type	test4, @function
test4:
.LFB3:
	.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], 3
	jmp	.L21
.L27:
	cmp	DWORD PTR -4[rbp], 2
	jg	.L25
	jmp	.L23
.L24:
	add	DWORD PTR -4[rbp], 1
.L23:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L24
	jmp	.L21
.L26:
	add	DWORD PTR -4[rbp], 1
.L25:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L26
.L21:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L27
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	test4, .-test4
	.globl	test5
	.type	test5, @function
test5:
.LFB4:
	.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 -24[rbp], 1
	mov	DWORD PTR -20[rbp], 2
	mov	DWORD PTR -16[rbp], 3
	mov	DWORD PTR -12[rbp], 4
	mov	DWORD PTR -8[rbp], 5
	mov	DWORD PTR -4[rbp], 6
	cmp	DWORD PTR -24[rbp], 9
	jg	.L30
	cmp	DWORD PTR -20[rbp], 9
	jg	.L31
	cmp	DWORD PTR -16[rbp], 9
	jg	.L32
	mov	DWORD PTR -24[rbp], 4
	jmp	.L33
.L32:
	mov	DWORD PTR -24[rbp], 5
.L33:
	mov	DWORD PTR -12[rbp], 10
	jmp	.L34
.L31:
	mov	DWORD PTR -24[rbp], 6
.L34:
	mov	DWORD PTR -8[rbp], 10
	jmp	.L35
.L30:
	mov	DWORD PTR -24[rbp], 7
.L35:
	mov	DWORD PTR -4[rbp], 11
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	test5, .-test5
	.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	"27775.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	test1
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #6
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L5
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #3
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	test1, .-test1
	.align	2
	.global	test2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2, %function
test2:
	@ 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
	mov	r3, #10
	str	r3, [fp, #-16]
	mov	r3, #100
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L10
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L11
.L9:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test2, .-test2
	.align	2
	.global	test3
	.syntax unified
	.arm
	.fpu softvfp
	.type	test3, %function
test3:
	@ 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
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L14
	b	.L15
.L17:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L17
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L16
.L14:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test3, .-test3
	.align	2
	.global	test4
	.syntax unified
	.arm
	.fpu softvfp
	.type	test4, %function
test4:
	@ 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
	mov	r3, #3
	str	r3, [fp, #-8]
	b	.L21
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L25
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L24
	b	.L21
.L26:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L26
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L27
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test4, .-test4
	.align	2
	.global	test5
	.syntax unified
	.arm
	.fpu softvfp
	.type	test5, %function
test5:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #2
	str	r3, [fp, #-24]
	mov	r3, #3
	str	r3, [fp, #-20]
	mov	r3, #4
	str	r3, [fp, #-16]
	mov	r3, #5
	str	r3, [fp, #-12]
	mov	r3, #6
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	bgt	.L30
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	bgt	.L31
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	bgt	.L32
	mov	r3, #4
	str	r3, [fp, #-28]
	b	.L33
.L32:
	mov	r3, #5
	str	r3, [fp, #-28]
.L33:
	mov	r3, #10
	str	r3, [fp, #-16]
	b	.L34
.L31:
	mov	r3, #6
	str	r3, [fp, #-28]
.L34:
	mov	r3, #10
	str	r3, [fp, #-12]
	b	.L35
.L30:
	mov	r3, #7
	str	r3, [fp, #-28]
.L35:
	mov	r3, #11
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test5, .-test5
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
