	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_free_tx_buffer
_stmmac_free_tx_buffer:                 ## @stmmac_free_tx_buffer
	.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	8(%rdi), %r12
	shlq	$4, %rbx
	movq	(%r12,%rbx), %rax
	movslq	%edx, %r15
	leaq	(%r15,%r15,2), %r14
	movq	8(%rax,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%rax,%r14,8)
	movl	(%rdi), %edi
	movl	16(%rax,%r14,8), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	je	LBB0_3
## %bb.2:
	callq	_dma_unmap_page
	jmp	LBB0_4
LBB0_3:
	callq	_dma_unmap_single
LBB0_4:
	movq	8(%r12,%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	leaq	(%r12,%rbx), %r13
	addq	%r12, %rbx
	addq	$8, %rbx
	callq	_dev_kfree_skb_any
	movq	(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	movq	(%r13), %rax
	movq	$0, 8(%rax,%r14,8)
	movl	$0, (%rax,%r14,8)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_stmmac_free_tx_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_free_tx_buffer
_stmmac_free_tx_buffer:                 ; @stmmac_free_tx_buffer
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0, #8]
	add	x19, x8, x1, lsl #4
	ldr	x8, [x19]
	sxtw	x20, w2
	mov	w9, #24
	smaddl	x9, w2, w9, x8
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_4
; %bb.1:
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	w9, [x8]
	ldr	w0, [x0]
	ldr	w2, [x8, #16]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	cbz	w9, LBB0_3
; %bb.2:
	bl	_dma_unmap_page
	b	LBB0_4
LBB0_3:
	bl	_dma_unmap_single
LBB0_4:
	mov	x21, x19
	ldr	x8, [x21, #8]!
	ldr	x0, [x8, x20, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dev_kfree_skb_any
	ldr	x8, [x21]
	str	xzr, [x8, x20, lsl #3]
	ldr	x8, [x19]
	mov	w9, #24
	madd	x8, x20, x9, x8
	str	xzr, [x8, #8]
	str	wzr, [x8]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_stmmac_free_tx_buffer
.subsections_via_symbols
