	.file	"extr_thread_policy.c_thread_set_user_sched_mode_and_recompute_pri.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	thread_set_user_sched_mode_and_recompute_pri, @function
thread_set_user_sched_mode_and_recompute_pri:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 8[rdi], 0
	je	.L15
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	thread_run_queue_remove@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR TH_SFLAG_DEMOTED_MASK[rip], eax
	je	.L4
	mov	DWORD PTR 4[rbp], r12d
	mov	rdi, rbp
	call	thread_recompute_priority@PLT
	test	rbx, rbx
	jne	.L16
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, r12d
	call	sched_set_thread_mode@PLT
	mov	rdi, rbp
	call	thread_recompute_priority@PLT
	test	rbx, rbx
	je	.L1
.L16:
	mov	esi, DWORD PTR SCHED_TAILQ[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	thread_run_queue_reinsert@PLT
	.cfi_endproc
.LFE0:
	.size	thread_set_user_sched_mode_and_recompute_pri, .-thread_set_user_sched_mode_and_recompute_pri
	.comm	TH_SFLAG_DEMOTED_MASK,4,4
	.comm	SCHED_TAILQ,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_thread_policy.c_thread_set_user_sched_mode_and_recompute_pri.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_set_user_sched_mode_and_recompute_pri, %function
thread_set_user_sched_mode_and_recompute_pri:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	cmp	r3, #0
	bxne	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	bl	thread_run_queue_remove
	ldr	r3, .L16
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r6, r0
	tst	r2, r3
	strne	r5, [r4, #4]
	beq	.L15
.L5:
	mov	r0, r4
	bl	thread_recompute_priority
	cmp	r6, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L16+4
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	thread_run_queue_reinsert
.L15:
	mov	r1, r5
	mov	r0, r4
	bl	sched_set_thread_mode
	b	.L5
.L17:
	.align	2
.L16:
	.word	TH_SFLAG_DEMOTED_MASK
	.word	SCHED_TAILQ
	.size	thread_set_user_sched_mode_and_recompute_pri, .-thread_set_user_sched_mode_and_recompute_pri
	.comm	TH_SFLAG_DEMOTED_MASK,4,4
	.comm	SCHED_TAILQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
