	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_or_whine
_wait_or_whine:                         ## @wait_or_whine
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rsi
	xorl	%edx, %edx
	callq	_waitpid
	testq	%rax, %rax
	jns	LBB0_5
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	leaq	-36(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	(%r12), %rdi
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	testq	%rax, %rax
	js	LBB0_2
LBB0_5:
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.8:
	movl	-36(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ERR_RUN_COMMAND_WAITPID_SIGNAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_ERR_RUN_COMMAND_WAITPID_WRONG_PID@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
	movq	_ERR_RUN_COMMAND_WAITPID@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_10:
	movl	-36(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	-36(%rbp), %edi
	callq	_WEXITSTATUS
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	cmpl	$127, %eax
	jne	LBB0_15
## %bb.14:
	movq	_ERR_RUN_COMMAND_EXEC@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_11:
	movq	_ERR_RUN_COMMAND_WAITPID_NOEXIT@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	negl	%eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waitpid failed (%s)"

	.comm	_ERR_RUN_COMMAND_WAITPID,4,2    ## @ERR_RUN_COMMAND_WAITPID
	.comm	_ERR_RUN_COMMAND_WAITPID_WRONG_PID,4,2 ## @ERR_RUN_COMMAND_WAITPID_WRONG_PID
	.comm	_ERR_RUN_COMMAND_WAITPID_SIGNAL,4,2 ## @ERR_RUN_COMMAND_WAITPID_SIGNAL
	.comm	_ERR_RUN_COMMAND_WAITPID_NOEXIT,4,2 ## @ERR_RUN_COMMAND_WAITPID_NOEXIT
	.comm	_ERR_RUN_COMMAND_EXEC,4,2       ## @ERR_RUN_COMMAND_EXEC
	.no_dead_strip	_wait_or_whine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_or_whine
_wait_or_whine:                         ; @wait_or_whine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	tbz	x0, #63, LBB0_4
; %bb.1:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x21, _EINTR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_waitpid
	tbnz	x0, #63, LBB0_2
LBB0_4:
	cmp	x0, x19
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_WIFSIGNALED
	cbz	x0, LBB0_9
; %bb.6:
Lloh4:
	adrp	x8, _ERR_RUN_COMMAND_WAITPID_SIGNAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_RUN_COMMAND_WAITPID_SIGNAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
Lloh6:
	adrp	x8, _ERR_RUN_COMMAND_WAITPID_WRONG_PID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_RUN_COMMAND_WAITPID_WRONG_PID@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	bl	_strerror
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
Lloh10:
	adrp	x8, _ERR_RUN_COMMAND_WAITPID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_RUN_COMMAND_WAITPID@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	w0, LBB0_13
; %bb.10:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	cbz	w0, LBB0_15
; %bb.11:
	cmp	w0, #127
	b.ne	LBB0_16
; %bb.12:
Lloh12:
	adrp	x8, _ERR_RUN_COMMAND_EXEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_RUN_COMMAND_EXEC@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x8, _ERR_RUN_COMMAND_WAITPID_NOEXIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_RUN_COMMAND_WAITPID_NOEXIT@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	neg	w0, w0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waitpid failed (%s)"

	.comm	_ERR_RUN_COMMAND_WAITPID,4,2    ; @ERR_RUN_COMMAND_WAITPID
	.comm	_ERR_RUN_COMMAND_WAITPID_WRONG_PID,4,2 ; @ERR_RUN_COMMAND_WAITPID_WRONG_PID
	.comm	_ERR_RUN_COMMAND_WAITPID_SIGNAL,4,2 ; @ERR_RUN_COMMAND_WAITPID_SIGNAL
	.comm	_ERR_RUN_COMMAND_WAITPID_NOEXIT,4,2 ; @ERR_RUN_COMMAND_WAITPID_NOEXIT
	.comm	_ERR_RUN_COMMAND_EXEC,4,2       ; @ERR_RUN_COMMAND_EXEC
	.no_dead_strip	_wait_or_whine
.subsections_via_symbols
