	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stop_ptraced_child
_stop_ptraced_child:                    ## @stop_ptraced_child
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_PTRACE_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	-36(%rbp), %rsi
	xorl	%r12d, %r12d
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_waitpid
	movl	%eax, %edi
	callq	_CATCH_EINTR
	movl	-36(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	-36(%rbp), %edi
	callq	_WEXITSTATUS
	cmpl	%r15d, %eax
	je	LBB0_7
LBB0_4:
	movl	-36(%rbp), %edi
	callq	_WEXITSTATUS
	movl	%eax, %ebx
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_non_fatal
LBB0_6:
	movl	-36(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_non_fatal
	movl	$-1, %r12d
	testl	%r14d, %r14d
	jne	LBB0_8
LBB0_7:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movl	$-1, %r12d
	jmp	LBB0_7
LBB0_8:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRACE_CONT,4,2                ## @PTRACE_CONT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop_ptraced_child : ptrace failed"

L_.str.1:                               ## @.str.1
	.asciz	"check_ptrace : child exited with status 2. \nDisabling SYSEMU support.\n"

L_.str.2:                               ## @.str.2
	.asciz	"check_ptrace : child exited with exitcode %d, while expecting %d; status 0x%x\n"

	.no_dead_strip	_stop_ptraced_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stop_ptraced_child
_stop_ptraced_child:                    ; @stop_ptraced_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PTRACE_CONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRACE_CONT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_9
; %bb.1:
	add	x1, sp, #28
	mov	x0, x21
	mov	w2, #0
	bl	_waitpid
	bl	_CATCH_EINTR
	ldr	w0, [sp, #28]
	bl	_WIFEXITED
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #28]
	bl	_WEXITSTATUS
	cmp	w0, w20
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	w0, [sp, #28]
	bl	_WEXITSTATUS
	mov	x21, x0
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_non_fatal
LBB0_6:
	ldr	w8, [sp, #28]
	stp	x20, x8, [sp, #8]
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_non_fatal
	cbnz	w19, LBB0_10
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_7
LBB0_10:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRACE_CONT,4,2                ; @PTRACE_CONT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop_ptraced_child : ptrace failed"

l_.str.1:                               ; @.str.1
	.asciz	"check_ptrace : child exited with status 2. \nDisabling SYSEMU support.\n"

l_.str.2:                               ; @.str.2
	.asciz	"check_ptrace : child exited with exitcode %d, while expecting %d; status 0x%x\n"

	.no_dead_strip	_stop_ptraced_child
.subsections_via_symbols
