	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_tx_prep
_lan78xx_tx_prep:                       ## @lan78xx_tx_prep
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_TX_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_cow_head
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_lan78xx_linearize
	xorl	%r14d, %r14d
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movq	_TX_CMD_A_LEN_MASK_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movq	_TX_CMD_A_FCS_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	8(%rbx), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	movq	_TX_CMD_A_IPE_@GOTPCREL(%rip), %rsi
	movq	_TX_CMD_A_TPE_@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r15d
	orl	(%rsi), %r15d
	cmpq	(%rdx), %rcx
	cmovnel	%r14d, %r15d
	orl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %edi
	movq	_TX_CMD_B_MSS_MIN_@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movl	%eax, %r14d
	movq	_TX_CMD_B_MSS_SHIFT_@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_TX_CMD_B_MSS_MASK_@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_TX_CMD_A_LSO_@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_5:
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_TX_CMD_A_IVTG_@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_get
	movq	_TX_CMD_B_VTAG_MASK_@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%r14d, %eax
	movl	%eax, %r14d
LBB0_7:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_skb_push
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_put_unaligned_le32
	addq	$4, %r12
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_put_unaligned_le32
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_OVERHEAD,4,2                ## @TX_OVERHEAD
	.comm	_TX_CMD_A_LEN_MASK_,4,2         ## @TX_CMD_A_LEN_MASK_
	.comm	_TX_CMD_A_FCS_,4,2              ## @TX_CMD_A_FCS_
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_TX_CMD_A_IPE_,4,2              ## @TX_CMD_A_IPE_
	.comm	_TX_CMD_A_TPE_,4,2              ## @TX_CMD_A_TPE_
	.comm	_TX_CMD_B_MSS_MIN_,4,2          ## @TX_CMD_B_MSS_MIN_
	.comm	_TX_CMD_B_MSS_SHIFT_,4,2        ## @TX_CMD_B_MSS_SHIFT_
	.comm	_TX_CMD_B_MSS_MASK_,4,2         ## @TX_CMD_B_MSS_MASK_
	.comm	_TX_CMD_A_LSO_,4,2              ## @TX_CMD_A_LSO_
	.comm	_TX_CMD_A_IVTG_,4,2             ## @TX_CMD_A_IVTG_
	.comm	_TX_CMD_B_VTAG_MASK_,4,2        ## @TX_CMD_B_VTAG_MASK_
	.no_dead_strip	_lan78xx_tx_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_tx_prep
_lan78xx_tx_prep:                       ; @lan78xx_tx_prep
	.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, x1
Lloh0:
	adrp	x8, _TX_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_OVERHEAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_cow_head
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, #0
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_lan78xx_linearize
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _TX_CMD_A_LEN_MASK_@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_CMD_A_LEN_MASK_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _TX_CMD_A_FCS_@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX_CMD_A_FCS_@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
	ldr	x10, [x19, #8]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x11, _TX_CMD_A_IPE_@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TX_CMD_A_IPE_@GOTPAGEOFF]
Lloh14:
	adrp	x12, _TX_CMD_A_TPE_@GOTPAGE
Lloh15:
	ldr	x12, [x12, _TX_CMD_A_TPE_@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x10, x9
	csel	w9, w11, wzr, eq
	orr	w20, w8, w9
	mov	x0, x19
	bl	_skb_is_gso
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w0, [x0]
Lloh18:
	adrp	x8, _TX_CMD_B_MSS_MIN_@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TX_CMD_B_MSS_MIN_@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_max
Lloh21:
	adrp	x8, _TX_CMD_B_MSS_SHIFT_@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TX_CMD_B_MSS_SHIFT_@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh24:
	adrp	x9, _TX_CMD_B_MSS_MASK_@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TX_CMD_B_MSS_MASK_@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w21, w8, w9
Lloh27:
	adrp	x8, _TX_CMD_A_LSO_@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TX_CMD_A_LSO_@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_7
LBB0_5:
	mov	x19, #0
	b	LBB0_10
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_9
; %bb.8:
Lloh30:
	adrp	x8, _TX_CMD_A_IVTG_@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TX_CMD_A_IVTG_@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w20, w8, w20
	mov	x0, x19
	bl	_skb_vlan_tag_get
Lloh33:
	adrp	x8, _TX_CMD_B_VTAG_MASK_@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TX_CMD_B_VTAG_MASK_@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w21, w8, w21
LBB0_9:
	mov	x0, x19
	mov	w1, #8
	bl	_skb_push
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_put_unaligned_le32
	add	x1, x22, #4
	mov	x0, x21
	bl	_put_unaligned_le32
LBB0_10:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_OVERHEAD,4,2                ; @TX_OVERHEAD
	.comm	_TX_CMD_A_LEN_MASK_,4,2         ; @TX_CMD_A_LEN_MASK_
	.comm	_TX_CMD_A_FCS_,4,2              ; @TX_CMD_A_FCS_
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_TX_CMD_A_IPE_,4,2              ; @TX_CMD_A_IPE_
	.comm	_TX_CMD_A_TPE_,4,2              ; @TX_CMD_A_TPE_
	.comm	_TX_CMD_B_MSS_MIN_,4,2          ; @TX_CMD_B_MSS_MIN_
	.comm	_TX_CMD_B_MSS_SHIFT_,4,2        ; @TX_CMD_B_MSS_SHIFT_
	.comm	_TX_CMD_B_MSS_MASK_,4,2         ; @TX_CMD_B_MSS_MASK_
	.comm	_TX_CMD_A_LSO_,4,2              ; @TX_CMD_A_LSO_
	.comm	_TX_CMD_A_IVTG_,4,2             ; @TX_CMD_A_IVTG_
	.comm	_TX_CMD_B_VTAG_MASK_,4,2        ; @TX_CMD_B_VTAG_MASK_
	.no_dead_strip	_lan78xx_tx_prep
.subsections_via_symbols
