	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_space_cadet            ## -- Begin function perform_space_cadet
	.p2align	4, 0x90
_perform_space_cadet:                   ## @perform_space_cadet
	.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
	movq	%rsi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_sc_last@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	callq	_timer_read
	movq	_sc_timer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_IS_MOD
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rbx, %rdi
	callq	_MOD_BIT
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_mods                  ## TAILCALL
LBB0_3:
	movq	_sc_last@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_13
## %bb.4:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	_sc_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_timer_elapsed
	movq	_TAPPING_TERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_13
## %bb.5:
	cmpq	%r14, %rbx
	je	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	callq	_IS_MOD
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_MOD_BIT
	movl	%eax, %edi
	callq	_unregister_mods
LBB0_8:
	movq	%r14, %rdi
	callq	_IS_MOD
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_MOD_BIT
	movl	%eax, %edi
	callq	_register_mods
LBB0_10:
	movq	%r15, %rdi
	callq	_tap_code
	movq	%r14, %rdi
	callq	_IS_MOD
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%r14, %rdi
	jmp	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	_IS_MOD
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
LBB0_12:
	callq	_MOD_BIT
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unregister_mods                ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sc_last,8,3                    ## @sc_last
	.comm	_sc_timer,4,2                   ## @sc_timer
	.comm	_TAPPING_TERM,8,3               ## @TAPPING_TERM
	.comm	_sc_mods,4,2                    ## @sc_mods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_space_cadet            ; -- Begin function perform_space_cadet
	.p2align	2
_perform_space_cadet:                   ; @perform_space_cadet
	.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
	mov	x21, x1
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _sc_last@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sc_last@GOTPAGEOFF]
Lloh2:
	str	x21, [x8]
	bl	_timer_read
Lloh3:
	adrp	x8, _sc_timer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sc_timer@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
	mov	x0, x21
	bl	_IS_MOD
	cbz	x0, LBB0_15
; %bb.2:
	mov	x0, x21
	bl	_MOD_BIT
	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	_register_mods
LBB0_3:
Lloh6:
	adrp	x8, _sc_last@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sc_last@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_12
; %bb.4:
	mov	x20, x3
	mov	x19, x2
Lloh9:
	adrp	x8, _sc_timer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sc_timer@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_timer_elapsed
Lloh12:
	adrp	x8, _TAPPING_TERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TAPPING_TERM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_12
; %bb.5:
	cmp	x21, x19
	b.eq	LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_IS_MOD
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_MOD_BIT
	bl	_unregister_mods
LBB0_8:
	mov	x0, x19
	bl	_IS_MOD
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_MOD_BIT
	bl	_register_mods
LBB0_10:
	mov	x0, x20
	bl	_tap_code
	mov	x0, x19
	bl	_IS_MOD
	cbz	x0, LBB0_15
; %bb.11:
	mov	x0, x19
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_IS_MOD
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x21
LBB0_14:
	bl	_MOD_BIT
	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	_unregister_mods
LBB0_15:
	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
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sc_last,8,3                    ; @sc_last
	.comm	_sc_timer,4,2                   ; @sc_timer
	.comm	_TAPPING_TERM,8,3               ; @TAPPING_TERM
	.comm	_sc_mods,4,2                    ; @sc_mods
.subsections_via_symbols
