	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tx_policy_clean                ## -- Begin function tx_policy_clean
	.p2align	4, 0x90
_tx_policy_clean:                       ## @tx_policy_clean
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_cw1200_tx_queues_lock
	movq	%r12, %rdi
	callq	_spin_lock_bh
	leaq	4(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_list_empty
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TX_POLICY_CACHE_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	incq	%r13
	movq	_TX_POLICY_CACHE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r15
	cmpq	%rax, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r14
	leaq	(%r14,%r15), %rbx
	movq	(%r14,%r15), %rdi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%r14,%r15)
	leaq	(%r14,%r15), %rdi
	addq	$8, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_move
	jmp	LBB0_4
LBB0_5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_cw1200_tx_queues_unlock
LBB0_7:
	movq	%r12, %rdi
	callq	_cw1200_tx_queues_unlock
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_POLICY_CACHE_SIZE,4,2       ## @TX_POLICY_CACHE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tx_policy_clean                ; -- Begin function tx_policy_clean
	.p2align	2
_tx_policy_clean:                       ; @tx_policy_clean
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_cw1200_tx_queues_lock
	mov	x0, x19
	bl	_spin_lock_bh
	add	x20, x19, #4
	mov	x0, x20
	bl	_list_empty
	mov	x21, x0
Lloh0:
	adrp	x23, _TX_POLICY_CACHE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TX_POLICY_CACHE_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #16
	cmp	x25, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x22, x8, x24
	ldr	x0, [x22]
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	str	xzr, [x0], #8
	mov	x1, x20
	bl	_list_move
	b	LBB0_2
LBB0_5:
	cbz	w21, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_cw1200_tx_queues_unlock
LBB0_7:
	mov	x0, x19
	bl	_cw1200_tx_queues_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_POLICY_CACHE_SIZE,4,2       ; @TX_POLICY_CACHE_SIZE
.subsections_via_symbols
