	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_validate_rcvhdrcnt
_init_validate_rcvhdrcnt:               ## @init_validate_rcvhdrcnt
	.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	_HFI1_MIN_HDRQ_EGRBUF_CNT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_1
## %bb.2:
	movl	%esi, %r8d
	movq	_HFI1_MAX_HDRQ_EGRBUF_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%esi, %edx
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dd_dev_err
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dd_dev_err
	jmp	LBB0_7
LBB0_4:
	movq	_HDRQ_INCREMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_dd_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_MIN_HDRQ_EGRBUF_CNT,4,2   ## @HFI1_MIN_HDRQ_EGRBUF_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Receive header queue count too small\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HFI1_MAX_HDRQ_EGRBUF_CNT,4,2   ## @HFI1_MAX_HDRQ_EGRBUF_CNT
L_.str.1:                               ## @.str.1
	.asciz	"Receive header queue count cannot be greater than %u\n"

	.comm	_HDRQ_INCREMENT,4,2             ## @HDRQ_INCREMENT
L_.str.2:                               ## @.str.2
	.asciz	"Receive header queue count %d must be divisible by %lu\n"

	.no_dead_strip	_init_validate_rcvhdrcnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_validate_rcvhdrcnt
_init_validate_rcvhdrcnt:               ; @init_validate_rcvhdrcnt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _HFI1_MIN_HDRQ_EGRBUF_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI1_MIN_HDRQ_EGRBUF_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _HFI1_MAX_HDRQ_EGRBUF_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFI1_MAX_HDRQ_EGRBUF_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_4
; %bb.2:
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _HDRQ_INCREMENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDRQ_INCREMENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sdiv	w9, w1, w8
	msub	w9, w9, w8, w1
	cbz	w9, LBB0_8
; %bb.5:
	stp	x1, x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_dd_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_MIN_HDRQ_EGRBUF_CNT,4,2   ; @HFI1_MIN_HDRQ_EGRBUF_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Receive header queue count too small\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HFI1_MAX_HDRQ_EGRBUF_CNT,4,2   ; @HFI1_MAX_HDRQ_EGRBUF_CNT
l_.str.1:                               ; @.str.1
	.asciz	"Receive header queue count cannot be greater than %u\n"

	.comm	_HDRQ_INCREMENT,4,2             ; @HDRQ_INCREMENT
l_.str.2:                               ; @.str.2
	.asciz	"Receive header queue count %d must be divisible by %lu\n"

	.no_dead_strip	_init_validate_rcvhdrcnt
.subsections_via_symbols
