	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_tx_release_desc
_lan743x_tx_release_desc:               ## @lan743x_tx_release_desc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	16(%rdi), %r13
	movslq	%esi, %rbx
	shlq	$5, %rbx
	leaq	(%r12,%rbx), %r14
	movl	(%r12,%rbx), %eax
	movq	_TX_BUFFER_INFO_FLAG_ACTIVE@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_16
## %bb.1:
	movl	%edx, %r9d
	movq	_TX_DESC_DATA0_DTYPE_MASK_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r13,%rbx), %ecx
	movq	_TX_DESC_DATA0_DTYPE_DATA_@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_15
## %bb.2:
	movq	24(%r12,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.3:
	movq	_TX_BUFFER_INFO_FLAG_SKB_FRAGMENT@GOTPCREL(%rip), %r8
	movq	(%r15), %rcx
	movq	(%rcx), %rdi
	leaq	(%r12,%rbx), %r10
	addq	$16, %r10
	movq	16(%r12,%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%r8)
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	callq	_dma_unmap_page
	jmp	LBB0_6
LBB0_5:
	callq	_dma_unmap_single
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	_TX_BUFFER_INFO_FLAG_ACTIVE@GOTPCREL(%rip), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_7:
	movq	8(%r12,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.8:
	addq	%rbx, %r12
	addq	$8, %r12
	movl	(%r14), %eax
	movq	_TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.11:
	testl	%r9d, %r9d
	je	LBB0_13
## %bb.12:
	movq	(%r15), %rdi
	callq	_lan743x_ptp_unrequest_tx_timestamp
	movq	(%r12), %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_14
LBB0_9:
	movq	%rsi, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_14
LBB0_13:
	movq	_TX_BUFFER_INFO_FLAG_IGNORE_SYNC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movq	(%r15), %rdi
	callq	_lan743x_ptp_tx_timestamp_skb
LBB0_14:
	movq	_TX_BUFFER_INFO_FLAG_ACTIVE@GOTPCREL(%rip), %rdi
	movq	$0, (%r12)
LBB0_15:
	movl	(%rdi), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_16:
	addq	%rbx, %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BUFFER_INFO_FLAG_ACTIVE,4,2 ## @TX_BUFFER_INFO_FLAG_ACTIVE
	.comm	_TX_DESC_DATA0_DTYPE_MASK_,4,2  ## @TX_DESC_DATA0_DTYPE_MASK_
	.comm	_TX_DESC_DATA0_DTYPE_DATA_,4,2  ## @TX_DESC_DATA0_DTYPE_DATA_
	.comm	_TX_BUFFER_INFO_FLAG_SKB_FRAGMENT,4,2 ## @TX_BUFFER_INFO_FLAG_SKB_FRAGMENT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED,4,2 ## @TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED
	.comm	_TX_BUFFER_INFO_FLAG_IGNORE_SYNC,4,2 ## @TX_BUFFER_INFO_FLAG_IGNORE_SYNC
	.no_dead_strip	_lan743x_tx_release_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_tx_release_desc
_lan743x_tx_release_desc:               ; @lan743x_tx_release_desc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x22, w1
	ldp	x9, x23, [x0, #8]
	add	x19, x9, x22, lsl #5
	ldr	w8, [x19]
Lloh0:
	adrp	x24, _TX_BUFFER_INFO_FLAG_ACTIVE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_BUFFER_INFO_FLAG_ACTIVE@GOTPAGEOFF]
	ldr	w10, [x24]
	tst	w10, w8
	b.eq	LBB0_15
; %bb.1:
	add	x10, x23, x22, lsl #5
	ldr	w10, [x10, #4]
Lloh2:
	adrp	x11, _TX_DESC_DATA0_DTYPE_MASK_@GOTPAGE
Lloh3:
	ldr	x11, [x11, _TX_DESC_DATA0_DTYPE_MASK_@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	and	w10, w11, w10
Lloh5:
	adrp	x11, _TX_DESC_DATA0_DTYPE_DATA_@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TX_DESC_DATA0_DTYPE_DATA_@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_14
; %bb.2:
	mov	x21, x2
	mov	x20, x0
	add	x25, x9, x22, lsl #5
	ldr	x1, [x25, #24]
	cbz	x1, LBB0_7
; %bb.3:
Lloh8:
	adrp	x9, _TX_BUFFER_INFO_FLAG_SKB_FRAGMENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TX_BUFFER_INFO_FLAG_SKB_FRAGMENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	x10, [x20]
	ldr	x0, [x10]
	mov	x26, x25
	ldr	x2, [x26, #16]!
Lloh11:
	adrp	x10, _DMA_TO_DEVICE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x10]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	bl	_dma_unmap_page
	b	LBB0_6
LBB0_5:
	bl	_dma_unmap_single
LBB0_6:
	stp	xzr, xzr, [x26]
LBB0_7:
	ldr	x1, [x25, #8]!
	cbz	x1, LBB0_14
; %bb.8:
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	cbz	w21, LBB0_12
; %bb.10:
	ldr	x0, [x20]
	bl	_lan743x_ptp_unrequest_tx_timestamp
	ldr	x0, [x25]
	bl	_dev_kfree_skb
	b	LBB0_13
LBB0_11:
	mov	x0, x1
	bl	_dev_kfree_skb
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x9, _TX_BUFFER_INFO_FLAG_IGNORE_SYNC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TX_BUFFER_INFO_FLAG_IGNORE_SYNC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	ldr	x0, [x20]
	bl	_lan743x_ptp_tx_timestamp_skb
LBB0_13:
	str	xzr, [x25]
LBB0_14:
	ldr	w8, [x24]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_15:
	add	x20, x23, x22, lsl #5
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BUFFER_INFO_FLAG_ACTIVE,4,2 ; @TX_BUFFER_INFO_FLAG_ACTIVE
	.comm	_TX_DESC_DATA0_DTYPE_MASK_,4,2  ; @TX_DESC_DATA0_DTYPE_MASK_
	.comm	_TX_DESC_DATA0_DTYPE_DATA_,4,2  ; @TX_DESC_DATA0_DTYPE_DATA_
	.comm	_TX_BUFFER_INFO_FLAG_SKB_FRAGMENT,4,2 ; @TX_BUFFER_INFO_FLAG_SKB_FRAGMENT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED,4,2 ; @TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED
	.comm	_TX_BUFFER_INFO_FLAG_IGNORE_SYNC,4,2 ; @TX_BUFFER_INFO_FLAG_IGNORE_SYNC
	.no_dead_strip	_lan743x_tx_release_desc
.subsections_via_symbols
