	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_child_status
_check_child_status:                    ## @check_child_status
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%edi, %r15d
	testl	%edi, %edi
	je	LBB0_1
LBB0_3:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%r12d, %ebx
	jle	LBB0_11
LBB0_5:
	cmpl	$126, %ebx
	je	LBB0_6
## %bb.7:
	cmpl	$127, %ebx
	jne	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_1:
	movl	%esi, %ebx
	movl	%esi, %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_WEXITSTATUS
	movl	%eax, %ebx
	cmpl	%r12d, %ebx
	jg	LBB0_5
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_10:
	callq	__
	xorl	%edi, %edi
	movl	%r15d, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_error
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exiterr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subsidiary program `%s' could not be invoked"

L_.str.1:                               ## @.str.1
	.asciz	"subsidiary program `%s' not found"

L_.str.2:                               ## @.str.2
	.asciz	"subsidiary program `%s' failed"

L_.str.3:                               ## @.str.3
	.asciz	"subsidiary program `%s' failed (exit status %d)"

	.no_dead_strip	_check_child_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_child_status
_check_child_status:                    ; @check_child_status
	.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, x3
	mov	x22, x2
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_1:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cmp	w21, w22
	b.le	LBB0_7
LBB0_2:
	cmp	w21, #126
	b.eq	LBB0_8
; %bb.3:
	cmp	w21, #127
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_5:
	mov	x21, x1
	mov	x0, x1
	bl	_WIFEXITED
	cbz	x0, LBB0_1
; %bb.6:
	mov	x0, x21
	bl	_WEXITSTATUS
	mov	x21, x0
	cmp	w21, w22
	b.gt	LBB0_2
LBB0_7:
	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
LBB0_8:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, l_.str.3@PAGE
Lloh11:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh12:
	adrp	x10, l_.str.2@PAGE
Lloh13:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w21, w8
	csel	x0, x10, x9, eq
LBB0_10:
	bl	__
	mov	x2, x0
	mov	w0, #0
	mov	x1, x20
	mov	x3, x19
	mov	x4, x21
	bl	_error
	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
	b	_exiterr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subsidiary program `%s' could not be invoked"

l_.str.1:                               ; @.str.1
	.asciz	"subsidiary program `%s' not found"

l_.str.2:                               ; @.str.2
	.asciz	"subsidiary program `%s' failed"

l_.str.3:                               ; @.str.3
	.asciz	"subsidiary program `%s' failed (exit status %d)"

	.no_dead_strip	_check_child_status
.subsections_via_symbols
