	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update_user            ## -- Begin function encoder_update_user
	.p2align	4, 0x90
_encoder_update_user:                   ## @encoder_update_user
	.cfi_startproc
## %bb.0:
	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
	cmpl	$1, %edi
	je	LBB0_6
## %bb.1:
	testl	%edi, %edi
	jne	LBB0_9
## %bb.2:
	testl	%esi, %esi
	je	LBB0_5
## %bb.3:
	movq	_KC_VOLD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %r14d
	andl	$1, %r14d
	movl	%r14d, %ebx
	xorl	$1, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_uprintf
	movl	%ebx, %edi
	callq	_layer_on
	testb	$1, %r15b
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	callq	_layer_off
LBB0_8:
	testl	%r14d, %r14d
	jne	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_layer_off                      ## TAILCALL
LBB0_5:
	movq	_KC_VOLU@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tap_code                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KC_VOLD,4,2                    ## @KC_VOLD
	.comm	_KC_VOLU,4,2                    ## @KC_VOLU
	.comm	_layer_state,4,2                ## @layer_state
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update_user            ; -- Begin function encoder_update_user
	.p2align	2
_encoder_update_user:                   ; @encoder_update_user
	.cfi_startproc
; %bb.0:
	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
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w0, LBB0_7
; %bb.2:
	cbz	w1, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _KC_VOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KC_VOLD@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh2:
	adrp	x8, _layer_state@GOTPAGE
Lloh3:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	and	w20, w21, #0x1
	eor	w19, w20, #0x1
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_uprintf
	mov	x0, x19
	bl	_layer_on
	tbnz	w21, #0, LBB0_6
; %bb.5:
	mov	w0, #0
	bl	_layer_off
LBB0_6:
	cbnz	w20, LBB0_8
LBB0_7:
	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
	ret
LBB0_8:
	mov	w0, #1
	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	_layer_off
LBB0_9:
Lloh7:
	adrp	x8, _KC_VOLU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KC_VOLU@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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	_tap_code
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KC_VOLD,4,2                    ; @KC_VOLD
	.comm	_KC_VOLU,4,2                    ; @KC_VOLU
	.comm	_layer_state,4,2                ; @layer_state
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new: %d\n"

.subsections_via_symbols
