// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_token_Token_next
static uint64_t mw_mirth_token_Token_next (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct mirth_token_TokenValue v6 = mw_mirth_token_Token_value(in_zaMirth_1, in_Token_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	uint64_t branch_Token_8;
	switch ((v6).tag) {
		case mirth_token_TokenValue_LParen: {
			uint64_t v9 = mtp_mirth_token_TokenValue_LParen(v6);
			struct mirth_mirth_zaMirth* v10;
			uint64_t v11 = mw_mirth_token_Token_succ(v5, v9, &v10);
			branch_Token_8 = v11;
			branch_zaMirth_7 = v10;
		} break;
		case mirth_token_TokenValue_LSquare: {
			uint64_t v12 = mtp_mirth_token_TokenValue_LSquare(v6);
			struct mirth_mirth_zaMirth* v13;
			uint64_t v14 = mw_mirth_token_Token_succ(v5, v12, &v13);
			branch_Token_8 = v14;
			branch_zaMirth_7 = v13;
		} break;
		case mirth_token_TokenValue_LCurly: {
			uint64_t v15 = mtp_mirth_token_TokenValue_LCurly(v6);
			struct mirth_mirth_zaMirth* v16;
			uint64_t v17 = mw_mirth_token_Token_succ(v5, v15, &v16);
			branch_Token_8 = v17;
			branch_zaMirth_7 = v16;
		} break;
		case mirth_token_TokenValue_LColon: {
			uint64_t v18 = mtp_mirth_token_TokenValue_LColon(v6);
			struct mirth_mirth_zaMirth* v19;
			uint64_t v20 = mw_mirth_token_Token_succ(v5, v18, &v19);
			branch_Token_8 = v20;
			branch_zaMirth_7 = v19;
		} break;
		default: {
			bool v21 = mw_mirth_token_TokenValue_canzetakezeargszy(v6);
			uint64_t branch_Token_22;
			struct mirth_mirth_zaMirth* branch_zaMirth_23;
			if (v21) {
				struct mirth_mirth_zaMirth* v24;
				uint64_t v25 = mw_mirth_token_Token_succ(v5, in_Token_2, &v24);
				struct mirth_mirth_zaMirth* v26;
				struct std_maybe_Maybe_1 v27 = mw_mirth_token_Token_lparenzeorzelcolonzy(v24, v25, &v26);
				struct mirth_mirth_zaMirth* branch_zaMirth_28;
				uint64_t branch_Token_29;
				switch ((v27).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v30 = mtp_std_maybe_Maybe_1_Some(v27);
						struct mirth_mirth_zaMirth* v31;
						uint64_t v32 = mw_mirth_token_Token_succ(v26, V_mirth_token_Token(v30), &v31);
						branch_Token_29 = v32;
						branch_zaMirth_28 = v31;
					} break;
					case std_maybe_Maybe_1_None: {
						branch_Token_29 = v25;
						branch_zaMirth_28 = v26;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				branch_zaMirth_23 = branch_zaMirth_28;
				branch_Token_22 = branch_Token_29;
			} else {
				struct mirth_mirth_zaMirth* v33;
				uint64_t v34 = mw_mirth_token_Token_succ(v5, in_Token_2, &v33);
				branch_zaMirth_23 = v33;
				branch_Token_22 = v34;
			}
			branch_Token_8 = branch_Token_22;
			branch_zaMirth_7 = branch_zaMirth_23;
		} break;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Token_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x79660
movl %eax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movl -0x30(%rbp), %eax
addl $-0x6, %eax
movl %eax, %ecx
movq %rcx, -0x128(%rbp)
subl $0x6, %eax
ja 0x7b4de
movq -0x128(%rbp), %rax
leaq 0x2d647b(%rip), %rcx    # 0x351850
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x7ab30
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x78490
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x7b661
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x7ada0
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
movq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x78490
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x7b661
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x7adf0
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x78490
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x7b661
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x7ab80
movq %rax, -0x90(%rbp)
movq -0x20(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x78490
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x7b661
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x796d0
andb $0x1, %al
movb %al, -0xa1(%rbp)
testb $0x1, -0xa1(%rbp)
je 0x7b614
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x78490
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x79600
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movl -0xe0(%rbp), %eax
movl %eax, -0x12c(%rbp)
testl %eax, %eax
je 0x7b5bf
jmp 0x7b553
movl -0x12c(%rbp), %eax
subl $0x1, %eax
jne 0x7b5dd
jmp 0x7b560
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0x174a0
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0x100(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x78490
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x7b5f6
movq -0xc8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x7b5f6
leaq 0x2d889d(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0xe8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xb0(%rbp)
jmp 0x7b64b
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x118(%rbp), %rdx
callq 0x78490
movq %rax, -0x120(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopl (%rax)