	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attach_child
_attach_child:                          ## @attach_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PT_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	-12(%rbp), %edi
	callq	_WIFSTOPPED
	movl	%eax, %edi
	callq	_ATF_REQUIRE
	movl	-12(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ATF_REQUIRE
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_ATTACH,4,2                  ## @PT_ATTACH
	.comm	_SIGSTOP,8,3                    ## @SIGSTOP
	.no_dead_strip	_attach_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attach_child
_attach_child:                          ; @attach_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
	mov	x19, x0
Lloh0:
	adrp	x8, _PT_ATTACH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_ATTACH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	mov	w3, #0
	bl	_ptrace
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x19
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #12]
	bl	_WIFSTOPPED
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #12]
	bl	_WSTOPSIG
Lloh3:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_ATF_REQUIRE
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_ATTACH,4,2                  ; @PT_ATTACH
	.comm	_SIGSTOP,8,3                    ; @SIGSTOP
	.no_dead_strip	_attach_child
.subsections_via_symbols
