// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mirth_type_StackTypeCounts_set_resources
static struct mirth_type_StackTypeCounts* mirth_type_StackTypeCounts_set_resources(struct mirth_type_StackTypeCounts* self, INT x) {
	if (self->refs > 1) {
		struct mirth_type_StackTypeCounts* self2 = calloc(1, sizeof * self2);
		ASSERT(self2); memcpy(self2, self, sizeof * self2);
		incref(MKNAT(self2->mvalues));
		self2->mresources = x;
		incref(MK_std_list_List_1(self2->mlabels));
		self->refs--;
		return self2;
	}
	decref(MKNAT(self->mresources));
	self->mresources = x;
	return self;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x1, (%rax)
jbe 0x153d40
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x153b94
movl $0x2, %edi
leaq 0x2067b3(%rip), %rsi    # 0x35a329
movl $0x33, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x153b96
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x28, %edx
callq 0x50e0
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
leaq 0x23d555(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x153c5d
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
leaq 0x23d528(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x38(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x40(%rbp), %rax
cmpq $0x0, %rax
je 0x153c5d
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
leaq 0x23d4f9(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x153c5d
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x60(%rbp)
leaq 0x23d4d0(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x153c5f
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edi
movq 0x20(%rax), %rsi
callq 0x12780
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x68(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x153d26
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edi
movq 0x20(%rax), %rsi
callq 0x12780
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rax
cmpq $0x0, %rax
je 0x153d26
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edi
movq 0x20(%rax), %rsi
callq 0x12780
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x90(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x153d26
movq -0x20(%rbp), %rax
movl 0x18(%rax), %edi
movq 0x20(%rax), %rsi
callq 0x12780
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x153d28
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x153e70
jmp 0x153d42
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xb0(%rbp)
leaq 0x23d3b8(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x153e5a
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xc0(%rbp)
leaq 0x23d382(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
cmpq $0x0, %rax
je 0x153e5a
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xd0(%rbp)
leaq 0x23d346(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x153e5a
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xe0(%rbp)
leaq 0x23d314(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x153e58
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xf0(%rbp)
leaq 0x23d2d6(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x127c0
jmp 0x153e5a
jmp 0x153e5c
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax)