name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
fmt::v9::appender fmt::v9::detail::write_padded<(fmt::v9::align::type)2, fmt::v9::appender, char, fmt::v9::appender fmt::v9::detail::write_ptr<char, fmt::v9::appender, unsigned long>(fmt::v9::appender, unsigned long, fmt::v9::basic_format_specs<char> const*)::'lambda'(fmt::v9::appender)&>(fmt::v9::appender, fmt::v9::ba... | FMT_CONSTEXPR auto write_padded(OutputIt out,
const basic_format_specs<Char>& specs,
size_t size, size_t width, F&& f) -> OutputIt {
static_assert(align == align::left || align == align::right, "");
unsigned spec_width = to_unsigned(specs.width);
siz... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movl (%rsi), %eax
xorl %r14d, %r14d
subq %rcx, %rax
cmovaeq %rax, %r14
movzwl 0x9(%rsi), %eax
andl $0xf, %eax
leaq 0x6eb5c(%rip), %rcx # 0x96dcc
movb (%rax,%rcx), %cl
movq %r14, %r15
shrq %cl, %r15
movq %r8, %r13
movq %rdi, %r12... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h |
char const* fmt::v9::detail::parse_replacement_field<char, void fmt::v9::detail::vformat_to<char>(fmt::v9::detail::buffer<char>&, fmt::v9::basic_string_view<char>, fmt::v9::basic_format_args<fmt::v9::basic_format_context<std::conditional<std::is_same<fmt::v9::type_identity<char>::type, char>::value, fmt::v9::appender, ... | FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
Handler&& handler) -> const Char* {
struct id_adapter {
Handler& handler;
int arg_id;
FMT_CONSTEXPR void operator()() { arg_id = handler.on_arg_id(); }
FMT_CONSTEXPR void operator... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
leaq 0x1(%rdi), %rbx
cmpq %rsi, %rbx
je 0x287a4
movq %rdx, %r12
movzbl (%rbx), %eax
cmpl $0x7b, %eax
je 0x28480
cmpl $0x7d, %eax
jne 0x2849e
movl 0x18(%r12), %edx
testl %edx, %edx
js 0x287b0
leal 0x1(%rdx), %eax
movl %eax... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h |
fmt::v9::appender fmt::v9::detail::write_padded<(fmt::v9::align::type)2, fmt::v9::appender, char, char fmt::v9::detail::write_int<fmt::v9::appender, char, fmt::v9::appender fmt::v9::detail::write_int<char, fmt::v9::appender, unsigned __int128>(fmt::v9::appender, fmt::v9::detail::write_int_arg<unsigned __int128>, fmt::v... | FMT_CONSTEXPR auto write_padded(OutputIt out,
const basic_format_specs<Char>& specs,
size_t size, size_t width, F&& f) -> OutputIt {
static_assert(align == align::left || align == align::right, "");
unsigned spec_width = to_unsigned(specs.width);
siz... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movl (%rsi), %eax
xorl %r14d, %r14d
subq %rcx, %rax
cmovaeq %rax, %r14
movzwl 0x9(%rsi), %eax
andl $0xf, %eax
leaq 0x6bc2d(%rip), %rcx # 0x96dcc
movb (%rax,%rcx), %cl
movq %r14, %r15
shrq %cl, %r15
movq %r8, %r12
movq... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h |
fmt::v9::appender fmt::v9::detail::write<char, fmt::v9::appender>(fmt::v9::appender, char const*, fmt::v9::basic_format_specs<char> const&, fmt::v9::detail::locale_ref) | FMT_CONSTEXPR auto write(OutputIt out, const Char* s,
const basic_format_specs<Char>& specs, locale_ref)
-> OutputIt {
return check_cstring_type_spec(specs.type)
? write(out, basic_string_view<Char>(s), specs, {})
: write_ptr<Char>(out, bit_cast<uintptr_t>(s), &s... | pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movzbl 0x8(%rdx), %eax
cmpl $0x10, %eax
jg 0x2c2ea
testl %eax, %eax
je 0x2c2f4
cmpl $0x10, %eax
je 0x2c2f4
leaq 0x6a2dd(%rip), %rdi # 0x965c2
callq 0x47276
cmpl $0x11, %eax
je 0x2c315
cmpl $0x12, %eax
jne 0x2c2de
movq %r14, %rdi
callq ... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h |
fmt::v9::detail::counting_iterator fmt::v9::detail::write_escaped_string<char, fmt::v9::detail::counting_iterator>(fmt::v9::detail::counting_iterator, fmt::v9::basic_string_view<char>) | auto write_escaped_string(OutputIt out, basic_string_view<Char> str)
-> OutputIt {
*out++ = static_cast<Char>('"');
auto begin = str.begin(), end = str.end();
do {
auto escape = find_escape(begin, end);
out = copy_str<Char>(begin, escape.begin, out);
begin = escape.end;
if (!begin) break;
... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
incq %rbx
addq %rsi, %r14
leaq 0x8(%rsp), %r15
movq %r12, %r13
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq %r14, %rsi
subq %r12, %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0x... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h |
void spdlog::logger::log_<char const*>(spdlog::source_loc, spdlog::level::level_enum, fmt::v9::basic_string_view<char>, char const*&&) | void log_(source_loc loc, level::level_enum lvl, string_view_t fmt, Args &&... args)
{
bool log_enabled = should_log(lvl);
bool traceback_enabled = tracer_.enabled();
if (!log_enabled && !traceback_enabled)
{
return;
}
SPDLOG_TRY
{
memo... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movq %r8, %r13
movq %rcx, 0x28(%rsp)
movq %rdx, %r12
movl %esi, %ebp
movl 0x40(%rdi), %ebx
cmpl %esi, %ebx
setg %r15b
movq %rdi, 0x20(%rsp)
addq $0x68, %rdi
callq 0x34bd0
movl %eax, %r14d
xorb $0x1, %al
testb %a... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/logger.h |
void spdlog::logger::log_<unsigned int>(spdlog::source_loc, spdlog::level::level_enum, fmt::v9::basic_string_view<char>, unsigned int&&) | void log_(source_loc loc, level::level_enum lvl, string_view_t fmt, Args &&... args)
{
bool log_enabled = should_log(lvl);
bool traceback_enabled = tracer_.enabled();
if (!log_enabled && !traceback_enabled)
{
return;
}
SPDLOG_TRY
{
memo... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp # imm = 0x1B8
movq %r8, %r13
movq %rcx, 0x28(%rsp)
movq %rdx, %r12
movl %esi, %ebp
movl 0x40(%rdi), %ebx
cmpl %esi, %ebx
setg %r15b
movq %rdi, 0x20(%rsp)
addq $0x68, %rdi
callq 0x34bd0
movl %eax, %r14d
xorb $0x1, %al
testb %a... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/logger.h |
njoy::ENDFtk::section::Type<6>::ContinuumEnergyAngle::TabulatedDistribution::checkLANG(int) | static void
checkLANG( int lang ) {
if ( ( lang != 11 ) and ( lang != 12 ) and ( lang != 13 ) and
( lang != 14 ) and ( lang != 15 ) ) {
Log::error( "Encountered illegal LANG value for a tabulated LAW=1" );
Log::info( "LANG must be equal to 11, 12, 13, 14 or 15" );
Log::info( "LANG value: {}", lan... | pushq %rbx
movl %edi, %ebx
leal -0x10(%rbx), %eax
cmpl $-0x6, %eax
jbe 0x2dc89
popq %rbx
retq
leaq 0x68ccf(%rip), %rdi # 0x9695f
callq 0x20b02
leaq 0x68cf8(%rip), %rdi # 0x96994
callq 0x2dfba
leaq 0x68d17(%rip), %rdi # 0x969bf
movl %ebx, %esi
callq 0x20a9a
movl $0x8, %edi
callq 0x172c0
movq 0xa9288(%rip), %... | /njoy[P]ENDFtk/src/ENDFtk/section/6/ContinuumEnergyAngle/TabulatedDistribution/src/checkLANG.hpp |
void njoy::tools::disco::ENDF::write<double, std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(double, std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&) | static void write( Representation value, Iterator& it ) {
const double absValue = std::abs( value );
std::ostringstream buffer;
if ( absValue == std::numeric_limits< Representation >::infinity() ) {
buffer << std::right << std::setw( w );
if ( value < 0 ) {
buffer << "-Inf";
}
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f0, %rsp # imm = 0x1F0
movq %rdi, %rbx
movdqa %xmm0, 0x10(%rsp)
movq %xmm0, %r15
leaq 0x78(%rsp), %r14
movq %r14, %rdi
callq 0x17860
btrq $0x3f, %r15
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
cmpq %rax, %r15
jne 0x2e42c
leaq 0... | /njoy[P]ENDFtk/build_O3/_deps/tools-src/src/tools/disco/ENDF.hpp |
void njoy::tools::disco::Integer<3u>::write<int, std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(int const&, std::back_insert_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&) | static void write( const Representation& value, Iterator& iter ) {
// std::abs does not exist for all integer types (e.g. unsigned)
const Representation absValue = value < 0 ? -value : value;
const auto required = minimumRequiredWidth( absValue )
+ ( value < 0 ? 1 : 0 );
std::o... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1a0, %rsp # imm = 0x1A0
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %ebp
movl %ebp, %ecx
negl %ecx
cmovsl %ebp, %ecx
movl $0x1, %eax
cmpl $0xa, %ecx
jb 0x2ee98
movl $0xcccccccd, %edx # imm = 0xCCCCCCCD
movl %ecx, %esi
imulq %rdx, %rsi
shrq... | /njoy[P]ENDFtk/build_O3/_deps/tools-src/src/tools/disco/Integer.hpp |
njoy::ENDFtk::ListRecord::ListRecord<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, std::__cxx11... | ListRecord( Iterator& it, const Iterator& end, long& lineNumber,
int MAT, int MF, int MT )
try: metadata( readMetadata( it, end, lineNumber, MAT, MF, MT ) ),
data( record::Sequence::read< record::Real >
( std::get<4>( this->metadata.fields ),
it, en... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r14d
movl %r8d, %ebp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movl 0x50(%rsp), %eax
subq $0x8, %rsp
pushq %rax
callq 0x2f258
addq $0x10, %rsp
movq 0x8(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%... | /njoy[P]ENDFtk/src/ENDFtk/ListRecord.hpp |
njoy::ENDFtk::record::Base<njoy::ENDFtk::record::Real, njoy::ENDFtk::record::Real, njoy::ENDFtk::record::Integer<11>, njoy::ENDFtk::record::Integer<11>, njoy::ENDFtk::record::Integer<11>, njoy::ENDFtk::record::Integer<11>>::Base<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>... | Base( Iterator& it, const Iterator& end )
try :
fields( readFields< nFields - 1 >( it, end, std::true_type() ) )
{
} catch( std::exception& e ){
Log::info( "Encountered error when reading Base of Record" );
Log::info( "what(): {}", e.what() );
throw e;
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x2f53e
leaq 0x8(%r15), %r9
leaq 0x10(%r15), %r8
leaq 0x18(%r15), %rcx
leaq 0x20(%r15), %rdx
movs... | /njoy[P]ENDFtk/src/ENDFtk/record/Base.hpp |
fast_float::from_chars_result_t<char> fast_float::from_chars_advanced<double, char>(char const*, char const*, double&, fast_float::parse_options_t<char>) | FASTFLOAT_CONSTEXPR20
from_chars_result_t<UC> from_chars_advanced(UC const * first, UC const * last,
T &value, parse_options_t<UC> options) noexcept {
static_assert (is_supported_float_type<T>(), "only some floating-point types are supported");
static_assert (is_supported_ch... | cmpq %rsi, %rdi
je 0x2f7fb
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, 0x18(%rsp)
movq %rcx, %r8
shrq $0x20, %r8
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x20(%rsp)
movups %xmm0, 0x2b(%rsp)
movb (%rdi), %al
movl %eax, %r10d
movq %rdi, %rdx
movb %al, 0xe... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/parse_number.h |
fast_float::adjusted_mantissa fast_float::negative_digit_comp<double>(fast_float::bigint&, fast_float::adjusted_mantissa, int) | inline FASTFLOAT_CONSTEXPR20
adjusted_mantissa negative_digit_comp(bigint& bigmant, adjusted_mantissa am, int32_t exponent) noexcept {
bigint& real_digits = bigmant;
int32_t real_exp = exponent;
// get the value of `b`, rounded down, and get a bigint representation of b+h
adjusted_mantissa am_b = am;
// gcc7... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp # imm = 0x208
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r14
movabsq $0xfffffffffffff, %r8 # imm = 0xFFFFFFFFFFFFF
cmpl $-0xb, %edx
jle 0x30b23
movq %r14, %rdx
shrq $0xb, %rdx
leal 0xb(%rbx), %esi
andq %r8, %rdx
xorl %eax,... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/digit_comparison.h |
fast_float::bigint::hi64(bool&) const | constexpr size_t len() const noexcept {
return length;
} | movzwl 0x1f0(%rdi), %edx
cmpl $0x1, %edx
je 0x30d4e
testl %edx, %edx
jne 0x30d60
movb $0x0, (%rsi)
xorl %eax, %eax
retq
movq -0x8(%rdi,%rdx,8), %rax
movb $0x0, (%rsi)
bsrq %rax, %rcx
notl %ecx
shlq %cl, %rax
retq
movq -0x10(%rdi,%rdx,8), %r8
movq -0x8(%rdi,%rdx,8), %rax
bsrq %rax, %rcx
xorq $0x3f, %rcx
je 0x30d81
movq ... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/bigint.h |
bool fast_float::large_mul<(unsigned short)62>(fast_float::stackvec<(unsigned short)62>&, fast_float::span<unsigned long>) | FASTFLOAT_CONSTEXPR20
bool large_mul(stackvec<size>& x, limb_span y) noexcept {
if (y.len() == 1) {
FASTFLOAT_TRY(small_mul(x, y[0]));
} else {
FASTFLOAT_TRY(long_mul(x, y));
}
return true;
} | cmpq $0x1, %rdx
jne 0x30f38
movzwl 0x1f0(%rdi), %r8d
testq %r8, %r8
je 0x30f47
movq (%rsi), %rcx
xorl %r9d, %r9d
xorl %esi, %esi
movq %rcx, %rax
mulq (%rdi,%r9,8)
addq %rsi, %rax
movq %rdx, %rsi
adcq $0x0, %rsi
movq %rax, (%rdi,%r9,8)
incq %r9
cmpq %r9, %r8
jne 0x30efe
testq %rsi, %rsi
je 0x30f47
cmpw $0x3d, %r8w
ja 0x... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/bigint.h |
fast_float::bigint::shl_bits(unsigned long) | FASTFLOAT_CONSTEXPR20 bool shl_bits(size_t n) noexcept {
// Internally, for each item, we shift left by n, and add the previous
// right shifted limb-bits.
// For example, we transform (for u8) shifted left 2, to:
// b10100100 b01000010
// b10 b10010001 b00001000
FASTFLOAT_DEBUG_ASSERT... | movzwl 0x1f0(%rdi), %r8d
movb $0x1, %al
testq %r8, %r8
je 0x31320
pushq %rbx
movl $0x40, %edx
subq %rsi, %rdx
xorl %r9d, %r9d
xorl %r10d, %r10d
movq %r9, %r11
movq (%rdi,%r10,8), %r9
movq %r9, %rbx
movl %esi, %ecx
shlq %cl, %rbx
movl %edx, %ecx
shrq %cl, %r11
orq %rbx, %r11
movq %r11, (%rdi,%r10,8)
incq %r10
cmpq %r10,... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/bigint.h |
fast_float::from_chars_result_t<char> fast_float::from_chars<long, char, int>(char const*, char const*, long&, int) | FASTFLOAT_CONSTEXPR20
from_chars_result_t<UC> from_chars(UC const* first, UC const* last, T& value, int base) noexcept {
static_assert (is_supported_char_type<UC>(), "only char, wchar_t, char16_t and char32_t are supported");
from_chars_result_t<UC> answer;
#ifdef FASTFLOAT_SKIP_WHITE_SPACE // disabled by default... | movq %rdi, %rax
cmpq %rsi, %rdi
sete %r8b
leal -0x25(%rcx), %edi
cmpl $-0x23, %edi
setb %dil
orb %r8b, %dil
movl $0x16, %edi
jne 0x316b3
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, -0x10(%rsp)
movb (%rax), %dl
xorl %edi, %edi
movb %dl, -0x11(%rsp)
cmpb $0x2d, %dl
sete %dil
addq %rax, %r... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/parse_number.h |
njoy::ENDFtk::record::TailVerification<0, njoy::ENDFtk::record::TailVerification<1, njoy::ENDFtk::record::TailVerification<2, njoy::ENDFtk::record::Tail>>>::TailVerification<int&, int&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__nor... | TailVerification( int expectedValue, Args&&... args ) :
Tail( std::forward< Args >( args )... ) {
if( this->fields[ position ] != expectedValue ){
Log::error( "The record {} number ({}) is inconsistent with expectation.",
helper::name< position >, helper::symbol< position > );
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, %rax
movl %esi, %ebx
movq %rdi, %r14
movq 0xb0(%rsp), %r9
movl (%rdx), %esi
movq %rcx, %rdx
movq %r8, %rcx
movq %rax, %r8
callq 0x31898
cmpl %ebx, (%r14)
jne 0x316f8
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x38(%rsp), %r12... | /njoy[P]ENDFtk/src/ENDFtk/record/TailVerifying.hpp |
njoy::ENDFtk::record::TailVerification<2, njoy::ENDFtk::record::Tail>::TailVerification<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>... | TailVerification( int expectedValue, Args&&... args ) :
Tail( std::forward< Args >( args )... ) {
if( this->fields[ position ] != expectedValue ){
Log::error( "The record {} number ({}) is inconsistent with expectation.",
helper::name< position >, helper::symbol< position > );
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, %r15
movl %esi, %ebx
movq %rdi, %r14
movq %rdx, %rdi
movq %rcx, %rsi
callq 0x31d2e
movq %rax, (%r14)
movl %edx, 0x8(%r14)
incq (%r15)
cmpl %ebx, %edx
jne 0x31b8e
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x38(%rsp), %r12
mov... | /njoy[P]ENDFtk/src/ENDFtk/record/TailVerifying.hpp |
std::array<int, 3ul> njoy::ENDFtk::record::Tail::read<__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<ch... | int material() const { return this->fields[0]; } | pushq %rbx
subq $0x10, %rsp
leaq 0x4(%rsp), %rcx
leaq 0x8(%rsp), %r8
movq %rsp, %rdx
callq 0x31db6
movq (%rsp), %rax
movl 0x8(%rsp), %edx
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x31da5
movq %rbx, %rdi
callq 0x17210
leaq 0x64f5f(%rip), %rdi # 0x96cc9
callq 0x20b02
movl $0x8, %edi
callq 0... | /njoy[P]ENDFtk/src/ENDFtk/record/Tail.hpp |
int njoy::tools::disco::Integer<4u>::read<int, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, st... | static Representation read( Iterator& iter, const Iterator& ) {
unsigned int position = 0;
const auto end = iter + Width;
Representation value = 0;
skipSpaces( iter, position );
if ( isNewLine( iter ) || isEndOfFile( iter ) || Width == position ) {
return value;
}
skipPlusSign( ite... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x4(%rax), %r14
movl $0x0, 0xc(%rsp)
incq %rax
xorl %ebp, %ebp
cmpb $0x20, -0x1(%rax)
jne 0x31e33
incl %ebp
movq %rax, (%rbx)
incq %rax
cmpl $0x4, %ebp
jne 0x31e1b
movl $0x4, %ebp
movq %rbx, %rdi
callq 0x2f703
testb %al, %al
jne 0x... | /njoy[P]ENDFtk/build_O3/_deps/tools-src/src/tools/disco/Integer.hpp |
fast_float::from_chars_result_t<char> fast_float::from_chars<int, char, int>(char const*, char const*, int&, int) | FASTFLOAT_CONSTEXPR20
from_chars_result_t<UC> from_chars(UC const* first, UC const* last, T& value, int base) noexcept {
static_assert (is_supported_char_type<UC>(), "only char, wchar_t, char16_t and char32_t are supported");
from_chars_result_t<UC> answer;
#ifdef FASTFLOAT_SKIP_WHITE_SPACE // disabled by default... | movq %rdi, %rax
cmpq %rsi, %rdi
sete %r8b
leal -0x25(%rcx), %edi
cmpl $-0x23, %edi
setb %dil
orb %r8b, %dil
movl $0x16, %edi
jne 0x3213e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, -0x10(%rsp)
movb (%rax), %dl
xorl %edi, %edi
movb %dl, -0x11(%rsp)
cmpb $0x2d, %dl
sete %dil
addq %rax, %r... | /njoy[P]ENDFtk/build_O3/_deps/fast_float-src/include/fast_float/parse_number.h |
int njoy::tools::disco::Integer<2u>::read<int, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, st... | static Representation read( Iterator& iter, const Iterator& ) {
unsigned int position = 0;
const auto end = iter + Width;
Representation value = 0;
skipSpaces( iter, position );
if ( isNewLine( iter ) || isEndOfFile( iter ) || Width == position ) {
return value;
}
skipPlusSign( ite... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x2(%rax), %r14
movl $0x0, 0xc(%rsp)
xorl %r15d, %r15d
cmpb $0x20, (%rax)
movl $0x0, %r12d
movl $0x0, %ebp
jne 0x32198
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movb 0x1(%rax), %al
movl $0x1, %ebp
cmpb $0x20, %al... | /njoy[P]ENDFtk/build_O3/_deps/tools-src/src/tools/disco/Integer.hpp |
int njoy::tools::disco::Integer<3u>::read<int, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, st... | static Representation read( Iterator& iter, const Iterator& ) {
unsigned int position = 0;
const auto end = iter + Width;
Representation value = 0;
skipSpaces( iter, position );
if ( isNewLine( iter ) || isEndOfFile( iter ) || Width == position ) {
return value;
}
skipPlusSign( ite... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x3(%rax), %r14
movl $0x0, 0xc(%rsp)
incq %rax
xorl %ebp, %ebp
cmpb $0x20, -0x1(%rax)
jne 0x3232d
incl %ebp
movq %rax, (%rbx)
incq %rax
cmpl $0x3, %ebp
jne 0x32315
movl $0x3, %ebp
movq %rbx, %rdi
callq 0x2f703
testb %al, %al
jne 0x... | /njoy[P]ENDFtk/build_O3/_deps/tools-src/src/tools/disco/Integer.hpp |
spdlog::details::M_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v9::basic_memory_buffer<char, 250ul, std::allocator<char>>&) | void format(const details::log_msg &, const std::tm &tm_time, memory_buf_t &dest) override
{
const size_t field_size = 2;
ScopedPadder p(field_size, padinfo_, dest);
fmt_helper::pad2(tm_time.tm_min, dest);
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rcx, %rbx
movl 0x4(%rdx), %r14d
cmpq $0x63, %r14
ja 0x402ed
movzbl %r14b, %eax
imull $0xcd, %eax, %r15d
shrl $0xb, %r15d
leal (%r15,%r15), %eax
leal (%rax,%rax,4), %eax
subb %al, %r14b
orb $0x30, %r15b
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rb... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h |
spdlog::details::S_formatter<spdlog::details::null_scoped_padder>::format(spdlog::details::log_msg const&, tm const&, fmt::v9::basic_memory_buffer<char, 250ul, std::allocator<char>>&) | void format(const details::log_msg &, const std::tm &tm_time, memory_buf_t &dest) override
{
const size_t field_size = 2;
ScopedPadder p(field_size, padinfo_, dest);
fmt_helper::pad2(tm_time.tm_sec, dest);
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rcx, %rbx
movl (%rdx), %r14d
cmpq $0x63, %r14
ja 0x403d0
movzbl %r14b, %eax
imull $0xcd, %eax, %r15d
shrl $0xb, %r15d
leal (%r15,%r15), %eax
leal (%rax,%rax,4), %eax
subb %al, %r14b
orb $0x30, %r15b
movq 0x10(%rbx), %rax
leaq 0x1(%rax), %rsi
cmpq %rsi, 0x18(%rbx)
... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h |
std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::synchronous_factory>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, spdlog::color_mode) | SPDLOG_INLINE std::shared_ptr<logger> stderr_color_mt(const std::string &logger_name, color_mode mode)
{
return Factory::template create<sinks::stderr_color_sink_mt>(logger_name, mode);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movl %edx, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x22824
movq %rbx, %rdi
movq %r15, %rsi
movq ... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/sinks/stdout_color_sinks-inl.h |
spdlog::async_logger::backend_sink_it_(spdlog::details::log_msg const&) | SPDLOG_INLINE void spdlog::async_logger::backend_sink_it_(const details::log_msg &msg)
{
for (auto &sink : sinks_)
{
if (sink->should_log(msg.level))
{
SPDLOG_TRY
{
sink->log(msg);
}
SPDLOG_LOGGER_CATCH(msg.source)
}
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%rdi), %rbp
movq 0x30(%rdi), %r15
cmpq %r15, %rbp
je 0x45a13
leaq 0x38(%rsp), %r12
leaq 0x50f4a(%rip), %r13 # 0x96873
movq (%rbp), %rdi
movl 0x10(%r14), %esi
callq 0x36f1c
testb %al, %al
je 0... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/async_logger-inl.h |
spdlog::details::thread_pool::thread_pool(unsigned long, unsigned long, std::function<void ()>, std::function<void ()>) | SPDLOG_INLINE thread_pool::thread_pool(
size_t q_max_items, size_t threads_n, std::function<void()> on_thread_start, std::function<void()> on_thread_stop)
: q_(q_max_items)
{
if (threads_n == 0 || threads_n > 1000)
{
throw_spdlog_ex("spdlog::thread_pool(): invalid threads_n param (valid "
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %r14
movq %rcx, 0x28(%rsp)
movq %rdx, %r15
movq %rdi, %rbx
callq 0x467ce
leaq 0xc0(%rbx), %rax
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xc0(%rbx)
movq $0x0, 0xd0(%rbx)
movq %r15, 0x20(%rsp)
leaq -0x3e9(%r15), %rax... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/details/thread_pool-inl.h |
spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>::mpmc_blocking_queue(unsigned long) | explicit mpmc_blocking_queue(size_t max_items)
: q_(max_items)
{} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
xorl %r13d, %r13d
movq %r13, 0x20(%rdi)
leaq 0x28(%rdi), %rbx
movq %rbx, %rdi
callq 0x178c0
leaq 0x58(%r12), %r14
movq %r14, %rdi
callq 0x178c0
incq %r... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/details/mpmc_blocking_q.h |
spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>::enqueue(spdlog::details::async_msg&&) | void enqueue(T &&item)
{
{
std::unique_lock<std::mutex> lock(queue_mutex_);
pop_cv_.wait(lock, [this] { return !this->q_.full(); });
q_.push_back(std::move(item));
}
push_cv_.notify_one();
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %rdi, (%r15)
movb $0x0, 0x8(%r15)
movq %r15, %rdi
callq 0x47026
movb $0x1, 0x8(%r15)
leaq 0x58(%rbx), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4708a
leaq 0x88(%rbx), %rdi
movq %r14, %rsi
callq 0x470da
movq %rsp, %... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/details/mpmc_blocking_q.h |
spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>::dequeue_for(spdlog::details::async_msg&, std::chrono::duration<long, std::ratio<1l, 1000l>>) | bool dequeue_for(T &popped_item, std::chrono::milliseconds wait_duration)
{
{
std::unique_lock<std::mutex> lock(queue_mutex_);
if (!push_cv_.wait_for(lock, wait_duration, [this] { return !this->q_.empty(); }))
{
return false;
}
popp... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %rdx, (%r15)
leaq 0x8(%rsp), %r12
movq %rdi, (%r12)
movb $0x0, 0x8(%r12)
movq %r12, %rdi
callq 0x47026
movb $0x1, 0x8(%r12)
leaq 0x28(%rbx), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, ... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/details/mpmc_blocking_q.h |
spdlog::details::circular_q<spdlog::details::async_msg>::push_back(spdlog::details::async_msg&&) | void push_back(T &&item)
{
if (max_items_ > 0)
{
v_[tail_] = std::move(item);
tail_ = (tail_ + 1) % max_items_;
if (tail_ == head_) // overrun last item if full
{
head_ = (head_ + 1) % max_items_;
++overrun_counter_;
... | cmpq $0x0, (%rdi)
je 0x47123
pushq %rbx
movq %rdi, %rbx
imulq $0x198, 0x10(%rdi), %rdi # imm = 0x198
addq 0x20(%rbx), %rdi
callq 0x47124
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
incq %rax
xorl %edx, %edx
divq %rcx
movq %rdx, 0x10(%rbx)
cmpq 0x8(%rbx), %rdx
jne 0x47122
incq %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
cmovneq %r... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/details/circular_q.h |
fmt::v9::detail::format_error_code(fmt::v9::detail::buffer<char>&, int, fmt::v9::basic_string_view<char>) | FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
string_view message) noexcept {
// Report error code making sure that the output fits into
// inline_buffer_size to avoid dynamic memory allocation and potential
// bad_alloc.
out.try_resize(0);
static c... | pushq %rbp
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq $0x0, 0x10(%rdi)
movl %esi, %eax
negl %eax
cmovsl %esi, %eax
movl %eax, %esi
orl $0x1, %esi
bsrl %esi, %esi
leaq 0x4fc69(%rip), %rdi # 0x96f50
addq (%rdi,%rsi,8), %rax
shrq $0x20, %rax
movl %ebp, %esi
shrl $0x1f, %esi
addq %rax, %rsi
movl $... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h |
fmt::v9::detail::report_error(void (*)(fmt::v9::detail::buffer<char>&, int, char const*), int, char const*) | FMT_FUNC void report_error(format_func func, int error_code,
const char* message) noexcept {
memory_buffer full_message;
func(full_message, error_code, message);
// Don't use fwrite_fully because the latter may throw.
if (std::fwrite(full_message.data(), full_message.size(), 1, stderr... | pushq %r14
pushq %rbx
subq $0x218, %rsp # imm = 0x218
movq %rdi, %rax
leaq 0x20(%rsp), %rbx
movq $0x0, -0x10(%rbx)
leaq 0x89ecc(%rip), %rcx # 0xd1260
addq $0x10, %rcx
movq %rcx, -0x20(%rbx)
movq %rbx, -0x18(%rbx)
movq $0x1f4, -0x8(%rbx) # imm = 0x1F4
movq %rsp, %rdi
callq *%rax
movq 0x8(%rsp), %rdi
... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h |
fmt::v9::vsystem_error(int, fmt::v9::basic_string_view<char>, fmt::v9::basic_format_args<fmt::v9::basic_format_context<fmt::v9::appender, char>>) | FMT_FUNC std::system_error vsystem_error(int error_code, string_view format_str,
format_args args) {
auto ec = std::error_code(error_code, std::generic_category());
return std::system_error(ec, vformat(format_str, args));
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbp
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movl %esi, 0x4(%rsp)
movq %rdi, %r14
callq 0x172f0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %rbp, %r8
callq 0x474c7
movq %r14,... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h |
fmt::v9::detail::utf8_to_utf16::utf8_to_utf16(fmt::v9::basic_string_view<char>) | FMT_FUNC detail::utf8_to_utf16::utf8_to_utf16(string_view s) {
for_each_codepoint(s, [this](uint32_t cp, string_view) {
if (cp == invalid_code_point) FMT_THROW(std::runtime_error("invalid utf8"));
if (cp <= 0xFFFF) {
buffer_.push_back(static_cast<wchar_t>(cp));
} else {
cp -= 0x10000;
bu... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, 0x10(%rdi)
leaq 0x8bd17(%rip), %rax # 0xd32a0
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %r12
movq %r12, 0x8(%rdi)
movq $0x1f4, 0x18(%rdi) # imm = 0x1F4
movq %rsi, %rax
cm... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h |
fmt::v9::format_system_error(fmt::v9::detail::buffer<char>&, int, char const*) | FMT_FUNC void format_system_error(detail::buffer<char>& out, int error_code,
const char* message) noexcept {
FMT_TRY {
auto ec = std::error_code(error_code, std::generic_category());
write(std::back_inserter(out), std::system_error(ec, message).what());
return;
} | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x172f0
leaq 0x8(%rsp), %rdi
movl %ebp, %esi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x47e1e
leaq 0x8(%rsp), %rdi
callq 0x17870
movq %r14, %rdi
movq %rax, %rsi
callq 0x47de4
leaq 0x8(%rsp), %rdi
callq 0x17cc... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h |
fmt::v9::vprint(_IO_FILE*, fmt::v9::basic_string_view<char>, fmt::v9::basic_format_args<fmt::v9::basic_format_context<fmt::v9::appender, char>>) | FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
memory_buffer buffer;
detail::vformat_to(buffer, format_str, args);
detail::print(f, {buffer.data(), buffer.size()});
} | pushq %r14
pushq %rbx
subq $0x218, %rsp # imm = 0x218
movq %rdi, %rbx
leaq 0x20(%rsp), %r14
movq $0x0, -0x10(%r14)
leaq 0x89aac(%rip), %rax # 0xd1260
addq $0x10, %rax
movq %rax, -0x20(%r14)
movq %r14, -0x18(%r14)
movq $0x1f4, -0x8(%r14) # imm = 0x1F4
movq %rsp, %rdi
xorl %r9d, %r9d
callq 0x2138d
mov... | /njoy[P]ENDFtk/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format-inl.h |
osfmode | int
osfmode( const char *fname, int follow_links, unsigned long *mode,
unsigned long* attr )
{
os_file_stat_t s;
int ok;
if ((ok = os_file_stat(fname, follow_links, &s)) != false) {
if (mode != NULL)
*mode = s.mode;
if (attr != NULL)
*attr = s.attrs;
}
... | pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
leaq 0x8(%rsp), %rdx
callq 0xea33
testl %eax, %eax
je 0xea2b
testq %r14, %r14
je 0xea1e
movq 0x28(%rsp), %rcx
movq %rcx, (%r14)
testq %rbx, %rbx
je 0xea2b
movq 0x30(%rsp), %rcx
movq %rcx, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r14
retq
| /realnc[P]frobtads/src/osportable.cc |
os_file_stat | int
os_file_stat( const char *fname, int follow_links, os_file_stat_t *s )
{
struct stat buf;
if ((follow_links ? stat(fname, &buf) : lstat(fname, &buf)) != 0)
return false;
s->sizelo = (uint32_t)(buf.st_size & 0xFFFFFFFF);
s->sizehi = sizeof(buf.st_size) > 4
? (uint32_t)((buf.s... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rdi, %r14
testl %esi, %esi
je 0xea5d
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xe210
jmp 0xea6a
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xe510
xorl %r15d, %r15d
testl %eax, %eax
je 0xea86
movl %r15d, %eax
addq ... | /realnc[P]frobtads/src/osportable.cc |
os_resolve_symlink | int
os_resolve_symlink( const char *fname, char *target, size_t target_size )
{
// get the stat() information for the *undereferenced* link; if
// it's not actually a link, there's nothing to resolve
struct stat buf;
if (lstat(fname, &buf) != 0 or (buf.st_mode & S_IFLNK) == 0)
return false;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %rsi
callq 0xe510
xorl %ebp, %ebp
testl %eax, %eax
je 0xebeb
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
testb $-0x60, 0x21(%rsp)
je 0xebdb
movq 0x38(%rsp), %rax... | /realnc[P]frobtads/src/osportable.cc |
os_rand | void
os_rand( long* val )
{
static std::default_random_engine rdev(time(0));
*val = rdev();
} | pushq %rbx
movq %rdi, %rbx
movb 0x3e6a6(%rip), %al # 0x4d2d0
testb %al, %al
je 0xec72
imulq $0x41a7, 0x3e68f(%rip), %rcx # imm = 0x41A7
movabsq $0x200000005, %rdx # imm = 0x200000005
movq %rcx, %rax
mulq %rdx
movq %rcx, %rax
subq %rdx, %rax
shrq %rax
addq %rdx, %rax
shrq $0x1e, %rax
movq %rax, %rdx
shlq $0x1f... | /realnc[P]frobtads/src/osportable.cc |
os_gen_rand_bytes | void os_gen_rand_bytes( unsigned char* buf, size_t len )
{
std::independent_bits_engine
<std::random_device, CHAR_BIT, unsigned char> eng;
std::generate(buf, buf + len, std::ref(eng));
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1388, %rsp # imm = 0x1388
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %rdi
callq 0x103ae
testq %rbx, %rbx
je 0xecb4
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0xe3b0
movb %al, (%r14,%r12)
incq %r12
cmpq %r12, %rbx
jne 0xeca0
movq %rsp, %rdi
callq... | /realnc[P]frobtads/src/osportable.cc |
os_get_sys_clock_ms | long
os_get_sys_clock_ms( void )
{
using namespace std::chrono;
static const auto start = steady_clock::now();
return duration_cast<milliseconds>(steady_clock::now() - start).count();
} | pushq %rax
movb 0x3e5f1(%rip), %al # 0x4d2e0
testb %al, %al
je 0xed1c
callq 0xe380
subq 0x3e5d9(%rip), %rax # 0x4d2d8
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rdx, %rax
popq %rcx
retq
callq 0xe590
jmp 0xecf3
| /realnc[P]frobtads/src/osportable.cc |
os_read_dir | int os_read_dir(osdirhdl_t hdl, char *buf, size_t buflen)
{
// Read the next directory entry - if we've exhausted the search,
// return failure.
struct dirent *d = readdir(hdl);
if (d == 0)
return false;
// return this entry
safe_strcpy(buf, buflen, d->d_name);
return true;
} | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
callq 0xe440
testq %rax, %rax
je 0xede5
movq %rax, %r15
addq $0x13, %r15
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
cmpq %r14, %r15
sete %al
orb %cl, %al
movl $0x1, %ebp
jne 0xede7
movq %r15, %rdi
callq 0xe150
d... | /realnc[P]frobtads/src/osportable.cc |
os_gen_charmap_filename | void
os_gen_charmap_filename( char* filename, char* internal_id, char* /*argv0*/ )
{
char mapname[32];
os_get_charmap(mapname, OS_CHARMAP_DISPLAY);
// Theoretically, we can get mapname so long that with 4-letter
// internal id and 4-letter extension '.tcp' it will be longer
// than OSFNMAX. Highly... | pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %r15, %rdi
callq 0xf4b1
movq %r15, %rdi
callq 0xe150
movl $0xff7, %edx # imm = 0xFF7
cmpq %rdx, %rax
cmovbq %rax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe200
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe4... | /realnc[P]frobtads/src/osportable.cc |
os_get_event | int os_get_event(unsigned long timeout, int use_timeout,
os_event_info_t *info)
{
/* if there's a timeout, return an error indicating we don't allow it */
if (use_timeout)
return OS_EVT_NOTIMEOUT;
/* get a key the normal way */
info->key[0] = os_getc();
/* if it's an exten... | movl $0x4, %eax
testl %esi, %esi
je 0x10536
retq
pushq %rbx
movq %rdx, %rbx
callq 0x10392
movl %eax, (%rbx)
testl %eax, %eax
jne 0x10559
callq 0x10392
movl %eax, %ecx
movl %eax, 0x4(%rbx)
movl $0x5, %eax
cmpl $0x20, %ecx
je 0x1055e
movl $0x1, %eax
popq %rbx
retq
| /realnc[P]frobtads/tads2/osgen3.c |
linfini2 | void linfini2(mcmcxdef *mctx, linfdef *linf,
char *filename, int flen, osfildef *fp, int new_line_records)
{
/* set up method pointers */
linf->linflin.lingetp = linfget;
linf->linflin.linclsp = linfcls;
linf->linflin.linppos = linfppos;
linf->linflin.linglop = (new_line_records ? linf... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x170(%rip), %rax # 0x14a1c
movq %rax, (%rsi)
leaq 0x367(%rip), %rax # 0x14c1d
movq %rax, 0x8(%rsi)
leaq 0x368(%rip), %rax # 0x14c29
movq %rax, 0x10(%rsi)
testl %r9d, %r9d
leaq 0x385(%rip), %rax ... | /realnc[P]frobtads/tads2/linf.c |
linfget | int linfget(lindef *lin)
{
# define linf ((linfdef *)lin)
char *p;
size_t rdlen;
int nl_len;
/* remember seek position of start of current line */
linf->linfseek = osfpos(linf->linffp);
/*
* if we have data left in the buffer after the end of this line,
* move it to the... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0xd0(%rdi), %rdi
callq 0xe030
movq %rax, 0x150(%rbx)
movslq 0x140(%rbx), %rdx
leaq 0xd8(%rbx), %r14
testq %rdx, %rdx
je 0x14a97
movslq 0x13c(%rbx), %rsi
addq %r14, %rsi
movq %r14, %rdi
callq 0xe490
movslq 0x140(%rbx), %rax
subq %rax, 0x150(%rbx... | /realnc[P]frobtads/tads2/linf.c |
linfcmp | void linfcmp(lindef *lin, uchar *buf)
{
uint pg;
uchar *objptr;
# define linf ((linfdef *)lin)
/* figure out which page to use, and lock it */
pg = linf->linfcrec >> 10; /* 2^10 records per page */
if (pg >= LINFPGMAX)
errsig(linf->linfmem->mcmcxgl->mcmcxerr, ERR_... | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x260(%rdi), %rax
movabsq $0x3fffffe0000, %rcx # imm = 0x3FFFFFE0000
testq %rcx, %rax
jne 0x14e2a
movq %rsi, %r15
shrl $0x9, %eax
andl $0xfe, %eax
leaq (%rbx,%rax), %r14
addq $0x160, %r14 # imm = 0x160
movzwl (%r14), %eax
movq 0x158(%rbx), %rdi
cmpw $-... | /realnc[P]frobtads/tads2/linf.c |
linfact | void linfact(lindef *lin)
{
char *fname;
# define linf ((linfdef *)lin)
/* get the name buffer, and advance to the full path name portion */
fname = linf->linfnam;
fname += strlen(fname) + 1;
/*
* If the full path name is empty, it means that the UI told us to
* defer searching ... | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x268(%rdi), %r15
movq %r15, %rdi
callq 0xe150
leaq (%rbx,%rax), %r14
addq $0x269, %r14 # imm = 0x269
cmpb $0x0, (%r14)
jne 0x14e8d
movl $0x1000, %ecx # imm = 0x1000
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
movl $0x1, %r8d
callq 0x105b9
t... | /realnc[P]frobtads/tads2/linf.c |
toktlini | void toktlini(errcxdef *errctx, toktldef *toktab, uchar *mem, uint siz)
{
CLRSTRUCT(*toktab);
/* initialize superclass data */
toktab->toktlsc.toktfadd = toktladd; /* set add-symbol method */
toktab->toktlsc.toktfsea = toktlsea; /* set search-table method */
toktab->toktlsc.to... | xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movups %xmm0, 0x10(%rsi)
movups %xmm0, 0x20(%rsi)
movups %xmm0, 0x30(%rsi)
movq $0x0, 0x40(%rsi)
leaq 0x34(%rip), %rax # 0x17114
movq %rax, (%rsi)
leaq 0x96(%rip), %rax # 0x17180
movq %rax, 0x8(%rsi)
leaq 0x106(%rip), %rax # 0x171fb
movq %rax, 0x18(%rsi)
leaq ... | /realnc[P]frobtads/tads2/tok.c |
tokthadd | void tokthadd(toktdef *toktab1, char *name, int namel,
int typ, int val, int hash)
{
int siz = sizeof(toksh1def) + namel;
toksdef *sym;
tokshdef *symh;
tokthdef *toktab = (tokthdef *)toktab1;
if (toktab->tokthsize < siz)
{
mcmcxdef *mctx = toktab->tokthmem;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r13d
movl %r8d, %r15d
movl %edx, %r12d
movq %rdi, %rbx
leal 0x10(%r12), %ebp
movzwl 0xb48(%rdi), %eax
cmpl %eax, %ebp
jle 0x17d32
movl %ecx, 0xc(%rsp)
movq %rsi, 0x10(%rsp)
movl 0x838(%rbx), %eax
cmpq $0x80, %rax
jae 0x17dca
... | /realnc[P]frobtads/tads2/tokth.c |
tokthsea1 | static int tokthsea1(void *ctx0, toksdef *sym, mcmon objn)
{
tokseadef *ctx = (tokseadef *)ctx0;
VARUSED(objn);
if (sym->tokslen == ctx->tokseasym.tokslen &&
!memcmp(sym->toksnam, ctx->tokseanam, ctx->tokseasym.tokslen))
{
memcpy(ctx->toksearet, sym,
(size_t)(siz... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movzbl 0xe(%rdi), %r14d
xorl %ebp, %ebp
cmpb %r14b, 0x6(%rsi)
jne 0x180c0
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x7(%rsi), %rdi
movq (%r15), %rsi
movq %r14, %rdx
callq 0xe280
testl %eax, %eax
jne 0x180c0
movq 0x38(%r15), %rdi
addq $0x8, %r14
movq %rbx, %rsi
movq %r1... | /realnc[P]frobtads/tads2/tokth.c |
tokthset1 | static int tokthset1(void *ctx0, toksdef *sym, mcmon objn)
{
tokseadef *ctx = (tokseadef *)ctx0;
if (sym->tokslen == ctx->tokseasym.tokslen
&& !memcmp(sym->toksnam, ctx->tokseasym.toksnam,
ctx->tokseasym.tokslen))
{
sym->toksval = ctx->tokseasym.toksval;
sym->... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movzbl 0xe(%rdi), %edx
xorl %ebp, %ebp
cmpb %dl, 0x6(%rsi)
jne 0x18144
movq %rsi, %r15
movq %rdi, %r14
leaq 0x7(%rsi), %rdi
leaq 0xf(%r14), %rsi
callq 0xe280
testl %eax, %eax
jne 0x18144
movzwl 0xa(%r14), %eax
movw %ax, 0x2(%r15)
movb 0x8(%r14), %al... | /realnc[P]frobtads/tads2/tokth.c |
tokthfind | int tokthfind(toktdef *tab1, int typ, uint val, toksdef *ret)
{
tokseadef ctx;
int i;
ctx.tokseasym.tokstyp = typ;
ctx.tokseasym.toksval = val;
ctx.toksearet = ret;
for (i = 0 ; i < TOKHASHSIZE ; ++i)
{
if (tokthscan((tokthdef *)tab1, i, tokthfind1, &ctx))
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movb %sil, 0x8(%r14)
movw %dx, 0xa(%r14)
movq %rcx, 0x38(%r14)
xorl %ebp, %ebp
leaq 0x32(%rip), %r15 # 0x181a9
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x17f9c
testl %eax, %eax
jne 0x18199
in... | /realnc[P]frobtads/tads2/tokth.c |
tokthfind1 | static int tokthfind1(void *ctx0, toksdef *sym, mcmon objn)
{
tokseadef *ctx = (tokseadef *)ctx0;
VARUSED(objn);
if (sym->toksval == ctx->tokseasym.toksval
&& sym->tokstyp == ctx->tokseasym.tokstyp)
{
memcpy(ctx->toksearet, sym,
(size_t)(sizeof(toks1def) + sym->t... | movzwl 0x2(%rsi), %ecx
xorl %eax, %eax
cmpw 0xa(%rdi), %cx
jne 0x181d7
movb (%rsi), %cl
cmpb 0x8(%rdi), %cl
jne 0x181d7
pushq %rax
movq 0x38(%rdi), %rdi
movzbl 0x6(%rsi), %edx
addq $0x8, %rdx
callq 0xe200
movl $0x1, %eax
addq $0x8, %rsp
retq
| /realnc[P]frobtads/tads2/tokth.c |
fiowrt | void fiowrt(mcmcxdef *mctx, voccxdef *vctx, tokcxdef *tokctx, tokthdef *tab,
uchar *fmts, uint fmtl, char *fname, uint flags, objnum preinit,
int extc, uint prpcnt, char *filever)
{
osfildef *fp;
/* open the file */
if (!(fp = osfoprwtb(fname, OSFTGAME)))
errsig(vctx->vo... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1678, %rsp # imm = 0x1678
movl %r9d, 0x34(%rsp)
movq %r8, 0xe8(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r13
movq 0x16b0(%rsp), %rdi
leaq 0x20e1a(%rip), %rsi # 0x3902d
callq 0xe320
testq %rax, %rax
je 0... | /realnc[P]frobtads/tads2/fiowrt.c |
fiowcls | static void fiowcls(osfildef *fp, errcxdef *ec, ulong respos)
{
ulong endpos;
char buf[4];
endpos = osfpos(fp);
osfseek(fp, respos, OSFSK_SET);
oswp4(buf, endpos);
if (osfwb(fp, buf, 4)) errsig(ec, ERR_WRTGAM);
osfseek(fp, endpos, OSFSK_SET);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
callq 0xe030
movq %rax, %r15
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xe2e0
leaq 0x4(%rsp), %rdi
movl %r15d, (%rdi)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0xe520
cmpq $0x1, %rax
jne 0x1926... | /realnc[P]frobtads/tads2/fiowrt.c |
fiowrtobj | static void fiowrtobj(void *ctx0, toksdef *t)
{
fiowcxdef *ctx = (fiowcxdef *)ctx0;
uchar buf[TOKNAMMAX + 50];
mcmon obj;
mcmcxdef *mctx = ctx->fiowcxmem;
errcxdef *ec = ctx->fiowcxerr;
osfildef *fp = ctx->fiowcxfp;
uint flags = ctx->fiowcxflg;
uchar *p;
uint ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
movq %rdi, %r13
movq (%rdi), %r14
movq 0x8(%rdi), %r12
movq 0x10(%rdi), %rdi
movl 0x18(%r13), %eax
movl %eax, 0x4(%rsp)
movq %rdi, 0x8(%rsp)
callq 0xe030
movzbl (%rbx), %esi
movb %sil, 0x20(%rsp)
movzwl 0x2(%rbx), %r15d
m... | /realnc[P]frobtads/tads2/fiowrt.c |
fiowrtsym | static void fiowrtsym(void *ctx0, toksdef *t)
{
fiowcxdef *ctx = (fiowcxdef *)ctx0;
uchar buf[TOKNAMMAX + 50];
errcxdef *ec = ctx->fiowcxerr;
osfildef *fp = ctx->fiowcxfp;
buf[0] = t->tokslen;
buf[1] = t->tokstyp;
oswp2(buf + 2, t->toksval);
memcpy(buf + 4, t->toksnam, (size_... | pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq 0x8(%rdi), %rbx
movq 0x10(%rdi), %r14
movzbl 0x6(%rsi), %r15d
leaq 0x4(%rsp), %rdi
movb %r15b, -0x4(%rdi)
movb (%rsi), %al
movb %al, -0x3(%rdi)
movzwl 0x2(%rsi), %eax
movw %ax, -0x2(%rdi)
addq $0x7, %rsi
movq %r15, %rdx
callq 0xe200
addq $0x4, %r15
movq %rsp, %rdi
... | /realnc[P]frobtads/tads2/fiowrt.c |
objemt | uint objemt(mcmcxdef *ctx, objnum objn, prpnum prop, dattyp typ)
{
objdef *objptr;
prpdef *p;
objptr = (objdef *)mcmlck(ctx, (mcmon)objn);
ERRBEGIN(ctx->mcmcxgl->mcmcxerr)
objdelp(ctx, objn, prop, FALSE); /* delete old property value, if any */
p = objpfre(objptr); ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movl %ecx, 0x8(%rsp)
movl %edx, %r14d
movq %rdi, %rbx
movl %esi, %ebp
callq 0x2cfb4
movq %rax, %r13
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0xe3f0
movl %eax, -0x68(%r12)
testl %eax, %eax
jne 0x197ec
movl %r1... | /realnc[P]frobtads/tads2/objcomp.c |
objendemt | void objendemt(mcmcxdef *ctx, objnum objn, prpnum prop, uint endofs)
{
objdef *objptr;
prpdef *p;
uint siz;
objptr = (objdef *)mcmlck(ctx, (mcmon)objn);
p = objofsp(objptr, objgetp(ctx, objn, prop, (dattyp *)0));
siz = endofs - (((uchar *)prpvalp(p)) - ((uchar *)objptr));
p... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r14d
movl %edx, %r12d
movl %esi, %ebp
movq %rdi, %rbx
callq 0x2cfb4
movq %rax, %r15
xorl %r13d, %r13d
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
xorl %ecx, %ecx
callq 0x2dc78
movzwl %bp, %ebp
testl %eax, %eax
je 0x19867
movzw... | /realnc[P]frobtads/tads2/objcomp.c |
prsvgfr | static void prsvgfr(prscxdef *ctx, toktldef *lcltab, uint *encfr)
{
if (ctx->prscxflg & PRSCXFLCL)
{
emtcxdef *ec = ctx->prscxemt;
uint ofs;
uint diff;
/* write the FRAME instruction and operand header */
emtop(ec, OPCFRAME);
ofs = ec->emtcxofs; ... | testb $0x2, 0x80(%rdi)
je 0x1bcd8
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movq 0x28(%rdi), %r15
movq %r15, %rdi
movl $0x1, %esi
callq 0x20d5e
movq 0x18(%r15), %rax
movzwl 0x12(%r15), %ecx
leal 0x1(%rcx), %edx
movw %dx, 0x12(%r15)
movb $0x4f, (%rax,%rcx)
mov... | /realnc[P]frobtads/tads2/prscomp.c |
prsdel1 | static void prsdel1(void *ctx0, toksdef *sym)
{
prscxdef *ctx = (prscxdef *)ctx0;
uint label;
label = sym->toksval;
if (!emtqset(ctx->prscxemt, sym->toksval))
{
errlog1(ctx->prscxerr, ERR_NOGOTO, ERRTSTR,
errstr(ctx->prscxerr, sym->toksnam, sym->tokslen));
emtclbl(ct... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzwl 0x2(%rsi), %eax
movl %eax, 0x4(%rsp)
movq 0x28(%rdi), %rdi
leaq (%rax,%rax,2), %rax
testb $0x1, 0x2a(%rdi,%rax,2)
jne 0x1bedd
movq (%r14), %rdi
leaq 0x7(%rbx), %rsi
movzbl 0x6(%rbx), %edx
callq 0x2bf90
movq (%r14), %rcx
movq (%rcx), %rcx
movq %rax,... | /realnc[P]frobtads/tads2/prscomp.c |
prscode | void prscode(prscxdef *ctx, int markcomp)
{
int t;
noreg tokdef tok;
int parms;
uchar *oldplcl;
uint oldslcl;
int numsc = 0; /* number of superclasses for object */
objnum sc[PRSMAXSC]; /* superclasses of current objec... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movl %esi, %r15d
movq %rdi, %rbp
movq 0x8(%rdi), %rdi
movl 0x120(%rdi), %ebx
cmpl $0x56, %ebx
jg 0x1bf3a
cmpl $0x1, %ebx
je 0x1c9de
cmpl $0x3e, %ebx
jne 0x1bfc0
callq 0x160f8
jmp 0x1c9de
cmpl $0x57, %ebx
je 0x1b... | /realnc[P]frobtads/tads2/prscomp.c |
prsvgf0 | static void prsvgf0(void *ctx0, toksdef *sym)
{
prscxdef *ctx = (prscxdef *)ctx0;
emtcxdef *ec = ctx->prscxemt;
/* write out value (offset from base ptr) and name of symbol */
emtint2(ec, sym->toksval);
emtbyte(ec, sym->tokslen);
emtmem(ec, sym->toksnam, (size_t)sym->tokslen);
} | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x28(%rdi), %r14
movq %r14, %rdi
movl $0x2, %esi
callq 0x20d5e
movq 0x18(%r14), %rax
movzwl 0x12(%r14), %ecx
movzwl 0x2(%rbx), %edx
movw %dx, (%rax,%rcx)
addw $0x2, 0x12(%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x20d5e
movb 0x6(%rbx), %al
movq 0x18(%r14), %rcx
mo... | /realnc[P]frobtads/tads2/prscomp.c |
prssyn | static void prssyn(prscxdef *ctx, objnum objn, uchar *prefix,
uchar *synto, uchar *synfrom)
{
size_t plen = strlen((char *)prefix);
prpnum propto;
prpnum propfrom;
uchar buf[2];
/* get the property numbers for the 'to' and 'from' strings */
propto = prssynp(ctx, pref... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r13
movq %rdx, %rdi
callq 0xe150
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0x1e639
movl %eax, %r15d
movq %r13, %rdi
movq %r1... | /realnc[P]frobtads/tads2/prscomp.c |
prsdef | void prsdef(prscxdef *ctx, tokdef *tok, int typ)
{
toktdef *tab;
tab = (typ == TOKSTLABEL ? ctx->prscxgtab : ctx->prscxstab);
if (tok->toktyp == TOKTSYMBOL && tok->toksym.tokstyp == TOKSTUNK)
{
if (!tab) errsig(ctx->prscxerr, ERR_UNDFSYM);
/* see if it... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
xorl %eax, %eax
cmpl $0xc, %edx
sete %al
movq 0x10(%rdi,%rax,8), %r14
cmpl $0x38, (%rsi)
jne 0x1e799
cmpb $0x0, 0x40(%r15)
jne 0x1e799
testq %r14, %r14
je 0x1e846
leaq 0x40(%r15), %r13
leaq 0x18(... | /realnc[P]frobtads/tads2/prs.c |
prsdefobj | void prsdefobj(prscxdef *ctx, tokdef *tok, int typ)
{
mcmon newobj;
uchar *p;
/* allocate the object and clear its memory */
p = mcmalo(ctx->prscxmem, (ushort)PRSOBJSIZ, &newobj);
memset(p, 0, (size_t)OBJDEFSIZ);
/* save the line position after the object header */
linppos(ctx->prscxtok->... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq 0x20(%rdi), %rdi
leaq 0x6(%rsp), %r14
xorl %r12d, %r12d
movl $0x100, %esi # imm = 0x100
movq %r14, %rdx
movl $0xffff, %ecx # imm = 0xFFFF
xorl %r8d, %r8d
callq 0x2c3dc
movq %r12, (%rax)
movq %r12, 0x6(%rax)
... | /realnc[P]frobtads/tads2/prs.c |
prsxsst | ushort prsxsst(prscxdef *ctx)
{
/* make sure there's space for the length prefix (a ushort) */
if (ctx->prscxnrem < 2)
errsig(ctx->prscxerr, ERR_NONODE);
ctx->prscxsofs = ctx->prscxnode - &ctx->prscxpool[0];
ctx->prscxnode += 2;
ctx->prscxnrem -= 2;
ctx->prscxslen = 2;
return(ct... | movzwl 0xa0(%rdi), %ecx
cmpw $0x1, %cx
jbe 0x1eac3
movq 0x90(%rdi), %rdx
movq %rdx, %rax
subq %rdi, %rax
addq $-0xd0, %rax
movl %eax, 0x98(%rdi)
addq $0x2, %rdx
movq %rdx, 0x90(%rdi)
addl $-0x2, %ecx
movw %cx, 0xa0(%rdi)
movw $0x2, 0x9c(%rdi)
retq
pushq %rax
movq (%rdi), %rdi
leaq 0x1ad16(%rip), %rsi # 0x397e4
movl... | /realnc[P]frobtads/tads2/prs.c |
prsxsend | void prsxsend(prscxdef *ctx)
{
ushort siz;
ushort rounded;
/* figure total size of string, including padding for alignment */
siz = ctx->prscxslen;
/* write length at beginning of string */
oswp2(&ctx->prscxpool[ctx->prscxsofs], siz);
/* if desired, write the string to the str... | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzwl 0x9c(%rdi), %r14d
movl 0x98(%rdi), %eax
movw %r14w, 0xd0(%rdi,%rax)
movq 0xc8(%rdi), %rsi
testq %rsi, %rsi
je 0x1eb84
leaq (%rbx,%rax), %rdi
addq $0xd0, %rdi
movb $0x0, (%rdi,%r14)
addq $0x2, %rdi
callq 0xe300
movq 0xc8(%rbx), %rsi
leaq 0x1addb(%rip), %rdi # 0... | /realnc[P]frobtads/tads2/prs.c |
prsnew4 | prsndef *prsnew4(prscxdef *ctx, int t, prsndef *n1, prsndef *n2,
prsndef *n3, prsndef *n4)
{
prsndef *n = prsalo(ctx, 4);
n->prsntyp = t;
n->prsnnlf = 4;
n->prsnv.prsnvn[0] = n1;
n->prsnv.prsnvn[1] = n2;
n->prsnv.prsnvn[2] = n3;
n->prsnv.prsnvn[3] = n4;
return(n);
} | movzwl 0xa0(%rdi), %r10d
cmpw $0x27, %r10w
jbe 0x1ec18
movq 0x90(%rdi), %rax
addl $-0x28, %r10d
movw %r10w, 0xa0(%rdi)
leaq 0x28(%rax), %r10
movq %r10, 0x90(%rdi)
movl %esi, (%rax)
movl $0x4, 0x4(%rax)
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq %r8, 0x18(%rax)
movq %r9, 0x20(%rax)
retq
pushq %rax
movq (%rdi), %rdi... | /realnc[P]frobtads/tads2/prs.c |
prsnew3 | prsndef *prsnew3(prscxdef *ctx, int t, prsndef *n1, prsndef *n2, prsndef *n3)
{
prsndef *n = prsalo(ctx, 3);
n->prsntyp = t;
n->prsnnlf = 3;
n->prsnv.prsnvn[0] = n1;
n->prsnv.prsnvn[1] = n2;
n->prsnv.prsnvn[2] = n3;
return(n);
} | movzwl 0xa0(%rdi), %r9d
cmpw $0x1f, %r9w
jbe 0x1ec70
movq 0x90(%rdi), %rax
addl $-0x20, %r9d
movw %r9w, 0xa0(%rdi)
leaq 0x20(%rax), %r9
movq %r9, 0x90(%rdi)
movl %esi, (%rax)
movl $0x3, 0x4(%rax)
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq %r8, 0x18(%rax)
retq
pushq %rax
movq (%rdi), %rdi
leaq 0x1ab69(%rip), %rsi ... | /realnc[P]frobtads/tads2/prs.c |
prsnew2 | prsndef *prsnew2(prscxdef *ctx, int t, prsndef *n1, prsndef *n2)
{
prsndef *n = prsalo(ctx, 2);
n->prsntyp = t;
n->prsnnlf = 2;
n->prsnv.prsnvn[0] = n1;
n->prsnv.prsnvn[1] = n2;
return(n);
} | movzwl 0xa0(%rdi), %r8d
cmpw $0x17, %r8w
jbe 0x1ecc4
movq 0x90(%rdi), %rax
addl $-0x18, %r8d
movw %r8w, 0xa0(%rdi)
leaq 0x18(%rax), %r8
movq %r8, 0x90(%rdi)
movl %esi, (%rax)
movl $0x2, 0x4(%rax)
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
retq
pushq %rax
movq (%rdi), %rdi
leaq 0x1ab15(%rip), %rsi # 0x397e4
movl $0x... | /realnc[P]frobtads/tads2/prs.c |
prsnew0 | uchar *prsbalo(prscxdef *ctx, uint siz)
{
uchar *ret;
/* round size for alignment, and see if we have room for it */
siz = osrndsz(siz);
if (ctx->prscxnrem < siz) errsig(ctx->prscxerr, ERR_NONODE);
/* adjust sizes and pointers, and return the new node */
ret = ctx->prscxnode;
ctx->prscxnre... | movzwl 0xa0(%rdi), %ecx
cmpw $0x77, %cx
jbe 0x1ed62
movq 0x90(%rdi), %rax
addl $-0x78, %ecx
movw %cx, 0xa0(%rdi)
leaq 0x78(%rax), %rcx
movq %rcx, 0x90(%rdi)
movq $0x0, (%rax)
leaq 0x8(%rax), %rdi
movl $0xe, %ecx
rep movsq (%rsi), %es:(%rdi)
retq
pushq %rax
movq (%rdi), %rdi
leaq 0x1aa77(%rip), %rsi # 0x397e4
movl ... | /realnc[P]frobtads/tads2/prs.c |
prsxbin | static prsndef *prsxbin(prscxdef *ctx, prsbdef *binctx)
{
prsndef *n;
int t;
int *lp;
n = (*binctx->prsblf)(ctx, binctx->prsbctx);
do
{
t = ctx->prscxtok->tokcxcur.toktyp;
for (lp = binctx->prsblst ; *lp && *lp != t ; ++lp) ;
if (*lp == t)
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x18(%rsi), %rsi
callq *0x8(%r15)
movq %rax, %rbx
leaq 0x2be77(%rip), %r12 # 0x4ac40
movq 0x8(%r14), %rdi
movl 0x120(%rdi), %ebp
movq (%r15), %rax
movl (%rax), %ecx
testl %ecx, %ecx
je 0x1ede4
addq $0x4, %rax
cmpl %ebp, %ecx... | /realnc[P]frobtads/tads2/prs.c |
prsfold | static prsndef *prsfold(prscxdef *ctx, prsndef *node)
{
int i;
prsndef **n;
int can_fold;
int typ;
tokdef *tok1, *tok2;
int typ1, typ2;
long val1, val2;
prsndef *ncur;
can_fold = TRUE; /* assume we can do some folding */
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r13
movq %rdi, %r14
cmpl $0x3b, (%rsi)
jne 0x1ef60
movl $0x1, %r15d
movl $0x8, %ebp
xorl %r12d, %r12d
movq %r13, %rbx
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x1eead
movq %rax, 0x8(%rbx)
movl 0x4(%rax), %ecx
movl $0x39, %e... | /realnc[P]frobtads/tads2/prs.c |
prsgexp | void prsgexp(prscxdef *ctx, prsndef *n)
{
int cnt;
switch(n->prsnnlf)
{
case 0:
prsdef(ctx, &n->prsnv.prsnvt, TOKSTFWDOBJ);
emtval(ctx->prscxemt, &n->prsnv.prsnvt, ctx->prscxpool);
break;
case 1:
switch(n->prsntyp)
{
case TOKTINC:
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1ae96(%rip), %r15 # 0x3a2c4
movl 0x4(%r14), %eax
cmpl $0x2, %eax
jne 0x1f4cf
movl (%r14), %eax
leal -0x32(%rax), %ecx
cmpl $0x10, %ecx
ja 0x1f461
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
movq ... | /realnc[P]frobtads/tads2/prs.c |
prsxgen_spec | void prsxgen_spec(prscxdef *ctx)
{
prsndef *exprnode;
/* parse the expression */
exprnode = prsexpr(ctx);
/* check for speculative execution problems */
prs_check_spec(ctx, exprnode);
/* generate the expression, then reset the parse node pool */
prsgexp(ctx, exprnode);
prsrstn(ctx);
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testb $0x4, 0x11c(%rax)
leaq 0x2b39b(%rip), %rax # 0x4abf8
leaq 0x2b36c(%rip), %rsi # 0x4abd0
cmoveq %rax, %rsi
callq 0x1eda9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1eead
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f8b5
movq %rb... | /realnc[P]frobtads/tads2/prs.c |
prsgfn | static void prsgfn(prscxdef *ctx, prsndef *n, int cnt)
{
if (n->prsnnlf == 0 && n->prsnv.prsnvt.toktyp == TOKTSYMBOL
&& (n->prsnv.prsnvt.toksym.tokstyp == TOKSTUNK
|| n->prsnv.prsnvt.toksym.tokstyp != TOKSTLOCAL))
{
tokdef *t = &n->prsnv.prsnvt;
/* if symbol is undef... | pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, 0x4(%rsi)
jne 0x1fd18
cmpl $0x38, 0x8(%r14)
jne 0x1fd18
cmpb $0x4, 0x48(%r14)
jne 0x1fd72
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f415
movq 0x28(%rbx), %rdi
movl $0x1, %esi
callq 0x20d5e
movq 0x28(%rbx), %rax
movq 0x18(%rax), %... | /realnc[P]frobtads/tads2/prs.c |
prsgdot | static void prsgdot(prscxdef *ctx, prsndef *n, int cnt)
{
prsndef *n0 = n->prsnv.prsnvn[0];
prsndef *n1 = n->prsnv.prsnvn[1];
int inh; /* flag: "inherited.prop" */
int slf; /* flag: "self.prop" */
int objflg; ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x8(%rsi), %r15
movq 0x10(%rsi), %r12
movl 0x4(%r15), %eax
movb $0x28, %r13b
cmpl $0x1, %eax
movl %edx, 0x14(%rsp)
je 0x1ff43
testl %eax, %eax
jne 0x1ff78
cmpl $0x38, 0x8(%r15)
jne 0x1ff3e
movb $0x12, 0xf(%rsp)
movb ... | /realnc[P]frobtads/tads2/prs.c |
prsgdotspec | static void prsgdotspec(prscxdef *ctx, prsndef *n)
{
prsndef *n0 = n->prsnv.prsnvn[0];
prsndef *n1 = n->prsnv.prsnvn[1];
/* push object whose property we're getting */
prsgexp(ctx, n0);
if (n1->prsnnlf == 0
&& n1->prsnv.prsnvt.toktyp == TOKTPOUND)
{
/* RHS is a property symbol ... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %r14
movq %rax, %rsi
callq 0x1f415
cmpl $0x0, 0x4(%r14)
jne 0x201d8
cmpl $0x55, 0x8(%r14)
jne 0x201d8
movzwl 0x18(%r14), %ebp
movq 0x28(%rbx), %rdi
movl $0x1, %esi
callq 0x20d5e
movq 0x28(%rbx), %rax
movq 0x18(%rax), %rcx
movzwl 0x12... | /realnc[P]frobtads/tads2/prs.c |
prsgini | void prsgini(prscxdef *ctx, prsndef *node, uint curfr)
{
int lcl;
/* descend tree - always generate in order specified by user */
if (node->prsnv.prsnvn[2])
prsgini(ctx, node->prsnv.prsnvn[2], curfr);
/* generate OPCLINE if one was specified */
if (node->prsnnlf == 4)
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rsi), %rsi
testq %rsi, %rsi
je 0x20230
movq %rbx, %rdi
movl %ebp, %edx
callq 0x2020d
cmpl $0x4, 0x4(%r14)
jne 0x202b1
movq 0x8(%rbx), %rdi
movq 0x28(%rbx), %rax
movzwl 0x10(%rax), %esi
movzwl 0x12(%rax), %e... | /realnc[P]frobtads/tads2/prs.c |
prsxcnd | static prsndef *prsxcnd(prscxdef *ctx, prsbdef *binctx)
{
prsndef *n1, *n2;
VARUSED(binctx);
n1 = prsxbin(ctx, prs_cmode(ctx) ? &prsb_or_C : &prsb_or);
for (;;)
{
if (ctx->prscxtok->tokcxcur.toktyp != TOKTQUESTION) break;
toknext(ctx->prscxtok);
n2 = prsxexp(ctx, FALSE)... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testb $0x4, 0x11c(%rax)
leaq 0x2a96e(%rip), %rax # 0x4aca8
leaq 0x2a93f(%rip), %rsi # 0x4ac80
cmoveq %rax, %rsi
callq 0x1eda9
movq %rax, %r14
movq 0x8(%rbx), %rdi
cmpl $0x56, 0x120(%rdi)
jne 0x20406... | /realnc[P]frobtads/tads2/prs.c |
emtval | void emtval(emtcxdef *ctx, tokdef *tok, uchar *base)
{
ushort oplen;
switch(tok->toktyp)
{
case TOKTSYMBOL:
switch(tok->toksym.tokstyp)
{
case TOKSTARGC:
emtop(ctx, OPCARGC);
return;
case TOKSTSELF:
emtop(ctx, OPCP... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %eax
leal -0x35(%rax), %ecx
cmpl $0x3, %ecx
jbe 0x20a27
addl $-0x4c, %eax
cmpl $0x9, %eax
ja 0x20b76
leaq 0x19a52(%rip), %rcx # 0x3a438
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx,... | /realnc[P]frobtads/tads2/emt.c |
emtres | void emtres(emtcxdef *ctx, ushort bytes)
{
ushort oldsiz = mcmobjsiz(ctx->emtcxmem, ctx->emtcxobj);
ushort need;
need = ctx->emtcxofs + bytes + 1;
if (need > oldsiz)
{
ushort newsiz;
newsiz = need + EMTINC;
if (newsiz < oldsiz) errsig(ctx->emtcxerr, ERR_OBJ... | pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
movq (%rax), %rcx
movzwl 0x10(%rbx), %eax
movl %eax, %edx
shrl $0x8, %edx
movq 0x30(%rdi,%rdx,8), %rdx
movl $0xff, %r8d
movl %eax, %r9d
andl %r8d, %r9d
movzwl (%rdx,%r9,2), %edx
movl %edx, %r9d
shrl $0x8, %r9d
movq (%rcx,%r9,8), %rcx
andl %r8d, %edx
shll... | /realnc[P]frobtads/tads2/emt.c |
emtjmp | void emtjmp(emtcxdef *ctx, uchar op, uint lbl)
{
emtldef *p = &ctx->emtcxlbl[lbl];
short diff;
uint fwd;
emtop(ctx, op);
if (p->emtlflg & EMTLFSET)
diff = p->emtlofs - ctx->emtcxofs; /* back ref - compute delta */
else
{
diff = 0;
fwd = emtglbl(c... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl %edx, %eax
leaq (%rax,%rax,2), %rax
leaq (%rdi,%rax,2), %r14
addq $0x26, %r14
movl $0x1, %esi
callq 0x20d5e
movq 0x18(%rbx), %rax
movzwl 0x12(%rbx), %ecx
leal 0x1(%rcx), %edx
movw %dx, 0x12(%rbx)
movb %bpl, (%rax,%rcx)
testb $0x... | /realnc[P]frobtads/tads2/emt.c |
emtlini | void emtlini(emtcxdef *ctx)
{
int i;
emtldef *p;
int max;
for (max = ctx->emtcxlcnt, i = 1, p = ctx->emtcxlbl ; i < max ; ++p, ++i)
p->emtllnk = i;
p->emtllnk = EMTLLNKEND;
ctx->emtcxlfre = 0;
} | movl 0x20(%rdi), %ecx
leaq 0x26(%rdi), %rax
cmpl $0x2, %ecx
jl 0x21245
movl $0x1, %edx
movw %dx, (%rax)
addq $0x6, %rax
incl %edx
cmpl %edx, %ecx
jne 0x21238
movw $0xffff, (%rax) # imm = 0xFFFF
movw $0x0, 0x24(%rdi)
retq
nopl (%rax)
| /realnc[P]frobtads/tads2/emt.c |
dbgaddhist | void dbgaddhist(dbgcxdef *ctx, char *buf, int l)
{
char *p;
int dell;
if (ctx->dbgcxhstf + l + 1 >= ctx->dbgcxhstl)
{
/* delete first lines until we have enough space */
for (dell = 0, p = ctx->dbgcxhstp ; *p || dell < l ; ++p, ++dell) ;
if (*p) ++p;
memmove(ctx->dbgcx... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movl 0x1304(%rdi), %edx
leal (%rbx,%rdx), %eax
incl %eax
cmpl 0x1300(%rdi), %eax
jb 0x212c0
movq 0x12f8(%r14), %rdi
cmpb $0x0, (%rdi)
sete %al
testl %ebx, %ebx
setle %cl
xorl %r12d, %r12d
testb %cl, %al
jne 0x212ab
xo... | /realnc[P]frobtads/tads2/dbg.c |
dbgent | void dbgent(dbgcxdef *ctx, runsdef *bp, objnum self, objnum target,
prpnum prop, int binum, int argc)
{
dbgfdef *p;
++(ctx->dbgcxdep); /* increment actual depth */
if (ctx->dbgcxfcn == DBGMAXFRAME)
{
--(ctx->dbgcxfcn); /* ba... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r9d, %ebp
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %r12d
movq %rdi, %rbx
incl 0x2c(%rdi)
movq %rsi, %r13
movl 0xd0(%rsp), %edx
cmpl $0x64, 0x28(%rdi)
jne 0x2133f
movl $0x63, 0x28(%rbx)
leaq 0x38(%rbx), %rdi
leaq 0x58(%rbx), %rs... | /realnc[P]frobtads/tads2/dbg.c |
stricmp | int
stricmp( const char* s1, const char* s2 )
{
#if HAVE_STRCASECMP
return strcasecmp(s1, s2);
#else
const auto x1 = std::make_unique<char[]>(strlen(s1));
const auto x2 = std::make_unique<char[]>(strlen(s2));
for (size_t i = 0; s1[i] != '\0' and s2[i] != '\0'; ++i) {
x1[i] = tolower(s1[i]);
... | jmp 0xe2d0
| /realnc[P]frobtads/src/missing.cc |
os_remext | void os_remext(char *fn)
{
char *p;
/* scan backwards from the end of the string, looking for a dot */
p = fn + strlen(fn);
while ( p>fn )
{
/* move to the previous character */
p--;
/* if it's a period, we've found the extension */
if ( *p=='.' )
{
... | pushq %rbx
movq %rdi, %rbx
callq 0xe150
addq %rbx, %rax
cmpq %rbx, %rax
jbe 0x2205c
movzbl -0x1(%rax), %ecx
cmpl $0x2f, %ecx
je 0x2205c
decq %rax
cmpl $0x2e, %ecx
jne 0x22043
movb $0x0, (%rax)
popq %rbx
retq
| /realnc[P]frobtads/tads2/osnoui.c |
os_get_root_name | char *os_get_root_name(const char *buf)
{
const char *rootname;
#ifdef MSDOS
const char *orig = buf;
#endif
/* scan the name for path separators */
for (rootname = buf ; *buf != '\0' ; ++buf)
{
/* if this is a path separator, remember it */
if (ispathchar(*buf))
{
#ifdef MSD... | movq %rdi, %rax
leaq 0x1(%rdi), %rcx
movzbl -0x1(%rcx), %edx
cmpl $0x2f, %edx
je 0x22074
testl %edx, %edx
jne 0x22077
jmp 0x2207c
movq %rcx, %rax
incq %rcx
jmp 0x22065
retq
| /realnc[P]frobtads/tads2/osnoui.c |
os_get_path_name | void os_get_path_name(char *pathbuf, size_t pathbuflen, const char *fname)
{
const char *lastsep;
const char *p;
size_t len;
int root_path;
#ifdef MSDOS
/*
* Special case for DOS/Windows: If we have a bare drive letter, or an
* explicit current directory path on a drive letter (X... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rdx), %rcx
movq %rdx, %rax
movq %rdx, %rsi
movzbl (%rsi), %edi
cmpl $0x2f, %edi
je 0x2209f
testl %edi, %edi
jne 0x220b5
jmp 0x220bd
movq %rcx, %rdi
movb (%rdi), %r8b
incq %rdi
cmpb $0x2f, %r8b
je 0x220a2
testb %r8b, %r8b
cmovneq %rsi, %rax
incq ... | /realnc[P]frobtads/tads2/osnoui.c |
canonicalize_path | void canonicalize_path(char *path)
{
char *orig = path;
char *p;
char *ele, *prvele;
char *trimpt = 0;
int dotcnt = 0;
/*
* First, skip the root element. This is unremovable. For Unix, the
* root element is simply a leading slash (or series of slashes). For
* DOS/Win, w... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq -0x1(%rdi), %r14
cmpb $0x2f, 0x1(%r14)
leaq 0x1(%r14), %r14
je 0x22118
movb (%r14), %al
xorl %r13d, %r13d
testb %al, %al
je 0x221f1
movq %rbx, (%rsp)
xorl %ebp, %ebp
movq %r14, %r15
leaq -0x1(%r15), %r12
xorl %ecx, %ecx
mo... | /realnc[P]frobtads/tads2/osnoui.c |
os_file_names_equal | int os_file_names_equal(const char *a, const char *b)
{
/* start at the end of each name and work backwards */
const char *pa = a + strlen(a), *pb = b + strlen(b);
/* keep going until we reach the start of one or the other path */
for (;;)
{
size_t lena, lenb;
/* get the next earli... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0xe150
movq %rax, %r15
addq %r14, %r15
movq %rbx, %rdi
callq 0xe150
movq %rax, %rbp
addq %rbx, %rbp
leaq 0x8(%rsp), %r13
movl %eax, %r12d
movq %r14, %rdi
movq %r15, %rsi
leaq 0x10(%rsp), %rdx
callq 0... | /realnc[P]frobtads/tads2/osnoui.c |
prev_path_ele | static const char *prev_path_ele(const char *start, const char *p,
size_t *ele_len)
{
int cancel = 0;
const char *dotdot = 0;
/* if we're at the start of the string, there are no more elements */
if (p == start)
return 0;
/* keep going until we find a suita... | xorl %ecx, %ecx
cmpq %rdi, %rsi
je 0x22688
pushq %rbx
xorl %r9d, %r9d
xorl %r8d, %r8d
cmpq %rdi, %rsi
je 0x225fd
movq %rsi, %r10
negq %r10
cmpq %rdi, %rsi
je 0x22612
movq %rsi, %r11
decq %rsi
incq %r10
cmpb $0x2f, -0x1(%r11)
je 0x225c6
incq %rsi
cmpq %rdi, %r11
je 0x22615
cmpq %rdi, %rsi
je 0x22629
leaq -0x1(%rsi), %r1... | /realnc[P]frobtads/tads2/osnoui.c |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.