	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_nmi_setup_intr
_aw_nmi_setup_intr:                     ## @aw_nmi_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	%rcx, %rbx
	movq	(%rcx), %rax
	movq	_INTR_MAP_DATA_FDT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	%rsi, %r15
	movl	%edi, %r12d
	callq	_device_get_softc
	movq	%rax, %r14
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	leaq	-36(%rbp), %r9
	movl	%r12d, %edi
	callq	_aw_nmi_map_fdt
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	(%r15), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.4:
	movl	-40(%rbp), %eax
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.5:
	cmpl	8(%r15), %eax
	jne	LBB0_7
## %bb.6:
	movl	-36(%rbp), %ecx
	xorl	%eax, %eax
	cmpl	12(%r15), %ecx
	je	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, 8(%r15)
	movl	-36(%rbp), %ecx
	movl	%ecx, 12(%r15)
	movq	_INTR_TRIGGER_LEVEL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_14
## %bb.12:
	movq	_INTR_POLARITY_LOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.13:
	movq	_NMI_IRQ_LOW_LEVEL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_INTR_POLARITY_HIGH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.15:
	movq	_NMI_IRQ_HIGH_EDGE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_NMI_IRQ_HIGH_LEVEL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_NMI_IRQ_LOW_EDGE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edx
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SC_NMI_WRITE
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_MAP_DATA_FDT,8,3          ## @INTR_MAP_DATA_FDT
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INTR_TRIGGER_LEVEL,4,2         ## @INTR_TRIGGER_LEVEL
	.comm	_INTR_POLARITY_LOW,4,2          ## @INTR_POLARITY_LOW
	.comm	_NMI_IRQ_LOW_LEVEL,4,2          ## @NMI_IRQ_LOW_LEVEL
	.comm	_NMI_IRQ_HIGH_LEVEL,4,2         ## @NMI_IRQ_HIGH_LEVEL
	.comm	_INTR_POLARITY_HIGH,4,2         ## @INTR_POLARITY_HIGH
	.comm	_NMI_IRQ_HIGH_EDGE,4,2          ## @NMI_IRQ_HIGH_EDGE
	.comm	_NMI_IRQ_LOW_EDGE,4,2           ## @NMI_IRQ_LOW_EDGE
	.no_dead_strip	_aw_nmi_setup_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_nmi_setup_intr
_aw_nmi_setup_intr:                     ; @aw_nmi_setup_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x3, LBB0_8
; %bb.1:
	mov	x22, x3
	ldr	x8, [x3]
Lloh0:
	adrp	x9, _INTR_MAP_DATA_FDT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTR_MAP_DATA_FDT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	bl	_device_get_softc
	mov	x19, x0
	ldp	w2, w1, [x22]
	add	x3, sp, #8
	mov	x4, sp
	add	x5, sp, #4
	mov	x0, x21
	bl	_aw_nmi_map_fdt
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	x9, [x20]
	ldr	x8, [sp, #8]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [sp]
	cbz	x9, LBB0_11
; %bb.5:
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [sp, #4]
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.eq	LBB0_15
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w9, [sp, #4]
	stp	w8, w9, [x20, #8]
Lloh7:
	adrp	x10, _INTR_TRIGGER_LEVEL@GOTPAGE
Lloh8:
	ldr	x10, [x10, _INTR_TRIGGER_LEVEL@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_13
; %bb.12:
Lloh10:
	adrp	x9, _INTR_POLARITY_LOW@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INTR_POLARITY_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _NMI_IRQ_HIGH_LEVEL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NMI_IRQ_HIGH_LEVEL@GOTPAGEOFF]
Lloh15:
	adrp	x11, _NMI_IRQ_LOW_LEVEL@GOTPAGE
Lloh16:
	ldr	x11, [x11, _NMI_IRQ_LOW_LEVEL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x9, _INTR_POLARITY_HIGH@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INTR_POLARITY_HIGH@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _NMI_IRQ_LOW_EDGE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _NMI_IRQ_LOW_EDGE@GOTPAGEOFF]
Lloh22:
	adrp	x11, _NMI_IRQ_HIGH_EDGE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _NMI_IRQ_HIGH_EDGE@GOTPAGEOFF]
LBB0_14:
	cmp	w8, w9
	csel	x8, x11, x10, eq
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SC_NMI_WRITE
LBB0_15:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_MAP_DATA_FDT,8,3          ; @INTR_MAP_DATA_FDT
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INTR_TRIGGER_LEVEL,4,2         ; @INTR_TRIGGER_LEVEL
	.comm	_INTR_POLARITY_LOW,4,2          ; @INTR_POLARITY_LOW
	.comm	_NMI_IRQ_LOW_LEVEL,4,2          ; @NMI_IRQ_LOW_LEVEL
	.comm	_NMI_IRQ_HIGH_LEVEL,4,2         ; @NMI_IRQ_HIGH_LEVEL
	.comm	_INTR_POLARITY_HIGH,4,2         ; @INTR_POLARITY_HIGH
	.comm	_NMI_IRQ_HIGH_EDGE,4,2          ; @NMI_IRQ_HIGH_EDGE
	.comm	_NMI_IRQ_LOW_EDGE,4,2           ; @NMI_IRQ_LOW_EDGE
	.no_dead_strip	_aw_nmi_setup_intr
.subsections_via_symbols
