	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_tri_layer_state         ## -- Begin function update_tri_layer_state
	.p2align	4, 0x90
_update_tri_layer_state:                ## @update_tri_layer_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %r8
	movq	%rdx, %rax
	movq	%rsi, %rcx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rsi
	movl	$1, %edx
	movl	%eax, %ecx
	shlq	%cl, %rdx
	movl	$1, %eax
	movl	%r8d, %ecx
	shlq	%cl, %rax
	orl	%esi, %edx
	movl	%eax, %ecx
	orl	%edi, %ecx
	notl	%eax
	andl	%edi, %eax
	notl	%edi
	testl	%edi, %edx
	cmovel	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_tri_layer_state         ; -- Begin function update_tri_layer_state
	.p2align	2
_update_tri_layer_state:                ; @update_tri_layer_state
	.cfi_startproc
; %bb.0:
	mov	w8, #1
	lsl	x9, x8, x1
	lsl	x10, x8, x2
	orr	w9, w10, w9
	lsl	x8, x8, x3
	orr	w10, w8, w0
	bic	w8, w0, w8
	bics	wzr, w9, w0
	csel	w0, w10, w8, eq
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
