	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_ptraced_child
_start_ptraced_child:                   ## @start_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_fatal_perror
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	callq	_ptrace_child
LBB0_4:
	movq	_WUNTRACED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rsi
	movl	%r14d, %edi
	callq	_waitpid
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_CATCH_EINTR
	testl	%ebx, %ebx
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal_perror
LBB0_6:
	movl	-20(%rbp), %edi
	callq	_WIFSTOPPED
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	-20(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_8:
	movl	-20(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_fatal
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start_ptraced_child : fork failed"

	.comm	_WUNTRACED,4,2                  ## @WUNTRACED
L_.str.1:                               ## @.str.1
	.asciz	"check_ptrace : waitpid failed"

	.comm	_SIGSTOP,8,3                    ## @SIGSTOP
L_.str.2:                               ## @.str.2
	.asciz	"check_ptrace : expected SIGSTOP, got status = %d"

	.no_dead_strip	_start_ptraced_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_ptraced_child
_start_ptraced_child:                   ; @start_ptraced_child
	.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
	bl	_fork
	mov	x19, x0
	cbz	w0, LBB0_3
; %bb.1:
	tbz	w19, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_perror
	b	LBB0_4
LBB0_3:
	bl	_ptrace_child
LBB0_4:
Lloh2:
	adrp	x8, _WUNTRACED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WUNTRACED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_waitpid
	mov	x20, x0
	bl	_CATCH_EINTR
	tbz	w20, #31, LBB0_6
; %bb.5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal_perror
LBB0_6:
	ldr	w0, [sp, #12]
	bl	_WIFSTOPPED
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [sp, #12]
	bl	_WSTOPSIG
Lloh7:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
LBB0_8:
	ldr	w1, [sp, #12]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start_ptraced_child : fork failed"

	.comm	_WUNTRACED,4,2                  ; @WUNTRACED
l_.str.1:                               ; @.str.1
	.asciz	"check_ptrace : waitpid failed"

	.comm	_SIGSTOP,8,3                    ; @SIGSTOP
l_.str.2:                               ; @.str.2
	.asciz	"check_ptrace : expected SIGSTOP, got status = %d"

	.no_dead_strip	_start_ptraced_child
.subsections_via_symbols
