	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function procstat_getpathname_core
_procstat_getpathname_core:             ## @procstat_getpathname_core
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	leaq	-36(%rbp), %rsi
	callq	_kinfo_getfile_core
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	-36(%rbp), %eax
	movl	$-1, %r15d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	_KF_FD_TYPE_TEXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx,%rdx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_5:
	movl	8(%rbx,%rdx), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_strncpy
	xorl	%r15d, %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KF_FD_TYPE_TEXT,8,3            ## @KF_FD_TYPE_TEXT
	.no_dead_strip	_procstat_getpathname_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function procstat_getpathname_core
_procstat_getpathname_core:             ; @procstat_getpathname_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	add	x1, sp, #12
	bl	_kinfo_getfile_core
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _KF_FD_TYPE_TEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KF_FD_TYPE_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	add	x9, x19, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x10
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w20, #-1
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_9
LBB0_7:
	ldr	w1, [x9]
	mov	x0, x21
	mov	x2, x20
	bl	_strncpy
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_free
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KF_FD_TYPE_TEXT,8,3            ; @KF_FD_TYPE_TEXT
	.no_dead_strip	_procstat_getpathname_core
.subsections_via_symbols
