	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cp110_icu_convert_map_data
_mv_cp110_icu_convert_map_data:         ## @mv_cp110_icu_convert_map_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$2, (%rsi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %rdi
	movq	_MV_CP110_ICU_MAX_NIRQS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jge	LBB0_5
## %bb.2:
	movq	8(%rax), %r14
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_7
## %bb.3:
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	_ICU_INT_CFG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_RD4
	movq	%rax, %rcx
	movq	(%rbx), %rax
	movl	$2, (%rax)
	movq	_ICU_INT_MASK@GOTPCREL(%rip), %rdx
	andq	(%rdx), %rcx
	movq	8(%rax), %rdx
	movq	%rcx, (%rdx)
	movq	%r14, 8(%rdx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_CP110_ICU_MAX_NIRQS,8,3     ## @MV_CP110_ICU_MAX_NIRQS
	.comm	_IRQ_TYPE_LEVEL_HIGH,8,3        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_EDGE_RISING,8,3       ## @IRQ_TYPE_EDGE_RISING
	.comm	_ICU_INT_MASK,8,3               ## @ICU_INT_MASK
	.no_dead_strip	_mv_cp110_icu_convert_map_data
.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_convert_map_data
_mv_cp110_icu_convert_map_data:         ; @mv_cp110_icu_convert_map_data
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	x0, [x8]
Lloh0:
	adrp	x9, _MV_CP110_ICU_MAX_NIRQS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV_CP110_ICU_MAX_NIRQS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ge	LBB0_4
; %bb.2:
	ldr	x20, [x8, #8]
Lloh3:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x20, x8
	ccmp	x20, x9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	bl	_ICU_INT_CFG
	mov	x1, x0
	mov	x0, x19
	bl	_RD4
	mov	x8, x0
	ldr	x0, [x19]
	mov	w9, #2
Lloh9:
	adrp	x10, _ICU_INT_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ICU_INT_MASK@GOTPAGEOFF]
	str	w9, [x0]
Lloh11:
	ldr	x9, [x10]
	and	x8, x9, x8
	ldr	x9, [x0, #8]
	stp	x8, x20, [x9]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_CP110_ICU_MAX_NIRQS,8,3     ; @MV_CP110_ICU_MAX_NIRQS
	.comm	_IRQ_TYPE_LEVEL_HIGH,8,3        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_EDGE_RISING,8,3       ; @IRQ_TYPE_EDGE_RISING
	.comm	_ICU_INT_MASK,8,3               ; @ICU_INT_MASK
	.no_dead_strip	_mv_cp110_icu_convert_map_data
.subsections_via_symbols
