	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_encoder_clockwise       ## -- Begin function handle_encoder_clockwise
	.p2align	4, 0x90
_handle_encoder_clockwise:              ## @handle_encoder_clockwise
	.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	_encoder_mode@GOTPCREL(%rip), %rcx
	movl	$-129, %eax
	addl	(%rcx), %eax
	cmpl	$7, %eax
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_KC_WH_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_3:
	movq	_KC_MEDIA_NEXT_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_2:
	movq	_KC_VOLU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	movl	$1, %edi
	callq	_update_time_config
	movq	_queue_for_send@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_KC_BRIGHTNESS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_5:
	movq	_kb_backlight_config@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %eax
	leal	1(%rax), %edi
	movq	_BACKLIGHT_LEVELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %edi
	movl	%edi, 4(%rbx)
	callq	_backlight_set
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	je	LBB0_9
## %bb.6:
	movl	$1, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_encoder_mode,4,2               ## @encoder_mode
	.comm	_KC_VOLU,4,2                    ## @KC_VOLU
	.comm	_KC_MEDIA_NEXT_TRACK,4,2        ## @KC_MEDIA_NEXT_TRACK
	.comm	_KC_WH_D,4,2                    ## @KC_WH_D
	.comm	_kb_backlight_config,8,2        ## @kb_backlight_config
	.comm	_BACKLIGHT_LEVELS,4,2           ## @BACKLIGHT_LEVELS
	.comm	_KC_BRIGHTNESS_UP,4,2           ## @KC_BRIGHTNESS_UP
	.comm	_queue_for_send,4,2             ## @queue_for_send
	.comm	_ENC_CUSTOM_CW,4,2              ## @ENC_CUSTOM_CW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_encoder_clockwise       ; -- Begin function handle_encoder_clockwise
	.p2align	2
_handle_encoder_clockwise:              ; @handle_encoder_clockwise
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _encoder_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _encoder_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #129
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _KC_WH_D@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KC_WH_D@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x8, _KC_MEDIA_NEXT_TRACK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KC_MEDIA_NEXT_TRACK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_4:
Lloh11:
	adrp	x8, _KC_VOLU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KC_VOLU@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
	mov	w19, #1
	mov	w0, #1
	bl	_update_time_config
	mov	w0, #0
Lloh14:
	adrp	x8, _queue_for_send@GOTPAGE
Lloh15:
	ldr	x8, [x8, _queue_for_send@GOTPAGEOFF]
Lloh16:
	str	w19, [x8]
	b	LBB0_10
LBB0_6:
Lloh17:
	adrp	x8, _KC_BRIGHTNESS_UP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KC_BRIGHTNESS_UP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x19, _kb_backlight_config@GOTPAGE
Lloh21:
	ldr	x19, [x19, _kb_backlight_config@GOTPAGEOFF]
	ldr	w8, [x19, #4]
Lloh22:
	adrp	x9, _BACKLIGHT_LEVELS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BACKLIGHT_LEVELS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	csinc	w0, w9, w8, ge
	str	w0, [x19, #4]
	bl	_backlight_set
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_encoder_mode,4,2               ; @encoder_mode
	.comm	_KC_VOLU,4,2                    ; @KC_VOLU
	.comm	_KC_MEDIA_NEXT_TRACK,4,2        ; @KC_MEDIA_NEXT_TRACK
	.comm	_KC_WH_D,4,2                    ; @KC_WH_D
	.comm	_kb_backlight_config,8,2        ; @kb_backlight_config
	.comm	_BACKLIGHT_LEVELS,4,2           ; @BACKLIGHT_LEVELS
	.comm	_KC_BRIGHTNESS_UP,4,2           ; @KC_BRIGHTNESS_UP
	.comm	_queue_for_send,4,2             ; @queue_for_send
	.comm	_ENC_CUSTOM_CW,4,2              ; @ENC_CUSTOM_CW
.subsections_via_symbols
