	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_free_consistent
_b44_free_consistent:                   ## @b44_free_consistent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	callq	_kfree
	movq	$0, 56(%rbx)
	movq	48(%rbx), %rdi
	callq	_kfree
	movq	$0, 48(%rbx)
	movq	32(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	_B44_FLAG_RX_RING_HACK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	24(%rbx), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	40(%rbx), %esi
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	32(%rbx), %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_3:
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%rbx), %ecx
	callq	_dma_free_coherent
LBB0_4:
	movq	$0, 32(%rbx)
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_5:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.6:
	movq	_B44_FLAG_TX_RING_HACK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	24(%rbx), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movl	16(%rbx), %esi
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	8(%rbx), %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_8:
	movq	_DMA_TABLE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	callq	_dma_free_coherent
LBB0_9:
	movq	$0, 8(%rbx)
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ## @B44_FLAG_RX_RING_HACK
	.comm	_DMA_TABLE_BYTES,4,2            ## @DMA_TABLE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_B44_FLAG_TX_RING_HACK,4,2      ## @B44_FLAG_TX_RING_HACK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_b44_free_consistent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_free_consistent
_b44_free_consistent:                   ; @b44_free_consistent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #56]
	bl	_kfree
	str	xzr, [x19, #56]
	ldr	x0, [x19, #48]
	bl	_kfree
	str	xzr, [x19, #48]
	ldr	x2, [x19, #32]
	cbz	x2, LBB0_5
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _B44_FLAG_RX_RING_HACK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _B44_FLAG_RX_RING_HACK@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	x10, [x19, #24]
	ldr	w0, [x10]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x19, #40]
Lloh2:
	adrp	x8, _DMA_TABLE_BYTES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TABLE_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	x0, [x19, #32]
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _DMA_TABLE_BYTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_TABLE_BYTES@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w3, [x19, #40]
	bl	_dma_free_coherent
LBB0_4:
	str	xzr, [x19, #32]
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_10
; %bb.6:
	ldr	w8, [x19]
Lloh11:
	adrp	x20, _B44_FLAG_TX_RING_HACK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _B44_FLAG_TX_RING_HACK@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	x10, [x19, #24]
	ldr	w0, [x10]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x19, #16]
Lloh13:
	adrp	x8, _DMA_TABLE_BYTES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_TABLE_BYTES@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	x0, [x19, #8]
	bl	_kfree
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _DMA_TABLE_BYTES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_TABLE_BYTES@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
	bl	_dma_free_coherent
LBB0_9:
	str	xzr, [x19, #8]
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ; @B44_FLAG_RX_RING_HACK
	.comm	_DMA_TABLE_BYTES,4,2            ; @DMA_TABLE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_B44_FLAG_TX_RING_HACK,4,2      ; @B44_FLAG_TX_RING_HACK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_b44_free_consistent
.subsections_via_symbols
