	.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:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$1, %edx
	movl	$200, %r8d
	jmp	LBB0_7
LBB0_2:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_4:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %r14d
	movl	$1, %edx
	movl	%ebx, %r8d
LBB0_7:
	xorl	%eax, %eax
	callq	_dprintk
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_ERROR,4,2                  ## @DST_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dst_gpio_inb ERROR !"

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

	.comm	_DST_NOTICE,4,2                 ## @DST_NOTICE
L_.str.2:                               ## @.str.2
	.asciz	"dst wait NOT ready after %d"

.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	x19, x0
	mov	w20, #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, x19
	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	w20, w20, #1
	cmp	w20, #200
	b.ne	LBB0_1
; %bb.4:
Lloh2:
	adrp	x8, _verbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _DST_NOTICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DST_NOTICE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w8, #200
	str	x8, [sp]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w19, #0
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _verbose@GOTPAGE
Lloh11:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w19, #-1
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _verbose@GOTPAGE
Lloh19:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x3, l_.str.1@PAGE
Lloh25:
	add	x3, x3, l_.str.1@PAGEOFF
	str	x20, [sp]
	mov	w19, #1
	mov	w2, #1
	bl	_dprintk
LBB0_7:
	mov	x0, x19
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_ERROR,4,2                  ; @DST_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dst_gpio_inb ERROR !"

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

	.comm	_DST_NOTICE,4,2                 ; @DST_NOTICE
l_.str.2:                               ; @.str.2
	.asciz	"dst wait NOT ready after %d"

.subsections_via_symbols
