	.file	"952507.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	shr	rax, 22
	lea	rdx, 0[0+rax*8]
	lea	rax, f[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -56[rbp]
	shr	rdx, 12
	and	edx, 1023
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	sal	rax, 2
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	and	eax, 4095
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 253
	jle	.L2
	mov	eax, DWORD PTR -36[rbp]
	sar	eax, 2
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	shr	rcx, 2
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	mov	DWORD PTR -40[rbp], eax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	xor	rax, rdx
	and	rax, -4096
	test	rax, rax
	jne	.L7
.L2:
	mov	rax, QWORD PTR -56[rbp]
	and	rax, -4
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	sal	eax, 2
	cdqe
	neg	rax
	add	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jnb	.L8
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L8
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L6
.L7:
	nop
	jmp	.L3
.L8:
	nop
.L3:
	mov	rcx, QWORD PTR bar[rip]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	rax, QWORD PTR -56[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.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	"952507.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ 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]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #22
	ldr	r2, .L9
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #12
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #253
	ble	.L2
	ldr	r3, [fp, #-16]
	asr	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	eor	r3, r3, r2
	bic	r3, r3, #4080
	bic	r3, r3, #15
	cmp	r3, #0
	bne	.L7
.L2:
	ldr	r3, [fp, #-32]
	bic	r3, r3, #3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	rsb	r3, r3, #0
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcs	.L8
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-32]
	b	.L6
.L7:
	nop
	b	.L3
.L8:
	nop
.L3:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	blx	r3
	ldr	r3, [fp, #-32]
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	f
	.word	bar
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
