	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vl600_tx_fixup
_vl600_tx_fixup:                        ## @vl600_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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	(%rsi), %r15d
	movl	%r15d, %eax
	cmpl	$25, %r15d
	jb	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	addq	$16, %rdi
	callq	_le32_to_cpup
	cmpl	%eax, %r15d
	je	LBB0_15
## %bb.2:
	movl	(%rbx), %eax
LBB0_3:
	cmpl	$4, %eax
	jb	LBB0_4
## %bb.5:
	leal	27(%r15), %r14d
	andl	$-4, %r14d
	movq	%rbx, %rdi
	callq	_skb_cloned
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	(%rbx), %edx
LBB0_7:
	movl	%r14d, %eax
	subl	%edx, %eax
	addl	$-24, %eax
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_skb_copy_expand
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	movq	%r12, %rbx
	testq	%r12, %r12
	jne	LBB0_13
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	%rbx, %rdi
	callq	_skb_headroom
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_skb_tailroom
	movslq	%eax, %rcx
	movl	(%rbx), %edx
	movl	%r14d, %esi
	subl	%edx, %esi
	movslq	%esi, %rsi
	addq	$-24, %rsi
	cmpq	%rcx, %rsi
	ja	LBB0_11
## %bb.10:
	cmpl	$23, %r13d
	ja	LBB0_13
LBB0_11:
	addl	%r13d, %eax
	addl	%edx, %eax
	cmpl	%r14d, %eax
	jl	LBB0_7
## %bb.12:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	addq	$24, %rdi
	callq	_memmove
	movq	%rax, 8(%rbx)
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_skb_set_tail_pointer
LBB0_13:
	addl	$-4, %r15d
	movq	8(%rbx), %r12
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 32(%r12)
	leaq	8(%r12), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_skb_push
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movl	_vl600_tx_fixup.serial(%rip), %edi
	leal	1(%rdi), %eax
	movl	%eax, _vl600_tx_fixup.serial(%rip)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	subl	(%rbx), %r14d
	jle	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_skb_put
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @vl600_tx_fixup.serial
_vl600_tx_fixup.serial:
	.long	1                               ## 0x1

	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.no_dead_strip	_vl600_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vl600_tx_fixup
_vl600_tx_fixup:                        ; @vl600_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	x21, x2
	mov	x19, x1
	ldr	w23, [x1]
	mov	x8, x23
	cmp	w23, #25
	b.lo	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	bl	_le32_to_cpup
	cmp	w23, w0
	b.eq	LBB0_13
; %bb.2:
	ldr	w8, [x19]
LBB0_3:
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.4:
	mov	x19, #0
	b	LBB0_13
LBB0_5:
	add	w8, w23, #27
	and	w20, w8, #0xfffffffc
	mov	x0, x19
	bl	_skb_cloned
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w2, [x19]
LBB0_7:
	sub	w8, w20, w2
	sub	w2, w8, #24
	mov	x0, x19
	mov	w1, #24
	mov	x3, x21
	bl	_skb_copy_expand
	mov	x21, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x21
	cbnz	x21, LBB0_11
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_skb_headroom
	mov	x22, x0
	mov	x0, x19
	bl	_skb_tailroom
	ldr	w2, [x19]
	sub	w8, w20, w2
	sxtw	x8, w8
	sub	x8, x8, #24
	cmp	x8, w0, sxtw
	ccmp	w22, #23, #0, ls
	b.hi	LBB0_11
; %bb.9:
	add	w8, w0, w22
	add	w8, w8, w2
	cmp	w8, w20
	b.lt	LBB0_7
; %bb.10:
	ldp	x1, x8, [x19, #8]
	add	x0, x8, #24
	bl	_memmove
	str	x0, [x19, #8]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_skb_set_tail_pointer
LBB0_11:
	sub	w21, w23, #4
	ldr	x22, [x19, #8]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x22, #32]
	add	x0, x22, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x22]
	mov	x0, x19
	mov	w1, #24
	bl	_skb_push
	mov	x21, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [x21, #16]
	adrp	x8, _vl600_tx_fixup.serial@PAGE
	ldr	w0, [x8, _vl600_tx_fixup.serial@PAGEOFF]
	add	w9, w0, #1
	str	w9, [x8, _vl600_tx_fixup.serial@PAGEOFF]
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	w0, #1
	bl	_cpu_to_le32
	str	x0, [x21]
	ldr	w8, [x19]
	subs	w1, w20, w8
	b.le	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_skb_put
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @vl600_tx_fixup.serial
_vl600_tx_fixup.serial:
	.long	1                               ; 0x1

	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.no_dead_strip	_vl600_tx_fixup
.subsections_via_symbols
