// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackTypeCounts_addzeresourcezx
static struct mirth_type_StackTypeCounts* mw_mirth_type_StackTypeCounts_addzeresourcezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Type in_Resource_2, struct mirth_type_StackTypeCounts* in_StackTypeCounts_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	decref(MK_mirth_type_Type(in_Resource_2));
	incref(MK_mirth_type_StackTypeCounts(in_StackTypeCounts_3));
	INT v6 = in_StackTypeCounts_3->mresources;
	incref(MKNAT(v6));
	decref(MK_mirth_type_StackTypeCounts(in_StackTypeCounts_3));
	INT v7 = WRAP_I63(1LL);
	INT v8 = v6;
	INT v9 = v7;
	INT v10 = int_add(v8, v9);
	INT v11 = v10;
	struct mirth_type_StackTypeCounts* v12 = mirth_type_StackTypeCounts_set_resources(in_StackTypeCounts_3, v11);
	*out_zaMirth_4 = in_zaMirth_1;
	return v12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1524cf
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
cmpq $0x0, %rax
je 0x1524cf
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x58(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1524cf
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1524cd
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x127c0
jmp 0x1524cf
jmp 0x1524d1
jmp 0x1524d3
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x2402f3(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x152596
movq -0x20(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x2402c7(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x152596
movq -0x20(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x240293(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x152596
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x240265(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x152598
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x23eb54(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15267c
movq -0xc0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x23eb1f(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
cmpq $0x0, %rax
je 0x15267c
movq -0xc0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x23eae8(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15267c
movq -0xc0(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x23eab7(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15267e
jmp 0x152680
movq -0x20(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x240146(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x152784
movq -0x20(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x240114(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x152784
movq -0x20(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x2400dc(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x152784
movq -0x20(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x2400ae(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x152782
movq -0x20(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq 0x240074(%rip), %rax    # 0x3927d8
orq $0x1, %rax
movq %rax, -0x148(%rbp)
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x127c0
jmp 0x152784
jmp 0x152786
movq 0x21c2cb(%rip), %rax    # 0x36ea58
movq %rax, -0x158(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rdi
movq -0x168(%rbp), %rsi
callq 0x1b780
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x20(%rbp), %rdi
movq -0x178(%rbp), %rsi
callq 0x153b30
movq %rax, -0x180(%rbp)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x180(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopw (%rax,%rax)