// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movq %rcx, -0x40(%rbp)
movq %rdx, -0x48(%rbp)
movq %rsi, %rbx
movq %rdi, %r12
leaq -0x38(%rbp), %r13
movl 0x28(%rbx), %eax
movq 0x30(%rbx), %rdi
movq %rdi, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %dil
setne %sil
orb %dl, %sil
jne 0x839c8
incl (%rcx)
cmpl $0x1, %eax
jne 0x83bc0
movq %r13, %rsi
callq 0xd0aa
movq %rax, %r14
movq %rdx, %r15
movq -0x30(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x83a1b
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x83a1b
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x8d863(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r14, %rdi
movq %r15, %rsi
callq 0x9353
movq %rdx, %rdi
callq 0xd745
movq %rax, %r15
movq %rdx, %r14
testb $0x1, %r14b
jne 0x83a45
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
jmp 0x83a89
movq %r15, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x83a7f
incl (%r13)
movq %r12, %rdi
movq %r15, %rsi
leaq -0x38(%rbp), %rdx
callq 0x86b3a
testb %al, %al
jne 0x83a96
jmp 0x83bf4
movq %r12, %rdi
movq %r15, %rsi
leaq -0x38(%rbp), %rdx
callq 0x86b3a
testb %al, %al
je 0x83c05
movq %r15, %rdi
movq %r14, %rsi
callq 0x9353
movq %rdx, %rdi
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
callq 0xd745
movq %rax, %r14
movq %rdx, %r15
movl 0x28(%rbx), %edi
movq 0x30(%rbx), %rsi
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x83ade
incl (%rax)
callq 0x54590
movl %eax, %r13d
movq %rdx, %r12
movq 0x30(%rbx), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x83b25
movl 0x28(%rbx), %edi
decl (%rcx)
jne 0x83b25
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x8d759(%rip), %rsi     # 0x111279
callq 0xd13d
movl %r13d, 0x28(%rbx)
movq %r12, 0x30(%rbx)
testb $0x1, %r15b
je 0x83b53
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x83b53
incl (%rax)
movq %r14, %rdi
callq 0x54923
movq -0x50(%rbp), %rdi
movq %rbx, %rsi
movl $0xd, %edx
movq %rax, %rcx
leaq -0x38(%rbp), %r13
movq %r13, %r8
leaq -0x58(%rbp), %r9
callq 0x86bb3
movq %rax, %rdi
callq 0x548d0
movq %rax, %rbx
movq -0x38(%rbp), %r12
leaq 0x1091858(%rip), %rdi   # 0x11153e8
movq %r14, %rsi
callq 0x13c85
movabsq $0xc000000000000, %rcx  # imm = 0xC000000000000
orq %rcx, %rbx
movq %rbx, %rdi
leaq 0x8e32a(%rip), %rsi     # 0x111ed9
movq %rax, %rdx
callq 0x14766
movq -0x58(%rbp), %rbx
jmp 0x8399f
testl %eax, %eax
je 0x83c09
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x5caf0(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x5caf5(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
decl (%r13)
jne 0x83c05
movq %r15, %rdi
movq %r14, %rsi
callq 0xd13d
movq -0x38(%rbp), %r12
movq -0x40(%rbp), %rax
movq %rbx, (%rax)
movq -0x48(%rbp), %rax
movq %r12, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq