	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_find_afu_irq
_cxl_find_afu_irq:                      ## @cxl_find_afu_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CXL_IRQ_RANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	(%rdi), %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	%esi, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	subl	(%r9,%rdx,4), %ecx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movl	%ecx, %esi
	cmpq	%rdx, %r8
	jne	LBB0_3
## %bb.6:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rdi), %rcx
	movslq	%esi, %rax
	addq	(%rcx,%rdx,8), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_IRQ_RANGES,4,2             ## @CXL_IRQ_RANGES
	.no_dead_strip	_cxl_find_afu_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_find_afu_irq
_cxl_find_afu_irq:                      ; @cxl_find_afu_irq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CXL_IRQ_RANGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXL_IRQ_RANGES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	subs	w11, w1, w11
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	mov	x1, x11
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
	ret
LBB0_5:
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, w1, sxtw
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_IRQ_RANGES,4,2             ; @CXL_IRQ_RANGES
	.no_dead_strip	_cxl_find_afu_irq
.subsections_via_symbols
