	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dst_wait_dst_ready             ## -- Begin function dst_wait_dst_ready
	.p2align	4, 0x90
_dst_wait_dst_ready:                    ## @dst_wait_dst_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r15
	movq	_RDC_8820_PIO_0_ENABLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dst_gpio_inb
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_msleep
	incl	%ebx
	cmpl	$200, %ebx
	jne	LBB0_1
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	$200, %edx
	callq	_dprintk
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%ebx, %edx
	callq	_dprintk
	movl	$1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dst_gpio_inb ERROR !\n"

	.comm	_RDC_8820_PIO_0_ENABLE,4,2      ## @RDC_8820_PIO_0_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"dst wait ready after %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"dst wait NOT ready after %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dst_wait_dst_ready             ; -- Begin function dst_wait_dst_ready
	.p2align	2
_dst_wait_dst_ready:                    ; @dst_wait_dst_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	mov	w19, #0
Lloh0:
	adrp	x21, _RDC_8820_PIO_0_ENABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RDC_8820_PIO_0_ENABLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_dst_gpio_inb
	tbnz	x0, #63, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_msleep
	add	w19, w19, #1
	cmp	w19, #200
	b.ne	LBB0_1
; %bb.4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	w2, #200
	bl	_dprintk
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_dprintk
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dst_gpio_inb ERROR !\n"

	.comm	_RDC_8820_PIO_0_ENABLE,4,2      ; @RDC_8820_PIO_0_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"dst wait ready after %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"dst wait NOT ready after %d\n"

.subsections_via_symbols
