	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_twoproc_child
_wait_twoproc_child:                    ## @wait_twoproc_child
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_TEST_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ksem_open
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-4(%rbp), %edi
	callq	_ksem_wait
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	-4(%rbp), %edi
	callq	_ksem_close
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	jmp	LBB0_7
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	jmp	LBB0_7
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edi
LBB0_7:
	callq	_CSTAT
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEST_PATH,4,2                  ## @TEST_PATH
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_wait_twoproc_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_twoproc_child
_wait_twoproc_child:                    ; @wait_twoproc_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TEST_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEST_PATH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x0, x29, #4
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_ksem_open
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldur	w0, [x29, #-4]
	bl	_ksem_wait
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldur	w0, [x29, #-4]
	bl	_ksem_close
	tbnz	x0, #63, LBB0_6
; %bb.3:
	mov	w0, #0
	mov	w1, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #1
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #2
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #3
LBB0_7:
	bl	_CSTAT
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TEST_PATH,4,2                  ; @TEST_PATH
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_wait_twoproc_child
.subsections_via_symbols
