	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lcdrate_set
_lcdrate_set:                           ## @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
	subq	$136, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorl	%eax, %eax
	cmpl	%edi, _lcdrate_set.old_pal(%rip)
	je	LBB0_2
## %bb.1:
	movl	%edi, _lcdrate_set.old_pal(%rip)
	movq	_pnd_script_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testl	%edi, %edi
	movl	$60, %eax
	movl	$50, %r8d
	cmovel	%eax, %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_do_system
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$136, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @lcdrate_set.old_pal
_lcdrate_set.old_pal:
	.long	4294967295                      ## 0xffffffff

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/op_lcdrate.sh %d"

	.comm	_pnd_script_base,8,3            ## @pnd_script_base
	.no_dead_strip	_lcdrate_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lcdrate_set
_lcdrate_set:                           ; @lcdrate_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	adrp	x8, _lcdrate_set.old_pal@PAGE
	ldr	w9, [x8, _lcdrate_set.old_pal@PAGEOFF]
	cmp	w9, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x9, _pnd_script_base@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pnd_script_base@GOTPAGEOFF]
	str	w0, [x8, _lcdrate_set.old_pal@PAGEOFF]
Lloh5:
	ldr	x3, [x9]
	mov	w8, #50
	mov	w9, #60
	cmp	w0, #0
	csel	w4, w9, w8, eq
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #128
	bl	_snprintf
	add	x0, sp, #8
	bl	_do_system
LBB0_3:
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @lcdrate_set.old_pal
_lcdrate_set.old_pal:
	.long	4294967295                      ; 0xffffffff

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/op_lcdrate.sh %d"

	.comm	_pnd_script_base,8,3            ; @pnd_script_base
	.no_dead_strip	_lcdrate_set
.subsections_via_symbols
