	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_nmi_map_fdt
_aw_nmi_map_fdt:                        ## @aw_nmi_map_fdt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %esi
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%rdx)
	je	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_device_printf
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_6:
	movl	4(%rdx), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	jae	LBB0_12
## %bb.7:
	cltq
	leaq	l_switch.table.aw_nmi_map_fdt(%rip), %rdx
	movq	(%rdx,%rax,8), %rsi
	leaq	l_switch.table.aw_nmi_map_fdt.3(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %edx
	movl	(%rsi), %eax
	movl	$0, (%rcx)
	testq	%r8, %r8
	je	LBB0_9
## %bb.8:
	movl	%eax, (%r8)
LBB0_9:
	xorl	%eax, %eax
	testq	%r9, %r9
	je	LBB0_11
## %bb.10:
	movl	%edx, (%r9)
LBB0_11:
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid #interrupt-cells\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Controller only support irq 0\n"

	.comm	_INTR_TRIGGER_EDGE,4,2          ## @INTR_TRIGGER_EDGE
	.comm	_INTR_POLARITY_HIGH,4,2         ## @INTR_POLARITY_HIGH
	.comm	_INTR_POLARITY_LOW,4,2          ## @INTR_POLARITY_LOW
	.comm	_INTR_TRIGGER_LEVEL,4,2         ## @INTR_TRIGGER_LEVEL
L_.str.2:                               ## @.str.2
	.asciz	"unsupported trigger/polarity 0x%2x\n"

	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.no_dead_strip	_aw_nmi_map_fdt
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.aw_nmi_map_fdt
l_switch.table.aw_nmi_map_fdt:
	.quad	_INTR_POLARITY_LOW
	.quad	_INTR_POLARITY_HIGH
	.quad	_INTR_POLARITY_HIGH
	.quad	_INTR_POLARITY_LOW

	.p2align	3                               ## @switch.table.aw_nmi_map_fdt.3
l_switch.table.aw_nmi_map_fdt.3:
	.quad	_INTR_TRIGGER_LEVEL
	.quad	_INTR_TRIGGER_LEVEL
	.quad	_INTR_TRIGGER_EDGE
	.quad	_INTR_TRIGGER_EDGE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_nmi_map_fdt
_aw_nmi_map_fdt:                        ; @aw_nmi_map_fdt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x2]
	cbz	w8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_device_printf
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_7:
	ldr	w8, [x2, #4]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_12
; %bb.8:
	sbfiz	x8, x9, #3, #32
Lloh6:
	adrp	x9, l_switch.table.aw_nmi_map_fdt@PAGE
Lloh7:
	add	x9, x9, l_switch.table.aw_nmi_map_fdt@PAGEOFF
	ldr	x9, [x9, x8]
Lloh8:
	adrp	x10, l_switch.table.aw_nmi_map_fdt.3@PAGE
Lloh9:
	add	x10, x10, l_switch.table.aw_nmi_map_fdt.3@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w8, [x8]
	ldr	w9, [x9]
	str	wzr, [x3]
	cbz	x4, LBB0_10
; %bb.9:
	str	w9, [x4]
LBB0_10:
	mov	w0, #0
	cbz	x5, LBB0_6
; %bb.11:
	str	w8, [x5]
	b	LBB0_6
LBB0_12:
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_device_printf
Lloh12:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid #interrupt-cells\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Controller only support irq 0\n"

	.comm	_INTR_TRIGGER_EDGE,4,2          ; @INTR_TRIGGER_EDGE
	.comm	_INTR_POLARITY_HIGH,4,2         ; @INTR_POLARITY_HIGH
	.comm	_INTR_POLARITY_LOW,4,2          ; @INTR_POLARITY_LOW
	.comm	_INTR_TRIGGER_LEVEL,4,2         ; @INTR_TRIGGER_LEVEL
l_.str.2:                               ; @.str.2
	.asciz	"unsupported trigger/polarity 0x%2x\n"

	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.no_dead_strip	_aw_nmi_map_fdt
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.aw_nmi_map_fdt
l_switch.table.aw_nmi_map_fdt:
	.quad	_INTR_POLARITY_LOW
	.quad	_INTR_POLARITY_HIGH
	.quad	_INTR_POLARITY_HIGH
	.quad	_INTR_POLARITY_LOW

	.p2align	3                               ; @switch.table.aw_nmi_map_fdt.3
l_switch.table.aw_nmi_map_fdt.3:
	.quad	_INTR_TRIGGER_LEVEL
	.quad	_INTR_TRIGGER_LEVEL
	.quad	_INTR_TRIGGER_EDGE
	.quad	_INTR_TRIGGER_EDGE

.subsections_via_symbols
