	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_tx_fixup                 ## -- Begin function rndis_tx_fixup
	.p2align	4, 0x90
_rndis_tx_fixup:                        ## @rndis_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	(%rsi), %r14d
	movq	%rsi, %rdi
	callq	_skb_cloned
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_skb_headroom
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$32, %eax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	callq	_skb_tailroom
	addl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$32, %ebx
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rdi
	addq	$32, %rdi
	movl	4(%r12), %esi
	movl	%r14d, %edx
	callq	_memmove
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_set_tail_pointer
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_skb_copy_expand
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_unlikely
	movq	%rbx, %r12
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movl	$32, %esi
	callq	___skb_push
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_RNDIS_MSG_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movl	(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	$24, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%rbx)
	movq	%r12, %rbx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RNDIS_MSG_PACKET,4,2           ## @RNDIS_MSG_PACKET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_tx_fixup                 ; -- Begin function rndis_tx_fixup
	.p2align	2
_rndis_tx_fixup:                        ; @rndis_tx_fixup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	ldr	w19, [x1]
	mov	x0, x1
	bl	_skb_cloned
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_skb_headroom
	mov	x22, x0
	cmp	w0, #31
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_skb_tailroom
	add	w8, w22, w0
	cmp	w8, #31
	cset	w0, hi
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	add	x0, x8, #32
	ldr	w1, [x20, #4]
	mov	x2, x19
	bl	_memmove
	str	w0, [x20, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_skb_set_tail_pointer
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #32
	mov	w2, #1
	mov	x3, x21
	bl	_skb_copy_expand
	mov	x21, x0
	mov	x0, x20
	bl	_dev_kfree_skb_any
	cmp	x21, #0
	cset	w0, eq
	bl	_unlikely
	mov	x20, x21
	cbnz	x0, LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w1, #32
	bl	___skb_push
	mov	x21, x0
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _RNDIS_MSG_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RNDIS_MSG_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x21, #24]
	ldr	w0, [x20]
	bl	_cpu_to_le32
	str	x0, [x21, #16]
	mov	w0, #24
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	x0, x19
	bl	_cpu_to_le32
	str	x0, [x21]
	mov	x21, x20
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RNDIS_MSG_PACKET,4,2           ; @RNDIS_MSG_PACKET
.subsections_via_symbols
