	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r820t_read_cache_reg
_r820t_read_cache_reg:                  ## @r820t_read_cache_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_REG_SHADOW_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	js	LBB0_3
## %bb.1:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movl	%esi, %ecx
	movl	(%rax,%rcx,4), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SHADOW_START,8,3           ## @REG_SHADOW_START
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_r820t_read_cache_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r820t_read_cache_reg
_r820t_read_cache_reg:                  ; @r820t_read_cache_reg
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _REG_SHADOW_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SHADOW_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w8, w1, w8
	b.mi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _NUM_REGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
	ldr	x9, [x0]
	ldr	w0, [x9, w8, uxtw #2]
	ret
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SHADOW_START,8,3           ; @REG_SHADOW_START
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_r820t_read_cache_reg
.subsections_via_symbols
