	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_mac_free_memory
_moxart_mac_free_memory:                ## @moxart_mac_free_memory
	.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	_RX_DESC_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	48(%r12), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	40(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	24(%r12), %rdi
	movq	_TX_REG_DESC_SIZE@GOTPCREL(%rip), %rax
	movq	_TX_DESC_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movl	32(%r12), %ecx
	callq	_dma_free_coherent
LBB0_5:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	24(%r12), %rdi
	movq	_RX_REG_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	imull	(%rax), %esi
	movl	8(%r12), %ecx
	callq	_dma_free_coherent
LBB0_7:
	movl	4(%r12), %edi
	callq	_kfree
	movl	(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DESC_NUM,4,2                ## @RX_DESC_NUM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_TX_REG_DESC_SIZE,4,2           ## @TX_REG_DESC_SIZE
	.comm	_TX_DESC_NUM,4,2                ## @TX_DESC_NUM
	.comm	_RX_REG_DESC_SIZE,4,2           ## @RX_REG_DESC_SIZE
	.no_dead_strip	_moxart_mac_free_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_mac_free_memory
_moxart_mac_free_memory:                ; @moxart_mac_free_memory
	.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
Lloh0:
	adrp	x21, _RX_DESC_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_DESC_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w1, [x8, x22, lsl #2]
	ldr	w2, [x19, #48]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dma_unmap_single
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	x0, [x19, #24]
Lloh4:
	adrp	x8, _TX_REG_DESC_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TX_REG_DESC_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _TX_DESC_NUM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TX_DESC_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldr	w3, [x19, #32]
	bl	_dma_free_coherent
LBB0_5:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_7
; %bb.6:
	ldr	x0, [x19, #24]
Lloh10:
	adrp	x8, _RX_REG_DESC_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_REG_DESC_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x21]
	mul	w1, w9, w8
	ldr	w3, [x19, #8]
	bl	_dma_free_coherent
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_kfree
	ldr	w0, [x19]
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DESC_NUM,4,2                ; @RX_DESC_NUM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_TX_REG_DESC_SIZE,4,2           ; @TX_REG_DESC_SIZE
	.comm	_TX_DESC_NUM,4,2                ; @TX_DESC_NUM
	.comm	_RX_REG_DESC_SIZE,4,2           ; @RX_REG_DESC_SIZE
	.no_dead_strip	_moxart_mac_free_memory
.subsections_via_symbols
