	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_function
_validate_function:                     ## @validate_function
	.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
	cmpl	$-1, (%rsi)
	movq	8(%rsi), %rdx
	jne	LBB0_3
## %bb.1:
	testq	%rdx, %rdx
	js	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	movq	_OCXL_MAX_AFU_PER_FUNCTION@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %rdx
	jle	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AFUs are defined but no PASIDs are requested\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OCXL_MAX_AFU_PER_FUNCTION,8,3  ## @OCXL_MAX_AFU_PER_FUNCTION
L_.str.1:                               ## @.str.1
	.asciz	"Max AFU index out of architectural limit (%d vs %d)\n"

	.no_dead_strip	_validate_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_function
_validate_function:                     ; @validate_function
	.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
	ldr	w9, [x1]
	ldr	x8, [x1, #8]
	cmn	w9, #1
	b.ne	LBB0_3
; %bb.1:
	tbnz	x8, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x9, _OCXL_MAX_AFU_PER_FUNCTION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OCXL_MAX_AFU_PER_FUNCTION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.4:
	stp	x8, x9, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AFUs are defined but no PASIDs are requested\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OCXL_MAX_AFU_PER_FUNCTION,8,3  ; @OCXL_MAX_AFU_PER_FUNCTION
l_.str.1:                               ; @.str.1
	.asciz	"Max AFU index out of architectural limit (%d vs %d)\n"

	.no_dead_strip	_validate_function
.subsections_via_symbols
