	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_action_function                ## -- Begin function action_function
	.p2align	4, 0x90
_action_function:                       ## @action_function
	.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	%rdi, %rbx
	cmpl	$1, %esi
	je	LBB0_14
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_15
## %bb.2:
	movq	_tetris_running@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$0, (%rax)
	jmp	LBB0_15
LBB0_14:
	cmpl	$0, (%rbx)
	je	LBB0_15
## %bb.16:
	movq	_tetris_running@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_tetris_timer@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_tetris_keypress@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_tetris_key_presses@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tetris_start                   ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_get_mods
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.5:
	movq	_GRAVE_MODS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movb	$1, _action_function.mod_flag(%rip)
	movq	_KC_GRV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	cmpb	$1, _action_function.mod_flag(%rip)
	jne	LBB0_12
## %bb.11:
	movb	$0, _action_function.mod_flag(%rip)
	movq	_KC_GRV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_KC_ESC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_add_key
	jmp	LBB0_9
LBB0_12:
	movq	_KC_ESC@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edi
	callq	_del_key
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_send_keyboard_report           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_action_function.mod_flag,1,2 ## @action_function.mod_flag
	.comm	_tetris_running,4,2             ## @tetris_running
	.comm	_GRAVE_MODS,4,2                 ## @GRAVE_MODS
	.comm	_KC_GRV,4,2                     ## @KC_GRV
	.comm	_KC_ESC,4,2                     ## @KC_ESC
	.comm	_tetris_timer,4,2               ## @tetris_timer
	.comm	_tetris_keypress,4,2            ## @tetris_keypress
	.comm	_tetris_key_presses,4,2         ## @tetris_key_presses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_action_function                ; -- Begin function action_function
	.p2align	2
_action_function:                       ; @action_function
	.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
	mov	x19, x0
	cmp	w1, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w1, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _tetris_running@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tetris_running@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.3:
	str	wzr, [x8]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _tetris_running@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tetris_running@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
Lloh5:
	adrp	x8, _tetris_timer@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tetris_timer@GOTPAGEOFF]
Lloh7:
	adrp	x9, _tetris_keypress@GOTPAGE
Lloh8:
	ldr	x9, [x9, _tetris_keypress@GOTPAGEOFF]
Lloh9:
	str	wzr, [x8]
Lloh10:
	str	wzr, [x9]
Lloh11:
	adrp	x8, _tetris_key_presses@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tetris_key_presses@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tetris_start
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_get_mods
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _GRAVE_MODS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GRAVE_MODS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.9:
	mov	w8, #1
	adrp	x9, _action_function.mod_flag@PAGE
	strb	w8, [x9, _action_function.mod_flag@PAGEOFF]
Lloh17:
	adrp	x8, _KC_GRV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KC_GRV@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	adrp	x8, _action_function.mod_flag@PAGE
	ldrb	w9, [x8, _action_function.mod_flag@PAGEOFF]
	cmp	w9, #1
	b.ne	LBB0_14
; %bb.11:
	strb	wzr, [x8, _action_function.mod_flag@PAGEOFF]
Lloh19:
	adrp	x8, _KC_GRV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KC_GRV@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh21:
	adrp	x8, _KC_ESC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KC_ESC@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	bl	_add_key
	b	LBB0_16
LBB0_14:
Lloh23:
	adrp	x8, _KC_ESC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KC_ESC@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	bl	_del_key
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_send_keyboard_report
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_action_function.mod_flag,1,2 ; @action_function.mod_flag
	.comm	_tetris_running,4,2             ; @tetris_running
	.comm	_GRAVE_MODS,4,2                 ; @GRAVE_MODS
	.comm	_KC_GRV,4,2                     ; @KC_GRV
	.comm	_KC_ESC,4,2                     ; @KC_ESC
	.comm	_tetris_timer,4,2               ; @tetris_timer
	.comm	_tetris_keypress,4,2            ; @tetris_keypress
	.comm	_tetris_key_presses,4,2         ; @tetris_key_presses
.subsections_via_symbols
