	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ram_timing_vals
_set_ram_timing_vals:                   ## @set_ram_timing_vals
	.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
	movl	%r9d, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%edi, %r12d
	movl	24(%rbp), %r13d
	movl	16(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$-2, %esi
	movl	$1, %edx
	callq	_TIMING_CHECK
	movl	%ebx, %edi
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movl	%r13d, %edi
	movl	$-1, %esi
	movl	$15, %edx
	callq	_TIMING_CHECK
	movl	$1, %edi
	callq	_spend_cycles
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$12, %eax
	movzwl	%ax, %eax
	andl	$15, %r14d
	shll	$8, %r14d
	orl	%eax, %r14d
	shll	$4, %r15d
	movzbl	%r15b, %eax
	orl	%r14d, %eax
	andl	$15, %r13d
	orl	%eax, %r13d
	movq	_memregs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, 28676(%rax)
	andl	$1, %r12d
	shll	$12, %r12d
	andl	$15, %ebx
	shll	$8, %ebx
	orl	%r12d, %ebx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shll	$4, %ecx
	movzbl	%cl, %ecx
	orl	%ebx, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	andl	$15, %edx
	addl	%edx, %ecx
	addl	$32768, %ecx                    ## imm = 0x8000
	movl	%ecx, 28680(%rax)
	movl	$131072, %edi                   ## imm = 0x20000
	callq	_spend_cycles
	leaq	L_str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_memregs,8,3                    ## @memregs
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"RAM timings set."

	.no_dead_strip	_set_ram_timing_vals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ram_timing_vals
_set_ram_timing_vals:                   ; @set_ram_timing_vals
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w1, #-2
	mov	w2, #1
	bl	_TIMING_CHECK
	mov	x0, x22
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	x0, x20
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	x0, x26
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	x0, x25
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	x0, x24
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	x0, x23
	mov	w1, #-1
	mov	w2, #15
	bl	_TIMING_CHECK
	mov	w0, #1
	bl	_spend_cycles
	ubfiz	w8, w26, #12, #4
	bfi	w8, w25, #8, #4
	bfi	w8, w24, #4, #4
	bfxil	w8, w23, #0, #4
Lloh0:
	adrp	x9, _memregs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _memregs@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #28676
	add	x9, x9, x10
	ubfiz	w10, w22, #8, #4
	bfi	w10, w21, #12, #1
	bfi	w10, w20, #4, #4
	bfxil	w10, w19, #0, #4
	orr	w10, w10, #0x8000
	stp	w8, w10, [x9]
	mov	w0, #131072
	bl	_spend_cycles
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_puts
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_memregs,8,3                    ; @memregs
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"RAM timings set."

	.no_dead_strip	_set_ram_timing_vals
.subsections_via_symbols
