	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_tx_fixup
_smsc95xx_tx_fixup:                     ## @smsc95xx_tx_fixup
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r12b
	jne	LBB0_3
## %bb.4:
	movq	_SMSC95XX_TX_OVERHEAD_CSUM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_SMSC95XX_TX_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	movq	_SMSC95XX_TX_OVERHEAD@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
LBB0_6:
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_skb_headroom
	cmpl	%r15d, %eax
	jge	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_skb_copy_expand
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	movq	%r14, %rbx
	testq	%r14, %r14
	je	LBB0_8
LBB0_9:
	testb	%r12b, %r12b
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_smsc95xx_calc_csum_preamble
	movl	%eax, -40(%rbp)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	12(%rbx), %edi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_11:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	8(%rbx), %eax
	addl	$-4, %eax
	movl	%eax, -36(%rbp)
	testb	%r12b, %r12b
	je	LBB0_13
## %bb.12:
	movq	_TX_CMD_B_CSUM_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -36(%rbp)
LBB0_13:
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_cpu_to_le32s
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	8(%rbx), %eax
	addl	$-8, %eax
	movq	_TX_CMD_A_FIRST_SEG_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TX_CMD_A_LAST_SEG_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_cpu_to_le32s
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_14
LBB0_8:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_SMSC95XX_TX_OVERHEAD_CSUM,4,2  ## @SMSC95XX_TX_OVERHEAD_CSUM
	.comm	_SMSC95XX_TX_OVERHEAD,4,2       ## @SMSC95XX_TX_OVERHEAD
	.comm	_TX_CMD_B_CSUM_ENABLE,4,2       ## @TX_CMD_B_CSUM_ENABLE
	.comm	_TX_CMD_A_FIRST_SEG_,4,2        ## @TX_CMD_A_FIRST_SEG_
	.comm	_TX_CMD_A_LAST_SEG_,4,2         ## @TX_CMD_A_LAST_SEG_
	.no_dead_strip	_smsc95xx_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_tx_fixup
_smsc95xx_tx_fixup:                     ; @smsc95xx_tx_fixup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SMSC95XX_TX_OVERHEAD_CSUM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SMSC95XX_TX_OVERHEAD_CSUM@GOTPAGEOFF]
Lloh5:
	adrp	x11, _SMSC95XX_TX_OVERHEAD@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SMSC95XX_TX_OVERHEAD@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	cset	w22, eq
	b	LBB0_3
LBB0_2:
	mov	w22, #0
Lloh7:
	adrp	x8, _SMSC95XX_TX_OVERHEAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMSC95XX_TX_OVERHEAD@GOTPAGEOFF]
LBB0_3:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w0, [x0]
	bl	_BUG_ON
	mov	x0, x19
	bl	_skb_headroom
	cmp	w0, w21
	b.ge	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x20
	bl	_skb_copy_expand
	mov	x20, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x20
	cbz	x20, LBB0_10
LBB0_5:
	cbz	w22, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_smsc95xx_calc_csum_preamble
	str	w0, [sp, #4]
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	ldr	w0, [x19, #12]
	add	x1, sp, #4
	mov	w2, #4
	bl	_memcpy
LBB0_7:
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	ldr	w8, [x19, #8]
	sub	w8, w8, #4
	str	w8, [sp, #8]
	cbz	w22, LBB0_9
; %bb.8:
Lloh9:
	adrp	x9, _TX_CMD_B_CSUM_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TX_CMD_B_CSUM_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
LBB0_9:
	add	x0, sp, #8
	bl	_cpu_to_le32s
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	ldr	w8, [x19, #8]
	sub	w8, w8, #8
Lloh12:
	adrp	x9, _TX_CMD_A_FIRST_SEG_@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TX_CMD_A_FIRST_SEG_@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _TX_CMD_A_LAST_SEG_@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TX_CMD_A_LAST_SEG_@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	add	x0, sp, #12
	bl	_cpu_to_le32s
	ldr	w0, [x19, #12]
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_SMSC95XX_TX_OVERHEAD_CSUM,4,2  ; @SMSC95XX_TX_OVERHEAD_CSUM
	.comm	_SMSC95XX_TX_OVERHEAD,4,2       ; @SMSC95XX_TX_OVERHEAD
	.comm	_TX_CMD_B_CSUM_ENABLE,4,2       ; @TX_CMD_B_CSUM_ENABLE
	.comm	_TX_CMD_A_FIRST_SEG_,4,2        ; @TX_CMD_A_FIRST_SEG_
	.comm	_TX_CMD_A_LAST_SEG_,4,2         ; @TX_CMD_A_LAST_SEG_
	.no_dead_strip	_smsc95xx_tx_fixup
.subsections_via_symbols
