// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_lexer_zaLexer_emitzersquarezx
static void mw_mirth_lexer_zaLexer_emitzersquarezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_lexer_zaLexer* in_zaLexer_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_lexer_zaLexer* *out_zaLexer_4) {
	struct mirth_lexer_zaLexer* v5;
	struct std_maybe_Maybe_1 v6 = mw_mirth_lexer_zaLexer_stackzepopzx(in_zaLexer_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	VAL branch_zux1_8;
	struct std_maybe_Maybe_1 branch_Maybe_9;
	switch ((v6).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v10 = mtp_std_maybe_Maybe_1_Some(v6);
			incref(v10);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_token_TokenValue v12 = mw_mirth_token_Token_value(in_zaMirth_1, V_mirth_token_Token(v10), &v11);
			bool v13 = mw_mirth_token_TokenValue_lsquarezeopenzy(v12);
			struct mirth_mirth_zaMirth* branch_zaMirth_14;
			VAL branch_zux1_15;
			struct std_maybe_Maybe_1 branch_Maybe_16;
			if (v13) {
				struct std_maybe_Maybe_1 v17 = mtw_std_maybe_Maybe_1_Some(v10);
				branch_Maybe_16 = v17;
				branch_zux1_15 = MK_mirth_lexer_zaLexer(v5);
				branch_zaMirth_14 = v11;
			} else {
				decref(v10);
				struct std_maybe_Maybe_1 v18 = { .tag=std_maybe_Maybe_1_None };
				branch_Maybe_16 = v18;
				branch_zux1_15 = MK_mirth_lexer_zaLexer(v5);
				branch_zaMirth_14 = v11;
			}
			branch_Maybe_9 = branch_Maybe_16;
			branch_zux1_8 = branch_zux1_15;
			branch_zaMirth_7 = branch_zaMirth_14;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_maybe_Maybe_1 v19 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_9 = v19;
			branch_zux1_8 = MK_mirth_lexer_zaLexer(v5);
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* branch_zaMirth_20;
	struct mirth_lexer_zaLexer* branch_zaLexer_21;
	VAL branch_zux1_22;
	switch ((branch_Maybe_9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v23 = mtp_std_maybe_Maybe_1_Some(branch_Maybe_9);
			branch_zux1_22 = v23;
			branch_zaLexer_21 = V_mirth_lexer_zaLexer(branch_zux1_8);
			branch_zaMirth_20 = branch_zaMirth_7;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v24;
			STRLIT(v24, "Mismatched right square bracket.", 32);
			mw_mirth_lexer_zaLexer_lexerzefatalzeerrorzx(v24, branch_zaMirth_7, V_mirth_lexer_zaLexer(branch_zux1_8));
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	incref(branch_zux1_22);
	struct mirth_token_TokenValue v28 = mtw_mirth_token_TokenValue_RSquare(V_mirth_token_Token(branch_zux1_22));
	struct mirth_mirth_zaMirth* v29;
	struct mirth_lexer_zaLexer* v30;
	uint64_t v31 = mw_mirth_lexer_zaLexer_makezx(branch_zaMirth_20, branch_zaLexer_21, v28, &v29, &v30);
	struct mirth_token_TokenValue v32 = mtw_mirth_token_TokenValue_LSquare(v31);
	struct mirth_mirth_zaMirth* v33;
	mw_mirth_token_Token_valuezx(v29, v32, V_mirth_token_Token(branch_zux1_22), &v33);
	*out_zaLexer_4 = v30;
	*out_zaMirth_3 = v33;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1cbff0
movl %eax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x1d4(%rbp)
testl %eax, %eax
je 0x1c8d09
jmp 0x1c8ae2
movl -0x1d4(%rbp), %eax
subl $0x1, %eax
jne 0x1c8d6b
jmp 0x1c8af3
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x174a0
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x68(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c8b4c
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x1c8b4c
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c8b4c
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1c8b4e
movq -0x8(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x79660
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x1cc330
andb $0x1, %al
movb %al, -0x89(%rbp)
testb $0x1, -0x89(%rbp)
je 0x1c8c04
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0xca10
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x1ca117(%rip), %rax    # 0x392ce8
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x1c8cd0
jmp 0x1c8c06
movq -0x68(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c8c5f
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x1c8c5f
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c8c5f
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1c8c5d
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x127c0
jmp 0x1c8c5f
jmp 0x1c8c61
leaq -0xe8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xe8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x1ca046(%rip), %rax    # 0x392ce8
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1c8d84
leaq -0x108(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x108(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq 0x1c9fa4(%rip), %rax    # 0x392ce8
movq %rax, -0x110(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1c8d84
leaq 0x18b10f(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movl -0x60(%rbp), %eax
movl %eax, -0x1d8(%rbp)
testl %eax, %eax
je 0x1c8df5
jmp 0x1c8d93
movl -0x1d8(%rbp), %eax
subl $0x1, %eax
jne 0x1c8f16
jmp 0x1c8da4
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x174a0
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x120(%rbp)
jmp 0x1c8f2f
jmp 0x1c8df7
cmpq $0x0, 0x11cd8f1(%rip)   # 0x13966f0
jne 0x1c8e19
leaq 0x193228(%rip), %rdi    # 0x35c030
movl $0x20, %esi
callq 0xb6c0
movq %rax, 0x11cd8d7(%rip)   # 0x13966f0
jmp 0x1c8e1b
movq 0x11cd8ce(%rip), %rax   # 0x13966f0
movq %rax, -0x160(%rbp)
leaq 0x1c8328(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c8ef0
movq 0x11cd899(%rip), %rax   # 0x13966f0
movq %rax, -0x170(%rbp)
leaq 0x1c82f3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x168(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x170(%rbp), %rax
cmpq $0x0, %rax
je 0x1c8ef0
movq 0x11cd862(%rip), %rax   # 0x13966f0
movq %rax, -0x180(%rbp)
leaq 0x1c82bc(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movq -0x180(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c8ef0
movq 0x11cd831(%rip), %rax   # 0x13966f0
movq %rax, -0x190(%rbp)
leaq 0x1c828b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1c8ef2
movq 0x11cd7f7(%rip), %rax   # 0x13966f0
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x1cb250
jmp 0x1c8f2f
leaq 0x18af64(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
jmp 0x1c8f31
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c8f82
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
cmpq $0x0, %rax
je 0x1c8f82
movq -0x138(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c8f82
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1c8f84
movq -0x138(%rbp), %rdi
callq 0x11ce50
movl %eax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x120(%rbp), %rdi
movq -0x128(%rbp), %rsi
movl -0x1a0(%rbp), %edx
movq -0x198(%rbp), %rcx
leaq -0x1a8(%rbp), %r8
leaq -0x1b0(%rbp), %r9
callq 0x1cb7b0
movq %rax, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rdi
callq 0x11cdc0
movl %eax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x138(%rbp), %rcx
movl -0x1c8(%rbp), %esi
movq -0x1c0(%rbp), %rdx
leaq -0x1d0(%rbp), %r8
callq 0x11d000
movq -0x1b0(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x1d0(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
nopw (%rax,%rax)