	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_tx_frame_start
_lan743x_tx_frame_start:                ## @lan743x_tx_frame_start
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rax
	movq	(%rax), %r12
	movq	_TX_FRAME_FLAG_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rdi)
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	8(%rdi), %r13
	movq	32(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, (%rdi)
	movq	%r13, 16(%rdi)
	movq	40(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_dma_map_single
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	%r15d, %edi
	callq	_DMA_ADDR_LOW32
	leaq	(,%r13,2), %r12
	addq	%r13, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 8(%r13,%r12,4)
	movl	%r15d, %edi
	callq	_DMA_ADDR_HIGH32
	movl	%eax, 4(%r13,%r12,4)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	shll	$16, %ecx
	movq	_TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movl	%ecx, (%r13,%r12,4)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, 16(%rcx,%r12,8)
	movl	%r15d, 8(%rcx,%r12,8)
	movl	%r14d, (%rcx,%r12,8)
	movq	_TX_BUFFER_INFO_FLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rcx,%r12,8)
	movq	_TX_DESC_DATA0_BUF_LENGTH_MASK_@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_TX_DESC_DATA0_DTYPE_DATA_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_TX_DESC_DATA0_FS_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_TX_DESC_DATA0_FCS_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, 24(%rbx)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	_TX_DESC_DATA0_TSE_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, 24(%rbx)
LBB0_4:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_TX_DESC_DATA0_ICE_@GOTPCREL(%rip), %rcx
	movq	_TX_DESC_DATA0_IPE_@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_TX_DESC_DATA0_TPE_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	orl	%r14d, %edx
	movl	%edx, 24(%rbx)
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_FRAME_FLAG_IN_PROGRESS,4,2  ## @TX_FRAME_FLAG_IN_PROGRESS
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_,4,2 ## @TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_
	.comm	_TX_BUFFER_INFO_FLAG_ACTIVE,4,2 ## @TX_BUFFER_INFO_FLAG_ACTIVE
	.comm	_TX_DESC_DATA0_BUF_LENGTH_MASK_,4,2 ## @TX_DESC_DATA0_BUF_LENGTH_MASK_
	.comm	_TX_DESC_DATA0_DTYPE_DATA_,4,2  ## @TX_DESC_DATA0_DTYPE_DATA_
	.comm	_TX_DESC_DATA0_FS_,4,2          ## @TX_DESC_DATA0_FS_
	.comm	_TX_DESC_DATA0_FCS_,4,2         ## @TX_DESC_DATA0_FCS_
	.comm	_TX_DESC_DATA0_TSE_,4,2         ## @TX_DESC_DATA0_TSE_
	.comm	_TX_DESC_DATA0_ICE_,4,2         ## @TX_DESC_DATA0_ICE_
	.comm	_TX_DESC_DATA0_IPE_,4,2         ## @TX_DESC_DATA0_IPE_
	.comm	_TX_DESC_DATA0_TPE_,4,2         ## @TX_DESC_DATA0_TPE_
	.no_dead_strip	_lan743x_tx_frame_start
.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_start
_lan743x_tx_frame_start:                ; @lan743x_tx_frame_start
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _TX_FRAME_FLAG_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_FRAME_FLAG_IN_PROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #48]
	orr	w8, w9, w8
	str	w8, [x0, #48]
	ldr	x26, [x0, #8]
	str	x26, [x0]
	str	x26, [x0, #16]
	ldp	x27, x28, [x0, #32]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x25
	bl	_dma_map_single
	mov	x24, x0
	mov	x0, x25
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x24
	bl	_DMA_ADDR_LOW32
	mov	w8, #12
	madd	x25, x26, x8, x28
	str	w0, [x25, #8]
	mov	x0, x24
	bl	_DMA_ADDR_HIGH32
	str	w0, [x25, #4]
Lloh9:
	adrp	x8, _TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w23, lsl #16
	str	w8, [x25]
	mov	w8, #24
	madd	x8, x26, x8, x27
	str	xzr, [x8, #16]
	str	w24, [x8, #8]
	str	w22, [x8]
Lloh12:
	adrp	x9, _TX_BUFFER_INFO_FLAG_ACTIVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TX_BUFFER_INFO_FLAG_ACTIVE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
	str	w9, [x8, #4]
Lloh15:
	adrp	x8, _TX_DESC_DATA0_BUF_LENGTH_MASK_@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TX_DESC_DATA0_BUF_LENGTH_MASK_@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TX_DESC_DATA0_DTYPE_DATA_@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TX_DESC_DATA0_DTYPE_DATA_@GOTPAGEOFF]
	and	w8, w8, w22
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _TX_DESC_DATA0_FS_@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TX_DESC_DATA0_FS_@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _TX_DESC_DATA0_FCS_@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TX_DESC_DATA0_FCS_@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #24]
	cbz	w21, LBB0_4
; %bb.3:
Lloh27:
	adrp	x9, _TX_DESC_DATA0_TSE_@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TX_DESC_DATA0_TSE_@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_4:
	mov	w0, #0
	cbz	w20, LBB0_6
; %bb.5:
Lloh30:
	adrp	x9, _TX_DESC_DATA0_ICE_@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TX_DESC_DATA0_ICE_@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _TX_DESC_DATA0_IPE_@GOTPAGE
Lloh34:
	ldr	x10, [x10, _TX_DESC_DATA0_IPE_@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh36:
	adrp	x10, _TX_DESC_DATA0_TPE_@GOTPAGE
Lloh37:
	ldr	x10, [x10, _TX_DESC_DATA0_TPE_@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_FRAME_FLAG_IN_PROGRESS,4,2  ; @TX_FRAME_FLAG_IN_PROGRESS
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_,4,2 ; @TX_DESC_DATA3_FRAME_LENGTH_MSS_MASK_
	.comm	_TX_BUFFER_INFO_FLAG_ACTIVE,4,2 ; @TX_BUFFER_INFO_FLAG_ACTIVE
	.comm	_TX_DESC_DATA0_BUF_LENGTH_MASK_,4,2 ; @TX_DESC_DATA0_BUF_LENGTH_MASK_
	.comm	_TX_DESC_DATA0_DTYPE_DATA_,4,2  ; @TX_DESC_DATA0_DTYPE_DATA_
	.comm	_TX_DESC_DATA0_FS_,4,2          ; @TX_DESC_DATA0_FS_
	.comm	_TX_DESC_DATA0_FCS_,4,2         ; @TX_DESC_DATA0_FCS_
	.comm	_TX_DESC_DATA0_TSE_,4,2         ; @TX_DESC_DATA0_TSE_
	.comm	_TX_DESC_DATA0_ICE_,4,2         ; @TX_DESC_DATA0_ICE_
	.comm	_TX_DESC_DATA0_IPE_,4,2         ; @TX_DESC_DATA0_IPE_
	.comm	_TX_DESC_DATA0_TPE_,4,2         ; @TX_DESC_DATA0_TPE_
	.no_dead_strip	_lan743x_tx_frame_start
.subsections_via_symbols
