	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update_kb              ## -- Begin function encoder_update_kb
	.p2align	4, 0x90
_encoder_update_kb:                     ## @encoder_update_kb
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.15:
	retq
LBB0_1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_layer@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%esi, %esi
	je	LBB0_7
## %bb.2:
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_KC_MEDIA_NEXT_TRACK@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	je	LBB0_6
	jmp	LBB0_12
LBB0_7:
	cmpl	$1, %ecx
	jne	LBB0_8
## %bb.9:
	movq	_KC_MEDIA_PREV_TRACK@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	je	LBB0_11
	jmp	LBB0_12
LBB0_3:
	movq	_KC_VOLU@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	jne	LBB0_12
LBB0_6:
	movq	_KC_PGDN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_KC_VOLD@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	jne	LBB0_12
LBB0_11:
	movq	_KC_PGUP@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_register_code
	movq	_MEDIA_KEY_DELAY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_timer_elapsed
	cmpq	(%r15), %rax
	jl	LBB0_13
## %bb.14:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unregister_code                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_layer,4,2                      ## @layer
	.comm	_KC_VOLU,4,2                    ## @KC_VOLU
	.comm	_KC_MEDIA_NEXT_TRACK,4,2        ## @KC_MEDIA_NEXT_TRACK
	.comm	_KC_PGDN,4,2                    ## @KC_PGDN
	.comm	_KC_VOLD,4,2                    ## @KC_VOLD
	.comm	_KC_MEDIA_PREV_TRACK,4,2        ## @KC_MEDIA_PREV_TRACK
	.comm	_KC_PGUP,4,2                    ## @KC_PGUP
	.comm	_MEDIA_KEY_DELAY,8,3            ## @MEDIA_KEY_DELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update_kb              ; -- Begin function encoder_update_kb
	.p2align	2
_encoder_update_kb:                     ; @encoder_update_kb
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	ret
LBB0_2:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _layer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _KC_VOLD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KC_VOLD@GOTPAGEOFF]
Lloh5:
	adrp	x10, _KC_MEDIA_PREV_TRACK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _KC_MEDIA_PREV_TRACK@GOTPAGEOFF]
	cmp	w8, #1
	csel	x9, x10, x9, eq
Lloh7:
	adrp	x10, _KC_PGUP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _KC_PGUP@GOTPAGEOFF]
	cmp	w8, #2
Lloh9:
	adrp	x11, _KC_VOLU@GOTPAGE
Lloh10:
	ldr	x11, [x11, _KC_VOLU@GOTPAGEOFF]
	csel	x9, x10, x9, eq
Lloh11:
	adrp	x10, _KC_MEDIA_NEXT_TRACK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _KC_MEDIA_NEXT_TRACK@GOTPAGEOFF]
	cmp	w8, #1
Lloh13:
	adrp	x12, _KC_PGDN@GOTPAGE
Lloh14:
	ldr	x12, [x12, _KC_PGDN@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	cmp	w8, #2
	csel	x8, x12, x10, eq
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	bl	_timer_read
	mov	x20, x0
	mov	x0, x19
	bl	_register_code
Lloh15:
	adrp	x21, _MEDIA_KEY_DELAY@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MEDIA_KEY_DELAY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_timer_elapsed
	ldr	x8, [x21]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_unregister_code
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_layer,4,2                      ; @layer
	.comm	_KC_VOLU,4,2                    ; @KC_VOLU
	.comm	_KC_MEDIA_NEXT_TRACK,4,2        ; @KC_MEDIA_NEXT_TRACK
	.comm	_KC_PGDN,4,2                    ; @KC_PGDN
	.comm	_KC_VOLD,4,2                    ; @KC_VOLD
	.comm	_KC_MEDIA_PREV_TRACK,4,2        ; @KC_MEDIA_PREV_TRACK
	.comm	_KC_PGUP,4,2                    ; @KC_PGUP
	.comm	_MEDIA_KEY_DELAY,8,3            ; @MEDIA_KEY_DELAY
.subsections_via_symbols
