	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cp110_icu_map_intr
_mv_cp110_icu_map_intr:                 ## @mv_cp110_icu_map_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_device_get_softc
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_INTR_MAP_DATA_FDT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mv_cp110_icu_convert_map_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ICU_INT_CFG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_RD4
	movq	_ICU_INT_ENABLE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rcx
	movq	_ICU_INT_EDGE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	%rbx, %rdx
	notq	%rdx
	andq	%rax, %rdx
	orq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rbx
	movq	%r12, %rdi
	callq	_ICU_INT_CFG
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_WR4
	movl	4(%r13), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_PIC_MAP_INTR
	movl	(%r13), %ecx
	movq	(%r14), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_7
LBB0_4:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_ICU_INT_ENABLE,8,3             ## @ICU_INT_ENABLE
	.comm	_IRQ_TYPE_LEVEL_HIGH,8,3        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_ICU_INT_EDGE,8,3               ## @ICU_INT_EDGE
	.no_dead_strip	_mv_cp110_icu_map_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_cp110_icu_map_intr
_mv_cp110_icu_map_intr:                 ; @mv_cp110_icu_map_intr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	bl	_device_get_softc
	ldr	x8, [x21]
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_4
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldp	x22, x23, [x8]
	mov	x1, x21
	bl	_mv_cp110_icu_convert_map_data
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x22
	bl	_ICU_INT_CFG
	mov	x1, x0
	mov	x0, x20
	bl	_RD4
Lloh3:
	adrp	x8, _ICU_INT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICU_INT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	orr	x8, x8, x0
Lloh6:
	adrp	x9, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ICU_INT_EDGE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ICU_INT_EDGE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
	bic	x11, x8, x10
	orr	x8, x10, x8
	cmp	x23, x9
	csel	x23, x11, x8, eq
	mov	x0, x22
	bl	_ICU_INT_CFG
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_WR4
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x19
	bl	_PIC_MAP_INTR
	ldr	w8, [x20]
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	_ICU_INT_ENABLE,8,3             ; @ICU_INT_ENABLE
	.comm	_IRQ_TYPE_LEVEL_HIGH,8,3        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_ICU_INT_EDGE,8,3               ; @ICU_INT_EDGE
	.no_dead_strip	_mv_cp110_icu_map_intr
.subsections_via_symbols
