	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_read                      ## -- Begin function proc_read
	.p2align	4, 0x90
_proc_read:                             ## @proc_read
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_PIOD_READ_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	%rdx, -48(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movq	_PT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_proc_getpid
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	-48(%rbp), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIOD_READ_D,4,2                ## @PIOD_READ_D
	.comm	_PT_IO,4,2                      ## @PT_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_read                      ; -- Begin function proc_read
	.p2align	2
_proc_read:                             ; @proc_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PIOD_READ_D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIOD_READ_D@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	stp	x3, x1, [sp, #8]
	str	x2, [sp]
Lloh3:
	adrp	x8, _PT_IO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PT_IO@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_proc_getpid
	mov	x1, x0
	mov	x2, sp
	mov	x0, x19
	mov	w3, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [sp]
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIOD_READ_D,4,2                ; @PIOD_READ_D
	.comm	_PT_IO,4,2                      ; @PT_IO
.subsections_via_symbols
