	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_psq_dequeue     ## -- Begin function ieee80211_node_psq_dequeue
	.p2align	4, 0x90
_ieee80211_node_psq_dequeue:            ## @ieee80211_node_psq_dequeue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_IEEE80211_PSQ_LOCK
	movq	8(%r15), %rbx
	movq	16(%rbx), %r12
	testq	%r12, %r12
	jne	LBB0_5
## %bb.1:
	leaq	24(%rbx), %rax
	movq	40(%rbx), %r12
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	testq	%r12, %r12
	je	LBB0_2
## %bb.4:
	movq	%rax, %rbx
LBB0_5:
	movq	(%r12), %rax
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	$0, 8(%rbx)
LBB0_7:
	movq	(%rbx), %rsi
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setg	%dil
	callq	_KASSERT
	decq	(%rbx)
	movslq	(%r15), %rsi
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setg	%dil
	callq	_KASSERT
	decl	(%r15)
	movq	$0, (%r12)
	testq	%r14, %r14
	je	LBB0_11
LBB0_10:
	movl	(%r15), %eax
	movl	%eax, (%r14)
LBB0_11:
	movq	%r15, %rdi
	callq	_IEEE80211_PSQ_UNLOCK
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_psq_dequeue     ; -- Begin function ieee80211_node_psq_dequeue
	.p2align	2
_ieee80211_node_psq_dequeue:            ; @ieee80211_node_psq_dequeue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_IEEE80211_PSQ_LOCK
	ldr	x22, [x19, #8]
	ldr	x21, [x22, #16]
	cbnz	x21, LBB0_5
; %bb.1:
	add	x8, x22, #24
	ldr	x21, [x22, #40]
	mov	x9, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x22
	b.ne	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, x8
	cbz	x21, LBB0_2
; %bb.4:
	mov	x22, x8
LBB0_5:
	ldr	x8, [x21]
	str	x8, [x22, #16]
	cbnz	x8, LBB0_7
; %bb.6:
	str	xzr, [x22, #8]
LBB0_7:
	ldr	x1, [x22]
	cmp	x1, #0
	cset	w0, gt
	bl	_KASSERT
	ldr	x8, [x22]
	sub	x8, x8, #1
	str	x8, [x22]
	ldrsw	x1, [x19]
	cmp	x1, #0
	cset	w0, gt
	bl	_KASSERT
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	str	xzr, [x21]
	cbz	x20, LBB0_9
LBB0_8:
	ldr	w8, [x19]
	str	w8, [x20]
LBB0_9:
	mov	x0, x19
	bl	_IEEE80211_PSQ_UNLOCK
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x21, #0
	cbnz	x20, LBB0_8
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
