// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_typedef_elabzedefzetypezx
static uint64_t mw_mirth_typedef_elabzedefzetypezx (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	uint64_t v6;
	struct std_list_List_1 v7;
	uint64_t v8;
	struct std_maybe_Maybe_1 v9;
	uint64_t v10 = mw_mirth_typedef_parsezedefzetype(in_zaMirth_1, in_Token_2, &v5, &v6, &v7, &v8, &v9);
	struct mirth_mirth_zaMirth* v11;
	uint64_t v12;
	uint64_t v13;
	INT v14;
	struct mirth_mirth_PropState_1 v15;
	mw_mirth_elab_elabzedefzehead(v5, v6, &v11, &v12, &v13, &v14, &v15);
	struct std_maybe_Maybe_1 v16 = mtw_std_maybe_Maybe_1_Some(MK_mirth_token_Token(v12));
	decref(MKNAT(v14));
	struct mirth_mirth_zaMirth* v17;
	uint64_t v18 = mw_mirth_typedef_TypeDef_Newzx(v11, v9, v16, v13, v15, &v17);
	struct mirth_mirth_PropLabel v19 = mtw_mirth_mirth_PropLabel_TypeDefParams(v18);
	struct mirth_mirth_zaMirth* v20;
	struct mirth_mirth_Prop_1* v21 = mw_mirth_mirth_PropLabel_prop_1_sp15(v7, v17, v19, &v20);
	void* v22 = field_mut(&mfld_mirth_typedef_TypeDef_ztparams, v18);
	mut_set(MK_mirth_mirth_Prop_1(v21), v22);
	struct mirth_mirth_PropLabel v23 = mtw_mirth_mirth_PropLabel_TypeDefTarget(v18);
	PTUP r24 = PTRMK(0,tup_new(2),0);
	((TUP*)PTRPTR(r24))->size = 2;
	((TUP*)PTRPTR(r24))->cells[1] = MK_mirth_token_Token(v8);
	((TUP*)PTRPTR(r24))->cells[0] = MK_mirth_typedef_TypeDef(v18);
	struct mirth_mirth_LexicalState* v25 = v20->mlexicalzestate;
	incref(MK_mirth_mirth_LexicalState(v25));
	FNPTR v26 = &mb_mirth_mirth_PropLabel_prop_1_sp49_0;
	struct mirth_mirth_PropState_1 v27 = mtw_mirth_mirth_PropState_1_Delay(v25, MKTUP(r24), MKFNPTR(v26));
	struct mirth_mirth_Prop_1* v28 = mtw_mirth_mirth_Prop_1_Prop(v23, v27);
	void* v29 = field_mut(&mfld_mirth_typedef_TypeDef_zttarget, v18);
	mut_set(MK_mirth_mirth_Prop_1(v28), v29);
	*out_zaMirth_3 = v20;
	return v10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp            # imm = 0x230
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdx
leaq -0x28(%rbp), %rcx
leaq -0x38(%rbp), %r8
leaq -0x40(%rbp), %r9
leaq -0x50(%rbp), %rax
movq %rax, (%rsp)
callq 0x15e5b0
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq -0x68(%rbp), %rcx
leaq -0x70(%rbp), %r8
leaq -0x78(%rbp), %r9
leaq -0x88(%rbp), %rax
movq %rax, (%rsp)
callq 0xa1770
movq -0x68(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x233d7e(%rip), %rax    # 0x391e48
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0xca10
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x23300d(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15e1f5
movq -0x78(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x232fdb(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0x15e1f5
movq -0x78(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x232fa3(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15e1f5
movq -0x78(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x232f75(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x15e1f3
movq -0x78(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x232f3b(%rip), %rax    # 0x391110
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x127c0
jmp 0x15e1f5
jmp 0x15e1f7
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %r9
movl -0x50(%rbp), %esi
movq -0x48(%rbp), %rdx
movl -0x98(%rbp), %ecx
movq -0x90(%rbp), %r8
leaq -0x88(%rbp), %r10
leaq -0x100(%rbp), %rax
movq (%r10), %r11
movq %r11, (%rsp)
movq 0x8(%r10), %r10
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x706a0
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rdi
callq 0x708a0
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0x100(%rbp), %rdx
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
movl -0x118(%rbp), %ecx
movq -0x110(%rbp), %r8
leaq -0x120(%rbp), %r9
callq 0x15ec70
movq %rax, -0x128(%rbp)
movq -0x108(%rbp), %rsi
leaq 0x1236ee1(%rip), %rdi   # 0x1395178
callq 0x40d30
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x2335a8(%rip), %rax    # 0x391860
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movq -0x130(%rbp), %rdx
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x431a0
movq -0x108(%rbp), %rdi
callq 0x707b0
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl $0x2, %edi
callq 0x1a7d0
orq $0x0, %rax
orq $0x0, %rax
movq %rax, -0x158(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movw $0x2, 0x6(%rax)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, -0x168(%rbp)
leaq 0x233aff(%rip), %rcx    # 0x391e48
movq %rcx, -0x160(%rbp)
movq -0x168(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x160(%rbp), %rcx
movq %rcx, 0x20(%rax)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movq -0x108(%rbp), %rcx
movq %rcx, -0x178(%rbp)
leaq 0x233dd4(%rip), %rcx    # 0x392160
movq %rcx, -0x170(%rbp)
movq -0x178(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x170(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x120(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x190(%rbp)
leaq 0x233520(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15e490
movq -0x180(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq 0x2334eb(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x198(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a0(%rbp), %rax
cmpq $0x0, %rax
je 0x15e490
movq -0x180(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x2334b4(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movq -0x1b0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x15e490
movq -0x180(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq 0x233483(%rip), %rax    # 0x3918f0
orq $0x1, %rax
movq %rax, -0x1b8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x15e492
leaq 0x967(%rip), %rax       # 0x15ee00
movq %rax, -0x1c8(%rbp)
movq -0x180(%rbp), %rdi
movq -0x158(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq 0x232edc(%rip), %rax    # 0x391398
orq $0x1, %rax
movq %rax, -0x1e0(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x1f8(%rbp)
leaq 0x232d0c(%rip), %rax    # 0x3911e8
movq %rax, -0x1f0(%rbp)
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
movq -0x1f8(%rbp), %rcx
movq -0x1f0(%rbp), %r8
callq 0x788b0
movl %eax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
movl -0x1d8(%rbp), %edx
movq -0x1d0(%rbp), %rcx
callq 0x70ac0
movq %rax, -0x200(%rbp)
movq -0x108(%rbp), %rsi
leaq 0x1236c23(%rip), %rdi   # 0x1395168
callq 0x40d30
movq %rax, -0x208(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq 0x2332fa(%rip), %rax    # 0x391860
orq $0x1, %rax
movq %rax, -0x210(%rbp)
movq -0x208(%rbp), %rdx
movq -0x218(%rbp), %rdi
movq -0x210(%rbp), %rsi
callq 0x431a0
movq -0x120(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rax
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
nopw %cs:(%rax,%rax)