	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eip197_init_firmware
_eip197_init_firmware:                  ## @eip197_init_firmware
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	movq	_EIP197_NUM_OF_SCRATCH_BLOCKS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EIP197_PE_ICE_x_CTRL_SW_RESET@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	_EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_FPP_CTRL
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	_EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	(%r13), %ebx
	movq	_EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_PUE_CTRL
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	_EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_RAM_CTRL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	incl	%r12d
	cmpl	(%r14), %r12d
	movq	_EIP197_NUM_OF_SCRATCH_BLOCKS@GOTPCREL(%rip), %r13
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_PUTF_CTRL
	addq	%rax, %r15
	movl	$3, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_PPTF_CTRL
	addq	%rax, %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_SCRATCH_CTRL
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_SCRATCH_CTRL
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_EIP197_PE
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_SCRATCH_RAM
	movslq	%ebx, %rbx
	addq	%rbx, %r15
	addq	%rax, %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_writel
	incq	%r13
	movq	_EIP197_NUM_OF_SCRATCH_BLOCKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addl	$4, %ebx
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER,4,2 ## @EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN,4,2 ## @EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS,4,2 ## @EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS,4,2 ## @EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS
	.comm	_EIP197_NUM_OF_SCRATCH_BLOCKS,4,2 ## @EIP197_NUM_OF_SCRATCH_BLOCKS
	.comm	_EIP197_PE_ICE_x_CTRL_SW_RESET,4,2 ## @EIP197_PE_ICE_x_CTRL_SW_RESET
	.comm	_EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR,4,2 ## @EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR
	.comm	_EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR,4,2 ## @EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR
	.comm	_EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN,4,2 ## @EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN
	.no_dead_strip	_eip197_init_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eip197_init_firmware
_eip197_init_firmware:                  ; @eip197_init_firmware
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w20, #0
Lloh0:
	adrp	x27, _EIP197_NUM_OF_SCRATCH_BLOCKS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EIP197_NUM_OF_SCRATCH_BLOCKS@GOTPAGEOFF]
Lloh2:
	adrp	x28, _EIP197_PE_ICE_x_CTRL_SW_RESET@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EIP197_PE_ICE_x_CTRL_SW_RESET@GOTPAGEOFF]
Lloh4:
	adrp	x23, _EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR@GOTPAGEOFF]
Lloh6:
	adrp	x24, _EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR@GOTPAGEOFF]
Lloh8:
	adrp	x25, _EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_FPP_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w8, [x28]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_PUE_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w21, [x25]
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_RAM_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x19
	bl	_EIP197_PE
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_PUTF_CTRL
	add	x1, x0, x21
	mov	w0, #3
	bl	_writel
	mov	x0, x19
	bl	_EIP197_PE
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_PPTF_CTRL
	add	x1, x0, x21
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	bl	_EIP197_PE
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_SCRATCH_CTRL
	add	x0, x0, x21
	bl	_readl
Lloh10:
	adrp	x8, _EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS@GOTPAGE
Lloh20:
	ldr	x11, [x11, _EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w21, w8, w11
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_SCRATCH_CTRL
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
	mov	x26, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_EIP197_PE
	mov	x21, x0
	mov	x0, x20
	bl	_EIP197_PE_ICE_SCRATCH_RAM
	add	x8, x21, w22, sxtw
	add	x1, x8, x0
	mov	w0, #0
	bl	_writel
	add	x26, x26, #1
	ldrsw	x8, [x27]
	add	w22, w22, #4
	cmp	x26, x8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER,4,2 ; @EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_TIMER
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN,4,2 ; @EIP197_PE_ICE_SCRATCH_CTRL_TIMER_EN
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS,4,2 ; @EIP197_PE_ICE_SCRATCH_CTRL_SCRATCH_ACCESS
	.comm	_EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS,4,2 ; @EIP197_PE_ICE_SCRATCH_CTRL_CHANGE_ACCESS
	.comm	_EIP197_NUM_OF_SCRATCH_BLOCKS,4,2 ; @EIP197_NUM_OF_SCRATCH_BLOCKS
	.comm	_EIP197_PE_ICE_x_CTRL_SW_RESET,4,2 ; @EIP197_PE_ICE_x_CTRL_SW_RESET
	.comm	_EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR,4,2 ; @EIP197_PE_ICE_x_CTRL_CLR_ECC_CORR
	.comm	_EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR,4,2 ; @EIP197_PE_ICE_x_CTRL_CLR_ECC_NON_CORR
	.comm	_EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN,4,2 ; @EIP197_PE_ICE_RAM_CTRL_FPP_PROG_EN
	.no_dead_strip	_eip197_init_firmware
.subsections_via_symbols
