	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_calc_rx_buf_size
_xgbe_calc_rx_buf_size:                 ## @xgbe_calc_rx_buf_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edi
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_XGBE_RX_MIN_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp_val
                                        ## kill: def $eax killed $eax def $rax
	movq	_XGBE_RX_BUF_ALIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	negl	%ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_XGBE_RX_MIN_BUF_SIZE,4,2       ## @XGBE_RX_MIN_BUF_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_XGBE_RX_BUF_ALIGN,4,2          ## @XGBE_RX_BUF_ALIGN
	.no_dead_strip	_xgbe_calc_rx_buf_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_calc_rx_buf_size
_xgbe_calc_rx_buf_size:                 ; @xgbe_calc_rx_buf_size
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w1
	add	w8, w8, w9
Lloh6:
	adrp	x9, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w0, w8, w9
Lloh9:
	adrp	x8, _XGBE_RX_MIN_BUF_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XGBE_RX_MIN_BUF_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_clamp_val
Lloh15:
	adrp	x8, _XGBE_RX_BUF_ALIGN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XGBE_RX_BUF_ALIGN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w9, w0, w8
	sub	w9, w9, #1
	neg	w8, w8
	and	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_XGBE_RX_MIN_BUF_SIZE,4,2       ; @XGBE_RX_MIN_BUF_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_XGBE_RX_BUF_ALIGN,4,2          ; @XGBE_RX_BUF_ALIGN
	.no_dead_strip	_xgbe_calc_rx_buf_size
.subsections_via_symbols
