	.file	"extr_async-thread.c_thresh_exec_hook.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	thresh_exec_hook, @function
thresh_exec_hook:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR NO_THRESHOLD[rip]
	cmp	DWORD PTR [rdi], eax
	je	.L1
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 24[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, r13
	lea	rbp, 16[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	atomic_dec@PLT
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rbx]
	lea	ecx, 3[rdx]
	add	eax, 1
	test	edx, edx
	cmovns	ecx, edx
	cdq
	sar	ecx, 2
	idiv	ecx
	mov	DWORD PTR 4[rbx], edx
	test	edx, edx
	jne	.L3
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r13
	mov	r12d, DWORD PTR 8[rbx]
	call	atomic_read@PLT
	movsx	rdx, DWORD PTR [rbx]
	mov	esi, 1
	cmp	rdx, rax
	mov	rcx, rdx
	setl	dl
	movzx	edx, dl
	add	r12d, edx
	mov	edx, ecx
	shr	edx, 31
	add	edx, ecx
	sar	edx
	movsx	rdx, edx
	cmp	rdx, rax
	mov	edx, DWORD PTR 20[rbx]
	setg	al
	movzx	eax, al
	sub	r12d, eax
	mov	edi, r12d
	call	clamp_val@PLT
	cmp	DWORD PTR 8[rbx], eax
	je	.L6
	mov	DWORD PTR 8[rbx], eax
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	workqueue_set_max_active@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	thresh_exec_hook, .-thresh_exec_hook
	.comm	NO_THRESHOLD,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_async-thread.c_thresh_exec_hook.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thresh_exec_hook, %function
thresh_exec_hook:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r6, r0, #24
	mov	r0, r6
	add	r5, r4, #16
	bl	atomic_dec
	mov	r0, r5
	bl	spin_lock
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	cmp	r1, #0
	add	r3, r1, #3
	movlt	r1, r3
	add	r0, r0, #1
	asr	r1, r1, #2
	bl	__aeabi_idivmod
	cmp	r1, #0
	str	r1, [r4, #4]
	bne	.L3
.L6:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	spin_unlock
.L3:
	mov	r0, r6
	ldr	r6, [r4, #8]
	bl	atomic_read
	ldr	r3, [r4]
	mov	r1, #1
	cmp	r3, r0
	add	r3, r3, r3, lsr #31
	addlt	r6, r6, #1
	cmp	r0, r3, asr #1
	sublt	r6, r6, #1
	mov	r0, r6
	ldr	r2, [r4, #20]
	bl	clamp_val
	ldr	r3, [r4, #8]
	cmp	r3, r0
	beq	.L6
	str	r0, [r4, #8]
	mov	r0, r5
	bl	spin_unlock
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, lr}
	b	workqueue_set_max_active
.L12:
	.align	2
.L11:
	.word	NO_THRESHOLD
	.size	thresh_exec_hook, .-thresh_exec_hook
	.comm	NO_THRESHOLD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
