	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procfs_pid_slurp               ## -- Begin function procfs_pid_slurp
	.p2align	4, 0x90
_procfs_pid_slurp:                      ## @procfs_pid_slurp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movl	%edi, %esi
	leaq	L_.str(%rip), %rdi
	callq	_r_str_newf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_r_sandbox_open
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_read
                                        ## kill: def $eax killed $eax def $rax
	movb	$0, -1(%r12,%r14)
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	decl	%eax
	movb	$0, (%r14,%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_3:
	movl	$-1, %r14d
	jmp	LBB0_9
LBB0_6:
	movl	$-1, %r14d
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_r_sys_perror
LBB0_8:
	movl	%r15d, %edi
	callq	_close
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/%d/%s"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"read"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procfs_pid_slurp               ; -- Begin function procfs_pid_slurp
	.p2align	2
_procfs_pid_slurp:                      ; @procfs_pid_slurp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x3
	mov	x21, x2
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_str_newf
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_r_sandbox_open
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x1, x21
	mov	x2, x22
	bl	_read
	add	x8, x22, x21
	sturb	wzr, [x8, #-1]
	subs	w8, w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #0
	strb	wzr, [x21, w8, uxtw]
	b	LBB0_9
LBB0_4:
	mov	w22, #-1
	b	LBB0_11
LBB0_5:
	mov	w22, #-1
	b	LBB0_10
LBB0_6:
	tbz	w0, #31, LBB0_8
; %bb.7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_sys_perror
LBB0_8:
	mov	w22, #-1
LBB0_9:
	mov	x0, x20
	bl	_close
LBB0_10:
	mov	x0, x19
	bl	_free
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/%d/%s"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"read"

.subsections_via_symbols
