	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_free_consistent
_macb_free_consistent:                  ## @macb_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	*32(%rdi)
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.1:
	movq	24(%r14), %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	$40, %rbx
	cmpl	(%r14), %r15d
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	$0, 32(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_TX_RING_BYTES
	addl	4(%r14), %eax
	movq	16(%r14), %rdi
	movq	16(%rbx), %rdx
	movl	24(%rbx), %ecx
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	$0, 16(%rbx)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_RX_RING_BYTES
	addl	8(%r14), %eax
	movq	16(%r14), %rdi
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	$0, (%rbx)
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_macb_free_consistent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_free_consistent
_macb_free_consistent:                  ; @macb_free_consistent
	.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
	ldr	x8, [x0, #32]
	blr	x8
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.1:
	mov	w20, #0
	ldr	x8, [x19, #24]
	add	x21, x8, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	add	x21, x21, #40
	cmp	w20, w8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #16]
	bl	_kfree
	str	xzr, [x21, #16]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_TX_RING_BYTES
	ldr	w8, [x19, #4]
	add	w1, w8, w0
	ldr	x0, [x19, #16]
	ldr	x2, [x21]
	ldr	w3, [x21, #8]
	bl	_dma_free_coherent
	str	xzr, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x21, #-16]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_RX_RING_BYTES
	ldr	w8, [x19, #8]
	add	w1, w8, w0
	ldr	x0, [x19, #16]
	ldur	x2, [x21, #-16]
	ldur	w3, [x21, #-8]
	bl	_dma_free_coherent
	stur	xzr, [x21, #-16]
	b	LBB0_2
LBB0_7:
	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	_macb_free_consistent
.subsections_via_symbols
