	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_calc_fl_bufsz
_nfp_net_calc_fl_bufsz:                 ## @nfp_net_calc_fl_bufsz
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_NFP_NET_RX_BUF_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movq	_NFP_NET_CFG_RX_OFFSET_DYNAMIC@GOTPCREL(%rip), %rdx
	addl	16(%rdi), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_NFP_NET_MAX_PREPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	addl	%ecx, %eax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%rdi), %esi
	addl	(%rcx), %esi
	leal	(%rsi,%rdx,2), %edi
	addl	%eax, %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_SKB_DATA_ALIGN
	addl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_RX_BUF_HEADROOM,4,2    ## @NFP_NET_RX_BUF_HEADROOM
	.comm	_NFP_NET_CFG_RX_OFFSET_DYNAMIC,8,3 ## @NFP_NET_CFG_RX_OFFSET_DYNAMIC
	.comm	_NFP_NET_MAX_PREPEND,8,3        ## @NFP_NET_MAX_PREPEND
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.no_dead_strip	_nfp_net_calc_fl_bufsz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_calc_fl_bufsz
_nfp_net_calc_fl_bufsz:                 ; @nfp_net_calc_fl_bufsz
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _NFP_NET_RX_BUF_HEADROOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_RX_BUF_HEADROOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	ldr	x10, [x0]
Lloh3:
	adrp	x11, _NFP_NET_CFG_RX_OFFSET_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NFP_NET_CFG_RX_OFFSET_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _NFP_NET_MAX_PREPEND@GOTPAGE
Lloh7:
	ldr	x12, [x12, _NFP_NET_MAX_PREPEND@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	x10, x11
	csel	w10, w12, w10, eq
	add	w8, w8, w9
	add	w8, w8, w10
Lloh9:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh11:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	ldr	w11, [x0, #8]
	add	w9, w11, w9
	add	w9, w9, w10, lsl #1
	add	w0, w8, w9
	bl	_SKB_DATA_ALIGN
	mov	x19, x0
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
	add	w0, w0, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_RX_BUF_HEADROOM,4,2    ; @NFP_NET_RX_BUF_HEADROOM
	.comm	_NFP_NET_CFG_RX_OFFSET_DYNAMIC,8,3 ; @NFP_NET_CFG_RX_OFFSET_DYNAMIC
	.comm	_NFP_NET_MAX_PREPEND,8,3        ; @NFP_NET_MAX_PREPEND
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.no_dead_strip	_nfp_net_calc_fl_bufsz
.subsections_via_symbols
