	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IFX_MEI_GetPage
_IFX_MEI_GetPage:                       ## @IFX_MEI_GetPage
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rcx
	movl	$-2, %eax
	cmpq	%rbx, (%rcx)
	jl	LBB0_13
## %bb.1:
	movq	_GET_DATA@GOTPCREL(%rip), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	%r13, %rdi
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movq	8(%rax), %rax
	leaq	(%rbx,%rbx,2), %rsi
	shlq	$4, %rsi
	leaq	(%rax,%rsi), %rcx
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	8(%rax,%rsi), %rax
	cmoveq	%rcx, %rax
	movq	_BOOT_FLAG_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	(%rax), %rcx
	movl	$-1, %eax
	cmpq	%r14, %rcx
	jg	LBB0_13
## %bb.2:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	sete	%bl
	movq	%r13, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	16(%rax,%rbx,8), %rax
	movq	_SDRAM_SEGMENT_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%rcx
	movq	%rdx, %rbx
	movq	%rax, %r12
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	movl	%eax, %r12d
LBB0_7:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_DSL_DEV_PRIVATE
	testq	%r14, %r14
	jle	LBB0_12
## %bb.8:
	movq	8(%rax), %rcx
	leaq	(,%rbx,4), %rax
	addq	(%rcx,%r12,8), %rax
	xorl	%r8d, %r8d
	xorl	%r13d, %r13d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rax), %rcx
	addq	$8, %rax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx,%r13,8)
	incq	%r13
	addq	$4, %rbx
	cmpq	%r13, %r14
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	%r8, %rdx
	imulq	%rcx, %rdx
	movq	%rbx, %rsi
	subq	%rdx, %rsi
	cmpq	%rcx, %rsi
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%r12), %r14
	incq	%r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r8, %r15
	callq	_DSL_DEV_PRIVATE
	movq	8(%rax), %rax
	movq	8(%rax,%r12,8), %rdi
	callq	_KSEG1ADDR
	movq	%r15, %r8
	movq	%r14, %r12
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	_SDRAM_SEGMENT_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_12:
	xorl	%ebx, %ebx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	sete	%bl
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	8(%rax), %rcx
	movq	32(%rcx,%rbx,8), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	%r14d, %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_DATA,8,3                   ## @GET_DATA
	.comm	_BOOT_FLAG_MASK,8,3             ## @BOOT_FLAG_MASK
	.comm	_SDRAM_SEGMENT_SIZE,8,3         ## @SDRAM_SEGMENT_SIZE
	.no_dead_strip	_IFX_MEI_GetPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IFX_MEI_GetPage
_IFX_MEI_GetPage:                       ; @IFX_MEI_GetPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x22, x4
	mov	x25, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	x8, [x8]
	cmp	x8, x21
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #-2
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x8, _GET_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	x0, x23
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w9, #48
	madd	x8, x21, x9, x8
	add	x9, x8, #8
	cmp	x19, x20
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BOOT_FLAG_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BOOT_FLAG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x19, x9, x8
	cmp	x19, x25
	b.le	LBB0_4
; %bb.3:
	mov	w19, #-1
	b	LBB0_11
LBB0_4:
	cbz	x19, LBB0_11
; %bb.5:
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x23
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w9, #48
	madd	x8, x21, x9, x8
	add	x9, x8, #16
	add	x8, x8, #24
	cmp	x20, #0
	csel	x8, x8, x9, eq
	ldr	x24, [x8]
Lloh6:
	adrp	x25, _SDRAM_SEGMENT_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SDRAM_SEGMENT_SIZE@GOTPAGEOFF]
	ldr	x28, [x25]
	mov	x0, x23
	bl	_DSL_DEV_PRIVATE
	cmp	x19, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x26, #0
	sdiv	x27, x24, x28
	msub	x28, x27, x28, x24
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x27, lsl #3]
	add	x0, x8, x28, lsl #2
	mov	x24, x19
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0], #8
	str	x8, [x22], #8
	add	x28, x28, #4
	subs	x24, x24, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	msub	x9, x26, x8, x28
	cmp	x9, x8
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #1
	add	x26, x26, #1
	mov	x0, x23
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0, #8]
	ldr	x0, [x8, x27, lsl #3]
	bl	_KSEG1ADDR
	b	LBB0_7
LBB0_10:
	mov	x0, x23
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w9, #48
	madd	x8, x21, x9, x8
	add	x9, x8, #32
	add	x8, x8, #40
	cmp	x20, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_DATA,8,3                   ; @GET_DATA
	.comm	_BOOT_FLAG_MASK,8,3             ; @BOOT_FLAG_MASK
	.comm	_SDRAM_SEGMENT_SIZE,8,3         ; @SDRAM_SEGMENT_SIZE
	.no_dead_strip	_IFX_MEI_GetPage
.subsections_via_symbols
