	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pre_encoder_mode_change        ## -- Begin function pre_encoder_mode_change
	.p2align	4, 0x90
_pre_encoder_mode_change:               ## @pre_encoder_mode_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_encoder_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENC_MODE_CLOCK_SET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_year_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_month_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	_day_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movq	_hour_config@GOTPCREL(%rip), %rax
	imull	$60, (%rax), %eax
	movq	_minute_config@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	imull	$60000, %eax, %eax              ## imm = 0xEA60
	movl	%eax, -16(%rbp)
	movq	_RTCD1@GOTPCREL(%rip), %rdi
	leaq	-16(%rbp), %rsi
	callq	_rtcSetTime
	jmp	LBB0_3
LBB0_2:
	movq	_ENC_MODE_BACKLIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	jmp	_save_backlight_config_to_eeprom ## TAILCALL
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_encoder_mode,8,3               ## @encoder_mode
	.comm	_ENC_MODE_CLOCK_SET,8,3         ## @ENC_MODE_CLOCK_SET
	.comm	_year_config,4,2                ## @year_config
	.comm	_month_config,4,2               ## @month_config
	.comm	_day_config,4,2                 ## @day_config
	.comm	_hour_config,4,2                ## @hour_config
	.comm	_minute_config,4,2              ## @minute_config
	.comm	_RTCD1,4,2                      ## @RTCD1
	.comm	_ENC_MODE_BACKLIGHT,8,3         ## @ENC_MODE_BACKLIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pre_encoder_mode_change        ; -- Begin function pre_encoder_mode_change
	.p2align	2
_pre_encoder_mode_change:               ; @pre_encoder_mode_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _encoder_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _encoder_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ENC_MODE_CLOCK_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENC_MODE_CLOCK_SET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _year_config@GOTPAGE
Lloh7:
	ldr	x8, [x8, _year_config@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _hour_config@GOTPAGE
Lloh10:
	ldr	x9, [x9, _hour_config@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	w10, #60
Lloh12:
	adrp	x11, _minute_config@GOTPAGE
Lloh13:
	ldr	x11, [x11, _minute_config@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	madd	w9, w9, w10, w11
Lloh15:
	adrp	x10, _month_config@GOTPAGE
Lloh16:
	ldr	x10, [x10, _month_config@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _day_config@GOTPAGE
Lloh19:
	ldr	x11, [x11, _day_config@GOTPAGEOFF]
	stp	w10, w8, [sp, #8]
Lloh20:
	ldr	w8, [x11]
	mov	w10, #60000
	mul	w9, w9, w10
	stp	w9, w8, [sp]
Lloh21:
	adrp	x0, _RTCD1@GOTPAGE
Lloh22:
	ldr	x0, [x0, _RTCD1@GOTPAGEOFF]
	mov	x1, sp
	bl	_rtcSetTime
	b	LBB0_4
LBB0_2:
Lloh23:
	adrp	x9, _ENC_MODE_BACKLIGHT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ENC_MODE_BACKLIGHT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_save_backlight_config_to_eeprom
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_encoder_mode,8,3               ; @encoder_mode
	.comm	_ENC_MODE_CLOCK_SET,8,3         ; @ENC_MODE_CLOCK_SET
	.comm	_year_config,4,2                ; @year_config
	.comm	_month_config,4,2               ; @month_config
	.comm	_day_config,4,2                 ; @day_config
	.comm	_hour_config,4,2                ; @hour_config
	.comm	_minute_config,4,2              ; @minute_config
	.comm	_RTCD1,4,2                      ; @RTCD1
	.comm	_ENC_MODE_BACKLIGHT,8,3         ; @ENC_MODE_BACKLIGHT
.subsections_via_symbols
