// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_token_TokenValue_sigzetypezeconzy
static struct std_maybe_Maybe_1 mw_mirth_token_TokenValue_sigzetypezeconzy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_token_TokenValue in_TokenValue_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_maybe_Maybe_1 v5 = mw_mirth_token_TokenValue_namezfdnamezy(in_TokenValue_2);
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	struct std_maybe_Maybe_1 branch_Maybe_7;
	switch ((v5).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v8 = mtp_std_maybe_Maybe_1_Some(v5);
			incref(v8);
			uint64_t v9 = mw_std_either_Either_2_left_1_sp1(V_std_either_Either_2(v8));
			struct mirth_mirth_zaMirth* v10;
			bool v11 = mw_mirth_name_Name_couldzebezetypezecon(in_zaMirth_1, v9, &v10);
			struct mirth_mirth_zaMirth* branch_zaMirth_12;
			struct std_maybe_Maybe_1 branch_Maybe_13;
			if (v11) {
				struct std_maybe_Maybe_1 v14 = mtw_std_maybe_Maybe_1_Some(v8);
				branch_Maybe_13 = v14;
				branch_zaMirth_12 = v10;
			} else {
				decref(v8);
				struct std_maybe_Maybe_1 v15 = { .tag=std_maybe_Maybe_1_None };
				branch_Maybe_13 = v15;
				branch_zaMirth_12 = v10;
			}
			branch_Maybe_7 = branch_Maybe_13;
			branch_zaMirth_6 = branch_zaMirth_12;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_maybe_Maybe_1 v16 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_7 = v16;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_6;
	return branch_Maybe_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7b860
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0xcc(%rbp)
testl %eax, %eax
je 0xd43dc
jmp 0xd4230
movl -0xcc(%rbp), %eax
subl $0x1, %eax
jne 0xd440f
jmp 0xd4241
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x174a0
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd429a
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0xd429a
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd429a
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd429c
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x7bd50
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x98ab0
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rdi
movq -0x60(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0xd4450
andb $0x1, %al
movb %al, -0x79(%rbp)
testb $0x1, -0x79(%rbp)
je 0xd4322
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0xca10
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0xd43b9
jmp 0xd4324
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd437d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0xd437d
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd437d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xd437b
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x127c0
jmp 0xd437d
jmp 0xd437f
leaq -0xb8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xb8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xd4428
leaq -0xc8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xc8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xd4428
leaq 0x27fa6b(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x48(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)