// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_external_elabzeexternalzx
static uint64_t mw_mirth_external_elabzeexternalzx (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_list_List_1 v6;
	struct std_maybe_Maybe_1 v7;
	uint64_t v8 = mw_mirth_external_parsezeexternalzedecl(in_zaMirth_1, in_Token_2, &v5, &v6, &v7);
	struct std_list_List_1 v9 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v10;
	mw_std_list_List_1_buildzx(v9, &v10);
	bool v11 = true;
	struct mirth_mirth_zaMirth* r12 = v5;
	struct std_list_List_1 r13 = v10;
	struct std_list_List_1 v14 = v6;
	bool v15 = v11;
	bool v16 = v11;
	while (v16) {
		struct mirth_mirth_zaMirth* r17 = r12;
		struct std_list_List_1 r18 = r13;
		struct std_list_List_1 v19 = v14;
		bool v20 = v15;
		struct mirth_mirth_zaMirth* branch_zaMirth_21;
		struct std_list_List_1 branch_zaLister_22;
		struct std_list_List_1 branch_List_23;
		bool branch_Bool_24;
		switch ((v19).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v25;
				VAL v26 = mtp_std_list_List_1_Cons(v19, &v25);
				struct mirth_mirth_zaMirth* v27;
				struct mirth_external_ExternalBlockPart v28 = mw_mirth_external_elabzeexternalzeblockzepartzx(r17, V_mirth_external_ExternalDeclPart(v26), &v27);
				struct std_list_List_1 v29;
				mw_std_list_zaLister_1_pushzx(MK_mirth_external_ExternalBlockPart(v28), r18, &v29);
				bool v30 = true;
				branch_Bool_24 = v30;
				branch_List_23 = v25;
				branch_zaLister_22 = v29;
				branch_zaMirth_21 = v27;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v31 = { .tag=std_list_List_1_Nil };
				bool v32 = false;
				branch_Bool_24 = v32;
				branch_List_23 = v31;
				branch_zaLister_22 = r18;
				branch_zaMirth_21 = r17;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v16 = branch_Bool_24;
		v15 = branch_Bool_24;
		v14 = branch_List_23;
		r13 = branch_zaLister_22;
		r12 = branch_zaMirth_21;
	}
	decref(MK_std_list_List_1(v14));
	struct std_list_List_1 v33 = mw_std_list_zaLister_1_donezx(r13);
	struct mirth_mirth_zaMirth* v34;
	uint64_t v35 = mw_mirth_external_ExternalBlock_Makezx(r12, v7, in_Token_2, v33, &v34);
	*out_zaMirth_3 = v34;
	return v8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
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 -0x30(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x1608f0
movq %rax, -0x48(%rbp)
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0xc9d0
movb $0x1, -0x69(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x90(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
testb $0x1, -0x9a(%rbp)
je 0x16076b
movq -0x78(%rbp), %rax
movq %rax, -0xa8(%rbp)
movups -0x88(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movups -0x98(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xd1(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0x204(%rbp)
testl %eax, %eax
je 0x160681
jmp 0x160547
movl -0x204(%rbp), %eax
subl $0x1, %eax
jne 0x1606f1
jmp 0x160558
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
leaq -0x118(%rbp), %rdx
callq 0x125e0
movq %rax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x1610b0
movq -0x210(%rbp), %rdi
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0x150(%rbp), %esi
movq -0x148(%rbp), %rdx
leaq -0x130(%rbp), %rcx
callq 0x160f60
movl %eax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movl -0x140(%rbp), %edi
movq -0x138(%rbp), %rsi
callq 0x1610f0
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rsi
movl -0xc0(%rbp), %edx
movq -0xb8(%rbp), %rcx
leaq -0x160(%rbp), %r8
callq 0xcc30
movb $0x1, -0x171(%rbp)
movb -0x171(%rbp), %al
andb $0x1, %al
movb %al, -0x101(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x16070a
leaq -0x188(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x189(%rbp)
movb -0x189(%rbp), %al
andb $0x1, %al
movb %al, -0x101(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x16070a
leaq 0x1f3789(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x1604ef
jmp 0x16076d
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x198(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x160880
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rax
cmpq $0x0, %rax
je 0x160880
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x160880
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1d0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x16087e
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
callq 0x127c0
jmp 0x160880
jmp 0x160882
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0xcea0
movl %eax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movq -0x78(%rbp), %rdi
movq -0x10(%rbp), %rcx
movl -0x40(%rbp), %esi
movq -0x38(%rbp), %rdx
movl -0x1f0(%rbp), %r8d
movq -0x1e8(%rbp), %r9
leaq -0x1f8(%rbp), %rax
movq %rax, (%rsp)
callq 0x161130
movq %rax, -0x200(%rbp)
movq -0x1f8(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
nopl (%rax)