	.file	"953536.c"
	.intel_syntax noprefix
	.text
	.type	foo, @function
foo:
.LFB0:
	.cfi_startproc
	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	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 5
	je	.L2
	cmp	DWORD PTR -4[rbp], 5
	jg	.L3
	cmp	DWORD PTR -4[rbp], 2
	jg	.L4
	cmp	DWORD PTR -4[rbp], 0
	jg	.L5
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 3
	cmp	eax, 1
	ja	.L3
	jmp	.L8
.L5:
	mov	eax, 3
	jmp	.L7
.L8:
	mov	eax, 2
	jmp	.L7
.L2:
	cmp	DWORD PTR -8[rbp], 4
	jne	.L3
	mov	eax, 1
	jmp	.L7
.L3:
	mov	eax, 0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.globl	bar
	.type	bar, @function
bar:
.LFB1:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	esi, edx
	mov	edi, eax
	call	foo
.L11:
	cmp	eax, 3
	jne	.L20
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	cmp	QWORD PTR -24[rbp], rax
	jne	.L20
.L18:
	add	QWORD PTR -16[rbp], 8
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	esi, edx
	mov	edi, eax
	call	foo
.L14:
	cmp	eax, 6
	je	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L16
.L21:
	nop
.L16:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	je	.L22
	jmp	.L18
.L22:
	nop
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bar, .-bar
	.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	"953536.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bgt	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L5
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3
	cmp	r3, #1
	bhi	.L3
	b	.L8
.L5:
	mov	r3, #3
	b	.L7
.L8:
	mov	r3, #2
	b	.L7
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bne	.L3
	mov	r3, #1
	b	.L7
.L3:
	mov	r3, #0
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	foo, .-foo
	.align	2
	.global	bar
	.syntax unified
	.arm
	.fpu softvfp
	.type	bar, %function
bar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L11
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	foo
	mov	r3, r0
.L11:
	cmp	r3, #3
	bne	.L20
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L20
.L18:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L14
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	foo
	mov	r3, r0
.L14:
	cmp	r3, #6
	beq	.L21
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L16
.L21:
	nop
.L16:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L22
	b	.L18
.L22:
	nop
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bar, .-bar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
