	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_adapter_irq_config
_read_adapter_irq_config:               ## @read_adapter_irq_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-44(%rbp), %ebx
	cmpl	$7, %ebx
	jbe	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movslq	%ebx, %rax
	movl	%ebx, %r12d
	sarl	$3, %r12d
	leal	(%r12,%r12), %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_2
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$24, %esi
	callq	_kcalloc
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movq	(%r15), %rdi
	movq	%rax, (%rdi)
	cmpl	$8, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jl	LBB0_18
## %bb.6:
	cmpl	$2, %r12d
	movl	$1, %eax
	cmovgel	%r12d, %eax
	negq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	movq	$-8, %r13
	movq	%r15, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rdi
	addq	$24, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	incq	%rax
	incq	%r12
	cmpq	$1, %rax
	je	LBB0_18
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %r15
	movl	-8(%r14,%r12,8), %edi
	callq	_be32_to_cpu
	movq	%rax, 8(%r15,%r13)
	movl	-4(%r14,%r12,8), %edi
	callq	_be32_to_cpu
	movq	%rax, 16(%r15,%r13)
	movq	%rax, %rdi
	callq	_BITS_TO_LONGS
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$24, %esi
	callq	_kcalloc
	movq	%rax, 24(%r15,%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15,%r13), %rsi
	movq	(%rbx), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rsi, (%rax)
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_cxl_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15,%r13), %rcx
	leaq	(%rsi,%rcx), %rdx
	decq	%rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_17
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rdi)
	addq	$24, %rdi
	callq	_spin_lock_init
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_8:
	cmpl	$1, %r12d
	je	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movq	(%rax,%r13), %rdi
	callq	_kfree
	decq	%r12
	addq	$-24, %r13
	cmpq	$1, %r12
	jg	LBB0_9
LBB0_10:
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_kfree
	movq	(%rbx), %rax
	movq	$0, 16(%rax)
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt-ranges"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cxl_verbose,8,3                ## @cxl_verbose
L_.str.1:                               ## @.str.1
	.asciz	"available IRQ range: %#lx-%#lx (%lu)\n"

	.no_dead_strip	_read_adapter_irq_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_adapter_irq_config
_read_adapter_irq_config:               ; @read_adapter_irq_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x8
	bl	_of_get_property
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #7, #0, ne
	b.ls	LBB0_11
; %bb.1:
	sxtw	x23, w8
	asr	w20, w23, #3
	lsl	w8, w20, #1
	cmp	x23, w8, sxtw #2
	b.ne	LBB0_11
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #24
	bl	_kcalloc
	ldr	x8, [x19]
	str	x0, [x8, #16]
	cbz	x0, LBB0_19
; %bb.3:
	ldr	w0, [x21]
	bl	_be32_to_cpu
	ldr	x8, [x19]
	str	x0, [x8]
	cmp	w23, #8
	b.lt	LBB0_14
; %bb.4:
	mov	x24, #0
	cmp	w20, #1
	csinc	w9, w20, wzr, gt
	mov	w10, #24
	umull	x25, w9, w10
	add	x26, x21, #4
	mov	w23, #1
Lloh4:
	adrp	x27, _cxl_verbose@GOTPAGE
Lloh5:
	ldr	x27, [x27, _cxl_verbose@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x23, x23, #1
	add	x24, x24, #24
	add	x26, x26, #8
	cmp	x25, x24
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8, #16]
	ldur	w0, [x26, #-4]
	bl	_be32_to_cpu
	add	x28, x21, x24
	str	x0, [x28]
	ldr	w0, [x26]
	bl	_be32_to_cpu
	str	x0, [x28, #8]
	bl	_BITS_TO_LONGS
	ldr	w2, [x22]
	mov	w1, #24
	bl	_kcalloc
	str	x0, [x28, #16]
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, x24]
	ldr	x8, [x19]
	ldr	x9, [x8]
	cmp	x1, x9
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x1, [x8]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x3, [x28, #8]
	add	x8, x1, x3
	sub	x2, x8, #1
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_5
LBB0_11:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	str	w20, [x8, #8]
	add	x0, x8, #24
	bl	_spin_lock_init
	mov	w0, #0
	b	LBB0_13
LBB0_15:
	cmp	w23, #1
	b.eq	LBB0_18
; %bb.16:
	sub	x20, x24, #8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	x0, [x8, x20]
	bl	_kfree
	sub	x23, x23, #1
	sub	x20, x20, #24
	cmp	x23, #1
	b.gt	LBB0_17
LBB0_18:
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, #16]
LBB0_19:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt-ranges"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cxl_verbose,8,3                ; @cxl_verbose
l_.str.1:                               ; @.str.1
	.asciz	"available IRQ range: %#lx-%#lx (%lu)\n"

	.no_dead_strip	_read_adapter_irq_config
.subsections_via_symbols
