	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_stop
_proc_stop:                             ## @proc_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_proc_getpid
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kill
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_proc_getpid
	cmpl	$-1, %ebx
	je	LBB0_1
## %bb.3:
	movq	_WSTOPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movl	-20(%rbp), %edi
	callq	_WIFSTOPPED
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.6:
	movl	-20(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINTFX
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_proc_getpid
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movl	%eax, %esi
	callq	_DPRINTF
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGSTOP,4,2                    ## @SIGSTOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kill %d"

	.comm	_WSTOPPED,4,2                   ## @WSTOPPED
L_.str.1:                               ## @.str.1
	.asciz	"waitpid %d"

L_.str.2:                               ## @.str.2
	.asciz	"waitpid: unexpected status 0x%x"

	.no_dead_strip	_proc_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_stop
_proc_stop:                             ; @proc_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_proc_getpid
Lloh0:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kill
	mov	x20, x0
	mov	x0, x19
	bl	_proc_getpid
	mov	x3, x0
	cmn	w20, #1
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _WSTOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WSTOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x3
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_WIFSTOPPED
	cbz	w0, LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x3
	bl	_DPRINTF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_proc_getpid
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	b	LBB0_7
LBB0_6:
	ldr	w1, [sp, #12]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTFX
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGSTOP,4,2                    ; @SIGSTOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kill %d"

	.comm	_WSTOPPED,4,2                   ; @WSTOPPED
l_.str.1:                               ; @.str.1
	.asciz	"waitpid %d"

l_.str.2:                               ; @.str.2
	.asciz	"waitpid: unexpected status 0x%x"

	.no_dead_strip	_proc_stop
.subsections_via_symbols
