	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_list_remove
_queue_list_remove:                     ## @queue_list_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_queue_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_queue_list@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%ebx, %r13
	movq	(%rax,%r13,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	cmpl	%r14d, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	$1, 4(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	(%r12), %rax
	movq	$0, (%rax,%r13,8)
	movq	_num_queues@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_queue_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_queue_list_lock,4,2            ## @queue_list_lock
	.comm	_queue_list,8,3                 ## @queue_list
	.comm	_num_queues,4,2                 ## @num_queues
	.no_dead_strip	_queue_list_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_list_remove
_queue_list_remove:                     ; @queue_list_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _queue_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _queue_list_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x23, _queue_list@GOTPAGE
Lloh3:
	ldr	x23, [x23, _queue_list@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x19, [x8, w20, sxtw #3]
	cbz	x19, LBB0_4
; %bb.1:
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
	sxtw	x20, w20
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_spin_unlock
	ldr	x8, [x23]
	str	xzr, [x8, x20, lsl #3]
Lloh4:
	adrp	x8, _num_queues@GOTPAGE
Lloh5:
	ldr	x8, [x8, _num_queues@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_spin_unlock
	mov	x19, #0
LBB0_4:
Lloh6:
	adrp	x0, _queue_list_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _queue_list_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_queue_list_lock,4,2            ; @queue_list_lock
	.comm	_queue_list,8,3                 ; @queue_list
	.comm	_num_queues,4,2                 ; @num_queues
	.no_dead_strip	_queue_list_remove
.subsections_via_symbols
