// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_lexer_zaLexer_closezecolonszx
static void mw_mirth_lexer_zaLexer_closezecolonszx (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) {
	bool v5 = true;
	struct mirth_mirth_zaMirth* r6 = in_zaMirth_1;
	struct mirth_lexer_zaLexer* r7 = in_zaLexer_2;
	bool v8 = v5;
	bool v9 = v5;
	while (v9) {
		struct mirth_mirth_zaMirth* r10 = r6;
		struct mirth_lexer_zaLexer* r11 = r7;
		bool v12 = v8;
		struct mirth_lexer_zaLexer* v13;
		struct std_maybe_Maybe_1 v14 = mw_mirth_lexer_zaLexer_stackzepeek(r11, &v13);
		struct mirth_mirth_zaMirth* branch_zaMirth_15;
		VAL branch_zux1_16;
		struct std_maybe_Maybe_1 branch_Maybe_17;
		switch ((v14).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v18 = mtp_std_maybe_Maybe_1_Some(v14);
				incref(v18);
				struct mirth_mirth_zaMirth* v19;
				bool v20 = mw_mirth_token_Token_lcolonzeopenzy(r10, V_mirth_token_Token(v18), &v19);
				struct mirth_mirth_zaMirth* branch_zaMirth_21;
				VAL branch_zux1_22;
				struct std_maybe_Maybe_1 branch_Maybe_23;
				if (v20) {
					struct std_maybe_Maybe_1 v24 = mtw_std_maybe_Maybe_1_Some(v18);
					branch_Maybe_23 = v24;
					branch_zux1_22 = MK_mirth_lexer_zaLexer(v13);
					branch_zaMirth_21 = v19;
				} else {
					decref(v18);
					struct std_maybe_Maybe_1 v25 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_23 = v25;
					branch_zux1_22 = MK_mirth_lexer_zaLexer(v13);
					branch_zaMirth_21 = v19;
				}
				branch_Maybe_17 = branch_Maybe_23;
				branch_zux1_16 = branch_zux1_22;
				branch_zaMirth_15 = branch_zaMirth_21;
			} break;
			case std_maybe_Maybe_1_None: {
				struct std_maybe_Maybe_1 v26 = { .tag=std_maybe_Maybe_1_None };
				branch_Maybe_17 = v26;
				branch_zux1_16 = MK_mirth_lexer_zaLexer(v13);
				branch_zaMirth_15 = r10;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		struct mirth_mirth_zaMirth* branch_zaMirth_27;
		struct mirth_lexer_zaLexer* branch_zaLexer_28;
		bool branch_Bool_29;
		switch ((branch_Maybe_17).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v30 = mtp_std_maybe_Maybe_1_Some(branch_Maybe_17);
				struct mirth_lexer_zaLexer* v31;
				mw_mirth_lexer_zaLexer_stackzedrop(V_mirth_lexer_zaLexer(branch_zux1_16), &v31);
				incref(v30);
				struct mirth_token_TokenValue v32 = mtw_mirth_token_TokenValue_RColon(V_mirth_token_Token(v30));
				struct mirth_mirth_zaMirth* v33;
				struct mirth_lexer_zaLexer* v34;
				uint64_t v35 = mw_mirth_lexer_zaLexer_makezx(branch_zaMirth_15, v31, v32, &v33, &v34);
				struct mirth_token_TokenValue v36 = mtw_mirth_token_TokenValue_LColon(v35);
				struct mirth_mirth_zaMirth* v37;
				mw_mirth_token_Token_valuezx(v33, v36, V_mirth_token_Token(v30), &v37);
				bool v38 = true;
				branch_Bool_29 = v38;
				branch_zaLexer_28 = v34;
				branch_zaMirth_27 = v37;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v39 = false;
				branch_Bool_29 = v39;
				branch_zaLexer_28 = V_mirth_lexer_zaLexer(branch_zux1_16);
				branch_zaMirth_27 = branch_zaMirth_15;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v9 = branch_Bool_29;
		v8 = branch_Bool_29;
		r7 = branch_zaLexer_28;
		r6 = branch_zaMirth_27;
	}
	*out_zaLexer_4 = r7;
	*out_zaMirth_3 = r6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, -0x50(%rbp)
movq %rdx, -0x58(%rbp)
movq %rsi, %r13
movq %rdi, %rbx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movb $0x1, %al
testb $0x1, %al
je 0x7c483
movl 0x28(%r13), %eax
movq 0x30(%r13), %rdi
movq %rdi, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %dil
setne %sil
orb %dl, %sil
jne 0x7c2cb
incl (%rcx)
cmpl $0x1, %eax
jne 0x7c47f
leaq -0x38(%rbp), %rsi
callq 0xce01
movq %rax, %r14
movq %rdx, %r15
movq -0x30(%rbp), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7c315
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x7c315
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x8bf69(%rip), %rsi     # 0x108279
callq 0xce94
movq %r14, %rdi
movq %r15, %rsi
callq 0x8d0c
movq %rdx, %rdi
callq 0xd491
movq %rax, %r15
movq %rdx, %r14
testb $0x1, %r14b
je 0x7c34a
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x7c34a
incl (%rax)
movq %rbx, %rdi
movq %r15, %rsi
leaq -0x38(%rbp), %rdx
callq 0x7ddc5
testb %al, %al
jne 0x7c391
testb $0x1, %r14b
je 0x7c386
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x7c386
decl (%rax)
jne 0x7c386
movq %r15, %rdi
movq %r14, %rsi
callq 0xce94
movq -0x38(%rbp), %rbx
xorl %eax, %eax
jmp 0x7c2a3
movq %r15, %rdi
movq %r14, %rsi
callq 0x8d0c
movq %rdx, %rdi
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
callq 0xd491
movq %rax, %rbx
movq %rdx, -0x40(%rbp)
movl 0x28(%r13), %edi
movq 0x30(%r13), %rsi
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x7c3d1
incl (%rax)
callq 0x4ff4e
movl %eax, %r14d
movq %rdx, %r15
movq 0x30(%r13), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x7c40f
movl 0x28(%r13), %edi
decl (%rcx)
jne 0x7c40f
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x8be6f(%rip), %rsi     # 0x108279
callq 0xce94
movl %r14d, 0x28(%r13)
movq %r15, 0x30(%r13)
testb $0x1, -0x40(%rbp)
je 0x7c432
movq %rbx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x7c432
incl (%rax)
movq %rbx, %rdi
callq 0x502c9
movq -0x48(%rbp), %rdi
movq %r13, %rsi
pushq $0xd
popq %rdx
movq %rax, %rcx
leaq -0x38(%rbp), %r8
leaq -0x68(%rbp), %r9
callq 0x7de31
movq %rax, %rdi
callq 0x50280
movq -0x38(%rbp), %rdi
pushq $0xc
popq %rsi
movq %rax, %rdx
movq %rbx, %rcx
leaq -0x60(%rbp), %r8
callq 0x50312
movq -0x68(%rbp), %r13
movq -0x60(%rbp), %rbx
jmp 0x7c2a1
testl %eax, %eax
jne 0x7c4a0
movq -0x50(%rbp), %rax
movq %r13, (%rax)
movq -0x58(%rbp), %rax
movq %rbx, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58366(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6