	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_dis
_wait_dis:                              ## @wait_dis
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	setne	%bl
	shll	$6, %ebx
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	xorl	%r14d, %r14d
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.1:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.2:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.3:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.4:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.5:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.6:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.7:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.8:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_read_reg
	movl	-44(%rbp), %eax
	andl	%r12d, %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.9:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_RSTV0910_P1_DISTXSTATUS@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_read_reg
	andl	-44(%rbp), %r12d
	cmpl	%r15d, %r12d
	je	LBB0_11
## %bb.10:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSTV0910_P1_DISTXSTATUS,4,2    ## @RSTV0910_P1_DISTXSTATUS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_wait_dis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_dis
_wait_dis:                              ; @wait_dis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w8, ne
	lsl	w22, w8, #6
Lloh0:
	adrp	x23, _RSTV0910_P1_DISTXSTATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RSTV0910_P1_DISTXSTATUS@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.1:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.2:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.3:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.4:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.5:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.6:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.7:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.8:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, w20
	cmp	w8, w19
	b.ne	LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
Lloh2:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RSTV0910_P1_DISTXSTATUS,4,2    ; @RSTV0910_P1_DISTXSTATUS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_wait_dis
.subsections_via_symbols
