	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cudbg_meminfo_get_mem_index
_cudbg_meminfo_get_mem_index:           ## @cudbg_meminfo_get_mem_index
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_14
## %bb.1:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_MC1_FLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movl	(%rdi), %edi
	callq	_is_t5
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_MC_FLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_HMA_FLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_EDC1_FLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EDC0_FLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_MC0_FLAG@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.10:
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi,%rdx,4)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_11
LBB0_14:
	movq	_CUDBG_STATUS_ENTITY_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_12:
	movl	%edx, (%r14)
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EDC0_FLAG,4,2                  ## @EDC0_FLAG
	.comm	_EDC1_FLAG,4,2                  ## @EDC1_FLAG
	.comm	_MC0_FLAG,4,2                   ## @MC0_FLAG
	.comm	_MC_FLAG,4,2                    ## @MC_FLAG
	.comm	_MC1_FLAG,4,2                   ## @MC1_FLAG
	.comm	_HMA_FLAG,4,2                   ## @HMA_FLAG
	.comm	_CUDBG_STATUS_ENTITY_NOT_FOUND,4,2 ## @CUDBG_STATUS_ENTITY_NOT_FOUND
	.no_dead_strip	_cudbg_meminfo_get_mem_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cudbg_meminfo_get_mem_index
_cudbg_meminfo_get_mem_index:           ; @cudbg_meminfo_get_mem_index
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_11
; %bb.1:
	mov	x19, x3
	mov	x20, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _MC1_FLAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MC1_FLAG@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	ldr	w0, [x0]
	bl	_is_t5
Lloh4:
	adrp	x8, _MC0_FLAG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MC0_FLAG@GOTPAGEOFF]
Lloh6:
	adrp	x9, _MC_FLAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MC_FLAG@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _HMA_FLAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HMA_FLAG@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _EDC1_FLAG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EDC1_FLAG@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EDC0_FLAG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EDC0_FLAG@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x10, #0
	ldr	x11, [x20, #8]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w8
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_11:
Lloh14:
	adrp	x8, _CUDBG_STATUS_ENTITY_NOT_FOUND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CUDBG_STATUS_ENTITY_NOT_FOUND@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	str	w10, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EDC0_FLAG,4,2                  ; @EDC0_FLAG
	.comm	_EDC1_FLAG,4,2                  ; @EDC1_FLAG
	.comm	_MC0_FLAG,4,2                   ; @MC0_FLAG
	.comm	_MC_FLAG,4,2                    ; @MC_FLAG
	.comm	_MC1_FLAG,4,2                   ; @MC1_FLAG
	.comm	_HMA_FLAG,4,2                   ; @HMA_FLAG
	.comm	_CUDBG_STATUS_ENTITY_NOT_FOUND,4,2 ; @CUDBG_STATUS_ENTITY_NOT_FOUND
	.no_dead_strip	_cudbg_meminfo_get_mem_index
.subsections_via_symbols
