	.file	"extr_classq_sfb.c_sfb_dq_update_bins.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sfb_dq_update_bins, @function
sfb_dq_update_bins:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r13d, DWORD PTR [rdi]
	xor	edi, edi
	mov	QWORD PTR [rsp], rdx
	mov	eax, r13d
	mov	QWORD PTR 24[rsp], rsi
	xor	eax, 1
	mov	QWORD PTR 16[rsp], rcx
	add	eax, r13d
	cmp	eax, 1
	sete	dil
	call	VERIFY@PLT
	mov	edx, DWORD PTR SFB_LEVELS[rip]
	lea	rax, 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	test	edx, edx
	jle	.L1
	xor	ebx, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR [rax+rbx*4]
	call	SFB_BINMASK@PLT
	mov	ebp, eax
.L4:
	mov	rdi, r12
	mov	ecx, r13d
	mov	edx, ebp
	mov	esi, r14d
	call	SFB_BINST@PLT
	xor	edi, edi
	mov	r15, rax
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L5
	xor	edi, edi
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 8[r15], rax
	setge	dil
.L5:
	call	VERIFY@PLT
	mov	eax, DWORD PTR [r15]
	mov	rsi, QWORD PTR [rsp]
	sub	QWORD PTR 8[r15], rsi
	sub	eax, 1
	mov	DWORD PTR [r15], eax
	test	eax, eax
	je	.L27
.L6:
	cmp	DWORD PTR SFB_FC_LEVEL[rip], ebx
	je	.L28
.L8:
	add	rbx, 1
	cmp	DWORD PTR SFB_LEVELS[rip], ebx
	jle	.L1
.L2:
	mov	rax, QWORD PTR 8[rsp]
	mov	r14d, ebx
	test	r13d, r13d
	je	.L29
	mov	edi, DWORD PTR 8[rax+rbx*4]
	call	SFB_BINMASK@PLT
	mov	ebp, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r12
	call	SFB_QUEUE_DELAYBASED@PLT
	test	rax, rax
	jne	.L30
	mov	eax, DWORD PTR 16[r12]
	sar	eax, 2
	cmp	DWORD PTR [r15], eax
	jg	.L8
.L25:
	mov	esi, ebp
	mov	rdi, r12
	call	SFB_FC_LIST@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
	mov	rdi, rax
	call	STAILQ_EMPTY@PLT
	test	eax, eax
	jne	.L8
	mov	rsi, rbp
	mov	rdi, r12
	add	rbx, 1
	call	sfb_fclist_append@PLT
	cmp	DWORD PTR SFB_LEVELS[rip], ebx
	jg	.L2
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	ecx, r13d
	mov	edx, ebp
	mov	esi, r14d
	mov	rdi, r12
	call	SFB_BINFT@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	rdi, r12
	mov	edx, eax
	call	sfb_decrement_bin@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r12
	call	SFB_IS_DELAYHIGH@PLT
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR 8[r15], rax
	jg	.L8
	jmp	.L25
	.cfi_endproc
.LFE0:
	.size	sfb_dq_update_bins, .-sfb_dq_update_bins
	.comm	SFB_LEVELS,4,4
	.comm	SFB_FC_LEVEL,4,4
	.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_classq_sfb.c_sfb_dq_update_bins.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfb_dq_update_bins, %function
sfb_dq_update_bins:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0]
	mov	r8, r0
	eor	r0, r9, #1
	add	r0, r0, r9
	sub	r0, r0, #1
	clz	r0, r0
	ldr	r10, .L28
	sub	sp, sp, #20
	lsr	r0, r0, #5
	stmib	sp, {r2, r3}
	str	r1, [sp, #12]
	bl	VERIFY
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L1
	mov	r5, #0
	ldr	fp, .L28+4
	add	r7, sp, #12
	b	.L13
.L8:
	ldr	r3, [r10]
	add	r5, r5, #1
	cmp	r3, r5
	add	r7, r7, #4
	ble	.L1
.L13:
	cmp	r9, #0
	ldreq	r0, [r7]
	ldrne	r0, [r7, #8]
	bl	SFB_BINMASK
	mov	r3, r9
	mov	r2, r0
	mov	r6, r0
	mov	r1, r5
	mov	r0, r8
	bl	SFB_BINST
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #0
	movle	r0, #0
	ble	.L5
	ldr	r0, [r4, #4]
	ldr	r3, [sp, #4]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
.L5:
	bl	VERIFY
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	ldr	r1, [sp, #4]
	sub	r3, r3, #1
	sub	r2, r2, r1
	cmp	r3, #0
	str	r3, [r4]
	str	r2, [r4, #4]
	beq	.L26
.L6:
	ldr	r3, [fp]
	cmp	r3, r5
	bne	.L8
	mov	r0, r8
	bl	SFB_QUEUE_DELAYBASED
	cmp	r0, #0
	bne	.L27
	ldr	r3, [r4]
	ldr	r2, [r8, #8]
	cmp	r3, r2, asr #2
	bgt	.L8
.L24:
	mov	r1, r6
	mov	r0, r8
	bl	SFB_FC_LIST
	cmp	r0, #0
	mov	r4, r0
	beq	.L8
	bl	STAILQ_EMPTY
	cmp	r0, #0
	bne	.L8
	mov	r1, r4
	mov	r0, r8
	bl	sfb_fclist_append
	b	.L8
.L26:
	mov	r3, r9
	mov	r2, r6
	mov	r1, r5
	mov	r0, r8
	bl	SFB_BINFT
	mov	r1, r4
	mov	r2, r0
	ldr	r3, [sp, #8]
	mov	r0, r8
	bl	sfb_decrement_bin
	b	.L6
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, r8
	bl	SFB_IS_DELAYHIGH
	cmp	r0, #0
	beq	.L24
	ldr	r2, [r4, #4]
	ldr	r3, [r8, #4]
	cmp	r2, r3
	bgt	.L8
	b	.L24
.L29:
	.align	2
.L28:
	.word	SFB_LEVELS
	.word	SFB_FC_LEVEL
	.size	sfb_dq_update_bins, .-sfb_dq_update_bins
	.comm	SFB_LEVELS,4,4
	.comm	SFB_FC_LEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
