	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_tx_frame_end
_lan743x_tx_frame_end:                  ## @lan743x_tx_frame_end
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_TX_DESC_DATA0_DTYPE_MASK_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	_TX_DESC_DATA0_DTYPE_DATA_@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_TX_DESC_DATA0_LS_@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r15)
	movq	_TX_DESC_DATA0_IOC_@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r15)
LBB0_2:
	movq	56(%r15), %r14
	movq	48(%r15), %r8
	movq	8(%r15), %r10
	movq	40(%r15), %rbx
	movq	%r10, %rax
	shlq	$4, %rax
	leaq	(%rbx,%rax), %r9
	movq	%rsi, 8(%rbx,%rax)
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	_TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r9)
LBB0_4:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_TX_BUFFER_INFO_FLAG_IGNORE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r9)
LBB0_6:
	movl	%edi, (%r8,%r10,4)
	movq	%r15, %rdi
	movq	%r10, %rsi
	callq	_lan743x_tx_next_index
	movq	%rax, 8(%r15)
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	_LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET@GOTPCREL(%rip), %rcx
	movl	24(%r15), %eax
	movl	32(%r15), %edi
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	movq	_TX_TAIL_SET_TOP_INT_VEC_EN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	movq	_LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_TX_TAIL_SET_DMAC_INT_EN_@GOTPCREL(%rip), %rdx
	movq	_TX_TAIL_SET_TOP_INT_EN_@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	orl	%ecx, %ebx
	callq	_TX_TAIL
	orl	8(%r15), %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_lan743x_csr_write
	movq	_TX_FRAME_FLAG_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 28(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_DESC_DATA0_LS_,4,2          ## @TX_DESC_DATA0_LS_
	.comm	_TX_DESC_DATA0_IOC_,4,2         ## @TX_DESC_DATA0_IOC_
	.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
	.comm	_LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET,4,2 ## @LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET
	.comm	_TX_TAIL_SET_TOP_INT_VEC_EN_,4,2 ## @TX_TAIL_SET_TOP_INT_VEC_EN_
	.comm	_LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET,4,2 ## @LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET
	.comm	_TX_TAIL_SET_DMAC_INT_EN_,4,2   ## @TX_TAIL_SET_DMAC_INT_EN_
	.comm	_TX_TAIL_SET_TOP_INT_EN_,4,2    ## @TX_TAIL_SET_TOP_INT_EN_
	.comm	_TX_FRAME_FLAG_IN_PROGRESS,4,2  ## @TX_FRAME_FLAG_IN_PROGRESS
	.no_dead_strip	_lan743x_tx_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_tx_frame_end
_lan743x_tx_frame_end:                  ; @lan743x_tx_frame_end
	.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
	mov	x19, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _TX_DESC_DATA0_DTYPE_MASK_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_DESC_DATA0_DTYPE_MASK_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh3:
	adrp	x10, _TX_DESC_DATA0_DTYPE_DATA_@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TX_DESC_DATA0_DTYPE_DATA_@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TX_DESC_DATA0_LS_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_DESC_DATA0_LS_@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh9:
	adrp	x9, _TX_DESC_DATA0_IOC_@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TX_DESC_DATA0_IOC_@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w8
	str	w9, [x19]
LBB0_2:
	ldp	x10, x20, [x19, #48]
	ldr	x8, [x19, #8]
	ldr	x11, [x19, #40]
	add	x11, x11, x8, lsl #4
	str	x1, [x11, #8]
	cbz	w2, LBB0_4
; %bb.3:
Lloh12:
	adrp	x12, _TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED@GOTPAGE
Lloh13:
	ldr	x12, [x12, _TX_BUFFER_INFO_FLAG_TIMESTAMP_REQUESTED@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	ldr	w13, [x11]
	orr	w12, w13, w12
	str	w12, [x11]
LBB0_4:
	cbz	w3, LBB0_6
; %bb.5:
Lloh15:
	adrp	x12, _TX_BUFFER_INFO_FLAG_IGNORE_SYNC@GOTPAGE
Lloh16:
	ldr	x12, [x12, _TX_BUFFER_INFO_FLAG_IGNORE_SYNC@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	ldr	w13, [x11]
	orr	w12, w13, w12
	str	w12, [x11]
LBB0_6:
	str	w9, [x10, x8, lsl #2]
	mov	x0, x19
	mov	x1, x8
	bl	_lan743x_tx_next_index
	stp	x0, x0, [x19, #8]
	bl	_dma_wmb
	ldr	w8, [x19, #24]
Lloh18:
	adrp	x9, _LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET@GOTPAGEOFF]
Lloh20:
	adrp	x10, _TX_TAIL_SET_TOP_INT_VEC_EN_@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TX_TAIL_SET_TOP_INT_VEC_EN_@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh24:
	adrp	x10, _LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET@GOTPAGE
Lloh25:
	ldr	x10, [x10, _LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _TX_TAIL_SET_DMAC_INT_EN_@GOTPAGE
Lloh28:
	ldr	x11, [x11, _TX_TAIL_SET_DMAC_INT_EN_@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
Lloh30:
	adrp	x12, _TX_TAIL_SET_TOP_INT_EN_@GOTPAGE
Lloh31:
	ldr	x12, [x12, _TX_TAIL_SET_TOP_INT_EN_@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w21, w8, w9
	ldr	w0, [x19, #32]
	bl	_TX_TAIL
	mov	x1, x0
	ldr	w8, [x19, #8]
	orr	w2, w21, w8
	mov	x0, x20
	bl	_lan743x_csr_write
Lloh33:
	adrp	x8, _TX_FRAME_FLAG_IN_PROGRESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TX_FRAME_FLAG_IN_PROGRESS@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	bic	w8, w9, w8
	str	w8, [x19, #28]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.cfi_endproc
                                        ; -- End function
	.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_DESC_DATA0_LS_,4,2          ; @TX_DESC_DATA0_LS_
	.comm	_TX_DESC_DATA0_IOC_,4,2         ; @TX_DESC_DATA0_IOC_
	.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
	.comm	_LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET,4,2 ; @LAN743X_VECTOR_FLAG_VECTOR_ENABLE_AUTO_SET
	.comm	_TX_TAIL_SET_TOP_INT_VEC_EN_,4,2 ; @TX_TAIL_SET_TOP_INT_VEC_EN_
	.comm	_LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET,4,2 ; @LAN743X_VECTOR_FLAG_SOURCE_ENABLE_AUTO_SET
	.comm	_TX_TAIL_SET_DMAC_INT_EN_,4,2   ; @TX_TAIL_SET_DMAC_INT_EN_
	.comm	_TX_TAIL_SET_TOP_INT_EN_,4,2    ; @TX_TAIL_SET_TOP_INT_EN_
	.comm	_TX_FRAME_FLAG_IN_PROGRESS,4,2  ; @TX_FRAME_FLAG_IN_PROGRESS
	.no_dead_strip	_lan743x_tx_frame_end
.subsections_via_symbols
