	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net1080_tx_fixup
_net1080_tx_fixup:                      ## @net1080_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, %r13
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movl	%r15d, %ebx
	andl	$1, %ebx
	xorq	$5, %rbx
	movq	%rsi, %rdi
	callq	_skb_cloned
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movq	%r13, %rdi
	movl	$24, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_skb_copy_expand
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, %r13
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.10:
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_headroom
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_skb_tailroom
	cmpl	%eax, %ebx
	jg	LBB0_4
## %bb.2:
	cmpl	$23, %r14d
	jbe	LBB0_4
## %bb.3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rcx
	orq	$24, %rcx
	addl	%r14d, %eax
	cltq
	cmpq	%rax, %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_9
## %bb.5:
	movq	8(%r13), %rdi
	addq	$24, %rdi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	callq	_memmove
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_skb_set_tail_pointer
LBB0_6:
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_skb_push
	movq	%rax, %rbx
	movl	$24, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	4(%r14), %edi
	leal	1(%rdi), %eax
	movl	%eax, 4(%r14)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	testb	$1, (%r13)
	jne	LBB0_8
## %bb.7:
	movq	_PAD_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_put_u8
LBB0_8:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skb_put
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	callq	_put_unaligned
LBB0_11:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAD_BYTE,4,2                   ## @PAD_BYTE
	.no_dead_strip	_net1080_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net1080_tx_fixup
_net1080_tx_fixup:                      ; @net1080_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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x1]
	and	x8, x21, #0x1
	mov	w9, #5
	eor	x23, x8, x9
	mov	x0, x1
	bl	_skb_cloned
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x19
	mov	w1, #24
	mov	x2, x23
	mov	x3, x22
	bl	_skb_copy_expand
	mov	x22, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x22
	cbnz	x22, LBB0_5
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_skb_headroom
	mov	x24, x0
	mov	x0, x19
	bl	_skb_tailroom
	cmp	w23, w0
	ccmp	w24, #23, #0, le
	b.hi	LBB0_5
; %bb.3:
	orr	x8, x23, #0x18
	add	w9, w0, w24
	cmp	x8, w9, sxtw
	b.hs	LBB0_1
; %bb.4:
	ldr	x8, [x19, #8]
	add	x0, x8, #24
	ldp	w2, w1, [x19]
	bl	_memmove
	str	w0, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_skb_set_tail_pointer
LBB0_5:
	mov	x0, x19
	mov	w1, #24
	bl	_skb_push
	mov	x22, x0
	mov	w0, #24
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	ldr	w0, [x20, #4]
	add	w8, w0, #1
	str	w8, [x20, #4]
	bl	_cpu_to_le16
	str	x0, [x22]
	ldrb	w8, [x19]
	tbnz	w8, #0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _PAD_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAD_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_put_u8
LBB0_7:
	mov	x0, x19
	mov	w1, #4
	bl	_skb_put
	mov	x1, x0
	ldr	x0, [x22]
	bl	_put_unaligned
LBB0_8:
	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
	.comm	_PAD_BYTE,4,2                   ; @PAD_BYTE
	.no_dead_strip	_net1080_tx_fixup
.subsections_via_symbols
