	.file	"extr_thread_policy.c_proc_thread_qos_remove_override.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	proc_thread_qos_remove_override
	.type	proc_thread_qos_remove_override, @function
proc_thread_qos_remove_override:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR THREAD_NULL[rip], rsi
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	je	.L10
	cmp	QWORD PTR [rsi], rdi
	mov	rbx, QWORD PTR FALSE[rip]
	mov	rbp, rsi
	sete	dil
	movzx	edi, dil
	call	assert@PLT
.L5:
	mov	rcx, QWORD PTR FALSE[rip]
	mov	esi, r12d
	mov	edx, r13d
	mov	rdi, rbp
	xor	r12d, r12d
	call	proc_thread_qos_remove_override_internal@PLT
	test	rbx, rbx
	jne	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	thread_deallocate@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, edx
	mov	r14d, edx
	call	task_findtid@PLT
	cmp	QWORD PTR THREAD_NULL[rip], rax
	mov	rbx, QWORD PTR TRUE[rip]
	mov	rbp, rax
	jne	.L5
	mov	esi, DWORD PTR IMP_USYNCH_REMOVE_OVERRIDE[rip]
	mov	edi, DWORD PTR IMP_USYNCH_QOS_OVERRIDE[rip]
	call	IMPORTANCE_CODE@PLT
	or	eax, DWORD PTR DBG_FUNC_NONE[rip]
	xor	r9d, r9d
	xor	edx, edx
	mov	edi, eax
	xor	r8d, r8d
	mov	ecx, 57005
	mov	esi, r14d
	call	KERNEL_DEBUG_CONSTANT@PLT
	mov	r12d, DWORD PTR ESRCH[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	proc_thread_qos_remove_override, .-proc_thread_qos_remove_override
	.comm	TRUE,8,8
	.comm	THREAD_NULL,8,8
	.comm	IMP_USYNCH_REMOVE_OVERRIDE,4,4
	.comm	IMP_USYNCH_QOS_OVERRIDE,4,4
	.comm	FALSE,8,8
	.comm	ESRCH,4,4
	.comm	DBG_FUNC_NONE,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_proc_thread_qos_remove_override.c"
	.text
	.align	2
	.global	proc_thread_qos_remove_override
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_thread_qos_remove_override, %function
proc_thread_qos_remove_override:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, .L14
	mov	r7, r3
	ldr	ip, [r5]
	sub	sp, sp, #12
	cmp	ip, r1
	beq	.L11
	mov	r4, r1
	mov	r1, r0
	ldr	r0, [r4]
	ldr	r6, .L14+4
	sub	r0, r0, r1
	clz	r0, r0
	lsr	r0, r0, #5
	ldr	r5, [r6]
	bl	assert
.L5:
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r6]
	ldr	r2, [sp, #32]
	bl	proc_thread_qos_remove_override_internal
	cmp	r5, #0
	bne	.L12
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r5, #0
	mov	r0, r4
	bl	thread_deallocate
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mov	r1, r2
	mov	r6, r2
	bl	task_findtid
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r0
	ldrne	r3, .L14+8
	ldrne	r6, .L14+4
	ldrne	r5, [r3]
	bne	.L5
.L13:
	ldr	r2, .L14+12
	ldr	r3, .L14+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	IMPORTANCE_CODE
	mov	r2, #0
	ldr	r3, .L14+20
	mov	r1, r6
	ldr	r3, [r3]
	str	r2, [sp, #4]
	orr	r0, r0, r3
	str	r2, [sp]
	ldr	r3, .L14+24
	bl	KERNEL_DEBUG_CONSTANT
	ldr	r3, .L14+28
	ldr	r5, [r3]
	b	.L1
.L15:
	.align	2
.L14:
	.word	THREAD_NULL
	.word	FALSE
	.word	TRUE
	.word	IMP_USYNCH_REMOVE_OVERRIDE
	.word	IMP_USYNCH_QOS_OVERRIDE
	.word	DBG_FUNC_NONE
	.word	57005
	.word	ESRCH
	.size	proc_thread_qos_remove_override, .-proc_thread_qos_remove_override
	.comm	TRUE,4,4
	.comm	THREAD_NULL,4,4
	.comm	IMP_USYNCH_REMOVE_OVERRIDE,4,4
	.comm	IMP_USYNCH_QOS_OVERRIDE,4,4
	.comm	FALSE,4,4
	.comm	ESRCH,4,4
	.comm	DBG_FUNC_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
