	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_ramcfg_index            ## -- Begin function nvbios_ramcfg_index
	.p2align	4, 0x90
_nvbios_ramcfg_index:                   ## @nvbios_ramcfg_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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	callq	_nvbios_ramcfg_strap
	movl	%eax, %r14d
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$77, %esi
	callq	_bit_entry
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	xorl	%eax, %eax
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.2:
	cmpl	$5, %ecx
	jl	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd16
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
LBB0_4:
	cmpl	$2, %edx
	jne	LBB0_10
## %bb.5:
	cmpl	$3, %ecx
	jl	LBB0_10
## %bb.6:
	cmpl	$7, %ecx
	jb	LBB0_9
## %bb.7:
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-24(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nvbios_M0203Em
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	-24(%rbp), %r14d
	jmp	LBB0_12
LBB0_9:
	movq	-32(%rbp), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd16
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	addl	%r14d, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvbios_rd08
	movl	%eax, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_ramcfg_index            ; -- Begin function nvbios_ramcfg_index
	.p2align	2
_nvbios_ramcfg_index:                   ; @nvbios_ramcfg_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_nvbios_ramcfg_strap
	mov	x19, x0
	add	x2, sp, #16
	mov	x0, x20
	mov	w1, #77
	bl	_bit_entry
	cbnz	w0, LBB0_11
; %bb.1:
	ldp	w9, w8, [sp, #16]
	cmp	w9, #1
	ccmp	w8, #5, #8, eq
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [sp, #24]
	add	x1, x8, #3
	mov	x0, x20
	bl	_nvbios_rd16
	ldp	w9, w8, [sp, #16]
LBB0_4:
	cmp	w9, #2
	ccmp	w8, #3, #8, eq
	b.lt	LBB0_9
; %bb.5:
	cmp	w8, #7
	b.lo	LBB0_8
; %bb.6:
	add	x2, sp, #4
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_nvbios_M0203Em
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w19, [sp, #8]
	b	LBB0_11
LBB0_8:
	ldr	x8, [sp, #24]
	add	x1, x8, #1
	mov	x0, x20
	bl	_nvbios_rd16
LBB0_9:
	cbz	w0, LBB0_11
; %bb.10:
	add	w1, w0, w19
	mov	x0, x20
	bl	_nvbios_rd08
	mov	x19, x0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
