	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eip197_start_firmware
_eip197_start_firmware:                 ## @eip197_start_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
	movl	%ecx, %r14d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	jle	LBB0_6
## %bb.1:
	decl	-48(%rbp)                       ## 4-byte Folded Spill
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_FPP_CTRL
	addq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_PUE_CTRL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	incl	%r12d
	cmpl	(%r13), %r12d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_RAM_CTRL
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EIP197_PE_ICE_UENG_INIT_ALIGN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_EIP197_PE_ICE_UENG_START_OFFSET
	movl	%eax, %r15d
	movq	_EIP197_PE_ICE_UENG_DEBUG_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_EIP197_PE
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_FPP_CTRL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_EIP197_PE_ICE_UENG_INIT_ALIGN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_EIP197_PE_ICE_UENG_START_OFFSET
	movl	%eax, %r15d
	movq	_EIP197_PE_ICE_UENG_DEBUG_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_5
LBB0_6:
	movl	$1, %eax
	testl	%r14d, %r14d
	jne	LBB0_10
## %bb.7:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_poll_fw_ready
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_poll_fw_ready
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_PE_ICE_UENG_INIT_ALIGN_MASK,4,2 ## @EIP197_PE_ICE_UENG_INIT_ALIGN_MASK
	.comm	_EIP197_PE_ICE_UENG_DEBUG_RESET,4,2 ## @EIP197_PE_ICE_UENG_DEBUG_RESET
	.no_dead_strip	_eip197_start_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eip197_start_firmware
_eip197_start_firmware:                 ; @eip197_start_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
	mov	x20, x3
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w21, #0
	sub	w24, w2, #1
	sub	w25, w1, #1
Lloh0:
	adrp	x26, _EIP197_PE_ICE_UENG_INIT_ALIGN_MASK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EIP197_PE_ICE_UENG_INIT_ALIGN_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x27, _EIP197_PE_ICE_UENG_DEBUG_RESET@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EIP197_PE_ICE_UENG_DEBUG_RESET@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x21
	bl	_EIP197_PE_ICE_FPP_CTRL
	add	x1, x0, x22
	mov	w0, #0
	bl	_writel
	mov	w22, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_EIP197_PE
	mov	x23, x0
	mov	x0, x21
	bl	_EIP197_PE_ICE_PUE_CTRL
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_EIP197_PE
	mov	x22, x0
	mov	x0, x21
	bl	_EIP197_PE_ICE_RAM_CTRL
	add	x1, x0, x22
	mov	w0, #0
	bl	_writel
	cbnz	w20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	and	w0, w8, w24
	bl	_EIP197_PE_ICE_UENG_START_OFFSET
	ldr	w8, [x27]
	orr	w22, w8, w0
	mov	x0, x19
	bl	_EIP197_PE
	mov	x23, x0
	mov	x0, x21
	bl	_EIP197_PE_ICE_FPP_CTRL
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
	ldr	w8, [x26]
	and	w0, w8, w25
	bl	_EIP197_PE_ICE_UENG_START_OFFSET
	ldr	w8, [x27]
	orr	w22, w8, w0
	b	LBB0_3
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_poll_fw_ready
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	bl	_poll_fw_ready
	cmp	w0, #0
	cset	w0, ne
LBB0_10:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_PE_ICE_UENG_INIT_ALIGN_MASK,4,2 ; @EIP197_PE_ICE_UENG_INIT_ALIGN_MASK
	.comm	_EIP197_PE_ICE_UENG_DEBUG_RESET,4,2 ; @EIP197_PE_ICE_UENG_DEBUG_RESET
	.no_dead_strip	_eip197_start_firmware
.subsections_via_symbols
