	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfv_alloc_and_copy_skb
_cfv_alloc_and_copy_skb:                ## @cfv_alloc_and_copy_skb
	.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
	movq	%rcx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, (%rdi)
	movq	(%rsi), %rcx
	movq	8(%rsi), %r8
	movq	16(%rsi), %r9
	cmpq	%r12, %rcx
	jl	LBB0_2
## %bb.1:
	leaq	(%r9,%r8), %rax
	cmpq	%r12, %rax
	jge	LBB0_2
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%r8,4), %rax
	movq	_IP_HDR_ALIGN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	decq	%r15
	andq	%rax, %r15
	movl	24(%rbx), %edi
	leaq	(%r15,%r12), %rsi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r13
	subq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	addl	8(%rbx), %r15d
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_skb_reserve
	movq	8(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_skb_put_data
	jmp	LBB0_7
LBB0_2:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_netdev_err
	movq	_EPROTO@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_7:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frmlen:%u  mtu:%u hr:%d tr:%d\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_IP_HDR_ALIGN,4,2               ## @IP_HDR_ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_cfv_alloc_and_copy_skb
.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_skb
_cfv_alloc_and_copy_skb:                ; @cfv_alloc_and_copy_skb
	.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	x22, x3
	mov	x21, x1
	mov	x19, x0
	str	wzr, [x0]
	ldp	x3, x4, [x1]
	ldr	x5, [x1, #16]
	cmp	x3, x22
	add	x24, x5, x4
	ccmp	x24, x22, #0, ge
	b.lt	LBB0_4
; %bb.1:
	ldr	w0, [x21, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_netdev_err
	mov	x20, #0
Lloh2:
	adrp	x8, _EPROTO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	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_4:
	mov	x23, x2
Lloh4:
	adrp	x8, _IP_HDR_ALIGN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IP_HDR_ALIGN@GOTPAGEOFF]
	add	x9, x2, x4, lsl #2
Lloh6:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	and	x25, x8, x9
	ldr	w0, [x21, #24]
	add	x1, x25, x22
	bl	_netdev_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.5:
	sub	x19, x22, x24
	ldr	w8, [x21, #8]
	add	w1, w8, w25
	mov	x0, x20
	bl	_skb_reserve
	ldr	x8, [x21, #8]
	add	x1, x23, x8, lsl #2
	mov	x0, x20
	mov	x2, x19
	bl	_skb_put_data
	b	LBB0_3
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frmlen:%u  mtu:%u hr:%d tr:%d\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_IP_HDR_ALIGN,4,2               ; @IP_HDR_ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_cfv_alloc_and_copy_skb
.subsections_via_symbols
