// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_input_zaInput_readzechunkzx
static struct std_maybe_Maybe_1 mw_std_input_zaInput_readzechunkzx (struct std_input_zaInput in_zaInput_1, struct std_input_zaInput *out_zaInput_3) {
	struct std_maybe_Maybe_1 branch_Maybe_4;
	struct std_input_zaInput branch_zaInput_5;
	switch ((in_zaInput_1).tag) {
		case std_input_zaInput_Open: {
			struct std_input_zaInputOpenState* v6;
			mtp_std_input_zaInput_Open(in_zaInput_1, &v6);
			INT v7 = v6->moffset;
			incref(MKINT(v7));
			INT v8 = v6->mlength;
			incref(MKINT(v8));
			ARR* r9 = v6->mzabuffer;
			ARR* v10;
			STR* v11 = mw_std_buffer_zaBuffer_strzo(r9, v7, v8, &v10);
			v6->mzabuffer = v10;
			struct std_maybe_Maybe_1 v12 = mtw_std_maybe_Maybe_1_Some(MKSTR(v11));
			struct std_input_zaInput v13;
			mw_std_input_zaInputOpenState_refillzebufferzx(v6, &v13);
			branch_zaInput_5 = v13;
			branch_Maybe_4 = v12;
		} break;
		case std_input_zaInput_Done: {
			struct std_file_zaFile* v14;
			mtp_std_input_zaInput_Done(in_zaInput_1, &v14);
			struct std_maybe_Maybe_1 v15 = { .tag=std_maybe_Maybe_1_None };
			struct std_input_zaInput v16;
			mtw_std_input_zaInput_Done(v14, &v16);
			branch_zaInput_5 = v16;
			branch_Maybe_4 = v15;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaInput_3 = branch_zaInput_5;
	return branch_Maybe_4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movl %edi, -0x20(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x28(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x144(%rbp)
testl %eax, %eax
je 0x1b4629
jmp 0x1b4615
movl -0x144(%rbp), %eax
subl $0x1, %eax
je 0x1b489b
jmp 0x1b4902
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x1b4940
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x1dcdd4(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b46f0
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x1dcdab(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x1b46f0
movq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x1dcd80(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b46f0
movq -0x48(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x1dcd58(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1b46f2
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x1dcd13(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b47d5
movq -0x90(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x1dccde(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x1b47d5
movq -0x90(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq 0x1dcca7(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b47d5
movq -0x90(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x1dcc76(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1b47d7
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x90(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
callq 0x1b4980
movq %rax, -0xe8(%rbp)
movq -0xe0(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0xe8(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq 0x1dc929(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xca10
movl %eax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x1b3550
movq -0x118(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1b491b
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0x1b4ab0
leaq -0x130(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x120(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1b43f0
movq -0x140(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1b491b
leaq 0x19f578(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x28(%rbp), %rax
movups -0x38(%rbp), %xmm0
movups %xmm0, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopw %cs:(%rax,%rax)