	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmsp2_lcdrate_set
_mmsp2_lcdrate_set:                     ## @mmsp2_lcdrate_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_memregs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testb	$1, 20481(%rax)
	jne	LBB0_2
## %bb.1:
	testl	%edi, %edi
	movl	$120, %eax
	movl	$100, %esi
	cmovel	%eax, %esi
	leaq	L_.str(%rip), %rdi
	movq	_lcd_rate_100@GOTPCREL(%rip), %rbx
	cmoveq	_lcd_rate_120@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	(%rbx), %edi
	callq	_set_reg_setting
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memregs,8,3                    ## @memregs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting custom LCD refresh (%d Hz)... "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_lcd_rate_100,4,2               ## @lcd_rate_100
	.comm	_lcd_rate_120,4,2               ## @lcd_rate_120
L_str:                                  ## @str
	.asciz	"done."

	.no_dead_strip	_mmsp2_lcdrate_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmsp2_lcdrate_set
_mmsp2_lcdrate_set:                     ; @mmsp2_lcdrate_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _memregs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _memregs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #20481
	ldrb	w8, [x8, x9]
	tbnz	w8, #0, LBB0_2
; %bb.1:
	cmp	w0, #0
	mov	w8, #100
	mov	w9, #120
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x8, _lcd_rate_100@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lcd_rate_100@GOTPAGEOFF]
Lloh7:
	adrp	x9, _lcd_rate_120@GOTPAGE
Lloh8:
	ldr	x9, [x9, _lcd_rate_120@GOTPAGEOFF]
	csel	x19, x9, x8, eq
	bl	_printf
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_fflush
	ldr	w0, [x19]
	bl	_set_reg_setting
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_memregs,8,3                    ; @memregs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting custom LCD refresh (%d Hz)... "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_lcd_rate_100,4,2               ; @lcd_rate_100
	.comm	_lcd_rate_120,4,2               ; @lcd_rate_120
l_str:                                  ; @str
	.asciz	"done."

	.no_dead_strip	_mmsp2_lcdrate_set
.subsections_via_symbols
