	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcGetIndexByProcessId        ## -- Begin function ProcGetIndexByProcessId
	.p2align	4, 0x90
_ProcGetIndexByProcessId:               ## @ProcGetIndexByProcessId
	.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	%rdi, %r14
	movq	_hProcessPageListCtrl@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ListView_GetItemCount
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	movq	_LVIF_PARAM@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	%ebx, -64(%rbp)
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_ListView_GetItem
	movq	-56(%rbp), %rax
	cmpq	%r14, (%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r12), %edi
	callq	_ListView_GetItemCount
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hProcessPageListCtrl,4,2       ## @hProcessPageListCtrl
	.comm	_LVIF_PARAM,4,2                 ## @LVIF_PARAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcGetIndexByProcessId        ; -- Begin function ProcGetIndexByProcessId
	.p2align	2
_ProcGetIndexByProcessId:               ; @ProcGetIndexByProcessId
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x21, _hProcessPageListCtrl@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hProcessPageListCtrl@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ListView_GetItemCount
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #0
Lloh2:
	adrp	x22, _LVIF_PARAM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LVIF_PARAM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x22]
	str	w8, [sp, #24]
	str	w20, [sp, #8]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_ListView_GetItem
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	ldr	w0, [x21]
	bl	_ListView_GetItemCount
	cmp	w20, w0
	b.lt	LBB0_2
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_hProcessPageListCtrl,4,2       ; @hProcessPageListCtrl
	.comm	_LVIF_PARAM,4,2                 ; @LVIF_PARAM
.subsections_via_symbols
