	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pio_init_wait_progress
_pio_init_wait_progress:                ## @pio_init_wait_progress
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_ICODE_FPGA_EMULATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$120, %eax
	movl	$5, %ebx
	cmovel	%eax, %ebx
	movq	_SEND_PIO_INIT_CTXT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_read_csr
	movq	_SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.1:
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_read_csr
	testl	%eax, (%r12)
	jne	LBB0_2
LBB0_5:
	movq	_SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
	jmp	LBB0_6
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_6:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICODE_FPGA_EMULATION,8,3       ## @ICODE_FPGA_EMULATION
	.comm	_SEND_PIO_INIT_CTXT,4,2         ## @SEND_PIO_INIT_CTXT
	.comm	_SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK,4,2 ## @SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK,4,2 ## @SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pio_init_wait_progress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pio_init_wait_progress
_pio_init_wait_progress:                ; @pio_init_wait_progress
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICODE_FPGA_EMULATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICODE_FPGA_EMULATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #5
	mov	w9, #120
	csel	w22, w9, w8, eq
Lloh3:
	adrp	x20, _SEND_PIO_INIT_CTXT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SEND_PIO_INIT_CTXT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_read_csr
Lloh5:
	adrp	x21, _SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	add	w22, w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_read_csr
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_4:
Lloh7:
	adrp	x8, _SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _EIO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w8, w0
	csneg	w0, wzr, w9, eq
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ICODE_FPGA_EMULATION,8,3       ; @ICODE_FPGA_EMULATION
	.comm	_SEND_PIO_INIT_CTXT,4,2         ; @SEND_PIO_INIT_CTXT
	.comm	_SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK,4,2 ; @SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK,4,2 ; @SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pio_init_wait_progress
.subsections_via_symbols
