	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_maps
_read_maps:                             ## @read_maps
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%ecx, %rbx
	subq	%rax, %rbx
	callq	_spin_lock_irqsave
	movq	_CSR_SPEED_MAP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%eax, %ebx
	jge	LBB0_2
## %bb.1:
	addq	16(%r12), %rbx
	movq	_CSR_TOPOLOGY_MAP@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	jmp	LBB0_3
LBB0_2:
	movslq	%ebx, %rbx
	addq	8(%r12), %rbx
	subq	%rax, %rbx
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_REGISTER_BASE,4,2          ## @CSR_REGISTER_BASE
	.comm	_CSR_SPEED_MAP,4,2              ## @CSR_SPEED_MAP
	.comm	_CSR_TOPOLOGY_MAP,8,3           ## @CSR_TOPOLOGY_MAP
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.no_dead_strip	_read_maps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_maps
_read_maps:                             ; @read_maps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x4
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _CSR_REGISTER_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sxtw	x9, w3
	sub	x22, x9, x8
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _CSR_SPEED_MAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_SPEED_MAP@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _CSR_TOPOLOGY_MAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSR_TOPOLOGY_MAP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x22
	sub	x1, x8, x9
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #8]
	add	x9, x9, w22, sxtw
	sub	x1, x9, x8
LBB0_3:
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _RCODE_COMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCODE_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_REGISTER_BASE,4,2          ; @CSR_REGISTER_BASE
	.comm	_CSR_SPEED_MAP,4,2              ; @CSR_SPEED_MAP
	.comm	_CSR_TOPOLOGY_MAP,8,3           ; @CSR_TOPOLOGY_MAP
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.no_dead_strip	_read_maps
.subsections_via_symbols
