// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_table_StateOwner_push
static struct mirth_type_StackType mw_mirth_table_StateOwner_push (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_table_StateOwner in_StateOwner_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	struct mirth_type_StackType branch_StackType_7;
	switch ((in_StateOwner_3).tag) {
		case mirth_table_StateOwner_Error: {
			decref(MK_mirth_type_StackType(in_StackType_2));
			struct mirth_type_StackType v8 = { .tag=mirth_type_StackType_Error };
			branch_StackType_7 = v8;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_table_StateOwner_Default: {
			branch_StackType_7 = in_StackType_2;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_table_StateOwner_Resource: {
			struct mirth_type_Type v9;
			struct std_list_List_1 v10 = mtp_mirth_table_StateOwner_Resource(in_StateOwner_3, &v9);
			decref(MK_std_list_List_1(v10));
			struct mirth_type_StackType v11 = mw_mirth_type_Tza(in_StackType_2, v9);
			branch_StackType_7 = v11;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_6;
	return branch_StackType_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x30(%rbp)
movq %r8, -0x28(%rbp)
movq %rdi, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x12c(%rbp)
testl %eax, %eax
je 0x14e7f5
jmp 0x14e7d0
movl -0x12c(%rbp), %eax
subl $0x1, %eax
je 0x14e906
jmp 0x14e7e1
movl -0x12c(%rbp), %eax
subl $0x2, %eax
je 0x14e923
jmp 0x14ea9e
jmp 0x14e7f7
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x14e8ce
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x14e8ce
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x14e8ce
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x14e8cc
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x127c0
jmp 0x14e8ce
jmp 0x14e8d0
leaq -0xa8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xa8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x14eab7
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x14eab7
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x14eb20
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x12780
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x14ea56
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x12780
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rax
cmpq $0x0, %rax
je 0x14ea56
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x12780
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xf8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x14ea56
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x12780
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x14ea54
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x12780
movq %rax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rsi
callq 0x127c0
jmp 0x14ea56
jmp 0x14ea58
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
movl -0xb8(%rbp), %edx
movq -0xb0(%rbp), %rcx
callq 0x749a0
movl %eax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x14eab7
leaq 0x2053dc(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopw %cs:(%rax,%rax)