	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_rcvbuf_validate           ## -- Begin function hfi1_rcvbuf_validate
	.p2align	4, 0x90
_hfi1_rcvbuf_validate:                  ## @hfi1_rcvbuf_validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %ebx
	callq	_PAGE_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_MIN_EAGER_BUFFER@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_PT_EAGER@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_MAX_EAGER_BUFFER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_6
	jmp	LBB0_8
LBB0_3:
	movq	_MAX_EXPECTED_BUFFER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_8
LBB0_6:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_ilog2
	incq	%rax
	movq	%rax, (%r14)
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_EAGER_BUFFER,4,2           ## @MIN_EAGER_BUFFER
	.comm	_PT_EAGER,8,3                   ## @PT_EAGER
	.comm	_MAX_EAGER_BUFFER,4,2           ## @MAX_EAGER_BUFFER
	.comm	_MAX_EXPECTED_BUFFER,4,2        ## @MAX_EXPECTED_BUFFER
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_rcvbuf_validate           ; -- Begin function hfi1_rcvbuf_validate
	.p2align	2
_hfi1_rcvbuf_validate:                  ; @hfi1_rcvbuf_validate
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_PAGE_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MIN_EAGER_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_EAGER_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PT_EAGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PT_EAGER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MAX_EAGER_BUFFER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_EAGER_BUFFER@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MAX_EXPECTED_BUFFER@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX_EXPECTED_BUFFER@GOTPAGEOFF]
	cmp	x8, x21
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sdiv	w0, w20, w8
	bl	_ilog2
	add	x8, x0, #1
	str	x8, [x19]
LBB0_7:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_EAGER_BUFFER,4,2           ; @MIN_EAGER_BUFFER
	.comm	_PT_EAGER,8,3                   ; @PT_EAGER
	.comm	_MAX_EAGER_BUFFER,4,2           ; @MAX_EAGER_BUFFER
	.comm	_MAX_EXPECTED_BUFFER,4,2        ; @MAX_EXPECTED_BUFFER
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
