	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IFX_MEI_DownloadBootPages
_IFX_MEI_DownloadBootPages:             ## @IFX_MEI_DownloadBootPages
	.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	%rdi, %r14
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jl	LBB0_9
## %bb.1:
	movl	$1, %ebx
	movq	_BOOT_FLAG@GOTPCREL(%rip), %r12
	movq	_mei_arc_swap_buff@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax,%rbx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GET_PROG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAXSWAPSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %r9
	callq	_IFX_MEI_GetPage
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_IFX_MEI_DMAWrite
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_DSL_DEV_PRIVATE
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%r12), %ecx
	testl	%ecx, 4(%rax,%rbx,8)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAXSWAPSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %r9
	callq	_IFX_MEI_GetPage
	testl	%eax, %eax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_IFX_MEI_DMAWrite
	jmp	LBB0_8
LBB0_9:
	movq	_DSL_DEV_MEI_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BOOT_FLAG,4,2                  ## @BOOT_FLAG
	.comm	_GET_PROG,4,2                   ## @GET_PROG
	.comm	_MAXSWAPSIZE,4,2                ## @MAXSWAPSIZE
	.comm	_mei_arc_swap_buff,4,2          ## @mei_arc_swap_buff
	.comm	_GET_DATA,4,2                   ## @GET_DATA
	.comm	_DSL_DEV_MEI_ERR_SUCCESS,4,2    ## @DSL_DEV_MEI_ERR_SUCCESS
	.no_dead_strip	_IFX_MEI_DownloadBootPages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IFX_MEI_DownloadBootPages
_IFX_MEI_DownloadBootPages:             ; @IFX_MEI_DownloadBootPages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
	mov	w20, #1
Lloh0:
	adrp	x22, _BOOT_FLAG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BOOT_FLAG@GOTPAGEOFF]
Lloh2:
	adrp	x23, _GET_DATA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GET_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MAXSWAPSIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAXSWAPSIZE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _mei_arc_swap_buff@GOTPAGE
Lloh7:
	ldr	x25, [x25, _mei_arc_swap_buff@GOTPAGEOFF]
Lloh8:
	adrp	x26, _GET_PROG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GET_PROG@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldrsw	x8, [x8]
	add	x21, x21, #8
	cmp	x20, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x8, x8, x21
	ldr	w8, [x8, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x26]
	ldr	w3, [x24]
	ldr	w4, [x25]
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_IFX_MEI_GetPage
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x0
	ldr	w1, [sp, #12]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_IFX_MEI_DMAWrite
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_DSL_DEV_PRIVATE
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x8, x8, x21
	ldr	w8, [x8, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x23]
	ldr	w3, [x24]
	ldr	w4, [x25]
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_IFX_MEI_GetPage
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x0
	ldr	w1, [sp, #12]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_IFX_MEI_DMAWrite
	b	LBB0_2
LBB0_9:
Lloh10:
	adrp	x8, _DSL_DEV_MEI_ERR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DSL_DEV_MEI_ERR_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BOOT_FLAG,4,2                  ; @BOOT_FLAG
	.comm	_GET_PROG,4,2                   ; @GET_PROG
	.comm	_MAXSWAPSIZE,4,2                ; @MAXSWAPSIZE
	.comm	_mei_arc_swap_buff,4,2          ; @mei_arc_swap_buff
	.comm	_GET_DATA,4,2                   ; @GET_DATA
	.comm	_DSL_DEV_MEI_ERR_SUCCESS,4,2    ; @DSL_DEV_MEI_ERR_SUCCESS
	.no_dead_strip	_IFX_MEI_DownloadBootPages
.subsections_via_symbols
