// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_maybe_Maybe_1_ifzy_2_sp6
static STR* mw_std_maybe_Maybe_1_ifzy_2_sp6 (INT in_Int_1, struct mirth_mirth_zaMirth* in_zaMirth_2, struct std_maybe_Maybe_1 in_Maybe_3, INT *out_Int_4, struct mirth_mirth_zaMirth* *out_zaMirth_5) {
	INT branch_Int_7;
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	STR* branch_Str_9;
	switch ((in_Maybe_3).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v10 = mtp_std_maybe_Maybe_1_Some(in_Maybe_3);
			struct mirth_mirth_zaMirth* v11;
			uint64_t v12 = mw_mirth_tycon_Tycon_name(in_zaMirth_2, V_mirth_tycon_Tycon(v10), &v11);
			struct mirth_mirth_zaMirth* v13;
			STR* v14 = mw_mirth_name_Name_mangled(v11, v12, &v13);
			branch_Str_9 = v14;
			branch_zaMirth_8 = v13;
			branch_Int_7 = in_Int_1;
		} break;
		case std_maybe_Maybe_1_None: {
			incref(MKINT(in_Int_1));
			STR* v15 = int_to_str(in_Int_1);
			INT v16 = WRAP_I63(1LL);
			INT v17 = v16;
			INT v18 = int_add(in_Int_1, v17);
			branch_Str_9 = v15;
			branch_zaMirth_8 = in_zaMirth_2;
			branch_Int_7 = v18;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_5 = branch_zaMirth_8;
	*out_Int_4 = branch_Int_7;
	return branch_Str_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x10(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0xec(%rbp)
testl %eax, %eax
je 0x2360ec
jmp 0x236055
movl -0xec(%rbp), %eax
subl $0x1, %eax
jne 0x23621c
jmp 0x236066
movl -0x18(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x174a0
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x59cb0
movq -0xf8(%rbp), %rdi
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movl -0x78(%rbp), %esi
movq -0x70(%rbp), %rdx
leaq -0x60(%rbp), %rcx
callq 0x90010
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x223090
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x236235
jmp 0x2360ee
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x15b328(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2361b7
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x15b2f6(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x2361b7
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x15b2c2(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2361b7
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x15b294(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x2361b9
movq -0x8(%rbp), %rdi
callq 0x211e0
movq %rax, -0xd0(%rbp)
movq 0x138888(%rip), %rax    # 0x36ea58
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x1b780
movq %rax, -0xe8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x236235
leaq 0x11dc5e(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopl (%rax,%rax)