	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_txq_deinit
_mwl8k_txq_deinit:                      ## @mwl8k_txq_deinit
	.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	(%rdi), %r12
	movq	8(%r12), %r15
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	cmpq	$0, (%r15,%rbx,8)
	je	LBB0_2
## %bb.1:
	leaq	(%r15,%rbx,8), %r14
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_mwl8k_txq_reclaim
	movq	16(%r15,%rbx,8), %rdi
	callq	_kfree
	movq	$0, 16(%r15,%rbx,8)
	movl	(%r12), %edi
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	(%r14), %rdx
	movl	8(%r15,%rbx,8), %ecx
	callq	_pci_free_consistent
	movq	$0, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_MWL8K_TX_DESCS,4,2             ## @MWL8K_TX_DESCS
	.no_dead_strip	_mwl8k_txq_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_txq_deinit
_mwl8k_txq_deinit:                      ; @mwl8k_txq_deinit
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x20, [x0]
	ldr	x21, [x20, #8]
	mov	w8, #24
	smaddl	x19, w1, w8, x21
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	sxtw	x22, w1
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #1
	bl	_mwl8k_txq_reclaim
	mov	w8, #24
	madd	x21, x22, x8, x21
	ldr	x0, [x21, #16]
	bl	_kfree
	str	xzr, [x21, #16]
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _MWL8K_TX_DESCS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_TX_DESCS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	x2, [x19]
	ldr	w3, [x21, #8]
	bl	_pci_free_consistent
	str	xzr, [x19]
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_MWL8K_TX_DESCS,4,2             ; @MWL8K_TX_DESCS
	.no_dead_strip	_mwl8k_txq_deinit
.subsections_via_symbols
