	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_ap806_gicp_convert_map_data
_mv_ap806_gicp_convert_map_data:        ## @mv_ap806_gicp_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
	cmpl	$2, (%rsi)
	jne	LBB0_7
## %bb.1:
	movq	8(%rsi), %rax
	movq	(%rax), %rcx
	movq	_MV_AP806_GICP_MAX_NIRQS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_7
## %bb.2:
	movq	8(%rax), %rdx
	movq	16(%rdi), %rax
	movl	$3, (%rax)
	movq	8(%rax), %r8
	movq	$0, (%r8)
	movq	%rdx, 16(%r8)
	movl	(%rdi), %edx
	cmpl	$2, %edx
	jl	LBB0_9
## %bb.3:
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	movslq	%esi, %r9
	movq	8(%rdi), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rsi
	cmpq	8(%rdi,%rdx,8), %rcx
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	%rsi, %rcx
	addq	$2, %rdx
	cmpq	%r9, %rdx
	jl	LBB0_4
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	addq	%rsi, %rcx
LBB0_9:
	addq	$-32, %rcx
	movq	%rcx, 8(%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_AP806_GICP_MAX_NIRQS,8,3    ## @MV_AP806_GICP_MAX_NIRQS
	.no_dead_strip	_mv_ap806_gicp_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_ap806_gicp_convert_map_data
_mv_ap806_gicp_convert_map_data:        ; @mv_ap806_gicp_convert_map_data
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	cmp	w9, #2
	b.ne	LBB0_6
; %bb.1:
	ldr	x10, [x1, #8]
	ldr	x9, [x10]
Lloh0:
	adrp	x11, _MV_AP806_GICP_MAX_NIRQS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MV_AP806_GICP_MAX_NIRQS@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ge	LBB0_6
; %bb.2:
	mov	x8, x0
	ldr	x11, [x10, #8]
	ldr	x0, [x0, #16]
	mov	w10, #3
	str	w10, [x0]
	ldr	x10, [x0, #8]
	str	xzr, [x10]
	str	x11, [x10, #16]
	ldr	w11, [x8]
	cmp	w11, #0
	cinc	w12, w11, lt
	cmp	w11, #2
	b.lt	LBB0_8
; %bb.3:
	mov	x11, #0
	sbfx	x12, x12, #1, #31
	ldr	x8, [x8, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x8, x11, lsl #3
	ldp	x13, x14, [x13]
	cmp	x9, x14
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x9, x13
	add	x11, x11, #2
	cmp	x11, x12
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	x0, #0
	ret
LBB0_7:
	add	x9, x13, x9
LBB0_8:
	sub	x8, x9, #32
	str	x8, [x10, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_AP806_GICP_MAX_NIRQS,8,3    ; @MV_AP806_GICP_MAX_NIRQS
	.no_dead_strip	_mv_ap806_gicp_convert_map_data
.subsections_via_symbols
