// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Resource_consumezeaszeTUP
static STR* mw_mirth_c99_zaC99Resource_consumezeaszeTUP (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Resource* in_zaC99Resource_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_c99_C99ReprType v5;
	STR* v6;
	mtp_mirth_c99_zaC99Resource_zaC99Resource(in_zaC99Resource_2, &v5, &v6);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	STR* branch_Str_8;
	switch ((v5).tag) {
		case mirth_c99_C99ReprType_VAL: {
			STR* v9;
			STRLIT(v9, "", 0);
			STR* v10;
			STRLIT(v10, "VTUP(", 5);
			STR* v11;
			mw_std_str_zaStr_pushzestrzx(v10, v9, &v11);
			STR* v12;
			mw_std_str_zaStr_pushzestrzx(v6, v11, &v12);
			STR* v13;
			STRLIT(v13, ")", 1);
			STR* v14;
			mw_std_str_zaStr_pushzestrzx(v13, v12, &v14);
			branch_Str_8 = v14;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_c99_C99ReprType_TUP: {
			branch_Str_8 = v6;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		default: {
			decref(MK_mirth_c99_C99ReprType(v5));
			STR* v15;
			STRLIT(v15, "c99: tried to consume non-tuple as tuple", 40);
			do_panic(v15);
		} break;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Str_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x29e540
movl -0x28(%rbp), %eax
movl %eax, -0x1cc(%rbp)
subl $0x1, %eax
je 0x34f37c
jmp 0x34f368
movl -0x1cc(%rbp), %eax
subl $0x4, %eax
je 0x34f6d9
jmp 0x34f6ee
jmp 0x34f37e
cmpq $0x0, 0x104a6ba(%rip)   # 0x1399a40
jne 0x34f39f
leaq 0xcc29(%rip), %rdi      # 0x35bfb8
xorl %eax, %eax
movl %eax, %esi
callq 0xb6c0
movq %rax, 0x104a6a1(%rip)   # 0x1399a40
jmp 0x34f3a1
movq 0x104a698(%rip), %rax   # 0x1399a40
movq %rax, -0x58(%rbp)
leaq 0x41da5(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34f458
movq 0x104a66c(%rip), %rax   # 0x1399a40
movq %rax, -0x68(%rbp)
leaq 0x41d79(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x34f458
movq 0x104a63e(%rip), %rax   # 0x1399a40
movq %rax, -0x78(%rbp)
leaq 0x41d4b(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34f458
movq 0x104a616(%rip), %rax   # 0x1399a40
movq %rax, -0x88(%rbp)
leaq 0x41d20(%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 0x34f45a
movq 0x104a5df(%rip), %rax   # 0x1399a40
movq %rax, -0x48(%rbp)
jmp 0x34f467
cmpq $0x0, 0x104a5d9(%rip)   # 0x1399a48
jne 0x34f489
leaq 0x1f397(%rip), %rdi     # 0x36e80f
movl $0x5, %esi
callq 0xb6c0
movq %rax, 0x104a5bf(%rip)   # 0x1399a48
jmp 0x34f48b
movq 0x104a5b6(%rip), %rax   # 0x1399a48
movq %rax, -0xa0(%rbp)
leaq 0x41cb8(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34f560
movq 0x104a581(%rip), %rax   # 0x1399a48
movq %rax, -0xb0(%rbp)
leaq 0x41c83(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x34f560
movq 0x104a54a(%rip), %rax   # 0x1399a48
movq %rax, -0xc0(%rbp)
leaq 0x41c4c(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34f560
movq 0x104a519(%rip), %rax   # 0x1399a48
movq %rax, -0xd0(%rbp)
leaq 0x41c1b(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x34f562
movq 0x104a4df(%rip), %rax   # 0x1399a48
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
callq 0xb940
movq -0x30(%rbp), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0xb940
cmpq $0x0, 0x104a4aa(%rip)   # 0x1399a50
jne 0x34f5c0
leaq 0x1e4f5(%rip), %rdi     # 0x36daa4
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x104a490(%rip)   # 0x1399a50
jmp 0x34f5c2
movq 0x104a487(%rip), %rax   # 0x1399a50
movq %rax, -0xf8(%rbp)
leaq 0x41b81(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34f697
movq 0x104a452(%rip), %rax   # 0x1399a50
movq %rax, -0x108(%rbp)
leaq 0x41b4c(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
cmpq $0x0, %rax
je 0x34f697
movq 0x104a41b(%rip), %rax   # 0x1399a50
movq %rax, -0x118(%rbp)
leaq 0x41b15(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x118(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34f697
movq 0x104a3ea(%rip), %rax   # 0x1399a50
movq %rax, -0x128(%rbp)
leaq 0x41ae4(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x128(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x34f699
movq 0x104a3b0(%rip), %rax   # 0x1399a50
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0xb940
movq -0x130(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x34f8fe
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x34f8fe
jmp 0x34f6f0
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x138(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34f7e5
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x150(%rbp), %rax
cmpq $0x0, %rax
je 0x34f7e5
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34f7e5
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x170(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x34f7e3
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x180(%rbp), %rdi
movq -0x178(%rbp), %rsi
callq 0x127c0
jmp 0x34f7e5
jmp 0x34f7e7
jmp 0x34f7e9
cmpq $0x0, 0x104a267(%rip)   # 0x1399a58
jne 0x34f80b
leaq 0x1f01b(%rip), %rdi     # 0x36e815
movl $0x28, %esi
callq 0xb6c0
movq %rax, 0x104a24d(%rip)   # 0x1399a58
jmp 0x34f80d
movq 0x104a244(%rip), %rax   # 0x1399a58
movq %rax, -0x198(%rbp)
leaq 0x41936(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34f8e2
movq 0x104a20f(%rip), %rax   # 0x1399a58
movq %rax, -0x1a8(%rbp)
leaq 0x41901(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a8(%rbp), %rax
cmpq $0x0, %rax
je 0x34f8e2
movq 0x104a1d8(%rip), %rax   # 0x1399a58
movq %rax, -0x1b8(%rbp)
leaq 0x418ca(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34f8e2
movq 0x104a1a7(%rip), %rax   # 0x1399a58
movq %rax, -0x1c8(%rbp)
leaq 0x41899(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x34f8e4
movq 0x104a16d(%rip), %rax   # 0x1399a58
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rdi
callq 0xc620
movq -0x38(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
nopw %cs:(%rax,%rax)