	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genelink_tx_fixup
_genelink_tx_fixup:                     ## @genelink_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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_skb_headroom
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_skb_tailroom
	movl	%eax, %r15d
	movl	(%r12), %ebx
	addl	$8, %ebx
	xorl	%r14d, %r14d
	testb	$63, %bl
	sete	%r14b
	movq	%r12, %rdi
	callq	_skb_cloned
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	testb	$63, %bl
	sete	%al
	leal	(%r15,%r13), %ecx
	orl	$8, %eax
	cmpl	%eax, %ecx
	jge	LBB0_2
LBB0_7:
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_skb_copy_expand
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, %r12
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skb_push
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 4(%rbx)
	movl	(%r12), %eax
	cltd
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skb_put
	jmp	LBB0_9
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$8, %r13d
	jl	LBB0_4
## %bb.3:
	cmpl	%r14d, %r15d
	jge	LBB0_5
LBB0_4:
	movq	8(%r12), %rdi
	addq	$8, %rdi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	callq	_memmove
	movl	%eax, 4(%r12)
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_skb_set_tail_pointer
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_genelink_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genelink_tx_fixup
_genelink_tx_fixup:                     ; @genelink_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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x1]
	mov	x0, x1
	bl	_skb_headroom
	mov	x24, x0
	mov	x0, x19
	bl	_skb_tailroom
	mov	x25, x0
	ldr	w8, [x19]
	add	w8, w8, #8
	ands	w26, w8, #0x3f
	cset	w23, eq
	mov	x0, x19
	bl	_skb_cloned
	cbnz	w0, LBB0_2
; %bb.1:
	cmp	w26, #0
	mov	w8, #8
	cinc	w8, w8, eq
	add	w9, w25, w24
	cmp	w9, w8
	b.ge	LBB0_6
LBB0_2:
	mov	x0, x19
	mov	w1, #8
	mov	x2, x23
	mov	x3, x22
	bl	_skb_copy_expand
	mov	x22, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x22
	cbz	x22, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #8
	bl	_skb_push
	mov	x22, x0
	mov	w0, #1
	bl	_cpu_to_le32
	str	w0, [x22]
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [x22, #4]
	ldr	w8, [x19]
	ldr	w9, [x20]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_skb_put
LBB0_5:
	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
LBB0_6:
	cmp	w24, #8
	b.lt	LBB0_8
; %bb.7:
	cmp	w25, w23
	b.ge	LBB0_3
LBB0_8:
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	ldp	w2, w1, [x19]
	bl	_memmove
	str	w0, [x19, #4]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_skb_set_tail_pointer
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_genelink_tx_fixup
.subsections_via_symbols
