	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_sigstop
_wait_for_sigstop:                      ## @wait_for_sigstop
	.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
	cmpq	$0, 16(%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	_current_inferior@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movl	(%r13), %r14d
	movl	12(%rdi), %esi
	movq	_all_threads@GOTPCREL(%rip), %rdi
	callq	_find_inferior_id
	movq	%rax, %rdi
	callq	_fbsd_wait_for_event
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	%r15d, %edi
	callq	_WSTOPSIG
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_5:
	movl	$1, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	$1, 8(%rbx)
LBB0_6:
	movl	%r14d, %edi
	callq	_fbsd_thread_alive
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r13, (%r12)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_11:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_desired_inferior           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current_inferior,8,3           ## @current_inferior
	.comm	_all_threads,4,2                ## @all_threads
	.comm	_SIGSTOP,8,3                    ## @SIGSTOP
	.comm	_debug_threads,8,3              ## @debug_threads
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopped with non-sigstop signal\n"

L_.str.1:                               ## @.str.1
	.asciz	"Previously current thread died.\n"

	.no_dead_strip	_wait_for_sigstop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_sigstop
_wait_for_sigstop:                      ; @wait_for_sigstop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _current_inferior@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current_inferior@GOTPAGEOFF]
	ldr	x23, [x22]
	ldr	w20, [x23]
	ldr	w1, [x0, #12]
Lloh2:
	adrp	x0, _all_threads@GOTPAGE
Lloh3:
	ldr	x0, [x0, _all_threads@GOTPAGEOFF]
	bl	_find_inferior_id
	bl	_fbsd_wait_for_event
	mov	x21, x0
	bl	_WIFSTOPPED
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_WSTOPSIG
Lloh4:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _debug_threads@GOTPAGE
Lloh8:
	ldr	x8, [x8, _debug_threads@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_5:
	mov	w8, #1
	stp	w8, w21, [x19]
	str	w8, [x19, #8]
LBB0_6:
	mov	x0, x20
	bl	_fbsd_thread_alive
	cbz	x0, LBB0_9
; %bb.7:
	str	x23, [x22]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh15:
	adrp	x8, _debug_threads@GOTPAGE
Lloh16:
	ldr	x8, [x8, _debug_threads@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_11:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_desired_inferior
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_current_inferior,8,3           ; @current_inferior
	.comm	_all_threads,4,2                ; @all_threads
	.comm	_SIGSTOP,8,3                    ; @SIGSTOP
	.comm	_debug_threads,8,3              ; @debug_threads
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopped with non-sigstop signal\n"

l_.str.1:                               ; @.str.1
	.asciz	"Previously current thread died.\n"

	.no_dead_strip	_wait_for_sigstop
.subsections_via_symbols
