// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btml_appears_valid
bl_t x_btml_appears_valid( x_source* source )
{
    // bcore_x_btml.h:204:1
    BLM_INIT_LEVEL(0);
    bl_t valid = false;
    sz_t index = x_source_get_index(source);
    st_s* type_string = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create()));
    if( x_source_parse_bl(source," #?'<'" ) ) // type specifier
    {
        if( x_source_parse_fa(source,"#until'>'>", type_string ) )
        {
            bcore_error_remove_last();
        }
        else
        {
            if( type_string->size > 0 )
            {
                if( type_string->data[ type_string->size - 1 ] == '/' ) st_s_pop_char(type_string);
            }
            tp_t type = x_btml_type_of(type_string );
            if( bcore_flect_exists( type ) )      valid = true;
            else if( type == btypeof( "#file" ) ) valid = true;
            else if( type == btypeof( "#path" ) ) valid = true;
        }
    }
    
    x_source_set_index(source,index );
    BLM_RETURNV(bl_t, valid)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x12b173(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xd6675
movq $0x0, 0x10(%r15)
movq (%rbx), %r15
leaq 0x12c049(%rip), %r14    # 0x19ccc8
movl (%r14), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x70cd5
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x70cd5
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x70cd5
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x70cde
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x70d05
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x12bfce(%rip), %rdi    # 0x19ccc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %rbx, %rsi
callq 0xffe72
movq %rax, %r15
xorl %eax, %eax
callq 0x109c82
leaq 0x8(%rsp), %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r12
movq (%rbx), %r13
movl (%r14), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x70d8f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x70d8f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x70d8f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x70d98
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x70dbf
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0x12bf14(%rip), %rdi    # 0x19ccc8
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xbd564(%rip), %rdx     # 0x12e32a
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xffe2b
testb %al, %al
je 0x70df7
leaq 0xc6ed8(%rip), %rsi     # 0x137cb4
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x574ed
testq %rax, %rax
je 0x70eab
callq 0xbea71
xorl %ebp, %ebp
movq (%rbx), %r12
movl (%r14), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x70e52
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x70e52
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x70e52
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x70e5b
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x70e82
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x12be51(%rip), %rdi    # 0x19ccc8
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xffe83
leaq 0x8(%rsp), %rdi
callq 0xd6d2c
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x70ec9
movq 0x8(%r12), %rcx
cmpb $0x2f, -0x1(%rcx,%rax)
jne 0x70ec9
movq %r12, %rdi
callq 0x10a519
movq %r12, %rdi
callq 0x70bbf
movq %rax, %r12
movq %rax, %rdi
callq 0xc4c3d
movabsq $0x71f804cfe521c434, %rcx # imm = 0x71F804CFE521C434
cmpq %rcx, %r12
sete %cl
orb %al, %cl
movabsq $0x79a81939fe50f371, %rax # imm = 0x79A81939FE50F371
cmpq %rax, %r12
sete %bpl
orb %cl, %bpl
jmp 0x70df9