	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_getpath
_proc_getpath:                          ## @proc_getpath
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	-1(%rsi,%rax), %r13
	movb	$0, -1(%rsi,%rax)
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)
	cmpq	_proc_root@GOTPCREL(%rip), %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_proc_root@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r12
	movq	_MAX_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_proc_entry_getname
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	1(%rax), %rdx
	subq	%rdx, %r13
	addq	%rax, %r15
	incq	%r15
	movb	$47, (%r13)
	leaq	1(%r13), %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r12, %rsp
	cmpq	%r14, -56(%rbp)
	jne	LBB0_3
## %bb.4:
	incq	%r15
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r15d
LBB0_5:
	movq	%rsi, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_memmove
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_proc_root,8,3                  ## @proc_root
	.comm	_MAX_NAME,4,2                   ## @MAX_NAME
	.no_dead_strip	_proc_getpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_getpath
_proc_getpath:                          ; @proc_getpath
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x20, x1, x8
	strb	wzr, [x20, #-1]!
	ldr	x8, [x0]
	stur	x8, [x29, #-80]
Lloh6:
	adrp	x22, _proc_root@GOTPAGE
Lloh7:
	ldr	x22, [x22, _proc_root@GOTPAGEOFF]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.1:
	mov	x23, #0
Lloh8:
	adrp	x24, _MAX_NAME@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MAX_NAME@GOTPAGEOFF]
	mov	w25, #47
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, sp
	ldr	w8, [x24]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	sub	x0, x29, #80
	mov	x1, x21
	bl	_proc_entry_getname
	mov	x0, x21
	bl	_strlen
	add	w8, w0, #1
	sxtw	x2, w8
	sub	x20, x20, x2
	add	x23, x23, x2
	mov	x0, x20
	strb	w25, [x0], #1
	mov	x1, x21
	bl	_memcpy
	ldur	x8, [x29, #-80]
	ldr	x8, [x8]
	stur	x8, [x29, #-80]
	mov	sp, x26
	cmp	x8, x22
	b.ne	LBB0_2
; %bb.3:
	add	x2, x23, #1
	b	LBB0_5
LBB0_4:
	mov	w2, #1
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_memmove
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_proc_root,8,3                  ; @proc_root
	.comm	_MAX_NAME,4,2                   ; @MAX_NAME
	.no_dead_strip	_proc_getpath
.subsections_via_symbols
