// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzetypezeholezx
static struct mirth_type_Type mw_mirth_elab_zaTypeElab_elabzetypezeholezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_elab_zaTypeElab* in_zaTypeElab_2, uint64_t in_Name_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_elab_zaTypeElab* *out_zaTypeElab_5) {
	bool v7 = in_zaTypeElab_2->mallowzetypezeholes;
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_9;
	struct mirth_type_Type branch_Type_10;
	if (v7) {
		uint64_t v11 = in_zaTypeElab_2->mtoken;
		struct mirth_mirth_zaMirth* v12;
		mw_mirth_token_Token_argsze0(in_zaMirth_1, v11, &v12);
		struct mirth_type_Type v13 = mtw_mirth_type_Type_Hole(in_Name_3);
		branch_Type_10 = v13;
		branch_zaTypeElab_9 = in_zaTypeElab_2;
		branch_zaMirth_8 = v12;
	} else {
		uint64_t v14 = in_zaTypeElab_2->mtoken;
		STR* v15;
		STRLIT(v15, "type holes are not allowed here", 31);
		struct mirth_mirth_zaMirth* v16;
		mw_mirth_mirth_zaMirth_emitzeerrorzx(in_zaMirth_1, v14, v15, &v16);
		struct mirth_type_Type v17 = { .tag=mirth_type_Type_Error };
		branch_Type_10 = v17;
		branch_zaTypeElab_9 = in_zaTypeElab_2;
		branch_zaMirth_8 = v16;
	}
	uint64_t v18 = branch_zaTypeElab_9->mtoken;
	struct mirth_mirth_zaMirth* v19;
	uint64_t v20 = mw_mirth_token_Token_next(branch_zaMirth_8, v18, &v19);
	branch_zaTypeElab_9->mtoken = v20;
	*out_zaTypeElab_5 = branch_zaTypeElab_9;
	*out_zaMirth_4 = v19;
	return branch_Type_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq -0x20(%rbp), %rax
movb 0x18(%rax), %al
andb $0x1, %al
movb %al, -0x39(%rbp)
testb $0x1, -0x39(%rbp)
je 0xd19b3
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
movq -0x58(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0x78300
movq -0x28(%rbp), %rdi
callq 0xbb330
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xd1b19
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, 0x12c4139(%rip)   # 0x1395b00
jne 0xd19e1
leaq 0x287673(%rip), %rdi    # 0x359043
movl $0x1f, %esi
callq 0xb6c0
movq %rax, 0x12c411f(%rip)   # 0x1395b00
jmp 0xd19e3
movq 0x12c4116(%rip), %rax   # 0x1395b00
movq %rax, -0x90(%rbp)
leaq 0x2bf760(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd1ab8
movq 0x12c40e1(%rip), %rax   # 0x1395b00
movq %rax, -0xa0(%rbp)
leaq 0x2bf72b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa0(%rbp), %rax
cmpq $0x0, %rax
je 0xd1ab8
movq 0x12c40aa(%rip), %rax   # 0x1395b00
movq %rax, -0xb0(%rbp)
leaq 0x2bf6f4(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd1ab8
movq 0x12c4079(%rip), %rax   # 0x1395b00
movq %rax, -0xc0(%rbp)
leaq 0x2bf6c3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd1aba
movq 0x12c403f(%rip), %rax   # 0x1395b00
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x98c50
leaq -0xd8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xd8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0x48(%rbp), %rdi
movq -0xe0(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x7b380
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x50(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0xe8(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0xf0, %rsp
popq %rbp
retq
nop