	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_tap_tog                ## -- Begin function process_tap_tog
	.p2align	4, 0x90
_process_tap_tog:                       ## @process_tap_tog
	.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	_tap_tog_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	_tap_tog_layer_toggled_on@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_layer_clear
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	_tap_tog_layer_other_key_pressed@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_5
## %bb.8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_layer_clear                    ## TAILCALL
LBB0_3:
	callq	_layer_on
	movq	_tap_tog_layer_other_key_pressed@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_7
LBB0_5:
	movq	_tap_tog_layer_toggled_on@GOTPCREL(%rip), %rdx
	movl	$1, (%rdx)
	cmpl	$3, %ecx
	jl	LBB0_7
## %bb.6:
	movl	$0, (%rax)
	movl	$0, (%rdx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tap_tog_count,4,2              ## @tap_tog_count
	.comm	_tap_tog_layer_toggled_on,4,2   ## @tap_tog_layer_toggled_on
	.comm	_tap_tog_layer_other_key_pressed,4,2 ## @tap_tog_layer_other_key_pressed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_tap_tog                ; -- Begin function process_tap_tog
	.p2align	2
_process_tap_tog:                       ; @process_tap_tog
	.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, _tap_tog_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tap_tog_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	ldr	x10, [x1]
	cbz	x10, LBB0_3
; %bb.1:
Lloh2:
	adrp	x19, _tap_tog_layer_toggled_on@GOTPAGE
Lloh3:
	ldr	x19, [x19, _tap_tog_layer_toggled_on@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
	bl	_layer_clear
	str	wzr, [x19]
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x10, _tap_tog_layer_other_key_pressed@GOTPAGE
Lloh5:
	ldr	x10, [x10, _tap_tog_layer_other_key_pressed@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	cbz	w10, LBB0_6
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_layer_clear
LBB0_5:
	bl	_layer_on
Lloh7:
	adrp	x8, _tap_tog_layer_other_key_pressed@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tap_tog_layer_other_key_pressed@GOTPAGEOFF]
Lloh9:
	str	wzr, [x8]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x10, _tap_tog_layer_toggled_on@GOTPAGE
Lloh11:
	ldr	x10, [x10, _tap_tog_layer_toggled_on@GOTPAGEOFF]
	mov	w11, #1
	str	w11, [x10]
	cmp	w9, #3
	b.lt	LBB0_8
; %bb.7:
	str	wzr, [x8]
	str	wzr, [x10]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tap_tog_count,4,2              ; @tap_tog_count
	.comm	_tap_tog_layer_toggled_on,4,2   ; @tap_tog_layer_toggled_on
	.comm	_tap_tog_layer_other_key_pressed,4,2 ; @tap_tog_layer_other_key_pressed
.subsections_via_symbols
