	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_fw_ready
_poll_fw_ready:                         ## @poll_fw_ready
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_EIP197_FW_PUE_READY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_EIP197_FW_FPP_READY@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	$1, %eax
	cmpl	$0, 4(%r13)
	jle	LBB0_11
## %bb.4:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_EIP197_FW_START_POLLCNT@GOTPCREL(%rip), %r14
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%r12d, %edi
	callq	_EIP197_PE_ICE_SCRATCH_RAM
	movq	%r14, %r15
	movl	(%r14), %r14d
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_EIP197_PE
	leaq	(%rax,%rbx), %rdi
	callq	_readl_relaxed
	cmpl	$1, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	decl	%r14d
	jne	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	cmpl	4(%r13), %r12d
	movq	%r15, %r14
	jl	LBB0_5
## %bb.10:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_12:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_dev_err
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_FW_FPP_READY,8,3        ## @EIP197_FW_FPP_READY
	.comm	_EIP197_FW_PUE_READY,8,3        ## @EIP197_FW_PUE_READY
	.comm	_EIP197_FW_START_POLLCNT,4,2    ## @EIP197_FW_START_POLLCNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW(%d) for PE %d failed to start\n"

	.no_dead_strip	_poll_fw_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_fw_ready
_poll_fw_ready:                         ; @poll_fw_ready
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _EIP197_FW_PUE_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIP197_FW_PUE_READY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EIP197_FW_FPP_READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EIP197_FW_FPP_READY@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w9, [x0, #4]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	ldr	x22, [x8]
Lloh4:
	adrp	x23, _EIP197_FW_START_POLLCNT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EIP197_FW_START_POLLCNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x21
	bl	_EIP197_PE_ICE_SCRATCH_RAM
	ldr	w24, [x23]
	cbz	w24, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x0, x22
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_EIP197_PE
	add	x0, x25, x0
	bl	_readl_relaxed
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	subs	w24, w24, #1
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_err
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_FW_FPP_READY,8,3        ; @EIP197_FW_FPP_READY
	.comm	_EIP197_FW_PUE_READY,8,3        ; @EIP197_FW_PUE_READY
	.comm	_EIP197_FW_START_POLLCNT,4,2    ; @EIP197_FW_START_POLLCNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW(%d) for PE %d failed to start\n"

	.no_dead_strip	_poll_fw_ready
.subsections_via_symbols
