	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_proc_wait_reply              ## -- Begin function S_proc_wait_reply
	.p2align	4, 0x90
_S_proc_wait_reply:                     ## @S_proc_wait_reply
	.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
	movq	%r9, %r12
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	_waiting_inf@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_safe_strerror
	movq	%rax, %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdx
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rcx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_inf_debug
	movq	_proc_wait_pid@GOTPCREL(%rip), %r13
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.5:
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpl	$0, (%rax)
	jne	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_inf_task_died_status
LBB0_8:
	movq	_proc_waits_pending@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movq	%rdx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	$0, (%r13)
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_inf_debug
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_17
## %bb.12:
	movq	(%r15), %r14
	movq	%rbx, %rdi
	callq	_safe_strerror
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_warning
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_inf_set_traced
	jmp	LBB0_17
LBB0_13:
	cmpq	%r12, (%r15)
	jne	LBB0_16
## %bb.14:
	leaq	24(%r15), %rdi
	movl	%r14d, %esi
	callq	_store_waitstatus
	movq	24(%r15), %rax
	movq	_TARGET_WAITKIND_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_inf_debug
	movl	$1, 12(%r15)
	jmp	LBB0_17
LBB0_16:
	movl	$1, 16(%r15)
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_waiting_inf,8,3                ## @waiting_inf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"err = %s, pid = %d, status = 0x%x, sigcode = %d"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_proc_wait_pid,8,3              ## @proc_wait_pid
	.comm	_proc_waits_pending,8,3         ## @proc_waits_pending
L_.str.2:                               ## @.str.2
	.asciz	"waits pending now: %d"

	.comm	_EINTR,8,3                      ## @EINTR
L_.str.3:                               ## @.str.3
	.asciz	"Can't wait for pid %d: %s"

	.comm	_TARGET_WAITKIND_STOPPED,8,3    ## @TARGET_WAITKIND_STOPPED
L_.str.4:                               ## @.str.4
	.asciz	"process has stopped itself"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_proc_wait_reply              ; -- Begin function S_proc_wait_reply
	.p2align	2
_S_proc_wait_reply:                     ; @S_proc_wait_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x5
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _waiting_inf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _waiting_inf@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_safe_strerror
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:
	stp	x20, x23, [sp, #16]
	stp	x0, x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_inf_debug
Lloh7:
	adrp	x23, _proc_wait_pid@GOTPAGE
Lloh8:
	ldr	x23, [x23, _proc_wait_pid@GOTPAGEOFF]
	cbz	x21, LBB0_8
; %bb.4:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_inf_task_died_status
LBB0_8:
Lloh9:
	adrp	x9, _proc_waits_pending@GOTPAGE
Lloh10:
	ldr	x9, [x9, _proc_waits_pending@GOTPAGEOFF]
	ldr	x8, [x9]
	subs	x8, x8, #1
	str	x8, [x9]
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [x23]
LBB0_10:
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_inf_debug
	cbz	x21, LBB0_13
; %bb.11:
Lloh13:
	adrp	x8, _EINTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.12:
	ldr	x20, [x19]
	mov	x0, x21
	bl	_safe_strerror
	mov	x2, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_warning
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_inf_set_traced
	b	LBB0_17
LBB0_13:
	ldr	x8, [x19]
	cmp	x8, x22
	b.ne	LBB0_16
; %bb.14:
	add	x0, x19, #24
	mov	x1, x20
	bl	_store_waitstatus
	ldr	x8, [x19, #24]
Lloh18:
	adrp	x9, _TARGET_WAITKIND_STOPPED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TARGET_WAITKIND_STOPPED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_inf_debug
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_17
LBB0_16:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_17:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_waiting_inf,8,3                ; @waiting_inf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"err = %s, pid = %d, status = 0x%x, sigcode = %d"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_proc_wait_pid,8,3              ; @proc_wait_pid
	.comm	_proc_waits_pending,8,3         ; @proc_waits_pending
l_.str.2:                               ; @.str.2
	.asciz	"waits pending now: %d"

	.comm	_EINTR,8,3                      ; @EINTR
l_.str.3:                               ; @.str.3
	.asciz	"Can't wait for pid %d: %s"

	.comm	_TARGET_WAITKIND_STOPPED,8,3    ; @TARGET_WAITKIND_STOPPED
l_.str.4:                               ; @.str.4
	.asciz	"process has stopped itself"

.subsections_via_symbols
