	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st2000_wait
_st2000_wait:                           ## @st2000_wait
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	_TARGET_WAITKIND_EXITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	$0, 8(%rsi)
	movl	$0, (%r14)
	xorl	%edi, %edi
	callq	_expect_prompt
	movq	_TARGET_WAITKIND_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_TARGET_SIGNAL_TRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%r15d, (%r14)
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeout,4,2                    ## @timeout
	.comm	_TARGET_WAITKIND_EXITED,4,2     ## @TARGET_WAITKIND_EXITED
	.comm	_TARGET_WAITKIND_STOPPED,4,2    ## @TARGET_WAITKIND_STOPPED
	.comm	_TARGET_SIGNAL_TRAP,4,2         ## @TARGET_SIGNAL_TRAP
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.no_dead_strip	_st2000_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st2000_wait
_st2000_wait:                           ; @st2000_wait
	.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, x1
Lloh0:
	adrp	x20, _timeout@GOTPAGE
Lloh1:
	ldr	x20, [x20, _timeout@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh2:
	adrp	x8, _TARGET_WAITKIND_EXITED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TARGET_WAITKIND_EXITED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x1, #16]
	str	xzr, [x1, #8]
	str	wzr, [x20]
	mov	w0, #0
	bl	_expect_prompt
Lloh5:
	adrp	x8, _TARGET_WAITKIND_STOPPED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TARGET_WAITKIND_STOPPED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _TARGET_SIGNAL_TRAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TARGET_SIGNAL_TRAP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	str	w21, [x20]
Lloh11:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_timeout,4,2                    ; @timeout
	.comm	_TARGET_WAITKIND_EXITED,4,2     ; @TARGET_WAITKIND_EXITED
	.comm	_TARGET_WAITKIND_STOPPED,4,2    ; @TARGET_WAITKIND_STOPPED
	.comm	_TARGET_SIGNAL_TRAP,4,2         ; @TARGET_SIGNAL_TRAP
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.no_dead_strip	_st2000_wait
.subsections_via_symbols
