	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4vf_pktgl_to_skb
_t4vf_pktgl_to_skb:                     ## @t4vf_pktgl_to_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_RX_COPY_THRES@GOTPCREL(%rip), %rcx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %edi
	jbe	LBB0_1
## %bb.3:
	movl	%edx, %r15d
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_alloc_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	___skb_put
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_skb_copy_to_linear_data
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_copy_frags
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	subl	%r15d, %eax
	movl	%eax, 4(%rbx)
	addl	%eax, 8(%rbx)
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %esi
	callq	_alloc_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	___skb_put
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_skb_copy_to_linear_data
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_COPY_THRES,4,2              ## @RX_COPY_THRES
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_t4vf_pktgl_to_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4vf_pktgl_to_skb
_t4vf_pktgl_to_skb:                     ; @t4vf_pktgl_to_skb
	.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	x20, x0
Lloh0:
	adrp	x8, _RX_COPY_THRES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_COPY_THRES@GOTPAGEOFF]
	ldr	w0, [x0]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w9
	b.ls	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x0, x1
	mov	x1, x8
	bl	_alloc_skb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	___skb_put
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	x2, x21
	bl	_skb_copy_to_linear_data
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_copy_frags
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	sub	w10, w8, w21
	add	w9, w9, w10
	stp	w8, w10, [x19]
	str	w9, [x19, #8]
	b	LBB0_5
LBB0_3:
	mov	x1, x8
	bl	_alloc_skb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	___skb_put
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_skb_copy_to_linear_data
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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_COPY_THRES,4,2              ; @RX_COPY_THRES
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_t4vf_pktgl_to_skb
.subsections_via_symbols
