// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_C99APIArg_popzeconsumezx
static STR* mw_mirth_c99_C99APIArg_popzeconsumezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99APIArg* in_C99APIArg_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	incref(MK_mirth_c99_C99APIArg(in_C99APIArg_3));
	struct mirth_c99_C99ReprType v7 = in_C99APIArg_3->margzerepr;
	incref(MK_mirth_c99_C99ReprType(v7));
	decref(MK_mirth_c99_C99APIArg(in_C99APIArg_3));
	incref(MK_mirth_c99_C99ReprType(v7));
	struct mirth_c99_C99APIArgSource v8 = in_C99APIArg_3->margzesource;
	incref(MK_mirth_c99_C99APIArgSource(v8));
	decref(MK_mirth_c99_C99APIArg(in_C99APIArg_3));
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	STR* branch_Str_11;
	switch ((v8).tag) {
		case mirth_c99_C99APIArgSource_Value: {
			struct mirth_mirth_zaMirth* v12;
			struct mirth_c99_zaC99Branch* v13;
			struct mirth_c99_zaC99Value* v14;
			mw_mirth_c99_zaC99Branch_popzevaluezx(in_zaMirth_1, in_zaC99Branch_2, v7, &v12, &v13, &v14);
			struct mirth_mirth_zaMirth* v15;
			STR* v16 = mw_mirth_c99_zaC99Value_consumezeas(v12, v7, v14, &v15);
			branch_Str_11 = v16;
			branch_zaMirth_10 = v15;
			branch_zaC99Branch_9 = v13;
		} break;
		case mirth_c99_C99APIArgSource_Resource: {
			struct mirth_mirth_zaMirth* v17;
			struct mirth_c99_zaC99Branch* v18;
			struct mirth_c99_zaC99Resource* v19;
			mw_mirth_c99_zaC99Branch_popzeresourcezx(in_zaMirth_1, in_zaC99Branch_2, v7, &v17, &v18, &v19);
			struct mirth_c99_zaC99Value* v20;
			mw_mirth_c99_zaC99Resource_turnzeintozevaluezx(v19, &v20);
			struct mirth_mirth_zaMirth* v21;
			STR* v22 = mw_mirth_c99_zaC99Value_consumezeas(v17, v7, v20, &v21);
			branch_Str_11 = v22;
			branch_zaMirth_10 = v21;
			branch_zaC99Branch_9 = v18;
		} break;
		case mirth_c99_C99APIArgSource_ValueLabel: {
			uint64_t v23 = mtp_mirth_c99_C99APIArgSource_ValueLabel(v8);
			struct mirth_mirth_zaMirth* v24;
			struct mirth_c99_zaC99Branch* v25;
			struct mirth_c99_zaC99Value* v26;
			mw_mirth_c99_zaC99Branch_popzevaluezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v7, v23, &v24, &v25, &v26);
			struct mirth_mirth_zaMirth* v27;
			STR* v28 = mw_mirth_c99_zaC99Value_consumezeas(v24, v7, v26, &v27);
			branch_Str_11 = v28;
			branch_zaMirth_10 = v27;
			branch_zaC99Branch_9 = v25;
		} break;
		case mirth_c99_C99APIArgSource_ResourceLabel: {
			uint64_t v29 = mtp_mirth_c99_C99APIArgSource_ResourceLabel(v8);
			struct mirth_mirth_zaMirth* v30;
			struct mirth_c99_zaC99Branch* v31;
			struct mirth_c99_zaC99Resource* v32;
			mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx(in_zaMirth_1, in_zaC99Branch_2, v7, v29, &v30, &v31, &v32);
			struct mirth_c99_zaC99Value* v33;
			mw_mirth_c99_zaC99Resource_turnzeintozevaluezx(v32, &v33);
			struct mirth_mirth_zaMirth* v34;
			STR* v35 = mw_mirth_c99_zaC99Value_consumezeas(v30, v7, v33, &v34);
			branch_Str_11 = v35;
			branch_zaMirth_10 = v34;
			branch_zaC99Branch_9 = v31;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Branch_5 = branch_zaC99Branch_9;
	*out_zaMirth_4 = branch_zaMirth_10;
	return branch_Str_11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp            # imm = 0x2E0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0xebab2(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a7790
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0xeba8d(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
cmpq $0x0, %rax
je 0x2a7790
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0xeba62(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a7790
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0xeba3d(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2a7792
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x78(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x70(%rbp)
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a785d
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x2a785d
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a785d
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2a785f
jmp 0x2a7861
movq -0x18(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0xeb93d(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a7965
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0xeb90b(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rax
cmpq $0x0, %rax
je 0x2a7965
movq -0x18(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0xeb8d3(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a7965
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0xeb8a5(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2a7963
movq -0x18(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq 0xeb86b(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x127c0
jmp 0x2a7965
jmp 0x2a7967
jmp 0x2a7969
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0x110(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a7a26
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x128(%rbp), %rax
cmpq $0x0, %rax
je 0x2a7a26
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movq -0x138(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a7a26
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2a7a28
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x158(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x150(%rbp)
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x286390
movq %rax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x160(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a7b17
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x286390
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
cmpq $0x0, %rax
je 0x2a7b17
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x286390
movq %rax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x188(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a7b17
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x286390
movq %rax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x198(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2a7b19
jmp 0x2a7b1b
movq -0x18(%rbp), %rax
movq %rax, -0x1a8(%rbp)
leaq 0xeb683(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2a7c1f
movq -0x18(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq 0xeb651(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b8(%rbp), %rax
cmpq $0x0, %rax
je 0x2a7c1f
movq -0x18(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq 0xeb619(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2a7c1f
movq -0x18(%rbp), %rax
movq %rax, -0x1d8(%rbp)
leaq 0xeb5eb(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x1d0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1d8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2a7c1d
movq -0x18(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq 0xeb5b1(%rip), %rax     # 0x3931b0
orq $0x1, %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
callq 0x127c0
jmp 0x2a7c1f
jmp 0x2a7c21
movl -0x158(%rbp), %eax
movq %rax, -0x2c8(%rbp)
subq $0x3, %rax
ja 0x2a7ecc
movq -0x2c8(%rbp), %rax
leaq 0xabb56(%rip), %rcx     # 0x35379c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x78(%rbp), %edx
movq -0x70(%rbp), %rcx
leaq -0x208(%rbp), %r8
leaq -0x210(%rbp), %r9
leaq -0x218(%rbp), %rax
movq %rax, (%rsp)
callq 0x294820
movq -0x208(%rbp), %rdi
movq -0x218(%rbp), %rcx
movl -0x78(%rbp), %esi
movq -0x70(%rbp), %rdx
leaq -0x220(%rbp), %r8
callq 0x29ebd0
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0x2a7ee5
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x78(%rbp), %edx
movq -0x70(%rbp), %rcx
leaq -0x230(%rbp), %r8
leaq -0x238(%rbp), %r9
leaq -0x240(%rbp), %rax
movq %rax, (%rsp)
callq 0x294a50
movq -0x240(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x2a3920
movq -0x230(%rbp), %rdi
movq -0x248(%rbp), %rcx
movl -0x78(%rbp), %esi
movq -0x70(%rbp), %rdx
leaq -0x250(%rbp), %r8
callq 0x29ebd0
movq %rax, -0x258(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0x2a7ee5
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x286770
movq %rax, -0x260(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x260(%rbp), %r8
movl -0x78(%rbp), %edx
movq -0x70(%rbp), %rcx
leaq -0x268(%rbp), %r9
leaq -0x270(%rbp), %r10
leaq -0x278(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2942b0
movq -0x268(%rbp), %rdi
movq -0x278(%rbp), %rcx
movl -0x78(%rbp), %esi
movq -0x70(%rbp), %rdx
leaq -0x280(%rbp), %r8
callq 0x29ebd0
movq %rax, -0x288(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x270(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0x2a7ee5
movl -0x158(%rbp), %edi
movq -0x150(%rbp), %rsi
callq 0x28cd20
movq %rax, -0x290(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x290(%rbp), %r8
movl -0x78(%rbp), %edx
movq -0x70(%rbp), %rcx
leaq -0x298(%rbp), %r9
leaq -0x2a0(%rbp), %r10
leaq -0x2a8(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x294570
movq -0x2a8(%rbp), %rdi
leaq -0x2b0(%rbp), %rsi
callq 0x2a3920
movq -0x298(%rbp), %rdi
movq -0x2b0(%rbp), %rcx
movl -0x78(%rbp), %esi
movq -0x70(%rbp), %rdx
leaq -0x2b8(%rbp), %r8
callq 0x29ebd0
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0x2a7ee5
leaq 0xabfae(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x1f0(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x1f8(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x200(%rbp), %rax
addq $0x2e0, %rsp            # imm = 0x2E0
popq %rbp
retq
nopw %cs:(%rax,%rax)