	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_wait                     ## -- Begin function child_wait
	.p2align	4, 0x90
_child_wait:                            ## @child_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_3
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_set_sigint_trap
	movq	%r14, %rdi
	callq	_wait
	movl	%eax, %ebx
	movl	(%r15), %r12d
	xorl	%eax, %eax
	callq	_clear_sigint_trap
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	cmpl	%eax, %ebx
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %r12d
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TIDGET
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_inferior_ptid@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_PIDGET
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_MERGEPID
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_add_thread
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_BUILDPID
	movl	%eax, %r13d
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_BUILDPID
	movl	%eax, %r13d
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGTRAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_in_thread_list
	testq	%rax, %rax
	je	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGTRAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_in_thread_list
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PTRACE_GETTRACESIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_PIDGET
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	movq	_SIGTHREADEXIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PTRACE_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_PIDGET
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	jmp	LBB0_1
LBB0_3:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_safe_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_fprintf_unfiltered
	movq	_TARGET_WAITKIND_SIGNALLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	_TARGET_SIGNAL_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movl	$-1, %r13d
	jmp	LBB0_22
LBB0_13:
	movq	_PTRACE_GETTRACESIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_PIDGET
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	movq	_SIGNEWTHREAD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.14:
	movq	_TARGET_WAITKIND_SPURIOUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	_TARGET_SIGNAL_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_21:
	movl	-48(%rbp), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_store_waitstatus
LBB0_22:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Child process unexpectedly missing: %s.\n"

	.comm	_TARGET_WAITKIND_SIGNALLED,8,3  ## @TARGET_WAITKIND_SIGNALLED
	.comm	_TARGET_SIGNAL_UNKNOWN,8,3      ## @TARGET_SIGNAL_UNKNOWN
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_SIGTRAP,8,3                    ## @SIGTRAP
	.comm	_PTRACE_GETTRACESIG,4,2         ## @PTRACE_GETTRACESIG
	.comm	_SIGNEWTHREAD,4,2               ## @SIGNEWTHREAD
	.comm	_TARGET_WAITKIND_SPURIOUS,8,3   ## @TARGET_WAITKIND_SPURIOUS
	.comm	_TARGET_SIGNAL_0,8,3            ## @TARGET_SIGNAL_0
L_.str.1:                               ## @.str.1
	.asciz	"Signal for unknown thread was not SIGNEWTHREAD"

	.comm	_SIGTHREADEXIT,4,2              ## @SIGTHREADEXIT
	.comm	_PTRACE_CONT,4,2                ## @PTRACE_CONT
	.comm	_TARGET_WAITKIND_EXITED,8,3     ## @TARGET_WAITKIND_EXITED
	.comm	_TARGET_WAITKIND_STOPPED,8,3    ## @TARGET_WAITKIND_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_wait                     ; -- Begin function child_wait
	.p2align	2
_child_wait:                            ; @child_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x23, _EINTR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
Lloh4:
	adrp	x24, _inferior_ptid@GOTPAGE
Lloh5:
	ldr	x24, [x24, _inferior_ptid@GOTPAGEOFF]
Lloh6:
	adrp	x26, _SIGTRAP@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SIGTRAP@GOTPAGEOFF]
Lloh8:
	adrp	x25, _PTRACE_GETTRACESIG@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PTRACE_GETTRACESIG@GOTPAGEOFF]
Lloh10:
	adrp	x27, _SIGTHREADEXIT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _SIGTHREADEXIT@GOTPAGEOFF]
Lloh12:
	adrp	x28, _PTRACE_CONT@GOTPAGE
Lloh13:
	ldr	x28, [x28, _PTRACE_CONT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_set_sigint_trap
	add	x0, sp, #8
	bl	_wait
	mov	x20, x0
	ldr	w21, [x22]
	bl	_clear_sigint_trap
	cmn	w20, #1
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_PIDGET
	cmp	w20, w0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [sp, #8]
	ldr	w0, [x24]
	bl	_TIDGET
	cmp	x0, #0
	ccmp	w21, #0, #4, eq
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_BUILDPID
	mov	x20, x0
	cbnz	w21, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w20, [x24]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_PIDGET
	mov	x1, x21
	bl	_MERGEPID
	str	w0, [x24]
	bl	_add_thread
	mov	x0, x20
	mov	x1, x21
	bl	_BUILDPID
	mov	x20, x0
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	bl	_WSTOPSIG
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_in_thread_list
	cbz	x0, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	bl	_WSTOPSIG
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_in_thread_list
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [x25]
	mov	x0, x20
	bl	_PIDGET
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_ptrace
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [x28]
	mov	x0, x20
	bl	_PIDGET
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_ptrace
	b	LBB0_2
LBB0_16:
Lloh14:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_safe_strerror
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fprintf_unfiltered
Lloh19:
	adrp	x8, _TARGET_WAITKIND_SIGNALLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TARGET_WAITKIND_SIGNALLED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh22:
	adrp	x8, _TARGET_SIGNAL_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TARGET_SIGNAL_UNKNOWN@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w20, #-1
	b	LBB0_21
LBB0_17:
	ldr	w21, [x25]
	mov	x0, x20
	bl	_PIDGET
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_ptrace
Lloh25:
	adrp	x8, _SIGNEWTHREAD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGNEWTHREAD@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.18:
Lloh28:
	adrp	x8, _TARGET_WAITKIND_SPURIOUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TARGET_WAITKIND_SPURIOUS@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh31:
	adrp	x8, _TARGET_SIGNAL_0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TARGET_SIGNAL_0@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_21
LBB0_19:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_20:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_store_waitstatus
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Child process unexpectedly missing: %s.\n"

	.comm	_TARGET_WAITKIND_SIGNALLED,8,3  ; @TARGET_WAITKIND_SIGNALLED
	.comm	_TARGET_SIGNAL_UNKNOWN,8,3      ; @TARGET_SIGNAL_UNKNOWN
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_SIGTRAP,8,3                    ; @SIGTRAP
	.comm	_PTRACE_GETTRACESIG,4,2         ; @PTRACE_GETTRACESIG
	.comm	_SIGNEWTHREAD,4,2               ; @SIGNEWTHREAD
	.comm	_TARGET_WAITKIND_SPURIOUS,8,3   ; @TARGET_WAITKIND_SPURIOUS
	.comm	_TARGET_SIGNAL_0,8,3            ; @TARGET_SIGNAL_0
l_.str.1:                               ; @.str.1
	.asciz	"Signal for unknown thread was not SIGNEWTHREAD"

	.comm	_SIGTHREADEXIT,4,2              ; @SIGTHREADEXIT
	.comm	_PTRACE_CONT,4,2                ; @PTRACE_CONT
	.comm	_TARGET_WAITKIND_EXITED,8,3     ; @TARGET_WAITKIND_EXITED
	.comm	_TARGET_WAITKIND_STOPPED,8,3    ; @TARGET_WAITKIND_STOPPED
.subsections_via_symbols
