// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_maybe_Maybe_1_map_1_sp19
static STR* mw_std_maybe_Maybe_1_map_1_sp19 (STR* in_Str_1, struct std_maybe_Maybe_1 in_Maybe_2, struct std_maybe_Maybe_1 *out_Maybe_4) {
	STR* branch_Str_5;
	struct std_maybe_Maybe_1 branch_Maybe_6;
	switch ((in_Maybe_2).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v7 = mtp_std_maybe_Maybe_1_Some(in_Maybe_2);
			incref(v7);
			incref(MKSTR(in_Str_1));
			INT v8 = WRAP_I63(1LL);
			INT v9 = v8;
			INT v10 = int_add(value_int(v7), v9);
			STR* v11 = mw_std_prim_Str_dropzeslice(v10, in_Str_1);
			STR* v12 = mw_std_prim_Str_takezeslice(value_int(v7), in_Str_1);
			struct std_maybe_Maybe_1 v13 = mtw_std_maybe_Maybe_1_Some(MKSTR(v11));
			branch_Maybe_6 = v13;
			branch_Str_5 = v12;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_maybe_Maybe_1 v14 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v14;
			branch_Str_5 = in_Str_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Maybe_4 = branch_Maybe_6;
	return branch_Str_5;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xf4(%rbp)
testl %eax, %eax
je 0x1ef047
jmp 0x1eee3d
movl -0xf4(%rbp), %eax
subl $0x1, %eax
jne 0x1ef07a
jmp 0x1eee4e
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x174a0
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1eeea7
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
cmpq $0x0, %rax
je 0x1eeea7
movq -0x48(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1eeea7
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x48(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1eeea9
jmp 0x1eeeab
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x1a229e(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1eef56
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x1a2275(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x1eef56
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x1a224a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1eef56
movq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x1a2222(%rip), %rax    # 0x391158
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 0x1eef58
movq 0x17faf9(%rip), %rax    # 0x36ea58
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x2ac40
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x1b780
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rsi
movq -0xa0(%rbp), %rdi
callq 0x1f13f0
movq %rax, -0xb0(%rbp)
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x2ac40
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rsi
movq -0xc0(%rbp), %rdi
callq 0x1f1500
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x1a215f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0xca10
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x1ef093
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xf0(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x1ef093
leaq 0x164e00(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x20(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)