	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rsi), %r13
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r14, %r13
	jne	LBB0_2
## %bb.1:
	movq	_SMSC95XX_TX_OVERHEAD_CSUM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_SMSC95XX_TX_OVERHEAD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %edi
	callq	_BUG_ON
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_cow_head
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_5:
	movl	24(%r12), %ecx
	movq	_TX_CMD_A_FIRST_SEG_@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	orl	%ecx, %r15d
	movq	_TX_CMD_A_LAST_SEG_@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	cmpq	%r14, %r13
	jne	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	callq	_smsc95xx_can_tx_checksum
	movq	%r12, %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	callq	_smsc95xx_calc_csum_preamble
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_put_unaligned_le32
	addl	$4, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	$4, %r14d
	movq	_TX_CMD_B_CSUM_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_11
LBB0_9:
	callq	_skb_checksum_start_offset
	movq	%rax, %rbx
	movq	16(%r12), %rdi
	addq	%rax, %rdi
	movq	24(%r12), %rsi
	subq	%rax, %rsi
	xorl	%edx, %edx
	callq	_csum_partial
	movl	%eax, %edi
	callq	_csum_fold
	addq	16(%r12), %rbx
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
LBB0_10:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_11:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skb_push
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_put_unaligned_le32
	addq	$4, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_put_unaligned_le32
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_A_FIRST_SEG_,4,2        ## @TX_CMD_A_FIRST_SEG_
	.comm	_TX_CMD_A_LAST_SEG_,4,2         ## @TX_CMD_A_LAST_SEG_
	.comm	_TX_CMD_B_CSUM_ENABLE,4,2       ## @TX_CMD_B_CSUM_ENABLE
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SMSC95XX_TX_OVERHEAD_CSUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SMSC95XX_TX_OVERHEAD_CSUM@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
Lloh5:
	adrp	x8, _SMSC95XX_TX_OVERHEAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMSC95XX_TX_OVERHEAD@GOTPAGEOFF]
	cmp	x22, x23
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w0, [x0]
	bl	_BUG_ON
	mov	x0, x19
	mov	x1, x20
	bl	_skb_cow_head
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, #0
	b	LBB0_7
LBB0_2:
	ldr	w20, [x19, #24]
Lloh7:
	adrp	x8, _TX_CMD_A_FIRST_SEG_@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TX_CMD_A_FIRST_SEG_@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh10:
	adrp	x9, _TX_CMD_A_LAST_SEG_@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TX_CMD_A_LAST_SEG_@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w21, w8, w9
	cmp	x22, x23
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_smsc95xx_can_tx_checksum
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_smsc95xx_calc_csum_preamble
	mov	x22, x0
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	mov	x1, x0
	mov	x0, x22
	bl	_put_unaligned_le32
	add	w21, w21, #4
	add	w8, w20, #4
Lloh13:
	adrp	x9, _TX_CMD_B_CSUM_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TX_CMD_B_CSUM_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_skb_checksum_start_offset
	mov	x22, x0
	ldp	x8, x9, [x19, #16]
	add	x0, x8, x0
	sub	x1, x9, x22
	mov	w2, #0
	bl	_csum_partial
	bl	_csum_fold
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x22
	str	w0, [x8, x9]
LBB0_6:
	mov	x0, x19
	mov	w1, #8
	bl	_skb_push
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_put_unaligned_le32
	add	x1, x22, #4
	mov	x0, x20
	bl	_put_unaligned_le32
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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_A_FIRST_SEG_,4,2        ; @TX_CMD_A_FIRST_SEG_
	.comm	_TX_CMD_A_LAST_SEG_,4,2         ; @TX_CMD_A_LAST_SEG_
	.comm	_TX_CMD_B_CSUM_ENABLE,4,2       ; @TX_CMD_B_CSUM_ENABLE
	.no_dead_strip	_smsc95xx_tx_fixup
.subsections_via_symbols
