	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_setup_interrupts
_macio_setup_interrupts:                ## @macio_setup_interrupts
	.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	%rdi, %r12
	movq	_MACIO_DEV_COUNT_IRQS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	leaq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rbx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movq	_MACIO_DEV_COUNT_IRQS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %rbx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r13d, %rcx
	leaq	(%rcx,%rcx,2), %r12
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	(%r15,%r12,4), %r13
	movl	%eax, (%r13)
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15,%r12,4)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_name
	movl	%eax, 4(%r15,%r12,4)
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_macio_resource_quirks
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, (%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MACIO_DEV_COUNT_IRQS,4,2       ## @MACIO_DEV_COUNT_IRQS
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.no_dead_strip	_macio_setup_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_setup_interrupts
_macio_setup_interrupts:                ; @macio_setup_interrupts
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x25, _MACIO_DEV_COUNT_IRQS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MACIO_DEV_COUNT_IRQS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w20, #0
	mov	w24, #0
	mov	x21, x19
	ldr	x22, [x21, #8]!
	mov	w26, #12
Lloh2:
	adrp	x27, _IORESOURCE_IRQ@GOTPAGE
Lloh3:
	ldr	x27, [x27, _IORESOURCE_IRQ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	w1, #0
	mov	w2, #12
	bl	_memset
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	add	w20, w20, #1
	cmp	w24, w8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #16]
	mov	x0, x22
	mov	x1, x20
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w24
	smaddl	x23, w24, w26, x28
	str	w0, [x23]
	ldr	w9, [x27]
	madd	x28, x8, x26, x28
	str	w9, [x28, #8]
	mov	x0, x21
	bl	_dev_name
	str	w0, [x28, #4]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_macio_resource_quirks
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	b	LBB0_3
LBB0_7:
	mov	w24, #0
LBB0_8:
	str	w24, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MACIO_DEV_COUNT_IRQS,4,2       ; @MACIO_DEV_COUNT_IRQS
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.no_dead_strip	_macio_setup_interrupts
.subsections_via_symbols
