	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_free_tx_cb
_bcmgenet_free_tx_cb:                   ## @bcmgenet_free_tx_cb
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_GENET_CB
	movq	8(%rax), %r13
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	%rax, %r12
	movq	_dma_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	cmpq	%rbx, %r13
	je	LBB0_2
## %bb.3:
	callq	_dma_unmap_page
	jmp	LBB0_4
LBB0_5:
	movq	_dma_addr@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	%rax, %r14
	movq	_dma_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_dma_unmap_page
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dma_unmap_addr_set
	jmp	LBB0_7
LBB0_2:
	callq	_dma_unmap_single
LBB0_4:
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dma_unmap_addr_set
	movq	%r14, %rdi
	callq	_GENET_CB
	cmpq	%rbx, (%rax)
	je	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dma_addr,4,2                   ## @dma_addr
	.comm	_dma_len,4,2                    ## @dma_len
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_bcmgenet_free_tx_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_free_tx_cb
_bcmgenet_free_tx_cb:                   ; @bcmgenet_free_tx_cb
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x1]
	cbz	x20, LBB0_3
; %bb.1:
	str	xzr, [x19]
	mov	x0, x20
	bl	_GENET_CB
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x23, _dma_addr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dma_addr@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_dma_unmap_addr
	mov	x22, x0
Lloh2:
	adrp	x8, _dma_len@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dma_len@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_len
	mov	x2, x0
Lloh5:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	cmp	x24, x19
	b.eq	LBB0_5
; %bb.2:
	bl	_dma_unmap_page
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x22, _dma_addr@GOTPAGE
Lloh9:
	ldr	x22, [x22, _dma_addr@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dma_unmap_addr
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dma_unmap_addr
	mov	x20, x0
Lloh10:
	adrp	x8, _dma_len@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dma_len@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_len
	mov	x2, x0
Lloh13:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_dma_unmap_page
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_dma_unmap_addr_set
	b	LBB0_7
LBB0_5:
	bl	_dma_unmap_single
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_dma_unmap_addr_set
	mov	x0, x20
	bl	_GENET_CB
	ldr	x8, [x0]
	cmp	x8, x19
	b.eq	LBB0_8
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dma_addr,4,2                   ; @dma_addr
	.comm	_dma_len,4,2                    ; @dma_len
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_bcmgenet_free_tx_cb
.subsections_via_symbols
