	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nexus_setup_intr
_nexus_setup_intr:                      ## @nexus_setup_intr
	.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	%r9, %rbx
	movq	%r8, %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdx, %rdi
	callq	_rman_get_flags
	movq	_RF_SHAREABLE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_INTR_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_rman_get_start
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_rman_get_end
	cmpl	%eax, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_5
## %bb.3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_device_get_nameunit
	movq	24(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	16(%rbp), %rcx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_arm_setup_irqhandler
	movl	%r14d, %edi
	callq	_arm_unmask_irq
	movl	%r13d, %r12d
	movq	%r15, %r13
	leal	1(%r14), %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rman_get_end
	cmpl	%eax, %r14d
	movl	%r15d, %r14d
	movq	%r13, %r15
	movl	%r12d, %r13d
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_SHAREABLE,4,2               ## @RF_SHAREABLE
	.comm	_INTR_EXCL,4,2                  ## @INTR_EXCL
	.no_dead_strip	_nexus_setup_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nexus_setup_intr
_nexus_setup_intr:                      ; @nexus_setup_intr
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x26, x3
	mov	x23, x2
	mov	x24, x1
	mov	x0, x2
	bl	_rman_get_flags
Lloh0:
	adrp	x8, _RF_SHAREABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_SHAREABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _INTR_EXCL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTR_EXCL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w27, w9, wzr, eq
	mov	x0, x23
	bl	_rman_get_start
	mov	x25, x0
	mov	x0, x23
	bl	_rman_get_end
	cmp	w25, w0
	b.gt	LBB0_3
; %bb.1:
	orr	w26, w27, w26
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x25
	mov	x5, x26
	mov	x6, x19
	bl	_arm_setup_irqhandler
	mov	x0, x25
	bl	_arm_unmask_irq
	add	w27, w25, #1
	mov	x0, x23
	bl	_rman_get_end
	cmp	w25, w0
	mov	x25, x27
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_SHAREABLE,4,2               ; @RF_SHAREABLE
	.comm	_INTR_EXCL,4,2                  ; @INTR_EXCL
	.no_dead_strip	_nexus_setup_intr
.subsections_via_symbols
