// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_need_Need_zgNat
static INT mw_mirth_need_Need_zgNat (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_need_Need in_Need_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	INT branch_Nat_6;
	switch ((in_Need_2).tag) {
		case mirth_need_Need_Word: {
			uint64_t v7 = mtp_mirth_need_Need_Word(in_Need_2);
			uint64_t v8 = v7;
			INT v9 = WRAP_I63(5LL);
			INT v10 = u64_to_int(v8);
			INT v11 = v10;
			INT v12 = v11;
			INT v13 = v9;
			INT v14 = int_mul(v12, v13);
			INT v15 = v14;
			branch_Nat_6 = v15;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_need_Need_Block: {
			uint64_t v16 = mtp_mirth_need_Need_Block(in_Need_2);
			uint64_t v17 = v16;
			INT v18 = WRAP_I63(5LL);
			INT v19 = u64_to_int(v17);
			INT v20 = v19;
			INT v21 = v20;
			INT v22 = v18;
			INT v23 = int_mul(v21, v22);
			INT v24 = v23;
			INT v25 = WRAP_I63(1LL);
			INT v26 = v24;
			INT v27 = v25;
			INT v28 = int_add(v26, v27);
			INT v29 = v28;
			branch_Nat_6 = v29;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_need_Need_TagWord: {
			uint64_t v30 = mtp_mirth_need_Need_TagWord(in_Need_2);
			uint64_t v31 = v30;
			INT v32 = WRAP_I63(5LL);
			INT v33 = u64_to_int(v31);
			INT v34 = v33;
			INT v35 = v34;
			INT v36 = v32;
			INT v37 = int_mul(v35, v36);
			INT v38 = v37;
			INT v39 = WRAP_I63(2LL);
			INT v40 = v38;
			INT v41 = v39;
			INT v42 = int_add(v40, v41);
			INT v43 = v42;
			branch_Nat_6 = v43;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_need_Need_TagPattern: {
			uint64_t v44 = mtp_mirth_need_Need_TagPattern(in_Need_2);
			uint64_t v45 = v44;
			INT v46 = WRAP_I63(5LL);
			INT v47 = u64_to_int(v45);
			INT v48 = v47;
			INT v49 = v48;
			INT v50 = v46;
			INT v51 = int_mul(v49, v50);
			INT v52 = v51;
			INT v53 = WRAP_I63(3LL);
			INT v54 = v52;
			INT v55 = v53;
			INT v56 = int_add(v54, v55);
			INT v57 = v56;
			branch_Nat_6 = v57;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_need_Need_Label: {
			uint64_t v58 = mtp_mirth_need_Need_Label(in_Need_2);
			uint64_t v59 = v58;
			INT v60 = WRAP_I63(5LL);
			INT v61 = u64_to_int(v59);
			INT v62 = v61;
			INT v63 = v62;
			INT v64 = v60;
			INT v65 = int_mul(v63, v64);
			INT v66 = v65;
			INT v67 = WRAP_I63(4LL);
			INT v68 = v66;
			INT v69 = v67;
			INT v70 = int_add(v68, v69);
			INT v71 = v70;
			branch_Nat_6 = v71;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Nat_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp            # imm = 0x240
movl %esi, -0x18(%rbp)
movq %rdx, -0x10(%rbp)
movq %rdi, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x18(%rbp), %eax
movq %rax, -0x240(%rbp)
subq $0x4, %rax
ja 0x21d10a
movq -0x240(%rbp), %rax
leaq 0x13627c(%rip), %rcx    # 0x352f18
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x21d670
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x151e34(%rip), %rax    # 0x36eaf8
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1b520
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x2b090
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x21d123
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x21d6c0
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x151dbb(%rip), %rax    # 0x36eaf8
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
callq 0x1b520
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x2b090
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq 0x151ca8(%rip), %rax    # 0x36ea58
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x1b780
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x21d123
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x21d710
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq 0x151cbd(%rip), %rax    # 0x36eaf8
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rdi
callq 0x1b520
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x118(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x2b090
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x130(%rbp)
movq 0x151bb2(%rip), %rax    # 0x36ea60
movq %rax, -0x138(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x1b780
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x21d123
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x21d760
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x168(%rbp)
movq 0x151bbf(%rip), %rax    # 0x36eaf8
movq %rax, -0x170(%rbp)
movq -0x168(%rbp), %rdi
callq 0x1b520
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rsi
callq 0x2b090
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq 0x151abc(%rip), %rax    # 0x36ea68
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x1b780
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x21d123
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x21d7b0
movq %rax, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq 0x151ac1(%rip), %rax    # 0x36eaf8
movq %rax, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rdi
callq 0x1b520
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x1f8(%rbp), %rdi
movq -0x200(%rbp), %rsi
callq 0x2b090
movq %rax, -0x208(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x210(%rbp)
movq 0x1519de(%rip), %rax    # 0x36ea88
movq %rax, -0x218(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x220(%rbp), %rdi
movq -0x228(%rbp), %rsi
callq 0x1b780
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x21d123
leaq 0x136d70(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nopl (%rax,%rax)