	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fman_get_rx_extra_headroom     ## -- Begin function fman_get_rx_extra_headroom
	.p2align	4, 0x90
_fman_get_rx_extra_headroom:            ## @fman_get_rx_extra_headroom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_fsl_fm_rx_extra_headroom@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpb	$0, _fman_get_rx_extra_headroom.fm_check_rx_extra_headroom(%rip)
	jne	LBB0_5
## %bb.1:
	movq	_FSL_FM_RX_EXTRA_HEADROOM_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_FSL_FM_RX_EXTRA_HEADROOM_MIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rax
	jg	LBB0_3
## %bb.2:
	cmpq	%rdx, %rax
	jge	LBB0_4
LBB0_3:
	movq	_FSL_FM_RX_EXTRA_HEADROOM@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_warn
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_4:
	movb	$1, _fman_get_rx_extra_headroom.fm_check_rx_extra_headroom(%rip)
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_ALIGN
	movq	%rax, (%rbx)
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fman_get_rx_extra_headroom.fm_check_rx_extra_headroom,1,2 ## @fman_get_rx_extra_headroom.fm_check_rx_extra_headroom
	.comm	_fsl_fm_rx_extra_headroom,8,3   ## @fsl_fm_rx_extra_headroom
	.comm	_FSL_FM_RX_EXTRA_HEADROOM_MAX,8,3 ## @FSL_FM_RX_EXTRA_HEADROOM_MAX
	.comm	_FSL_FM_RX_EXTRA_HEADROOM_MIN,8,3 ## @FSL_FM_RX_EXTRA_HEADROOM_MIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid fsl_fm_rx_extra_headroom value (%d) in bootargs, valid range is %d-%d. Falling back to the default (%d)\n"

	.comm	_FSL_FM_RX_EXTRA_HEADROOM,8,3   ## @FSL_FM_RX_EXTRA_HEADROOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fman_get_rx_extra_headroom     ; -- Begin function fman_get_rx_extra_headroom
	.p2align	2
_fman_get_rx_extra_headroom:            ; @fman_get_rx_extra_headroom
	.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
	adrp	x20, _fman_get_rx_extra_headroom.fm_check_rx_extra_headroom@PAGE
	ldrb	w8, [x20, _fman_get_rx_extra_headroom.fm_check_rx_extra_headroom@PAGEOFF]
Lloh0:
	adrp	x19, _fsl_fm_rx_extra_headroom@GOTPAGE
Lloh1:
	ldr	x19, [x19, _fsl_fm_rx_extra_headroom@GOTPAGEOFF]
	ldr	x1, [x19]
	tbnz	w8, #0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _FSL_FM_RX_EXTRA_HEADROOM_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FSL_FM_RX_EXTRA_HEADROOM_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x3, [x8]
Lloh5:
	adrp	x8, _FSL_FM_RX_EXTRA_HEADROOM_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FSL_FM_RX_EXTRA_HEADROOM_MIN@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	cmp	x1, x3
	ccmp	x1, x2, #8, le
	b.ge	LBB0_3
; %bb.2:
Lloh8:
	adrp	x21, _FSL_FM_RX_EXTRA_HEADROOM@GOTPAGE
Lloh9:
	ldr	x21, [x21, _FSL_FM_RX_EXTRA_HEADROOM@GOTPAGEOFF]
	ldr	x4, [x21]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	x1, [x21]
	str	x1, [x19]
LBB0_3:
	mov	w8, #1
	strb	w8, [x20, _fman_get_rx_extra_headroom.fm_check_rx_extra_headroom@PAGEOFF]
	mov	x0, x1
	mov	w1, #16
	bl	_ALIGN
	mov	x1, x0
	str	x0, [x19]
LBB0_4:
	mov	x0, x1
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fman_get_rx_extra_headroom.fm_check_rx_extra_headroom,1,2 ; @fman_get_rx_extra_headroom.fm_check_rx_extra_headroom
	.comm	_fsl_fm_rx_extra_headroom,8,3   ; @fsl_fm_rx_extra_headroom
	.comm	_FSL_FM_RX_EXTRA_HEADROOM_MAX,8,3 ; @FSL_FM_RX_EXTRA_HEADROOM_MAX
	.comm	_FSL_FM_RX_EXTRA_HEADROOM_MIN,8,3 ; @FSL_FM_RX_EXTRA_HEADROOM_MIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid fsl_fm_rx_extra_headroom value (%d) in bootargs, valid range is %d-%d. Falling back to the default (%d)\n"

	.comm	_FSL_FM_RX_EXTRA_HEADROOM,8,3   ; @FSL_FM_RX_EXTRA_HEADROOM
.subsections_via_symbols
