	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eem_tx_fixup
_eem_tx_fixup:                          ## @eem_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	(%rsi), %r15d
	movq	_EEM_HEAD@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	addl	%r15d, %eax
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %r14
	addl	(%r14), %eax
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cltd
	idivl	(%rdi)
	xorl	%ebx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	sete	%bl
	addl	%ebx, %ebx
	movq	%rsi, %rdi
	callq	_skb_cloned
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	(%r12), %esi
	addl	(%r14), %ebx
LBB0_2:
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_skb_copy_expand
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, %r13
	jmp	LBB0_9
LBB0_4:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_skb_headroom
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_skb_tailroom
	addl	(%r14), %ebx
	movl	(%r12), %esi
	cmpl	%ebx, %eax
	jl	LBB0_6
## %bb.5:
	cmpl	%esi, %r15d
	jge	LBB0_9
LBB0_6:
	addl	%r15d, %eax
	leal	(%rbx,%rsi), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_2
## %bb.7:
	movslq	%esi, %rdi
	addq	8(%r13), %rdi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	callq	_memmove
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_set_tail_pointer
LBB0_9:
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movl	$-1, %edi
	callq	_crc32_le
	movl	%eax, %ebx
	notl	%ebx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skb_put
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_put_unaligned_le32
	movl	(%r13), %ebx
	movl	$14, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_skb_push
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_put_unaligned_le16
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_skb_put
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_put_unaligned_le16
	jmp	LBB0_11
LBB0_3:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEM_HEAD,4,2                   ## @EEM_HEAD
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.no_dead_strip	_eem_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eem_tx_fixup
_eem_tx_fixup:                          ; @eem_tx_fixup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	w21, [x1]
Lloh0:
	adrp	x24, _EEM_HEAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EEM_HEAD@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _ETH_FCS_LEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ETH_FCS_LEN@GOTPAGEOFF]
	ldr	w9, [x25]
	add	w8, w8, w21
	add	w8, w8, w9
	ldr	w9, [x0]
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
	cmp	w23, #0
	cset	w8, eq
	lsl	w26, w8, #1
	mov	x0, x1
	bl	_skb_cloned
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x24]
	ldr	w8, [x25]
	add	w2, w8, w26
LBB0_2:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x20
	bl	_skb_copy_expand
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x20
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_skb_headroom
	mov	x22, x0
	mov	x0, x19
	bl	_skb_tailroom
	ldr	w8, [x25]
	ldr	w1, [x24]
	add	w2, w8, w26
	cmp	w0, w2
	ccmp	w22, w1, #8, ge
	b.ge	LBB0_7
; %bb.5:
	add	w8, w0, w22
	add	w9, w2, w1
	cmp	w8, w9
	b.le	LBB0_2
; %bb.6:
	sxtw	x8, w1
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	ldp	w2, w1, [x19]
	bl	_memmove
	str	w0, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_skb_set_tail_pointer
LBB0_7:
	ldp	w2, w1, [x19]
	mov	w0, #-1
	bl	_crc32_le
	mvn	w20, w0
	mov	x0, x19
	mov	w1, #4
	bl	_skb_put
	mov	x1, x0
	mov	x0, x20
	bl	_put_unaligned_le32
	ldr	w20, [x19]
	mov	w0, #14
	bl	_BIT
	orr	w20, w0, w20
	mov	x0, x19
	mov	w1, #2
	bl	_skb_push
	mov	x1, x0
	mov	x0, x20
	bl	_put_unaligned_le16
	cbnz	w23, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	w1, #2
	bl	_skb_put
	mov	x1, x0
	mov	w0, #0
	bl	_put_unaligned_le16
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EEM_HEAD,4,2                   ; @EEM_HEAD
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.no_dead_strip	_eem_tx_fixup
.subsections_via_symbols
