	.file	"extr_turnstile.c_turnstile_update_thread_promotion_locked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	turnstile_update_thread_promotion_locked, @function
turnstile_update_thread_promotion_locked:
.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
	lea	r13, 4[rsi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	rsi, r13
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	priority_queue_entry_key@PLT
	mov	r14d, DWORD PTR [rbx]
	mov	r12d, eax
	cmp	r14d, eax
	je	.L2
	mov	rdi, rbx
	call	thread_tid@PLT
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	VM_KERNEL_UNSLIDE_OR_PERM@PLT
	mov	esi, DWORD PTR THREAD_MOVED_IN_TURNSTILE_WAITQ[rip]
	mov	edi, DWORD PTR TURNSTILE_HEAP_OPERATIONS[rip]
	mov	r15d, eax
	call	TURNSTILE_CODE@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9d, r12d
	mov	edx, r15d
	push	0
	.cfi_def_cfa_offset 96
	or	eax, DWORD PTR DBG_FUNC_NONE[rip]
	mov	r8d, r14d
	mov	ecx, DWORD PTR 28[rsp]
	mov	edi, DWORD PTR KDEBUG_TRACE[rip]
	mov	esi, eax
	call	KERNEL_DEBUG_CONSTANT_IST@PLT
	mov	r12d, DWORD PTR [rbx]
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
.L2:
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	call	turnstile_priority_queue_update_entry_key@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 24
	.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
.L3:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	turnstile_recompute_priority_locked@PLT
	.cfi_endproc
.LFE0:
	.size	turnstile_update_thread_promotion_locked, .-turnstile_update_thread_promotion_locked
	.comm	TURNSTILE_HEAP_OPERATIONS,4,4
	.comm	THREAD_MOVED_IN_TURNSTILE_WAITQ,4,4
	.comm	KDEBUG_TRACE,4,4
	.comm	FALSE,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_turnstile.c_turnstile_update_thread_promotion_locked.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	turnstile_update_thread_promotion_locked, %function
turnstile_update_thread_promotion_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	add	r7, r1, #4
	mov	r1, r7
	sub	sp, sp, #16
	mov	r6, r0
	bl	priority_queue_entry_key
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, r0
	beq	.L2
	ldr	r2, .L8
	ldr	r1, .L8+4
	ldr	r3, .L8+8
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r10, [r3]
	bl	TURNSTILE_CODE
	mov	r9, r0
	ldr	r3, .L8+12
	mov	r0, r6
	ldr	r1, [r3]
	orr	r9, r9, r1
	bl	VM_KERNEL_UNSLIDE_OR_PERM
	mov	r8, r0
	mov	r0, r4
	bl	thread_tid
	mov	lr, #0
	str	r5, [sp, #4]
	ldr	ip, [r4]
	mov	r3, r0
	mov	r1, r9
	mov	r2, r8
	mov	r0, r10
	str	lr, [sp, #8]
	str	ip, [sp]
	bl	KERNEL_DEBUG_CONSTANT_IST
	ldr	r5, [r4]
.L2:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	turnstile_priority_queue_update_entry_key
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L8+16
	ldr	r0, [r3]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	turnstile_recompute_priority_locked
.L9:
	.align	2
.L8:
	.word	TURNSTILE_HEAP_OPERATIONS
	.word	THREAD_MOVED_IN_TURNSTILE_WAITQ
	.word	KDEBUG_TRACE
	.word	DBG_FUNC_NONE
	.word	FALSE
	.size	turnstile_update_thread_promotion_locked, .-turnstile_update_thread_promotion_locked
	.comm	TURNSTILE_HEAP_OPERATIONS,4,4
	.comm	THREAD_MOVED_IN_TURNSTILE_WAITQ,4,4
	.comm	KDEBUG_TRACE,4,4
	.comm	FALSE,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
