	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_updateLayerState               ## -- Begin function updateLayerState
	.p2align	4, 0x90
_updateLayerState:                      ## @updateLayerState
	.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
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edi
	jne	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_timer_read
	movq	_fnTimer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FN_LAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_on
	movq	_isFn@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movl	$1, %ebx
	cmpl	$128, %edi
	jne	LBB0_10
## %bb.4:
	movq	_FN_LAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_off
	movq	_didFn@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_activateRelativity
LBB0_6:
	movl	$0, (%rbx)
	movq	_isFn@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_isFn@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_didFn@GOTPCREL(%rip), %rax
LBB0_9:
	movl	$1, (%rax)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fnTimer,4,2                    ## @fnTimer
	.comm	_FN_LAYER,4,2                   ## @FN_LAYER
	.comm	_isFn,4,2                       ## @isFn
	.comm	_didFn,4,2                      ## @didFn
	.comm	_fnTimeout,4,2                  ## @fnTimeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_updateLayerState               ; -- Begin function updateLayerState
	.p2align	2
_updateLayerState:                      ; @updateLayerState
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.2:
	bl	_timer_read
Lloh0:
	adrp	x8, _fnTimer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fnTimer@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _FN_LAYER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FN_LAYER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_layer_on
	mov	w0, #0
Lloh6:
	adrp	x8, _isFn@GOTPAGE
Lloh7:
	ldr	x8, [x8, _isFn@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
	b	LBB0_10
LBB0_3:
	cmp	w0, #128
	b.ne	LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _FN_LAYER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FN_LAYER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_layer_off
Lloh12:
	adrp	x19, _didFn@GOTPAGE
Lloh13:
	ldr	x19, [x19, _didFn@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
	bl	_activateRelativity
LBB0_6:
	mov	w0, #0
	str	wzr, [x19]
Lloh14:
	adrp	x8, _isFn@GOTPAGE
Lloh15:
	ldr	x8, [x8, _isFn@GOTPAGEOFF]
Lloh16:
	str	wzr, [x8]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _isFn@GOTPAGE
Lloh18:
	ldr	x8, [x8, _isFn@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	w0, #1
	cbz	w8, LBB0_10
; %bb.8:
Lloh20:
	adrp	x8, _didFn@GOTPAGE
Lloh21:
	ldr	x8, [x8, _didFn@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_fnTimer,4,2                    ; @fnTimer
	.comm	_FN_LAYER,4,2                   ; @FN_LAYER
	.comm	_isFn,4,2                       ; @isFn
	.comm	_didFn,4,2                      ; @didFn
	.comm	_fnTimeout,4,2                  ; @fnTimeout
.subsections_via_symbols
