	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skb_copy_expand                ## -- Begin function skb_copy_expand
	.p2align	4, 0x90
_skb_copy_expand:                       ## @skb_copy_expand
	.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	%esi, %ebx
	movq	%rdi, %r14
	movslq	%esi, %rax
	movslq	%edx, %rdi
	addq	%rax, %rdi
	addq	24(%r14), %rdi
	movl	%ecx, %esi
	callq	_alloc_skb
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_skb_headroom
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_reserve
	movq	24(%r14), %rsi
	movq	%r15, %rdi
	callq	_skb_put
	movl	%r12d, %r13d
	subl	%ebx, %r13d
	movl	%ebx, %esi
	cmovll	%r12d, %esi
	negl	%r13d
	xorl	%eax, %eax
	cmpl	%r12d, %ebx
	cmovgl	%r13d, %eax
	movslq	%eax, %rdx
	addq	32(%r15), %rdx
	movslq	%esi, %rcx
	negl	%esi
	addq	24(%r14), %rcx
	movq	%r14, %rdi
	callq	_skb_copy_bits
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_copy_skb_header
	movq	(%r15), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	addl	%r13d, 8(%r15)
LBB0_5:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skb_copy_expand                ; -- Begin function skb_copy_expand
	.p2align	2
_skb_copy_expand:                       ; @skb_copy_expand
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	sxtw	x9, w2
	add	x9, x9, w1, sxtw
	add	x0, x9, x8
	mov	x1, x3
	bl	_alloc_skb
	mov	x19, x0
	mov	x0, x20
	bl	_skb_headroom
	cbz	x19, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_skb_reserve
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_skb_put
	cmp	w22, w21
	csel	w8, w22, w21, lt
	subs	w21, w21, w22
	csel	w9, w21, wzr, gt
	neg	w1, w8
	ldr	x10, [x19, #32]
	add	x2, x10, w9, sxtw
	ldr	x9, [x20, #24]
	add	x3, x9, w8, sxtw
	mov	x0, x20
	bl	_skb_copy_bits
	cbz	x0, LBB0_3
; %bb.2:
	bl	_BUG
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_copy_skb_header
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #8]
	add	w8, w8, w21
	str	w8, [x19, #8]
LBB0_5:
	mov	x0, x19
	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	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
.subsections_via_symbols
