	.file	"extr_turnstile.c_turnstile_remove_turnstile_promotion.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	turnstile_remove_turnstile_promotion, @function
turnstile_remove_turnstile_promotion:
.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
	mov	r14d, DWORD PTR FALSE[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	call	waitq_lock@PLT
	mov	rdi, r12
	call	VM_KERNEL_UNSLIDE_OR_PERM@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	VM_KERNEL_UNSLIDE_OR_PERM@PLT
	mov	esi, DWORD PTR TURNSTILE_REMOVED_FROM_TURNSTILE_HEAP[rip]
	mov	edi, DWORD PTR TURNSTILE_HEAP_OPERATIONS[rip]
	mov	r13d, eax
	call	TURNSTILE_CODE@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, r15d
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR KDEBUG_TRACE[rip]
	xor	r8d, r8d
	mov	edx, r13d
	or	eax, DWORD PTR DBG_FUNC_NONE[rip]
	mov	esi, eax
	call	KERNEL_DEBUG_CONSTANT_IST@PLT
	mov	edx, DWORD PTR PRIORITY_QUEUE_SCHED_PRI_MAX_HEAP_COMPARE[rip]
	lea	rsi, 16[r12]
	lea	rdi, 20[rbp]
	call	priority_queue_remove@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	jne	.L11
.L2:
	test	r14d, r14d
	jne	.L3
	cmp	QWORD PTR 8[rbp], 0
	mov	esi, DWORD PTR TSU_NO_INHERITOR[rip]
	jne	.L12
.L5:
	or	esi, DWORD PTR TSU_TURNSTILE_ARG[rip]
	mov	rdx, r12
	mov	edi, 1
	call	turnstile_stats_update@PLT
.L3:
	mov	rdi, rbp
	call	waitq_unlock@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR TSU_NO_PRI_CHANGE_NEEDED[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	turnstile_recompute_priority_locked@PLT
	mov	r14d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	turnstile_remove_turnstile_promotion, .-turnstile_remove_turnstile_promotion
	.comm	TURNSTILE_REMOVED_FROM_TURNSTILE_HEAP,4,4
	.comm	TURNSTILE_HEAP_OPERATIONS,4,4
	.comm	TSU_TURNSTILE_ARG,4,4
	.comm	TSU_NO_PRI_CHANGE_NEEDED,4,4
	.comm	TSU_NO_INHERITOR,4,4
	.comm	PRIORITY_QUEUE_SCHED_PRI_MAX_HEAP_COMPARE,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_remove_turnstile_promotion.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	turnstile_remove_turnstile_promotion, %function
turnstile_remove_turnstile_promotion:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L12
	sub	sp, sp, #20
	mov	r5, r1
	mov	r4, r0
	ldr	r8, [r3]
	bl	waitq_lock
	ldr	r2, .L12+4
	ldr	r1, .L12+8
	ldr	r3, .L12+12
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r9, [r3]
	bl	TURNSTILE_CODE
	mov	r7, r0
	ldr	r3, .L12+16
	mov	r0, r4
	ldr	r1, [r3]
	orr	r7, r7, r1
	bl	VM_KERNEL_UNSLIDE_OR_PERM
	mov	r6, r0
	mov	r0, r5
	bl	VM_KERNEL_UNSLIDE_OR_PERM
	mov	ip, #0
	mov	r3, r0
	mov	r1, r7
	mov	r2, r6
	str	ip, [sp, #8]
	str	ip, [sp, #4]
	str	ip, [sp]
	mov	r0, r9
	bl	KERNEL_DEBUG_CONSTANT_IST
	ldr	r3, .L12+20
	add	r1, r5, #8
	ldr	r2, [r3]
	add	r0, r4, #12
	bl	priority_queue_remove
	cmp	r0, #0
	bne	.L11
.L2:
	cmp	r8, #0
	bne	.L3
	ldr	r3, [r4, #4]
	mov	r2, r5
	cmp	r3, #0
	ldrne	r3, .L12+24
	ldreq	r3, .L12+28
	mov	r0, #1
	ldr	r1, [r3]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	turnstile_stats_update
.L3:
	mov	r0, r4
	bl	waitq_unlock
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	mov	r0, r4
	bl	turnstile_recompute_priority_locked
	mov	r8, r0
	b	.L2
.L13:
	.align	2
.L12:
	.word	FALSE
	.word	TURNSTILE_HEAP_OPERATIONS
	.word	TURNSTILE_REMOVED_FROM_TURNSTILE_HEAP
	.word	KDEBUG_TRACE
	.word	DBG_FUNC_NONE
	.word	PRIORITY_QUEUE_SCHED_PRI_MAX_HEAP_COMPARE
	.word	TSU_NO_PRI_CHANGE_NEEDED
	.word	TSU_NO_INHERITOR
	.word	TSU_TURNSTILE_ARG
	.size	turnstile_remove_turnstile_promotion, .-turnstile_remove_turnstile_promotion
	.comm	TURNSTILE_REMOVED_FROM_TURNSTILE_HEAP,4,4
	.comm	TURNSTILE_HEAP_OPERATIONS,4,4
	.comm	TSU_TURNSTILE_ARG,4,4
	.comm	TSU_NO_PRI_CHANGE_NEEDED,4,4
	.comm	TSU_NO_INHERITOR,4,4
	.comm	PRIORITY_QUEUE_SCHED_PRI_MAX_HEAP_COMPARE,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
