// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_byte_Byte_tozeasciizestr
static struct std_maybe_Maybe_1 mw_std_byte_Byte_tozeasciizestr (enum std_byte_Byte in_Byte_1) {
	enum std_byte_Byte v3 = std_byte_Byte_BNUL;
	enum std_byte_Byte v4 = std_byte_Byte_BDEL;
	int64_t v5 = v3;
	INT v6 = i64_to_int(v5);
	uint64_t v7 = int_to_u64(v6);
	uint8_t v8 = (uint8_t)(v7);
	int64_t v9 = in_Byte_1;
	INT v10 = i64_to_int(v9);
	uint64_t v11 = int_to_u64(v10);
	uint8_t v12 = (uint8_t)(v11);
	uint64_t v13 = (uint64_t)(v12);
	uint32_t v14 = (uint32_t)(v13);
	uint64_t v15 = (uint64_t)(v8);
	uint32_t v16 = (uint32_t)(v15);
	uint64_t v17 = (uint64_t)(v16);
	uint64_t v18 = (uint64_t)(v14);
	bool v19 = (v17 <= v18);
	bool branch_Bool_20;
	if (v19) {
		int64_t v21 = in_Byte_1;
		INT v22 = i64_to_int(v21);
		uint64_t v23 = int_to_u64(v22);
		uint8_t v24 = (uint8_t)(v23);
		int64_t v25 = v4;
		INT v26 = i64_to_int(v25);
		uint64_t v27 = int_to_u64(v26);
		uint8_t v28 = (uint8_t)(v27);
		uint64_t v29 = (uint64_t)(v28);
		uint32_t v30 = (uint32_t)(v29);
		uint64_t v31 = (uint64_t)(v24);
		uint32_t v32 = (uint32_t)(v31);
		uint64_t v33 = (uint64_t)(v32);
		uint64_t v34 = (uint64_t)(v30);
		bool v35 = (v33 <= v34);
		branch_Bool_20 = v35;
	} else {
		bool v36 = false;
		branch_Bool_20 = v36;
	}
	struct std_maybe_Maybe_1 branch_Maybe_37;
	if (branch_Bool_20) {
		STR* v38 = mw_std_byte_Byte_tozestrzeunsafe(in_Byte_1);
		struct std_maybe_Maybe_1 v39 = mtw_std_maybe_Maybe_1_Some(MKSTR(v38));
		branch_Maybe_37 = v39;
	} else {
		struct std_maybe_Maybe_1 v40 = { .tag=std_maybe_Maybe_1_None };
		branch_Maybe_37 = v40;
	}
	return branch_Maybe_37;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movl %edi, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x7f, -0x1c(%rbp)
movl -0x18(%rbp), %eax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1a290
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x1b680
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movb %al, -0x39(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0x1a290
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x1b680
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movb %al, -0x59(%rbp)
movzbl -0x59(%rbp), %eax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movl %eax, -0x6c(%rbp)
movzbl -0x39(%rbp), %eax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movq %rax, -0x88(%rbp)
movl -0x6c(%rbp), %eax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x90(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x91(%rbp)
testb $0x1, -0x91(%rbp)
je 0x39d57
movl -0x14(%rbp), %eax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rdi
callq 0x1a290
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x1b680
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movb %al, -0xb1(%rbp)
movl -0x1c(%rbp), %eax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x1a290
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x1b680
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movb %al, -0xd1(%rbp)
movzbl -0xd1(%rbp), %eax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movl %eax, -0xe4(%rbp)
movzbl -0xb1(%rbp), %eax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
movq %rax, -0x100(%rbp)
movl -0xe4(%rbp), %eax
movq %rax, -0x108(%rbp)
movq -0x100(%rbp), %rax
cmpq -0x108(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x109(%rbp)
movb -0x109(%rbp), %al
andb $0x1, %al
movb %al, -0x92(%rbp)
jmp 0x39d6c
movb $0x0, -0x10a(%rbp)
movb -0x10a(%rbp), %al
andb $0x1, %al
movb %al, -0x92(%rbp)
testb $0x1, -0x92(%rbp)
je 0x39ddc
movl -0x14(%rbp), %edi
callq 0x328c0
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x3573bf(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rsi
callq 0xca10
movl %eax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x39e05
leaq -0x148(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x148(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x8(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopw %cs:(%rax,%rax)