// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_var_Ctx_freshzenamezx
static struct std_list_List_1 mw_mirth_var_Ctx_freshzenamezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, uint64_t *out_Name_5) {
	INT v6 = WRAP_I63(1LL);
	STR* v7;
	STRLIT(v7, "_x1", 3);
	struct mirth_mirth_zaMirth* v8;
	uint64_t v9 = mw_mirth_name_Name_Name(in_zaMirth_1, v7, &v8);
	bool v10 = true;
	struct mirth_mirth_zaMirth* r11 = v8;
	struct std_list_List_1 v12 = in_Ctx_2;
	INT v13 = v6;
	uint64_t v14 = v9;
	bool v15 = v10;
	bool v16 = v10;
	while (v16) {
		struct mirth_mirth_zaMirth* r17 = r11;
		struct std_list_List_1 v18 = v12;
		INT v19 = v13;
		uint64_t v20 = v14;
		bool v21 = v15;
		incref(MK_std_list_List_1(v18));
		struct mirth_mirth_zaMirth* v22;
		struct std_maybe_Maybe_1 v23 = mw_mirth_var_Ctx_lookup(r17, v20, v18, &v22);
		INT branch_Int_24;
		struct mirth_mirth_zaMirth* branch_zaMirth_25;
		uint64_t branch_Name_26;
		bool branch_Bool_27;
		switch ((v23).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v28 = mtp_std_maybe_Maybe_1_Some(v23);
				decref(v28);
				INT v29 = WRAP_I63(1LL);
				INT v30 = v29;
				INT v31 = int_add(v19, v30);
				incref(MKINT(v31));
				STR* v32;
				STRLIT(v32, "", 0);
				STR* v33;
				STRLIT(v33, "_x", 2);
				STR* v34;
				mw_std_str_zaStr_pushzestrzx(v33, v32, &v34);
				STR* v35 = int_to_str(v31);
				STR* v36;
				mw_std_str_zaStr_pushzestrzx(v35, v34, &v36);
				struct mirth_mirth_zaMirth* v37;
				uint64_t v38 = mw_mirth_name_Name_Name(v22, v36, &v37);
				bool v39 = true;
				branch_Bool_27 = v39;
				branch_Name_26 = v38;
				branch_zaMirth_25 = v37;
				branch_Int_24 = v31;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v40 = false;
				branch_Bool_27 = v40;
				branch_Name_26 = v20;
				branch_zaMirth_25 = v22;
				branch_Int_24 = v19;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v16 = branch_Bool_27;
		v15 = branch_Bool_27;
		v14 = branch_Name_26;
		v13 = branch_Int_24;
		v12 = v18;
		r11 = branch_zaMirth_25;
	}
	decref(MKINT(v13));
	*out_Name_5 = v14;
	*out_zaMirth_3 = r11;
	return v12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq 0x214013(%rip), %rax    # 0x36ea58
movq %rax, -0x40(%rbp)
cmpq $0x0, 0x123b48f(%rip)   # 0x1395ee0
jne 0x15aa6b
leaq 0x1ff9c4(%rip), %rdi    # 0x35a41e
movl $0x3, %esi
callq 0xb6c0
movq %rax, 0x123b475(%rip)   # 0x1395ee0
jmp 0x15aa6d
movq 0x123b46c(%rip), %rax   # 0x1395ee0
movq %rax, -0x58(%rbp)
leaq 0x2366d9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15ab24
movq 0x123b440(%rip), %rax   # 0x1395ee0
movq %rax, -0x68(%rbp)
leaq 0x2366ad(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x15ab24
movq 0x123b412(%rip), %rax   # 0x1395ee0
movq %rax, -0x78(%rbp)
leaq 0x23667f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15ab24
movq 0x123b3ea(%rip), %rax   # 0x1395ee0
movq %rax, -0x88(%rbp)
leaq 0x236654(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15ab26
movq 0x123b3b3(%rip), %rax   # 0x1395ee0
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x3ed80
movq %rax, -0x98(%rbp)
movb $0x1, -0x99(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xb8(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xba(%rbp)
testb $0x1, -0xba(%rbp)
je 0x15b246
movq -0xa8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0xe9(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15acd6
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rax
cmpq $0x0, %rax
je 0x15acd6
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x120(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15acd6
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x12780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15acd8
movq -0xc8(%rbp), %rdi
movq -0xe8(%rbp), %rsi
movl -0xd8(%rbp), %edx
movq -0xd0(%rbp), %rcx
leaq -0x138(%rbp), %r8
callq 0xb1ec0
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movl -0x148(%rbp), %eax
movl %eax, -0x2e4(%rbp)
testl %eax, %eax
je 0x15b18b
jmp 0x15ad22
movl -0x2e4(%rbp), %eax
subl $0x1, %eax
jne 0x15b1cc
jmp 0x15ad33
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x174a0
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x170(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15adbe
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
cmpq $0x0, %rax
je 0x15adbe
movq -0x178(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15adbe
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x15adbc
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0x127c0
jmp 0x15adbe
jmp 0x15adc0
movq 0x213c91(%rip), %rax    # 0x36ea58
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0xe0(%rbp), %rdi
movq -0x188(%rbp), %rsi
callq 0x1b780
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq 0x23661d(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15aecb
movq -0x190(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x2365e8(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rax
cmpq $0x0, %rax
je 0x15aecb
movq -0x190(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq 0x2365b1(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15aecb
movq -0x190(%rbp), %rax
movq %rax, -0x1d0(%rbp)
leaq 0x236580(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x1c8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1d0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15aecd
jmp 0x15aecf
cmpq $0x0, 0x123b011(%rip)   # 0x1395ee8
jne 0x15aef0
leaq 0x2010d8(%rip), %rdi    # 0x35bfb8
xorl %eax, %eax
movl %eax, %esi
callq 0xb6c0
movq %rax, 0x123aff8(%rip)   # 0x1395ee8
jmp 0x15aef2
movq 0x123afef(%rip), %rax   # 0x1395ee8
movq %rax, -0x1e8(%rbp)
leaq 0x236251(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15afc7
movq 0x123afba(%rip), %rax   # 0x1395ee8
movq %rax, -0x1f8(%rbp)
leaq 0x23621c(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1f0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1f8(%rbp), %rax
cmpq $0x0, %rax
je 0x15afc7
movq 0x123af83(%rip), %rax   # 0x1395ee8
movq %rax, -0x208(%rbp)
leaq 0x2361e5(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x200(%rbp)
movq -0x208(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15afc7
movq 0x123af52(%rip), %rax   # 0x1395ee8
movq %rax, -0x218(%rbp)
leaq 0x2361b4(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x210(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x218(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15afc9
movq 0x123af18(%rip), %rax   # 0x1395ee8
movq %rax, -0x1d8(%rbp)
jmp 0x15afd9
cmpq $0x0, 0x123af0f(%rip)   # 0x1395ef0
jne 0x15affb
leaq 0x1ff438(%rip), %rdi    # 0x35a422
movl $0x2, %esi
callq 0xb6c0
movq %rax, 0x123aef5(%rip)   # 0x1395ef0
jmp 0x15affd
movq 0x123aeec(%rip), %rax   # 0x1395ef0
movq %rax, -0x230(%rbp)
leaq 0x236146(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15b0d2
movq 0x123aeb7(%rip), %rax   # 0x1395ef0
movq %rax, -0x240(%rbp)
leaq 0x236111(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x238(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x240(%rbp), %rax
cmpq $0x0, %rax
je 0x15b0d2
movq 0x123ae80(%rip), %rax   # 0x1395ef0
movq %rax, -0x250(%rbp)
leaq 0x2360da(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x248(%rbp)
movq -0x250(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15b0d2
movq 0x123ae4f(%rip), %rax   # 0x1395ef0
movq %rax, -0x260(%rbp)
leaq 0x2360a9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x258(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x260(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15b0d4
movq 0x123ae15(%rip), %rax   # 0x1395ef0
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
leaq -0x268(%rbp), %rdx
callq 0xb940
movq -0x190(%rbp), %rdi
callq 0x211e0
movq %rax, -0x270(%rbp)
movq -0x270(%rbp), %rdi
movq -0x268(%rbp), %rsi
leaq -0x278(%rbp), %rdx
callq 0xb940
movq -0x138(%rbp), %rdi
movq -0x278(%rbp), %rsi
leaq -0x280(%rbp), %rdx
callq 0x3ed80
movq %rax, -0x288(%rbp)
movb $0x1, -0x289(%rbp)
movb -0x289(%rbp), %al
andb $0x1, %al
movb %al, -0x161(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x15b1e5
movb $0x0, -0x28a(%rbp)
movb -0x28a(%rbp), %al
andb $0x1, %al
movb %al, -0x161(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x15b1e5
leaq 0x1f8cae(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x161(%rbp), %al
andb $0x1, %al
movb %al, -0xba(%rbp)
movb -0x161(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x15aba6
jmp 0x15b248
movq -0xb0(%rbp), %rax
movq %rax, -0x2a0(%rbp)
leaq 0x2361cb(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x298(%rbp)
movq -0x298(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15b35b
movq -0xb0(%rbp), %rax
movq %rax, -0x2b0(%rbp)
leaq 0x236196(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x2a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b0(%rbp), %rax
cmpq $0x0, %rax
je 0x15b35b
movq -0xb0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
leaq 0x23615b(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x2b8(%rbp)
movq -0x2c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15b35b
movq -0xb0(%rbp), %rax
movq %rax, -0x2d0(%rbp)
leaq 0x23612a(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x2c8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2d0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x15b359
movq -0xb0(%rbp), %rax
movq %rax, -0x2e0(%rbp)
leaq 0x2360ed(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x2d8(%rbp)
movq -0x2e0(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0x127c0
jmp 0x15b35b
jmp 0x15b35d
movq -0xb8(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0xa8(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopl (%rax)