	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int51x1_tx_fixup
_int51x1_tx_fixup:                      ## @int51x1_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, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %r14d
	movq	_INT51X1_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%r14d, %r12d
	movq	%rsi, %rdi
	callq	_skb_headroom
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skb_tailroom
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %ecx
	movl	%ecx, %r13d
	movq	%rax, %rbx
	subl	%r12d, %r13d
	jle	LBB0_2
## %bb.1:
	incl	%r13d
	jmp	LBB0_3
LBB0_2:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	xorl	%r13d, %r13d
	testl	%edx, %edx
	sete	%r13b
LBB0_3:
	movq	_INT51X1_HEADER_SIZE@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	callq	_skb_cloned
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	(%r12), %esi
	jmp	LBB0_5
LBB0_7:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rbx,%rdx), %eax
	movl	(%r12), %esi
	leal	(%rsi,%r13), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_8
LBB0_5:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_skb_copy_expand
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, %r15
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_11:
	addl	%r13d, %r14d
	andl	$2047, %r14d                    ## imm = 0x7FF
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	___skb_push
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, (%rbx)
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	___skb_put_zero
	jmp	LBB0_13
LBB0_6:
	xorl	%r15d, %r15d
LBB0_13:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	%esi, %edx
	jl	LBB0_10
## %bb.9:
	cmpl	%r13d, %ebx
	jge	LBB0_11
LBB0_10:
	movslq	%esi, %rdi
	addq	8(%r15), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_memmove
	movl	%eax, 4(%r15)
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_skb_set_tail_pointer
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_INT51X1_HEADER_SIZE,4,2        ## @INT51X1_HEADER_SIZE
	.no_dead_strip	_int51x1_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int51x1_tx_fixup
_int51x1_tx_fixup:                      ; @int51x1_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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w25, [x1]
Lloh0:
	adrp	x24, _INT51X1_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _INT51X1_HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w26, w8, w25
	mov	x0, x1
	bl	_skb_headroom
	mov	x22, x0
	mov	x0, x19
	bl	_skb_tailroom
	mov	x23, x0
	ldr	w8, [x20]
	sdiv	w9, w26, w8
	msub	w9, w9, w8, w26
	cmp	w9, #0
	cset	w9, eq
	subs	w8, w8, w26
	csinc	w20, w9, w8, le
	mov	x0, x19
	bl	_skb_cloned
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x24]
	b	LBB0_3
LBB0_2:
	add	w8, w23, w22
	ldr	w1, [x24]
	add	w9, w1, w20
	cmp	w8, w9
	b.ge	LBB0_7
LBB0_3:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	mov	x3, x21
	bl	_skb_copy_expand
	mov	x21, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x21
	cbz	x21, LBB0_6
LBB0_4:
	add	w8, w20, w25
	and	w21, w8, #0x7ff
	ldr	w1, [x24]
	mov	x0, x19
	bl	___skb_push
	mov	x22, x0
	mov	x0, x21
	bl	_cpu_to_le16
	str	w0, [x22]
	cbz	w20, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	___skb_put_zero
LBB0_6:
	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_7:
	cmp	w22, w1
	b.lt	LBB0_9
; %bb.8:
	cmp	w23, w20
	b.ge	LBB0_4
LBB0_9:
	sxtw	x8, w1
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	ldp	w2, w1, [x19]
	bl	_memmove
	str	w0, [x19, #4]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_skb_set_tail_pointer
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT51X1_HEADER_SIZE,4,2        ; @INT51X1_HEADER_SIZE
	.no_dead_strip	_int51x1_tx_fixup
.subsections_via_symbols
