// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_popzefromzeenvzx
static uint64_t mw_mirth_c99_zaC99Branch_popzefromzeenvzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_c99_zaC99Branch* *out_zaC99Branch_4, struct mirth_c99_zaC99Value* *out_zaC99Value_6) {
	struct std_list_List_1 v7 = in_zaC99Branch_2->menv;
	incref(MK_std_list_List_1(v7));
	struct std_list_List_1 v8;
	struct std_maybe_Maybe_1 v9 = mw_std_list_List_1_uncons(v7, &v8);
	struct std_list_List_1 v10 = in_zaC99Branch_2->menv;
	decref(MK_std_list_List_1(v10));
	in_zaC99Branch_2->menv = v8;
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	VAL branch_zux1_12;
	VAL branch_zux2_13;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v14 = mtp_std_maybe_Maybe_1_Some(v9);
			branch_zux2_13 = v14;
			branch_zux1_12 = MK_mirth_c99_zaC99Branch(in_zaC99Branch_2);
			branch_zaMirth_11 = in_zaMirth_1;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v15;
			STRLIT(v15, "[c99] variable environment unexpectedly empty", 45);
			mw_mirth_mirth_zaMirth_fatalzeerrorzx(in_zaMirth_1, v15);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	uint64_t v18;
	STR* v19;
	struct mirth_c99_C99ReprType v20;
	mtp_mirth_c99_C99Var_C99Var(V_mirth_c99_C99Var(branch_zux2_13), &v18, &v19, &v20);
	struct mirth_c99_zaC99Value* v21;
	mtw_mirth_c99_zaC99Value_zaC99Value(v20, v19, &v21);
	*out_zaC99Value_6 = v21;
	*out_zaC99Branch_4 = V_mirth_c99_zaC99Branch(branch_zux1_12);
	*out_zaMirth_3 = branch_zaMirth_11;
	return v18;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x345398
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
cmpq $0x0, %rax
je 0x345398
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x68(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x345398
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x12780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x34539a
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x2c490
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0xa0(%rbp)
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x12780
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3454e7
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x12780
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0x3454e7
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x12780
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3454e7
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x12780
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x3454e5
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x12780
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x127c0
jmp 0x3454e7
jmp 0x3454e9
movq -0x10(%rbp), %rax
movups -0x88(%rbp), %xmm0
movups %xmm0, 0x18(%rax)
movl -0x98(%rbp), %eax
movl %eax, -0x1b4(%rbp)
testl %eax, %eax
je 0x3455a0
jmp 0x34550e
movl -0x1b4(%rbp), %eax
subl $0x1, %eax
jne 0x3456bd
jmp 0x34551f
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x174a0
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x4ddf3(%rip), %rax     # 0x393360
movq %rax, -0x138(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x3456d6
jmp 0x3455a2
cmpq $0x0, 0x10542b6(%rip)   # 0x1399860
jne 0x3455c4
leaq 0x29173(%rip), %rdi     # 0x36e726
movl $0x2d, %esi
callq 0xb6c0
movq %rax, 0x105429c(%rip)   # 0x1399860
jmp 0x3455c6
movq 0x1054293(%rip), %rax   # 0x1399860
movq %rax, -0x158(%rbp)
leaq 0x4bb7d(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34569b
movq 0x105425e(%rip), %rax   # 0x1399860
movq %rax, -0x168(%rbp)
leaq 0x4bb48(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x168(%rbp), %rax
cmpq $0x0, %rax
je 0x34569b
movq 0x1054227(%rip), %rax   # 0x1399860
movq %rax, -0x178(%rbp)
leaq 0x4bb11(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movq -0x178(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34569b
movq 0x10541f6(%rip), %rax   # 0x1399860
movq %rax, -0x188(%rbp)
leaq 0x4bae0(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x180(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x188(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x34569d
movq 0x10541bc(%rip), %rax   # 0x1399860
movq %rax, -0x148(%rbp)
movq -0x8(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x44a80
jmp 0x3456d6
leaq 0xe7bd(%rip), %rdi      # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x120(%rbp), %rdi
leaq -0x190(%rbp), %rsi
leaq -0x198(%rbp), %rdx
leaq -0x1a8(%rbp), %rcx
callq 0x345760
movq -0x198(%rbp), %rdx
movl -0x1a8(%rbp), %edi
movq -0x1a0(%rbp), %rsi
leaq -0x1b0(%rbp), %rcx
callq 0x28cac0
movq -0x1b0(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x110(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x100(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x190(%rbp), %rax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
nopw %cs:(%rax,%rax)