// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_lexer_zaLexer_hexdigitzevalue
static INT mw_mirth_lexer_zaLexer_hexdigitzevalue (enum std_byte_Byte in_Byte_1) {
	enum std_byte_Byte v3 = std_byte_Byte_Bzq0zq;
	enum std_byte_Byte v4 = std_byte_Byte_Bzq9zq;
	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;
	}
	INT branch_Int_37;
	if (branch_Bool_20) {
		int64_t v38 = in_Byte_1;
		INT v39 = i64_to_int(v38);
		INT v40 = WRAP_I63(48LL);
		INT v41 = int_sub(v39, v40);
		branch_Int_37 = v41;
	} else {
		enum std_byte_Byte v42 = mw_std_byte_Byte_tozeupper(in_Byte_1);
		int64_t v43 = v42;
		INT v44 = i64_to_int(v43);
		INT v45 = WRAP_I63(55LL);
		INT v46 = int_sub(v44, v45);
		branch_Int_37 = v46;
	}
	return branch_Int_37;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movl %edi, -0xc(%rbp)
movl $0x30, -0x10(%rbp)
movl $0x39, -0x14(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1a290
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1b680
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movb %al, -0x31(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1a290
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0x1b680
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movb %al, -0x51(%rbp)
movzbl -0x51(%rbp), %eax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movl %eax, -0x64(%rbp)
movzbl -0x31(%rbp), %eax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movq %rax, -0x80(%rbp)
movl -0x64(%rbp), %eax
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
cmpq -0x88(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x89(%rbp)
testb $0x1, -0x89(%rbp)
je 0x1e4721
movl -0xc(%rbp), %eax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
callq 0x1a290
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rdi
callq 0x1b680
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movb %al, -0xa9(%rbp)
movl -0x14(%rbp), %eax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x1a290
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x1b680
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movb %al, -0xc9(%rbp)
movzbl -0xc9(%rbp), %eax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movl %eax, -0xdc(%rbp)
movzbl -0xa9(%rbp), %eax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
movq %rax, -0xf8(%rbp)
movl -0xdc(%rbp), %eax
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rax
cmpq -0x100(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x101(%rbp)
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0x8a(%rbp)
jmp 0x1e4736
movb $0x0, -0x102(%rbp)
movb -0x102(%rbp), %al
andb $0x1, %al
movb %al, -0x8a(%rbp)
testb $0x1, -0x8a(%rbp)
je 0x1e4791
movl -0xc(%rbp), %eax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rdi
callq 0x1a290
movq %rax, -0x118(%rbp)
movq 0x18a345(%rip), %rax    # 0x36eaa8
movq %rax, -0x120(%rbp)
movq -0x118(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x1c670
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1e47f2
movl -0xc(%rbp), %edi
callq 0x1e4800
movl %eax, -0x12c(%rbp)
movl -0x12c(%rbp), %eax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
callq 0x1a290
movq %rax, -0x140(%rbp)
movq 0x18a302(%rip), %rax    # 0x36eac8
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x1c670
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nop