	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_get_pfc_delay
_xgbe_get_pfc_delay:                    ## @xgbe_get_pfc_delay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	popq	%rbp
	retq
LBB0_2:
	callq	_xgbe_get_max_frame
                                        ## kill: def $eax killed $eax def $rax
	movq	_XGMAC_ETH_PREAMBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rdx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	addl	(%rdx), %esi
	movq	_XGMAC_PFC_DATA_LEN@GOTPCREL(%rip), %rdx
	movq	_XGMAC_PFC_DELAYS@GOTPCREL(%rip), %rdi
	addl	(%rdx), %ecx
	leal	(%rcx,%rax,2), %eax
	addl	%esi, %eax
	addl	(%rdi), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_ETH_PREAMBLE,8,3         ## @XGMAC_ETH_PREAMBLE
	.comm	_XGMAC_PFC_DATA_LEN,8,3         ## @XGMAC_PFC_DATA_LEN
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_XGMAC_PFC_DELAYS,8,3           ## @XGMAC_PFC_DELAYS
	.no_dead_strip	_xgbe_get_pfc_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_get_pfc_delay
_xgbe_get_pfc_delay:                    ; @xgbe_get_pfc_delay
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_xgbe_get_max_frame
Lloh0:
	adrp	x8, _XGMAC_ETH_PREAMBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGMAC_ETH_PREAMBLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w0, w8
Lloh3:
	adrp	x10, _XGMAC_PFC_DATA_LEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _XGMAC_PFC_DATA_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ETH_HLEN@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ETH_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _ETH_FCS_LEN@GOTPAGE
Lloh10:
	ldr	x12, [x12, _ETH_FCS_LEN@GOTPAGEOFF]
	add	w8, w10, w8
Lloh11:
	adrp	x10, _XGMAC_PFC_DELAYS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _XGMAC_PFC_DELAYS@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
Lloh14:
	ldr	w10, [x10]
	add	w8, w8, w9, lsl #1
	add	w9, w12, w11
	add	w8, w8, w9
	add	w0, w8, w10
	ldp	x29, x30, [sp], #16             ; 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	_XGMAC_ETH_PREAMBLE,8,3         ; @XGMAC_ETH_PREAMBLE
	.comm	_XGMAC_PFC_DATA_LEN,8,3         ; @XGMAC_PFC_DATA_LEN
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_XGMAC_PFC_DELAYS,8,3           ; @XGMAC_PFC_DELAYS
	.no_dead_strip	_xgbe_get_pfc_delay
.subsections_via_symbols
