	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfv_alloc_and_copy_to_shm
_cfv_alloc_and_copy_to_shm:             ## @cfv_alloc_and_copy_to_shm
	.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
	cmpl	$0, 32(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	addq	(%rdi), %rax
	addq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r15), %rdx
	addq	(%rbx), %rdx
	movl	36(%rbx), %edi
	addq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_3:
	xorl	%r12d, %r12d
LBB0_4:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:
	movq	(%rbx), %rsi
	movl	8(%r15), %eax
	addl	%esi, %eax
	movq	_IP_HDR_ALIGN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	movslq	%eax, %r13
	addq	(%r15), %rsi
	addq	8(%rbx), %rsi
	andq	%rcx, %r13
	addq	%r13, %rsi
	movq	%rsi, (%r12)
	movl	32(%rbx), %edi
	callq	_gen_pool_alloc
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	movq	8(%r12), %rdx
	addq	(%rbx), %rdx
	addq	%r13, %rdx
	movq	(%r15), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_skb_copy_bits
	addq	8(%r12), %r13
	movq	(%rbx), %rdx
	addq	(%r15), %rdx
	addq	24(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sg_init_one
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet len (%d > %d)\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_IP_HDR_ALIGN,4,2               ## @IP_HDR_ALIGN
	.no_dead_strip	_cfv_alloc_and_copy_to_shm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfv_alloc_and_copy_to_shm
_cfv_alloc_and_copy_to_shm:             ; @cfv_alloc_and_copy_to_shm
	.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
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldp	x9, x10, [x0]
	add	x8, x8, x9
	add	x8, x8, x10
	ldr	x9, [x0, #16]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #36]
	ldr	x8, [x21]
	ldp	x9, x10, [x19]
	add	x8, x8, x9
	add	x2, x8, x10
	ldr	x3, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_3:
	mov	x22, #0
LBB0_4:
	mov	x0, x22
	bl	_kfree
	mov	x22, #0
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.7:
	ldr	w8, [x21, #8]
	ldp	x9, x10, [x19]
	add	w8, w8, w9
Lloh5:
	adrp	x11, _IP_HDR_ALIGN@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IP_HDR_ALIGN@GOTPAGEOFF]
Lloh7:
	ldrsw	x11, [x11]
	sub	x11, x11, #1
	sxtw	x8, w8
	and	x23, x11, x8
	ldr	x8, [x21]
	add	x8, x8, x9
	add	x8, x8, x10
	add	x1, x8, x23
	str	x1, [x22]
	ldr	w0, [x19, #32]
	bl	_gen_pool_alloc
	str	x0, [x22, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.8:
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	add	x8, x8, x9
	add	x2, x8, x23
	ldr	x3, [x21]
	mov	x0, x21
	mov	w1, #0
	bl	_skb_copy_bits
	ldr	x8, [x22, #8]
	add	x1, x8, x23
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	x10, [x19, #24]
	add	x8, x9, x8
	add	x2, x8, x10
	mov	x0, x20
	bl	_sg_init_one
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet len (%d > %d)\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_IP_HDR_ALIGN,4,2               ; @IP_HDR_ALIGN
	.no_dead_strip	_cfv_alloc_and_copy_to_shm
.subsections_via_symbols
