	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pio_reset_all                  ## -- Begin function pio_reset_all
	.p2align	4, 0x90
_pio_reset_all:                         ## @pio_reset_all
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_pio_init_wait_progress
	movq	_EIO@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_SEND_PIO_ERR_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_csr
LBB0_2:
	movq	_SEND_PIO_INIT_CTXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_csr
	movl	$2, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_pio_init_wait_progress
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dd_dev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SEND_PIO_ERR_CLEAR,4,2         ## @SEND_PIO_ERR_CLEAR
	.comm	_SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK,4,2 ## @SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK
	.comm	_SEND_PIO_INIT_CTXT,4,2         ## @SEND_PIO_INIT_CTXT
	.comm	_SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK,4,2 ## @SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO send context init %s while initializing all PIO blocks\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"is stuck"

L_.str.2:                               ## @.str.2
	.asciz	"had an error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pio_reset_all                  ; -- Begin function pio_reset_all
	.p2align	2
_pio_reset_all:                         ; @pio_reset_all
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_pio_init_wait_progress
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SEND_PIO_ERR_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEND_PIO_ERR_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_csr
LBB0_2:
Lloh9:
	adrp	x8, _SEND_PIO_INIT_CTXT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEND_PIO_INIT_CTXT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_csr
	mov	w0, #2
	bl	_udelay
	mov	x0, x19
	bl	_pio_init_wait_progress
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh15:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, l_.str.2@PAGE
Lloh19:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh20:
	adrp	x10, l_.str.1@PAGE
Lloh21:
	add	x10, x10, l_.str.1@PAGEOFF
	cmn	w0, w8
	csel	x2, x10, x9, eq
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dd_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SEND_PIO_ERR_CLEAR,4,2         ; @SEND_PIO_ERR_CLEAR
	.comm	_SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK,4,2 ; @SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK
	.comm	_SEND_PIO_INIT_CTXT,4,2         ; @SEND_PIO_INIT_CTXT
	.comm	_SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK,4,2 ; @SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO send context init %s while initializing all PIO blocks\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"is stuck"

l_.str.2:                               ; @.str.2
	.asciz	"had an error"

.subsections_via_symbols
