	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_dma_free
_nb8800_dma_free:                       ## @nb8800_dma_free
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	40(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	_RX_DESC_COUNT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	movq	40(%r12), %rdi
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_put_page
	movl	(%r15), %eax
	jmp	LBB0_5
LBB0_6:
	callq	_kfree
	movq	$0, 40(%r12)
LBB0_7:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	movq	_TX_DESC_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_11
## %bb.9:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r13), %edi
	callq	_kfree_skb
	incq	%rbx
	movl	(%r15), %eax
	movq	32(%r12), %rdi
	addq	$16, %r13
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_11:
	callq	_kfree
	movq	$0, 32(%r12)
LBB0_12:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movl	(%r14), %edi
	movq	_RX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r12), %ecx
	callq	_dma_free_coherent
	movq	$0, 16(%r12)
LBB0_14:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movl	(%r14), %edi
	movq	_TX_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	callq	_dma_free_coherent
	movq	$0, (%r12)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DESC_COUNT,4,2              ## @RX_DESC_COUNT
	.comm	_TX_DESC_COUNT,4,2              ## @TX_DESC_COUNT
	.comm	_RX_DESC_SIZE,4,2               ## @RX_DESC_SIZE
	.comm	_TX_DESC_SIZE,4,2               ## @TX_DESC_SIZE
	.no_dead_strip	_nb8800_dma_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_dma_free
_nb8800_dma_free:                       ; @nb8800_dma_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #40]
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x21, _RX_DESC_COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_DESC_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x22, #0
	mov	w23, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x0, [x19, #40]
	add	x23, x23, #16
	cmp	x22, w8, uxtw
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x0, x23]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_put_page
	ldr	w8, [x21]
	b	LBB0_3
LBB0_6:
	bl	_kfree
	str	xzr, [x19, #40]
LBB0_7:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.8:
Lloh2:
	adrp	x21, _TX_DESC_COUNT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TX_DESC_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.9:
	mov	x22, #0
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x0, x22]
	bl	_kfree_skb
	add	x23, x23, #1
	ldr	w8, [x21]
	ldr	x0, [x19, #32]
	add	x22, x22, #16
	cmp	x23, x8
	b.lo	LBB0_10
LBB0_11:
	bl	_kfree
	str	xzr, [x19, #32]
LBB0_12:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _RX_DESC_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RX_DESC_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w3, [x19, #24]
	bl	_dma_free_coherent
	str	xzr, [x19, #16]
LBB0_14:
	ldr	x2, [x19]
	cbz	x2, LBB0_16
; %bb.15:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _TX_DESC_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TX_DESC_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	bl	_dma_free_coherent
	str	xzr, [x19]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DESC_COUNT,4,2              ; @RX_DESC_COUNT
	.comm	_TX_DESC_COUNT,4,2              ; @TX_DESC_COUNT
	.comm	_RX_DESC_SIZE,4,2               ; @RX_DESC_SIZE
	.comm	_TX_DESC_SIZE,4,2               ; @TX_DESC_SIZE
	.no_dead_strip	_nb8800_dma_free
.subsections_via_symbols
