	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptrace_child
_ptrace_child:                          ## @ptrace_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_os_getpid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_getppid
	movl	%eax, %r14d
	movq	_SIGWINCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_change_sig
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	_PTRACE_TRACEME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_SIGKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kill
LBB0_3:
	movq	_SIGSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kill
	xorl	%eax, %eax
	callq	_os_getpid
	xorl	%ecx, %ecx
	cmpl	%r14d, %eax
	setne	%cl
	addl	%ecx, %ecx
	cmpl	%ebx, %eax
	movl	$1, %edi
	cmovnel	%ecx, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGWINCH,4,2                   ## @SIGWINCH
	.comm	_PTRACE_TRACEME,4,2             ## @PTRACE_TRACEME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptrace"

	.comm	_SIGKILL,4,2                    ## @SIGKILL
	.comm	_SIGSTOP,4,2                    ## @SIGSTOP
	.no_dead_strip	_ptrace_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptrace_child
_ptrace_child:                          ; @ptrace_child
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_os_getpid
	mov	x19, x0
	bl	_getppid
	mov	x20, x0
Lloh0:
	adrp	x8, _SIGWINCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGWINCH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_change_sig
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PTRACE_TRACEME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTRACE_TRACEME@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_ptrace
	tbz	x0, #63, LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh8:
	adrp	x8, _SIGKILL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGKILL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kill
LBB0_3:
Lloh11:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kill
	bl	_os_getpid
	cmp	w0, w20
	cset	w8, ne
	lsl	w8, w8, #1
	cmp	w0, w19
	csinc	w0, w8, wzr, ne
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGWINCH,4,2                   ; @SIGWINCH
	.comm	_PTRACE_TRACEME,4,2             ; @PTRACE_TRACEME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptrace"

	.comm	_SIGKILL,4,2                    ; @SIGKILL
	.comm	_SIGSTOP,4,2                    ; @SIGSTOP
	.no_dead_strip	_ptrace_child
.subsections_via_symbols
