	.file	"extr_sge.c_freelQs_empty.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	freelQs_empty, @function
freelQs_empty:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	rdi, QWORD PTR A_SG_INT_ENABLE[rip]
	add	rdi, QWORD PTR [r12]
	call	readl@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	ebp, eax
	call	refill_free_list@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	lea	rsi, 8[rax]
	call	refill_free_list@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR 4[rdx]
	sar	eax, 2
	cmp	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR F_FL_EXHAUSTED[rip]
	jle	.L3
	mov	ecx, DWORD PTR 12[rdx]
	sar	ecx, 2
	cmp	DWORD PTR 8[rdx], ecx
	jg	.L7
.L3:
	not	eax
	mov	edi, DWORD PTR [rbx]
	and	ebp, eax
.L4:
	mov	rsi, QWORD PTR A_SG_INTRTIMER[rip]
	add	rsi, QWORD PTR [r12]
	call	writel@PLT
	mov	edi, ebp
	mov	rsi, QWORD PTR A_SG_INT_ENABLE[rip]
	add	rsi, QWORD PTR [r12]
	call	writel@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, DWORD PTR F_FL0_ENABLE[rip]
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	or	esi, DWORD PTR F_FL1_ENABLE[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	doorbell_pio@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	or	ebp, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	freelQs_empty, .-freelQs_empty
	.comm	F_FL_EXHAUSTED,4,4
	.comm	F_FL1_ENABLE,4,4
	.comm	F_FL0_ENABLE,4,4
	.comm	A_SG_INT_ENABLE,8,8
	.comm	A_SG_INTRTIMER,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sge.c_freelQs_empty.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	freelQs_empty, %function
freelQs_empty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #12]
	ldr	r7, .L8
	mov	r4, r0
	ldr	r3, [r7]
	ldr	r0, [r6]
	add	r0, r0, r3
	bl	readl
	ldr	r1, [r4, #8]
	mov	r5, r0
	mov	r0, r4
	bl	refill_free_list
	ldr	r1, [r4, #8]
	mov	r0, r4
	add	r1, r1, #8
	bl	refill_free_list
	ldr	r3, [r4, #8]
	ldr	r1, [r3, #4]
	ldr	r2, [r3]
	cmp	r2, r1, asr #2
	ble	.L2
	ldr	r1, [r3, #12]
	ldr	r2, [r3, #8]
	ldr	r3, .L8+4
	cmp	r2, r1, asr #2
	ldr	r3, [r3]
	bgt	.L7
.L3:
	ldr	r0, [r4]
	bic	r5, r5, r3
.L4:
	ldr	r3, .L8+8
	ldr	r1, [r6]
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r7]
	ldr	r1, [r6]
	mov	r0, r5
	add	r1, r1, r3
	bl	writel
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	orr	r1, r1, r3
	b	doorbell_pio
.L2:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	b	.L3
.L7:
	ldr	r0, [r4, #4]
	orr	r5, r5, r3
	b	.L4
.L9:
	.align	2
.L8:
	.word	A_SG_INT_ENABLE
	.word	F_FL_EXHAUSTED
	.word	A_SG_INTRTIMER
	.word	F_FL0_ENABLE
	.word	F_FL1_ENABLE
	.size	freelQs_empty, .-freelQs_empty
	.comm	F_FL_EXHAUSTED,4,4
	.comm	F_FL1_ENABLE,4,4
	.comm	F_FL0_ENABLE,4,4
	.comm	A_SG_INT_ENABLE,4,4
	.comm	A_SG_INTRTIMER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
