	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function psq_drain
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_psq_drain:                             ## @psq_drain
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_IEEE80211_PSQ_LOCK
	movl	(%r15), %r14d
	movq	8(%r15), %rax
	movq	%rax, %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	24(%rax), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	cmpq	%rax, %rbx
	movq	%rbx, %rax
	movq	%rcx, %rbx
	jne	LBB0_5
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rax
	movq	%rax, 16(%rbx)
	callq	_psq_mfree
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	jmp	LBB0_4
LBB0_5:
	movl	$0, (%r15)
	movq	%r15, %rdi
	callq	_IEEE80211_PSQ_UNLOCK
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_psq_drain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psq_drain
_psq_drain:                             ; @psq_drain
	.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	x19, x0
	bl	_IEEE80211_PSQ_LOCK
	ldr	w20, [x19]
	ldr	x8, [x19, #8]
	mov	x21, x8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x8, #24
	stp	xzr, xzr, [x21]
	cmp	x21, x8
	mov	x8, x21
	mov	x21, x9
	b.ne	LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x0]
	str	x8, [x21, #16]
	bl	_psq_mfree
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_1
LBB0_5:
	str	wzr, [x19]
	mov	x0, x19
	bl	_IEEE80211_PSQ_UNLOCK
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_psq_drain
.subsections_via_symbols
