// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_c99zeexternalzeblockzx
static void mw_mirth_c99_c99zeexternalzeblockzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, uint64_t in_ExternalBlock_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99* *out_zaC99_5) {
	struct mirth_mirth_zaMirth* v6;
	struct std_list_List_1 v7 = mw_mirth_external_ExternalBlock_parts(in_zaMirth_1, in_ExternalBlock_3, &v6);
	bool v8 = true;
	struct mirth_c99_zaC99* r9 = in_zaC99_2;
	struct mirth_mirth_zaMirth* r10 = v6;
	struct std_list_List_1 v11 = v7;
	bool v12 = v8;
	bool v13 = v8;
	while (v13) {
		struct mirth_c99_zaC99* r14 = r9;
		struct mirth_mirth_zaMirth* r15 = r10;
		struct std_list_List_1 v16 = v11;
		bool v17 = v12;
		struct mirth_c99_zaC99* branch_zaC99_18;
		struct mirth_mirth_zaMirth* branch_zaMirth_19;
		struct std_list_List_1 branch_List_20;
		bool branch_Bool_21;
		switch ((v16).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v22;
				VAL v23 = mtp_std_list_List_1_Cons(v16, &v22);
				struct mirth_mirth_zaMirth* branch_zaMirth_24;
				struct mirth_c99_zaC99* branch_zaC99_25;
				switch ((V_mirth_external_ExternalBlockPart(v23)).tag) {
					case mirth_external_ExternalBlockPart_EBPCode: {
						STR* v26 = mtp_mirth_external_ExternalBlockPart_EBPCode(V_mirth_external_ExternalBlockPart(v23));
						struct mirth_mirth_zaMirth* v27;
						struct mirth_c99_zaC99* v28;
						mw_mirth_c99_zaC99_put(r15, r14, v26, &v27, &v28);
						struct mirth_mirth_zaMirth* v29;
						struct mirth_c99_zaC99* v30;
						mw_mirth_c99_zaC99_line(v27, v28, &v29, &v30);
						branch_zaC99_25 = v30;
						branch_zaMirth_24 = v29;
					} break;
					case mirth_external_ExternalBlockPart_EBPDef: {
						uint64_t v31 = mtp_mirth_external_ExternalBlockPart_EBPDef(V_mirth_external_ExternalBlockPart(v23));
						struct mirth_mirth_zaMirth* v32;
						struct mirth_c99_zaC99* v33;
						mw_mirth_c99_c99zeexternalzedefzx(r15, r14, v31, &v32, &v33);
						branch_zaC99_25 = v33;
						branch_zaMirth_24 = v32;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				bool v34 = true;
				branch_Bool_21 = v34;
				branch_List_20 = v22;
				branch_zaMirth_19 = branch_zaMirth_24;
				branch_zaC99_18 = branch_zaC99_25;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v35 = { .tag=std_list_List_1_Nil };
				bool v36 = false;
				branch_Bool_21 = v36;
				branch_List_20 = v35;
				branch_zaMirth_19 = r15;
				branch_zaC99_18 = r14;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v13 = branch_Bool_21;
		v12 = branch_Bool_21;
		v11 = branch_List_20;
		r10 = branch_zaMirth_19;
		r9 = branch_zaC99_18;
	}
	decref(MK_std_list_List_1(v11));
	*out_zaC99_5 = r9;
	*out_zaMirth_4 = r10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x2b43d0
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movb $0x1, -0x41(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x6a(%rbp)
testb $0x1, -0x6a(%rbp)
je 0x2b42a9
movq -0x50(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movups -0x68(%rbp), %xmm0
movaps %xmm0, -0x90(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x1d4(%rbp)
testl %eax, %eax
je 0x2b41ed
jmp 0x2b3ff1
movl -0x1d4(%rbp), %eax
subl $0x1, %eax
jne 0x2b4249
jmp 0x2b4002
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x125e0
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x16e8d0
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movl -0x100(%rbp), %eax
movl %eax, -0x1d8(%rbp)
testl %eax, %eax
je 0x2b406f
jmp 0x2b405b
movl -0x1d8(%rbp), %eax
subl $0x1, %eax
je 0x2b410c
jmp 0x2b4185
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x16e8d0
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x2b4440
movq %rax, -0x108(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x108(%rbp), %rdx
leaq -0x120(%rbp), %rcx
leaq -0x128(%rbp), %r8
callq 0x220040
movq -0x120(%rbp), %rdi
movq -0x128(%rbp), %rsi
leaq -0x130(%rbp), %rdx
leaq -0x138(%rbp), %rcx
callq 0x2201d0
movq -0x138(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x2b419e
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x16e8d0
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x2b4540
movq %rax, -0x140(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x140(%rbp), %rdx
leaq -0x158(%rbp), %rcx
leaq -0x160(%rbp), %r8
callq 0x2b4590
movq -0x160(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x2b419e
leaq 0x9fcf5(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb $0x1, -0x161(%rbp)
movb -0x161(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x2b4262
leaq -0x178(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x179(%rbp)
movb -0x179(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x2b4262
leaq 0x9fc31(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0x6a(%rbp)
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x2b3fab
jmp 0x2b42ab
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movq -0x188(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2b43a0
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a0(%rbp), %rax
cmpq $0x0, %rax
je 0x2b43a0
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movq -0x1b0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2b43a0
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1c0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2b439e
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
callq 0x127c0
jmp 0x2b43a0
jmp 0x2b43a2
movq -0x50(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
nopw %cs:(%rax,%rax)