	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_result_to_str             ## -- Begin function wait_result_to_str
	.p2align	4, 0x90
_wait_result_to_str:                    ## @wait_result_to_str
	.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	%rbx
	subq	$520, %rsp                      ## imm = 0x208
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_WIFEXITED
	movl	%ebx, %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	callq	_WEXITSTATUS
	cmpl	$127, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$126, %eax
	jne	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_WTERMSIG
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_WTERMSIG
	movl	%eax, %edi
	callq	_pg_strsignal
	leaq	-544(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	__
	leaq	-544(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_WEXITSTATUS
	leaq	-544(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r14, %rdx
	movl	%eax, %ecx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	leaq	-544(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%rax, %rdx
	movl	%ebx, %ecx
LBB0_10:
	xorl	%eax, %eax
	callq	_snprintf
LBB0_11:
	leaq	-544(%rbp), %rdi
	callq	_pstrdup
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$520, %rsp                      ## imm = 0x208
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command not executable"

L_.str.1:                               ## @.str.1
	.asciz	"command not found"

L_.str.2:                               ## @.str.2
	.asciz	"child process exited with exit code %d"

L_.str.3:                               ## @.str.3
	.asciz	"child process was terminated by signal %d: %s"

L_.str.4:                               ## @.str.4
	.asciz	"child process exited with unrecognized status %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_result_to_str             ; -- Begin function wait_result_to_str
	.p2align	2
_wait_result_to_str:                    ; @wait_result_to_str
	.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
	sub	sp, sp, #544
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_WIFEXITED
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_WEXITSTATUS
	cmp	w0, #127
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #126
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_WIFSIGNALED
	cbz	x0, LBB0_10
; %bb.5:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x19
	bl	_WTERMSIG
	mov	x21, x0
	mov	x0, x19
	bl	_WTERMSIG
	bl	_pg_strsignal
	stp	x21, x0, [sp]
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	__
	mov	x2, x0
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x19
	bl	_WEXITSTATUS
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
LBB0_9:
	add	x0, sp, #24
	mov	w1, #512
	mov	x2, x20
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x2, x0
	str	x19, [sp]
LBB0_11:
	add	x0, sp, #24
	mov	w1, #512
LBB0_12:
	bl	_snprintf
	add	x0, sp, #24
	bl	_pstrdup
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #544
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command not executable"

l_.str.1:                               ; @.str.1
	.asciz	"command not found"

l_.str.2:                               ; @.str.2
	.asciz	"child process exited with exit code %d"

l_.str.3:                               ; @.str.3
	.asciz	"child process was terminated by signal %d: %s"

l_.str.4:                               ; @.str.4
	.asciz	"child process exited with unrecognized status %d"

.subsections_via_symbols
