name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
Potassco::ProgramReader::matchPos(unsigned int, char const*)
unsigned matchPos(unsigned max = static_cast<unsigned>(-1), const char* err = "unsigned integer expected") { return Potassco::matchPos(*stream(), max, err); }
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %rbx movl %esi, %ebp callq 0x11ba2 movq %rax, %r14 leaq 0x8(%rsp), %rsi movq %rax, %rdi xorl %edx, %edx callq 0x117fc testb %al, %al je 0x986f movq 0x8(%rsp), %rax testq %rax, %rax js 0x986f movl %ebp, %ecx cmpq %rcx, %rax jbe 0x9886 movq %r14, %rdi callq 0x1...
/potassco[P]clasp/libpotassco/potassco/match_basic_types.h
Potassco::ProgramReader::matchLit(char const*)
Lit_t matchLit(const char* err = "literal expected") { return Potassco::matchLit(*stream(), varMax_, err); }
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r15 callq 0x11ba2 movq %rax, %r14 movl 0x10(%r15), %r15d leaq 0x8(%rsp), %rsi movq %rax, %rdi xorl %edx, %edx callq 0x117fc testb %al, %al je 0x99c0 movq 0x8(%rsp), %rax testq %rax, %rax je 0x99c0 movq %r15, %rcx negq %rcx cmpq %rcx, %rax jl ...
/potassco[P]clasp/libpotassco/potassco/match_basic_types.h
Potassco::AspifTextInput::doAttach(bool&)
bool AspifTextInput::doAttach(bool& inc) { char n = peek(true); if (out_ && (!n || std::islower(static_cast<unsigned char>(n)) || std::strchr(".#%{:", n))) { while (n == '%') { skipLine(); n = peek(true); } inc = match("#incremental", false) && require(match("."), "unrecognized directive"); out_->initPr...
pushq %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movl $0x1, %esi callq 0x11c18 cmpq $0x0, 0x18(%rbx) je 0x9d3d movl %eax, %ebp testb %al, %al je 0x9ce9 movzbl %bpl, %edi callq 0x64c0 testl %eax, %eax jne 0x9cca movsbl %bpl, %esi leaq 0x13d55(%rip), %rdi # 0x1da10 movl $0x6, %edx callq 0x63e0 testq %...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::AspifTextInput::match(char const*, bool)
bool AspifTextInput::match(const char* term, bool req) { if (ProgramReader::match(term, false)) { skipws(); return true; } require(!req, POTASSCO_FORMAT("'%s' expected", term)); return false; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movl %edx, %ebp movq %rsi, %r15 movq %rdi, %r14 callq 0x11ba2 movq %rax, %rdi movq %r15, %rsi callq 0x11728 movl %eax, %ebx testb %al, %al je 0x9d80 movq %r14, %rdi callq 0x11ba2 movq %rax, %rdi callq 0x116ce jmp 0x9dc2 movq %rsp, %r12 movq %r12, %...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::AspifTextInput::parseStatements()
bool AspifTextInput::parseStatements() { require(out_ != 0, "output not set"); Data data; data_ = &data; for (char c; (c = peek(true)) != 0; data.clear()) { if (c == '.') { match("."); } else if (c == '#') { if (!matchDirective()) break; } else if (c == '%') { skipLine(); } else { matchRu...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx xorl %esi, %esi cmpq $0x0, 0x18(%rdi) setne %sil leaq 0x13c0e(%rip), %rdx # 0x1da3a callq 0x11ba8 leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x17aec leaq 0x28(%rsp), %r12 movq %r12, -0x10(%r12) movq $0x0, -0x8(%r12) movb $0x0, (%r12) movq ...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::AspifTextInput::matchAgg()
void AspifTextInput::matchAgg() { if (match("{") && !match("}", false)) { do { WeightLit_t wl = {matchLit(), 1}; if (match("=", false)) { wl.weight = matchInt(); } data_->rule.addGoal(wl); } while (match(",", false)); match("}"); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x134c2(%rip), %rsi # 0x1dc0d movl $0x1, %edx callq 0x9d44 testb %al, %al je 0xa76e leaq 0x132ec(%rip), %rsi # 0x1da4c movq %rbx, %rdi xorl %edx, %edx callq 0x9d44 testb %al, %al je 0xa77d addq $0x8, %rsp popq %rbx...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::AspifTextInput::matchStr()
void AspifTextInput::matchStr() { match("\""), push('"'); bool quoted = false; for (char c; (c = stream()->peek()) != 0 && (c != '\"' || quoted);) { quoted = !quoted && c == '\\'; push(stream()->get()); } match("\""), push('"'); }
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x12fb1(%rip), %rsi # 0x1db73 movl $0x1, %edx callq 0x9d44 movq 0x20(%rbx), %rdi movq 0x18(%rdi), %rsi addq $0x10, %rdi movl $0x1, %ecx xorl %edx, %edx movl $0x22, %r8d callq 0x66c0 movq %rbx, %rdi callq 0x11ba2 movq 0x8(%rax), %rcx movq 0x10(%rax), %rax movzbl ...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::AspifTextOutput::AspifTextOutput(std::ostream&)
AspifTextOutput::AspifTextOutput(std::ostream& os) : os_(os), step_(-1), showAtoms_(0), startAtom_(0), maxAtom_(0) { data_ = new Data(); }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x2069f(%rip), %rax # 0x2b348 movq %rax, (%rdi) movq %rsi, 0x8(%rdi) leaq 0x10(%rdi), %r15 movq %r15, %rdi callq 0x1c180 movl $0xffffffff, 0x20(%rbx) # imm = 0xFFFFFFFF movb $0x0, 0x24(%rbx) movq $0x0, 0x28(%rbx) movl $0xa8, %edi callq 0x63a0 movq %rax, %r14 mov...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::AspifTextOutput::printName(std::ostream&, int)
std::ostream& AspifTextOutput::printName(std::ostream& os, Lit_t lit) { if (lit < 0) { os << "not "; } Atom_t id = Potassco::atom(lit); if (const std::string* name = data_->getAtomName(id)) { os << *name; } else { os << "x_" << id; if (!showAtoms_) { showAtoms_ = true; if (data_->atoms.empty()) { data_...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %ebp movq %rsi, %rbx movq %rdi, %r14 testl %edx, %edx jns 0xafc9 leaq 0x12b7d(%rip), %rsi # 0x1db39 movl $0x4, %edx movq %rbx, %rdi callq 0x6410 movl %ebp, %r15d negl %r15d cmovsl %ebp, %r15d movq 0x18(%r14), %rcx movq 0x50(%rcx), %rax movq 0x58(%rcx...
/potassco[P]clasp/libpotassco/src/aspif_text.cpp
Potassco::SmodelsConvert::SmData::mapHead(Potassco::Span<unsigned int> const&)
AtomSpan SmodelsConvert::SmData::mapHead(const AtomSpan& h) { head_.clear(); for (const Atom_t* x = begin(h); x != end(h); ++x) { head_.push_back(mapHeadAtom(*x)); } if (head_.empty()) { head_.push_back(falseAtom()); } return toSpan(head_); }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r15 movq %rdi, %rbx movq 0x48(%rdi), %rcx movq 0x50(%rdi), %rsi cmpq %rcx, %rsi je 0xe9ff movq %rcx, 0x50(%rbx) movq %rcx, %rsi leaq 0x48(%rbx), %r14 cmpq $0x0, 0x8(%r15) je 0xea71 movq (%r15), %r13 leaq 0xc(%rsp), %r12 movl (%r13), %es...
/potassco[P]clasp/libpotassco/src/convert.cpp
Potassco::SmodelsConvert::flushExternal()
void SmodelsConvert::flushExternal() { LitSpan T = toSpan<Lit_t>(); data_->head_.clear(); for (SmData::AtomVec::const_iterator it = data_->extern_.begin(), end = data_->extern_.end(); it != end; ++it) { SmData::Atom& a = data_->mapAtom(*it); Value_t vt = static_cast<Value_t>(a.extn); if (!ext_) { if (a.head...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movaps %xmm0, 0x20(%rsp) movq 0x10(%rdi), %rax movq 0x48(%rax), %rcx cmpq %rcx, 0x50(%rax) je 0xf261 movq %rcx, 0x50(%rax) movq 0x90(%rax), %r13 movq 0x98(%rax), %rbp cmpq %rbp, %r13 je 0xf35c leaq 0xc(...
/potassco[P]clasp/libpotassco/src/convert.cpp
Potassco::SmodelsConvert::SmData::~SmData()
~SmData() { flushStep(); for (SymTab::iterator it = symTab_.begin(), end = symTab_.end(); it != end; ++it) { delete [] it->second; } }
pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx callq 0xfa50 movq 0xd0(%rbx), %r14 testq %r14, %r14 je 0xf653 movq 0x10(%r14), %rdi testq %rdi, %rdi je 0xf64e callq 0x64a0 movq (%r14), %r14 jmp 0xf63b leaq 0xc0(%rbx), %r14 movq 0xf8(%rbx), %rdi testq %rdi, %rdi je 0xf66b callq 0x6370 movq %r14, %rdi callq 0xfaee movq ...
/potassco[P]clasp/libpotassco/src/convert.cpp
Potassco::BufferedStream::get()
void AbstractProgram::theoryAtom(Id_t, Id_t, const IdSpan&) { throw std::logic_error("theory data not supported"); }
pushq %rbp pushq %rbx pushq %rax movq 0x8(%rdi), %rax movq 0x10(%rdi), %rcx movzbl (%rax,%rcx), %ebp testl %ebp, %ebp je 0x116c2 movq %rdi, %rbx leaq 0x1(%rcx), %rdx movq %rdx, 0x10(%rdi) cmpb $0x0, 0x1(%rax,%rcx) jne 0x11686 movq %rbx, %rdi movl $0x1, %esi callq 0x115b4 cmpl $0xa, %ebp je 0x116ba cmpl $0xd, %ebp jne 0...
/potassco[P]clasp/libpotassco/src/match_basic_types.cpp
Potassco::ProgramOptions::Value::implicit() const
bool hasProperty(Property f)const { return (flags_ & byte_t(f)) == f; }
testb $0x1, 0x9(%rdi) jne 0x12647 xorl %eax, %eax retq movzbl 0xa(%rdi), %eax cmpl $0x8, %eax je 0x12655 cmpl $0x4, %eax jne 0x12663 cmpb $0x4, %al je 0x1265d movq 0x10(%rdi), %rdi movq 0x10(%rdi), %rcx jmp 0x12665 xorl %ecx, %ecx testq %rcx, %rcx leaq 0xc7a9(%rip), %rax # 0x1ee18 cmovneq %rcx, %rax retq
/potassco[P]clasp/libpotassco/potassco/program_opts/value.h
Potassco::ProgramOptions::DefaultFormat::format(std::vector<char, std::allocator<char>>&, Potassco::ProgramOptions::OptionGroup const&)
std::size_t DefaultFormat::format(std::vector<char>& buffer, const OptionGroup& grp) { buffer.clear(); if (grp.caption().length()) { buffer.reserve(grp.caption().length() + 4); buffer.push_back('\n'); buffer.insert(buffer.end(), grp.caption().begin(), grp.caption().end()); buffer.push_back(':'); buffer.push...
pushq %r14 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %rbx movq (%rsi), %rcx cmpq %rcx, 0x8(%rsi) je 0x1268b movq %rcx, 0x8(%rbx) movq 0x8(%r14), %rsi movq %rcx, %rax testq %rsi, %rsi je 0x12774 addq $0x4, %rsi movq %rbx, %rdi callq 0x15f7e movb $0xa, 0x7(%rsp) movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0x126c...
/potassco[P]clasp/libpotassco/src/program_options.cpp
Potassco::ProgramOptions::Value::desc(Potassco::ProgramOptions::Value::DescType, char const*)
Value* Value::desc(DescType t, const char* n) { if (n == 0) return this; if (t == desc_implicit) { setProperty(property_implicit); if (!*n) return this; } if (descFlag_ == 0 || descFlag_ == t) { desc_.value = n; descFlag_ = static_cast<byte_t>(t); return this; } if (descFlag_ != desc_pack) { const cha...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdi, %rbx testq %rdx, %rdx je 0x128af movq %rdx, %r14 movl %esi, %ebp cmpl $0x4, %esi jne 0x12852 orb $0x1, 0x9(%rbx) cmpb $0x0, (%r14) je 0x128af movzbl 0xa(%rbx), %r15d testl %r15d, %r15d setne %al cmpl %ebp, %r15d setne %cl testb %cl, %al jne 0x12871 movq ...
/potassco[P]clasp/libpotassco/src/program_options.cpp
Potassco::ProgramOptions::Value::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Potassco::ProgramOptions::Value::State)
bool Value::parse(const std::string& name, const std::string& value, State st) { if (!value.empty() || !isImplicit()) return state(doParse(name, value), st); const char* x = implicit(); assert(x); return state(doParse(name, x), st); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movl %ecx, %ebx movq %rsi, %r15 movq %rdi, %r14 cmpq $0x0, 0x8(%rdx) jne 0x128de testb $0x1, 0x9(%r14) jne 0x128fb movq (%r14), %rax movq %r14, %rdi movq %r15, %rsi callq *0x10(%rax) testb %al, %al je 0x128f7 movb %bl, 0x8(%r14) movb $0x1, %bpl jmp...
/potassco[P]clasp/libpotassco/src/program_options.cpp
Potassco::ProgramOptions::OptionGroup::~OptionGroup()
OptionGroup::~OptionGroup() {}
pushq %rbx movq %rdi, %rbx addq $0x20, %rdi callq 0x16008 movq (%rbx), %rdi addq $0x10, %rbx cmpq %rbx, %rdi je 0x12b31 popq %rbx jmp 0x6370 popq %rbx retq nop
/potassco[P]clasp/libpotassco/src/program_options.cpp
Potassco::ProgramOptions::OptionContext::findGroupKey(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
size_t OptionContext::findGroupKey(const std::string& name) const { for (size_t i = 0; i != groups_.size(); ++i) { if (groups_[i].caption() == name) { return i; } } return size_t(-1); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq 0x48(%rdi), %r12 movq 0x50(%rdi), %r13 movq $-0x1, %rbx subq %r12, %r13 je 0x130b8 sarq $0x6, %r13 movq (%rsi), %r14 movq 0x8(%rsi), %r15 addq $0x8, %r12 xorl %ebp, %ebp cmpq %r15, (%r12) jne 0x130a7 testq %r15, %r15 je 0x130b5 movq -0x8(...
/potassco[P]clasp/libpotassco/src/program_options.cpp
Potassco::ProgramOptions::ParsedOptions::assign(Potassco::ProgramOptions::ParsedValues const&, Potassco::ProgramOptions::ParsedOptions const*)::Assign::~Assign()
~Assign() { for (ParsedValues::iterator x = begin, end = this->it; x != end; ++x) { const Option& o = *x->first; assert(o.value()->state() == Value::value_fixed || self->parsed_.count(o.name()) != 0 || ignore->count(o.name()) != 0); if (o.value()->state() == Value::value_fixed) { self->parsed_.inser...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x10(%rdi), %r14 movq 0x18(%rdi), %r15 cmpq %r15, %r14 je 0x140d1 movq %rdi, %rbx movq (%r14), %r12 movq 0x30(%r12), %rax cmpb $0x2, 0x8(%rax) jne 0x140c8 movq (%rbx), %rdi leaq 0x8(%r12), %rsi callq 0x164ae movq 0x30(%r12), %rax movb $0x0, 0x8(%rax) addq $0x2...
/potassco[P]clasp/libpotassco/src/program_options.cpp
Potassco::SmodelsOutput::rule(Potassco::Head_t, Potassco::Span<unsigned int> const&, Potassco::Span<int> const&)
void SmodelsOutput::rule(Head_t ht, const AtomSpan& head, const LitSpan& body) { POTASSCO_REQUIRE(sec_ == 0, "adding rules after symbols not supported"); if (empty(head)) { if (ht == Head_t::Choice) { return; } else { POTASSCO_REQUIRE(false_ != 0, "empty head requires false atom"); fHead_ = true; return ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp cmpl $0x0, 0x14(%rdi) jne 0x1988d movq %rcx, %rbx movq %rdx, %r15 movl %esi, %ebp movq %rdi, %r14 movq 0x8(%rdx), %rax testq %rax, %rax je 0x19850 cmpq $0x1, %rax movl $0x1, %eax movl $0x8, %ecx cmovel %eax, %ecx cmpl $0x1, %ebp movl $0x3, %esi cmovnel %ecx, ...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsOutput::rule(Potassco::Head_t, Potassco::Span<unsigned int> const&, int, Potassco::Span<Potassco::WeightLit_t> const&)
void SmodelsOutput::rule(Head_t ht, const AtomSpan& head, Weight_t bound, const WeightLitSpan& body) { POTASSCO_REQUIRE(sec_ == 0, "adding rules after symbols not supported"); if (empty(head)) { POTASSCO_REQUIRE(false_ != 0, "empty head requires false atom"); fHead_ = true; return SmodelsOutput::rule(ht, toSpan...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp cmpl $0x0, 0x14(%rdi) jne 0x19a09 movq %r8, %rbx movl %ecx, %ebp movq %rdx, %r12 movl %esi, %r15d movq %rdi, %r14 movq 0x8(%rdx), %rax testq %rax, %rax je 0x19950 cmpl $0x1, %r15d je 0x199e8 testl %ebp, %ebp js 0x199e8 cmpq $0x1, %rax jn...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsOutput::output(Potassco::Span<char> const&, Potassco::Span<int> const&)
void SmodelsOutput::output(const StringSpan& str, const LitSpan& cond) { POTASSCO_REQUIRE(sec_ <= 1, "adding symbols after compute not supported"); POTASSCO_REQUIRE(size(cond) == 1 && lit(*begin(cond)) > 0, "general output directive not supported in smodels format"); if (sec_ == 0) { startRule(End).endRule(); sec_ =...
pushq %r15 pushq %r14 pushq %rbx movl 0x14(%rdi), %eax cmpl $0x2, %eax jge 0x19b60 movq %rdx, %r15 cmpq $0x1, 0x8(%rdx) jne 0x19b3f movq (%r15), %rcx movl (%rcx), %ecx testl %ecx, %ecx jle 0x19b3f movq %rsi, %r14 movq %rdi, %rbx testl %eax, %eax jne 0x19af6 movq 0x8(%rbx), %rdi xorl %esi, %esi callq 0x6670 movq 0x8(%rb...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsOutput::external(unsigned int, Potassco::Value_t)
void SmodelsOutput::external(Atom_t a, Value_t t) { POTASSCO_REQUIRE(ext_, "external directive not supported in smodels format"); if (t != Value_t::Release) { startRule(ClaspAssignExt).add(a).add((unsigned(t)^3)-1).endRule(); } else { startRule(ClaspReleaseExt).add(a).endRule(); } }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx cmpb $0x0, 0x18(%rdi) je 0x19c4d movl %edx, %r14d movq %rdi, %rbx movq 0x8(%rdi), %rdi movl %esi, %r15d cmpl $0x3, %edx jne 0x19bd9 movl $0x5c, %esi callq 0x6670 movq 0x8(%rbx), %r14 leaq 0x4751(%rip), %rsi # 0x1e315 movl $0x1, %edx movq %r14, %rdi callq 0x641...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsOutput::assume(Potassco::Span<int> const&)
void SmodelsOutput::assume(const LitSpan& lits) { POTASSCO_REQUIRE(sec_ < 2, "at most one compute statement supported in smodels format"); while (sec_ != 2) { startRule(End).endRule(); ++sec_; } os_ << "B+\n"; for (const Lit_t* x = begin(lits); x != end(lits); ++x) { if (lit(*x) > 0) { os_ << atom(*x) << "\n"; } ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax cmpl $0x1, 0x14(%rdi) jg 0x19dcc movq %rsi, %r14 movq %rdi, %rbx leaq 0x46e9(%rip), %r15 # 0x1e37e movq 0x8(%rbx), %rdi xorl %esi, %esi callq 0x6670 movq 0x8(%rbx), %rdi movl $0x1, %edx movq %r15, %rsi callq 0x6410 movl 0x14(%rbx), %eax incl %eax movl %eax, 0x...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsInput::NodeTab::add(Potassco::Span<char> const&)
Id_t add(const StringSpan& n) { return nodes.insert(StrMap::value_type(std::string(begin(n), end(n)), (Id_t)nodes.size())).first->second; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdi, %rbx movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq %rsp, %r14 movq %r14, %rdi movq %rax, %rsi callq 0x73f0 movl 0x18(%rbx), %eax leaq 0x30(%rsp), %r12 movq %r12, -0x10(%r12) movq (%r14), %r...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsInput::SymTab::~SymTab()
SymTab(AbstractProgram& o) : out(&o) {}
pushq %rbx movq %rdi, %rbx leaq 0x11c7b(%rip), %rax # 0x2bc48 movq %rax, (%rdi) movq 0x40(%rdi), %rdi leaq 0x50(%rbx), %rax cmpq %rax, %rdi je 0x19fe2 callq 0x6370 addq $0x8, %rbx movq %rbx, %rdi popq %rbx jmp 0xd3fa nop
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsInput::SymTab::~SymTab()
SymTab(AbstractProgram& o) : out(&o) {}
pushq %rbx movq %rdi, %rbx leaq 0x11c4d(%rip), %rax # 0x2bc48 movq %rax, (%rdi) movq 0x40(%rdi), %rdi leaq 0x50(%rbx), %rax cmpq %rax, %rdi je 0x1a010 callq 0x6370 leaq 0x8(%rbx), %rdi callq 0xd3fa movq %rbx, %rdi popq %rbx jmp 0x6370
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::SmodelsInput::SymTab::find(Potassco::Span<char> const&)
virtual Atom_t find(const StringSpan& name) { temp.assign(Potassco::begin(name), Potassco::end(name)); StrMap::const_iterator it = atoms.find(temp); return it != atoms.end() ? it->second : 0; }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %r14 leaq 0x40(%rdi), %r15 movq (%rsi), %rcx movq 0x8(%rsi), %r8 movq 0x48(%rdi), %rdx xorl %ebx, %ebx movq %r15, %rdi xorl %esi, %esi callq 0x63f0 addq $0x8, %r14 movq %r14, %rdi movq %r15, %rsi callq 0x1a17c testq %rax, %rax je 0x1a174 movl 0x28(%rax), %ebx movl %ebx, %eax ...
/potassco[P]clasp/libpotassco/src/smodels.cpp
Potassco::xconvert(char const*, bool&, char const**, int)
int xconvert(const char* x, bool& out, const char** errPos, int) { if (empty(x, errPos)) { return 0; } else if (*x == '1') { out = true; x += 1; } else if (*x == '0') { out = false; x += 1; } else if (strncmp(x, "no", 2) == 0) { out = false; x += 2; } else if (st...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %rbx movq %rdi, %r14 testq %rdi, %rdi je 0x1a45d movq %rsi, %r15 movzbl (%r14), %eax movb $0x1, %bpl cmpl $0x6d, %eax jg 0x1a464 testl %eax, %eax je 0x1a45d movl $0x1, %r12d cmpl $0x30, %eax je 0x1a4f7 cmpl $0x31, %eax je 0x1a4f9 jmp 0x1a4bb xorl %eax, %...
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::parseSigned(char const*&, long long&, long long, long long)
static bool parseSigned(const char*& x, long long& out, long long sMin, long long sMax) { if (!x || !*x) { return false; } if ((std::strncmp(x, "imax", 4) == 0 && (out = sMax) != 0) || (std::strncmp(x, "imin", 4) == 0 && (out = sMin) != 0)) { x += 4; return true; } char* err; out = strtoll(x, &err, detectBa...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq (%rdi), %r13 testq %r13, %r13 je 0x1a6ee movb (%r13), %bpl testb %bpl, %bpl je 0x1a6ee movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx leaq 0x4b5d(%rip), %rsi # 0x1f152 movl $0x4, %edx movq %r13, %rdi callq 0x62...
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::parseUnsigned(char const*&, unsigned long long&, unsigned long long)
static bool parseUnsigned(const char*& x, unsigned long long& out, unsigned long long uMax) { if (!x || !*x || (*x == '-' && x[1] != '1')) { return false; } std::size_t len = 4; if (std::strncmp(x, "imax", len) == 0 || std::strncmp(x, "umax", len) == 0 || std::strncmp(x, "-1", len=2) == 0) { out = *x != 'i' ? u...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq (%rdi), %r12 testq %r12, %r12 je 0x1a8cd movzbl (%r12), %ebp testl %ebp, %ebp je 0x1a8cd movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx cmpl $0x2d, %ebp jne 0x1a7b0 cmpb $0x31, 0x1(%r12) jne 0x1a8cd leaq 0x499b(%rip), %rsi # 0x1f152...
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::xconvert(char const*, long long&, char const**, int)
int xconvert(const char* x, long long& out, const char** errPos, int) { int tok = parseSigned(x, out, LLONG_MIN, LLONG_MAX); return parsed(tok, x, errPos); }
pushq %rbx subq $0x10, %rsp movq %rdx, %rbx leaq 0x8(%rsp), %rax movq %rdi, (%rax) movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF leaq 0x1(%rcx), %rdx movq %rax, %rdi callq 0x1a5bb testq %rbx, %rbx je 0x1a9d1 movq 0x8(%rsp), %rcx movq %rcx, (%rbx) movzbl %al, %eax addq $0x10, %rsp popq %rbx retq
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::xconvert(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char const**, int)
int xconvert(const char* x, string& out, const char** errPos, int sep) { const char* end; if (sep == 0 || (end = strchr(x, char(sep))) == 0) { out = x; } else { out.assign(x, end - x); } if (errPos) { *errPos = x + out.length(); } return 1; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 testl %ecx, %ecx je 0x1aaf6 movsbl %cl, %esi movq %r15, %rdi callq 0x61c0 testq %rax, %rax je 0x1aaf6 subq %r15, %rax movq 0x8(%r14), %rdx movq %r14, %rdi xorl %esi, %esi jmp 0x1ab0a movq 0x8(%r14), %r12 movq %r15, %r...
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::xconvert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned long long)
string& xconvert(string& out, unsigned long long n) { return n != static_cast<unsigned long long>(-1) ? (StringBuilder(out).append(n), out) : out.append("umax"); }
pushq %rbx subq $0x40, %rsp movq %rdi, %rbx cmpq $-0x1, %rsi je 0x1ac91 movq %rsp, %rdi movq %rbx, (%rdi) movb $0x40, 0x3f(%rdi) movl $0x1, %edx callq 0x1b870 movq %rsp, %rdi callq 0x1ad6e movq %rbx, %rax addq $0x40, %rsp popq %rbx retq leaq 0x4361(%rip), %rsi # 0x1eff9 movq %rbx, %rdi addq $0x40, %rsp popq %rbx j...
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::StringBuilder::appendFormat(char const*, ...)
StringBuilder& StringBuilder::appendFormat(const char* fmt, ...) { const char* p = std::strchr(fmt, '%'); std::size_t x = p ? static_cast<std::size_t>(p - fmt) : std::strlen(fmt); if (x) { append(fmt, x); fmt += x; } if (*fmt) { char small[64]; Buffer buf = buffer(); if (buf.free() == 0) { buf.head = small; b...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %rsi, %r14 movq %rdi, %rbx movq %rdx, 0x40(%rsp) movq %rcx, 0x48(%rsp) movq %r8, 0x50(%rsp) movq %r9, 0x58(%rsp) testb %al, %al je 0x1b6f3 movaps %xmm0, 0x60(%rsp) movaps %xmm1, 0x70(%rsp) movaps %xmm2, 0x8...
/potassco[P]clasp/libpotassco/src/string_convert.cpp
Potassco::TheoryTerm::end() const
Theory_t TheoryTerm::type() const { POTASSCO_REQUIRE(valid(), "Invalid term"); return static_cast<Theory_t>(data_&typeMask); }
movq (%rdi), %rax cmpq $-0x1, %rax je 0x1bef2 movl %eax, %ecx andl $0x3, %ecx cmpl $0x2, %ecx jne 0x1beef andq $-0x4, %rax movl 0x4(%rax), %ecx leaq (%rax,%rcx,4), %rax addq $0x8, %rax retq xorl %eax, %eax retq pushq %rax leaq 0x331f(%rip), %rsi # 0x1f219 leaq 0x3344(%rip), %rcx # 0x1f245 leaq 0x3345(%rip), %...
/potassco[P]clasp/libpotassco/src/theory_data.cpp
Potassco::TheoryData::getElement(unsigned int) const
const TheoryElement& TheoryData::getElement(Id_t id) const { POTASSCO_REQUIRE(hasElement(id), "Unknown element '%u'", unsigned(id)); return *elems()[id]; }
movl %esi, %r9d movq (%rdi), %rax movq 0x28(%rax), %rcx shrq $0x3, %rcx cmpl %esi, %ecx jbe 0x1c993 movq 0x18(%rax), %rax movl %r9d, %ecx movq (%rax,%rcx,8), %rax testq %rax, %rax je 0x1c993 retq pushq %rax movl $0x0, (%rsp) leaq 0x2afb(%rip), %rsi # 0x1f49d leaq 0x2b36(%rip), %rcx # 0x1f4df leaq 0x2b3e(%rip)...
/potassco[P]clasp/libpotassco/src/theory_data.cpp
hexdump
char *hexdump(const unsigned char *buffer, size_t len) { static char dump[200 * 3 + 1]; char *p = dump; size_t i; if(len > 200) return NULL; for(i = 0; i<len; i++, p += 3) snprintf(p, 4, "%02x ", buffer[i]); return dump; }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) leaq 0x2cb9(%rip), %rax # 0x40a0 movq %rax, -0x20(%rbp) cmpq $0xc8, -0x18(%rbp) jbe 0x13ff movq $0x0, -0x8(%rbp) jmp 0x1459 movq $0x0, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0x144e movq -0x20(%rbp), %rd...
/macressler[P]curl/tests/libtest/first.c
main
int main(int argc, char **argv) { char *URL; int result; #ifdef O_BINARY # ifdef __HIGHC__ _setmode(stdout, O_BINARY); # else setmode(fileno(stdout), O_BINARY); # endif #endif memory_tracking_init(); /* * Setup proper locale from environment. This is needed to enable locale- * specific behaviour...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x0, -0x4(%rbp) movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x1488 movl $0x6, %edi leaq 0xb8a(%rip), %rsi # 0x201e callq 0x1070 cmpl $0x2, -0x8(%rbp) jge 0x14c0 movq 0x2b3a(%rip), %rax # 0x3fe0 movq (%rax), %rdi leaq 0xb8e(%rip), %rsi # 0x203e movb...
/macressler[P]curl/tests/libtest/first.c
threadsafe::ring_buffer<sig::ProtoSignal<void ()>::Link>::size() const
size_t size() const { size_t i = 0; for(auto it = begin(); it != end(); ++it) { ++i; } return i; }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq %rsp, %r15 movq %r15, %rdi movq %rbx, %rsi callq 0x5dca xorl %r14d, %r14d leaq 0x8(%rsp), %r12 andq $0x0, 0x8(%rsp) movq %rbx, %rdi callq 0x5c56 movq %rbx, 0x8(%rsp) movq (%rsp), %r13 movq %r12, %rdi callq 0x5ddc cmpq %rbx, %r1...
/Kazade[P]kazsignal/kazsignal/ring_buffer.h
threadsafe::ring_buffer<sig::ProtoSignal<void (bool, int)>::Link>::erase(threadsafe::impl::Iterator<sig::ProtoSignal<void (bool, int)>::Link, false>, threadsafe::impl::Iterator<sig::ProtoSignal<void (bool, int)>::Link, false>)
iterator erase(iterator start, iterator end) { for(; start != end;) { start = erase(start); } return start; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %rbx leaq 0x8(%rsp), %r13 leaq 0x10(%rsp), %rbp movq (%r14), %rax cmpq (%r15), %rax je 0x61ce movq %r13, %rdi movq %r14, %rsi callq 0x6288 movq %rbp, %rdi movq %r12, %rsi movq %r...
/Kazade[P]kazsignal/kazsignal/ring_buffer.h
main
int main(int argc, char* argv[]) { glfwSetErrorCallback(+[](int error, const char* description) { fprintf(stderr, "Glfw Error %d: %s\n", error, description); }); if (!glfwInit()) return 1; glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); ...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movl $0x0, -0x4(%rbp) movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x11(%rbp), %rdi callq 0x12f90 movq %rax, %rdi callq 0x36f10 callq 0x36a10 cmpl $0x0, %eax jne 0x12c50 movl $0x1, -0x4(%rbp) jmp 0x12f76 movl $0x22002, %edi # imm = 0x22002 movl $0x3, %esi callq...
/tuket[P]gltf_viewer/src/main.cpp
drawGui_accessorsTab()
static void drawGui_accessorsTab() { CSpan<cgltf_accessor> accessors (parsedData->accessors, parsedData->accessors_count); for(size_t i = 0; i < accessors.size(); i++) { const cgltf_accessor& accessor = accessors[i]; tl::toStringBuffer(scratchStr(), i); if(ImGui::CollapsingHeader(scr...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq 0x2e49a1(%rip), %rax # 0x2fb630 movq 0x60(%rax), %rsi movq 0x2e4996(%rip), %rax # 0x2fb630 movq 0x68(%rax), %rdx leaq -0x10(%rbp), %rdi callq 0x21880 movq $0x0, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) leaq -0x10(%rbp), %rdi callq 0x218b0 movq %rax...
/tuket[P]gltf_viewer/src/scene.cpp
void tl::Vector<glm::mat<4, 4, float, (glm::qualifier)0>>::resize<>(unsigned long)
void Vector<T>::resize(size_t size, ConstructorArgs&&... args)noexcept { if(size > _capacity) grow(size); if(size < _size) { for(size_t i = size; i < _size; i++) { _data[i].~T(); } } else if(size > _size) { for(size_t i = _size; i < size; i++) { ne...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax cmpq 0x10(%rcx), %rax jbe 0x1d92f movq -0x28(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x23980 movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax cmpq 0x8(%rcx), %rax ja...
/tuket[P]gltf_viewer/libs/tl/tl/containers/vector.hpp
tl::Vector<anims::NodeData>::reserve(unsigned long)
void Vector<T>::reserve(size_t capacity)noexcept { if(capacity > _capacity) { T* data = reinterpret_cast<T*>(new char[sizeof(T) * capacity]); if(_data) { memcpy(data, _data, _size * sizeof(T)); delete[] (char*)_data; } _data = data; _capacity = capacit...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax cmpq 0x10(%rcx), %rax jbe 0x2203f movq -0x10(%rbp), %rax shlq $0x3, %rax leaq (%rax,%rax,2), %rdi callq 0x11040 movq %rax, -0x28(%rbp) jmp 0x21fe9 movq -0x20(%rbp)...
/tuket[P]gltf_viewer/libs/tl/tl/containers/vector.hpp
gpu::buildShaders()
bool buildShaders() { u32 vertShader[2]; for(int skinning = 0; skinning < 2; skinning++) { vertShader[skinning] = glCreateShader(GL_VERTEX_SHADER); if(skinning) { snprintf(scratchStr().begin(), scratchStr().size(), src::skinningVertShader, MAX_NUM_JOINTS); uploadShaderSou...
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movl $0x0, -0x10(%rbp) cmpl $0x2, -0x10(%rbp) jge 0x24fab movl $0x8b31, %edi # imm = 0x8B31 leaq 0x2cca70(%rip), %rax # 0x2f18f8 callq *(%rax) movl %eax, %ecx movslq -0x10(%rbp), %rax movl %ecx, -0xc(%rbp,%rax,4) cmpl $0x0, -0x10(%rbp) j...
/tuket[P]gltf_viewer/src/shaders.cpp
post_call_callback_default
void _post_call_callback_default(const char *name, void *funcptr, int len_args, ...) { GLenum error_code; (void) funcptr; (void) len_args; error_code = glad_glGetError(); if (error_code != GL_NO_ERROR) { fprintf(stderr, "ERROR %d in %s\n", error_code, name); } }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) callq *0x2de42f(%rip) # 0x304118 movl %eax, -0x18(%rbp) cmpl $0x0, -0x18(%rbp) je 0x25d11 movq 0x2cb2e7(%rip), %rax # 0x2f0fe0 movq (%rax), %rdi movl -0x18(%rbp), %edx movq -0x8(%rbp), %rcx leaq 0x...
/tuket[P]gltf_viewer/libs/glad/src/glad.c
gladLoadGLLoader
int gladLoadGLLoader(GLADloadproc load) { GLVersion.major = 0; GLVersion.minor = 0; glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); if(glGetString == NULL) return 0; if(glGetString(GL_VERSION) == NULL) return 0; find_coreGL(); load_GL_VERSION_1_0(load); load_GL_VERSION_1_1(load); load_GL_VERSION_1_2(load...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl $0x0, 0x2de2ca(%rip) # 0x304120 movl $0x0, 0x2de2c4(%rip) # 0x304124 leaq 0x23895d(%rip), %rdi # 0x25e7c4 callq *-0x10(%rbp) movq %rax, 0x2cbd7f(%rip) # 0x2f1bf0 cmpq $0x0, 0x2cbd77(%rip) # 0x2f1bf0 jne 0x25e87 movl $0x0, -0x4(%rbp) ...
/tuket[P]gltf_viewer/libs/glad/src/glad.c
get_proc
static void* get_proc(const char *namez) { void* result = NULL; if(libGL == NULL) return NULL; #if !defined(__APPLE__) && !defined(__HAIKU__) if(gladGetProcAddressPtr != NULL) { result = gladGetProcAddressPtr(namez); } #endif if(result == NULL) { #if defined(_WIN32) || defined(__CYGWIN__) ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq $0x0, -0x18(%rbp) cmpq $0x0, 0x2ded8c(%rip) # 0x304d08 jne 0x25f88 movq $0x0, -0x8(%rbp) jmp 0x25fc6 cmpq $0x0, 0x2ded80(%rip) # 0x304d10 je 0x25fa3 movq 0x2ded77(%rip), %rax # 0x304d10 movq -0x10(%rbp), %rdi callq *%rax movq %rax, -0x18(%...
/tuket[P]gltf_viewer/libs/glad/src/glad.c
find_coreGL
static void find_coreGL(void) { /* Thank you @elmindreda * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 * https://github.com/glfw/glfw/blob/master/src/context.c#L36 */ int i, major, minor; const char* version; const char* prefixes[] = { "OpenGL ES-CM "...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq 0x2bd211(%rip), %rax # 0x2f03e0 movq %rax, -0x40(%rbp) movq 0x2bd20e(%rip), %rax # 0x2f03e8 movq %rax, -0x38(%rbp) movq 0x2bd20b(%rip), %rax # 0x2f03f0 movq %rax, -0x30(%rbp) movq 0x2bd208(%rip), %rax # 0x2f03f8 movq %rax, -0x28(%rbp) movl $0x1f02, %edi ...
/tuket[P]gltf_viewer/libs/glad/src/glad.c
glfwExtensionSupported
GLFWAPI int glfwExtensionSupported(const char* extension) { _GLFWwindow* window; assert(extension != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); window = _glfwPlatformGetTls(&_glfw.contextSlot); if (!window) { _glfwInputError(GLFW_NO_CURRENT_CONTEXT, "Canno...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x36125 jmp 0x36144 leaq 0x229a8d(%rip), %rdi # 0x25fbb9 leaq 0x229971(%rip), %rsi # 0x25faa4 movl $0x2a8, %edx # imm = 0x2A8 leaq 0x229a8c(%rip), %rcx # 0x25fbcb callq 0x11410 leaq 0x2cebed(%rip), %rax #...
/tuket[P]gltf_viewer/libs/glfw/src/context.c
glfwStringInExtensionString
GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions) { const char* start = extensions; for (;;) { const char* where; const char* terminator; where = strstr(start, string); if (!where) return GLFW_FALSE; terminator = where + ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x11130 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x36319 movl $0x0, -0x4(%rbp) jmp 0x3637c movq -0x28(%rbp), %rax movq %rax...
/tuket[P]gltf_viewer/libs/glfw/src/context.c
glfwSwapInterval
GLFWAPI void glfwSwapInterval(int interval) { _GLFWwindow* window; _GLFW_REQUIRE_INIT(); window = _glfwPlatformGetTls(&_glfw.contextSlot); if (!window) { _glfwInputError(GLFW_NO_CURRENT_CONTEXT, "Cannot set swap interval without a current OpenGL or OpenGL ES context...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) leaq 0x2ce8a6(%rip), %rax # 0x304d38 cmpl $0x0, (%rax) jne 0x364a9 movl $0x10001, %edi # imm = 0x10001 xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x366f0 jmp 0x364ec leaq 0x2ce888(%rip), %rdi # 0x304d38 addq $0x1fe1c, %rdi ...
/tuket[P]gltf_viewer/libs/glfw/src/context.c
glfwGetProcAddress
GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname) { _GLFWwindow* window; assert(procname != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(NULL); window = _glfwPlatformGetTls(&_glfw.contextSlot); if (!window) { _glfwInputError(GLFW_NO_CURRENT_CONTEXT, "Cannot que...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x36515 jmp 0x36534 leaq 0x22976b(%rip), %rdi # 0x25fc87 leaq 0x229581(%rip), %rsi # 0x25faa4 movl $0x2ea, %edx # imm = 0x2EA leaq 0x229769(%rip), %rcx # 0x25fc98 callq 0x11410 leaq 0x2ce7fd(%rip), %rax #...
/tuket[P]gltf_viewer/libs/glfw/src/context.c
glfw_fmaxf
float _glfw_fmaxf(float a, float b) { if (a != a) return b; else if (b != b) return a; else if (a > b) return a; else return b; }
pushq %rbp movq %rsp, %rbp movss %xmm0, -0x8(%rbp) movss %xmm1, -0xc(%rbp) movss -0x8(%rbp), %xmm0 ucomiss -0x8(%rbp), %xmm0 jne 0x3669d jp 0x3669d jmp 0x366a9 movss -0xc(%rbp), %xmm0 movss %xmm0, -0x4(%rbp) jmp 0x366e5 movss -0xc(%rbp), %xmm0 ucomiss -0xc(%rbp), %xmm0 jne 0x366b8 jp 0x366b8 jmp 0x366c4 movss -0x8(%rbp...
/tuket[P]gltf_viewer/libs/glfw/src/init.c
glfwInputError
void _glfwInputError(int code, const char* format, ...) { _GLFWerror* error; char description[_GLFW_MESSAGE_SIZE]; if (format) { va_list vl; va_start(vl, format); vsnprintf(description, sizeof(description), format, vl); va_end(vl); description[sizeof(descriptio...
pushq %rbp movq %rsp, %rbp subq $0x4f0, %rsp # imm = 0x4F0 testb %al, %al je 0x36737 movaps %xmm0, -0x4c0(%rbp) movaps %xmm1, -0x4b0(%rbp) movaps %xmm2, -0x4a0(%rbp) movaps %xmm3, -0x490(%rbp) movaps %xmm4, -0x480(%rbp) movaps %xmm5, -0x470(%rbp) movaps %xmm6, -0x460(%rbp) movaps %xmm7, -0x450(%rbp) movq %r9...
/tuket[P]gltf_viewer/libs/glfw/src/init.c
glfwInit
GLFWAPI int glfwInit(void) { if (_glfw.initialized) return GLFW_TRUE; memset(&_glfw, 0, sizeof(_glfw)); _glfw.hints.init = _glfwInitHints; if (!_glfwPlatformInit()) { terminate(); return GLFW_FALSE; } if (!_glfwPlatformCreateMutex(&_glfw.errorLock) || !_glf...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp leaq 0x2ce319(%rip), %rax # 0x304d38 cmpl $0x0, (%rax) je 0x36a30 movl $0x1, -0x4(%rbp) jmp 0x36b68 leaq 0x2ce301(%rip), %rdi # 0x304d38 xorl %esi, %esi movl $0x21078, %edx # imm = 0x21078 callq 0x11370 leaq 0x2ce2ee(%rip), %rax # 0x304d38 movq 0x2bc587(%rip...
/tuket[P]gltf_viewer/libs/glfw/src/init.c
terminate
static void terminate(void) { int i; memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); while (_glfw.windowListHead) glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); while (_glfw.cursorListHead) glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); for (i = 0; i < _glf...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp leaq 0x2ce1a9(%rip), %rdi # 0x304d38 addq $0x1feb0, %rdi # imm = 0x1FEB0 xorl %esi, %esi movl $0x10, %edx callq 0x11370 leaq 0x2ce18f(%rip), %rax # 0x304d38 cmpq $0x0, 0x3f0(%rax) je 0x36bc8 leaq 0x2ce17e(%rip), %rax # 0x304d38 movq 0x3f0(%rax), %rdi callq 0...
/tuket[P]gltf_viewer/libs/glfw/src/init.c
glfwInitHint
GLFWAPI void glfwInitHint(int hint, int value) { switch (hint) { case GLFW_JOYSTICK_HAT_BUTTONS: _glfwInitHints.hatButtons = value; return; case GLFW_COCOA_CHDIR_RESOURCES: _glfwInitHints.ns.chdir = value; return; case GLFW_COCOA_MENUBAR: ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) movl -0x4(%rbp), %eax movl %eax, -0xc(%rbp) subl $0x50001, %eax # imm = 0x50001 je 0x36dc5 jmp 0x36dad movl -0xc(%rbp), %eax subl $0x51001, %eax # imm = 0x51001 je 0x36dd0 jmp 0x36db9 movl -0xc(%rbp), %eax subl $0x...
/tuket[P]gltf_viewer/libs/glfw/src/init.c
glfwGetVersion
GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) { if (major != NULL) *major = GLFW_VERSION_MAJOR; if (minor != NULL) *minor = GLFW_VERSION_MINOR; if (rev != NULL) *rev = GLFW_VERSION_REVISION; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) cmpq $0x0, -0x8(%rbp) je 0x36e31 movq -0x8(%rbp), %rax movl $0x3, (%rax) cmpq $0x0, -0x10(%rbp) je 0x36e42 movq -0x10(%rbp), %rax movl $0x3, (%rax) cmpq $0x0, -0x18(%rbp) je 0x36e53 movq -0x18(%rbp), %rax movl $0x1, (%rax) po...
/tuket[P]gltf_viewer/libs/glfw/src/init.c
glfwInputKey
void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) { if (key >= 0 && key <= GLFW_KEY_LAST) { GLFWbool repeated = GLFW_FALSE; if (action == GLFW_RELEASE && window->keys[key] == GLFW_RELEASE) return; if (action == GLFW_PRESS && window->keys[k...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x36ffe cmpl $0x15c, -0xc(%rbp) # imm = 0x15C jg 0x36ffe movl $0x0, -0x1c(%rbp) cmpl $0x0, -0x14(%rbp) jne 0x36f97 movq -0x8(%rbp), %...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwInputChar
void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWbool plain) { if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) return; if (!window->lockKeyMods) mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); if (window->callbacks.charmods) window->call...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) cmpl $0x20, -0xc(%rbp) jb 0x3707a cmpl $0x7e, -0xc(%rbp) jbe 0x3707c cmpl $0xa0, -0xc(%rbp) jae 0x3707c jmp 0x370de movq -0x8(%rbp), %rax cmpl $0x0, 0x70(%rax) jne 0x3708f movl -0x10(%rb...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwInputMouseClick
void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) { if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) return; if (!window->lockKeyMods) mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); if (action == GLFW_RELEASE && window->stickyMouseButtons) windo...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x37161 cmpl $0x7, -0xc(%rbp) jle 0x37163 jmp 0x371ce movq -0x8(%rbp), %rax cmpl $0x0, 0x70(%rax) jne 0x37176 movl -0x14(%rbp), %eax andl $-0x31, %eax movl %eax,...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwGetMouseButton
GLFWAPI int glfwGetMouseButton(GLFWwindow* handle, int button) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); if (button < GLFW_MOUSE_BUTTON_1 || button > GLFW_MOUSE_BUTTON_LAST) { _glfwInputError(GLFW_INVALID_ENUM, "Inval...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x37dd0 jmp 0x37def leaq 0x227cbe(%rip), %rdi # 0x25fa95 leaq 0x243062(%rip), %rsi # 0x27ae40 movl $0x28f, %edx # imm = 0x28F leaq 0x2431a4(%...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwGetCursorPos
GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); if (xpos) *xpos = 0; if (ypos) *ypos = 0; _GLFW_REQUIRE_INIT(); if (window->cursorMode == GLFW_CURSOR_DISABLED) { if...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x37ea5 jmp 0x37ec4 leaq 0x227be9(%rip), %rdi # 0x25fa95 leaq 0x242f8d(%rip), %rsi # 0x27ae40 movl $0x2a6, %edx # imm = ...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwSetCursorPos
GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); _GLFW_REQUIRE_INIT(); if (xpos != xpos || xpos < -DBL_MAX || xpos > DBL_MAX || ypos != ypos || ypos < -DBL_MAX || ypos > DBL_MAX) { _gl...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movsd %xmm0, -0x10(%rbp) movsd %xmm1, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x37f97 jmp 0x37fb6 leaq 0x227af7(%rip), %rdi # 0x25fa95 leaq 0x242e9b(%rip), %rsi # 0x27ae40 movl $0x2bd, %edx # im...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwCreateCursor
GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) { _GLFWcursor* cursor; assert(image != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(NULL); cursor = calloc(1, sizeof(_GLFWcursor)); cursor->next = _glfw.cursorListHead; _glfw.cursorListHead = cursor; if (!_glfwPlatfo...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) cmpq $0x0, -0x10(%rbp) je 0x380cb jmp 0x380ea leaq 0x242f88(%rip), %rdi # 0x27b05a leaq 0x242d67(%rip), %rsi # 0x27ae40 movl $0x2de, %edx # imm = 0x2DE leaq 0x242f83(%rip), %rcx # 0x27b06...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwDestroyCursor
GLFWAPI void glfwDestroyCursor(GLFWcursor* handle) { _GLFWcursor* cursor = (_GLFWcursor*) handle; _GLFW_REQUIRE_INIT(); if (cursor == NULL) return; // Make sure the cursor is not being used by any window { _GLFWwindow* window; for (window = _glfw.windowListHead; window; ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) leaq 0x2ccb8d(%rip), %rax # 0x304d38 cmpl $0x0, (%rax) jne 0x381c5 movl $0x10001, %edi # imm = 0x10001 xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x366f0 jmp 0x3825f cmpq $0x0, -0x10(%rbp...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwCreateStandardCursor
GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape) { _GLFWcursor* cursor; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (shape != GLFW_ARROW_CURSOR && shape != GLFW_IBEAM_CURSOR && shape != GLFW_CROSSHAIR_CURSOR && shape != GLFW_HAND_CURSOR && shape != GLFW_HRESIZE_CURSOR && ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0xc(%rbp) leaq 0x2ccab6(%rip), %rax # 0x304d38 cmpl $0x0, (%rax) jne 0x382a4 movl $0x10001, %edi # imm = 0x10001 xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x366f0 movq $0x0, -0x8(%rbp) jmp 0x38360 cmpl $0x36001, -0xc(%rbp) # imm = 0x36001...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwJoystickPresent
GLFWAPI int glfwJoystickPresent(int jid) { _GLFWjoystick* js; assert(jid >= GLFW_JOYSTICK_1); assert(jid <= GLFW_JOYSTICK_LAST); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); if (jid < 0 || jid > GLFW_JOYSTICK_LAST) { _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x8(%rbp) cmpl $0x0, -0x8(%rbp) jl 0x38913 jmp 0x38932 leaq 0x2429f6(%rip), %rdi # 0x27b310 leaq 0x24251f(%rip), %rsi # 0x27ae40 movl $0x395, %edx # imm = 0x395 leaq 0x2429fa(%rip), %rcx # 0x27b327 callq 0x11410 cmpl $0xf, -0x8(%rbp) jg 0x3893a...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwGetJoystickAxes
GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count) { _GLFWjoystick* js; assert(jid >= GLFW_JOYSTICK_1); assert(jid <= GLFW_JOYSTICK_LAST); assert(count != NULL); *count = 0; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (jid < 0 || jid > GLFW_JOYSTICK_LAST) { _glfwInputEr...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x38a17 jmp 0x38a36 leaq 0x2428f2(%rip), %rdi # 0x27b310 leaq 0x24241b(%rip), %rsi # 0x27ae40 movl $0x3ab, %edx # imm = 0x3AB leaq 0x242944(%rip), %rcx # 0x27b375 callq 0x11410 cmpl $0xf...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwGetJoystickHats
char* glfwGetJoystickHats(int jid, int* count) { _GLFWjoystick* js; assert(jid >= GLFW_JOYSTICK_1); assert(jid <= GLFW_JOYSTICK_LAST); assert(count != NULL); *count = 0; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (jid < 0 || jid > GLFW_JOYSTICK_LAST) { _glfwInputError(GLFW_INVALI...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x38d07 jmp 0x38d26 leaq 0x242602(%rip), %rdi # 0x27b310 leaq 0x24212b(%rip), %rsi # 0x27ae40 movl $0x3e9, %edx # imm = 0x3E9 leaq 0x2426c7(%rip), %rcx # 0x27b3e8 callq 0x11410 cmpl $0xf...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwGetJoystickGUID
GLFWAPI const char* glfwGetJoystickGUID(int jid) { _GLFWjoystick* js; assert(jid >= GLFW_JOYSTICK_1); assert(jid <= GLFW_JOYSTICK_LAST); _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (jid < 0 || jid > GLFW_JOYSTICK_LAST) { _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0xc(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x38f73 jmp 0x38f92 leaq 0x242396(%rip), %rdi # 0x27b310 leaq 0x241ebf(%rip), %rsi # 0x27ae40 movl $0x41f, %edx # imm = 0x41F leaq 0x2424b5(%rip), %rcx # 0x27b442 callq 0x11410 cmpl $0xf, -0xc(%rbp) jg 0x38f9a...
/tuket[P]gltf_viewer/libs/glfw/src/input.c
glfwGetMonitorContentScale
GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* handle, float* xscale, float* yscale) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; assert(monitor != NULL); if (xscale) *xscale = 0.f; if (yscale) *yscale = 0.f; _GLFW_REQUIRE_INIT(); ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x3b345 jmp 0x3b364 leaq 0x2403f4(%rip), %rdi # 0x27b740 leaq 0x240365(%rip), %rsi # 0x27b6b8 movl $0x17e, %edx # imm = ...
/tuket[P]gltf_viewer/libs/glfw/src/monitor.c
glfwGetVideoModes
GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; assert(monitor != NULL); assert(count != NULL); *count = 0; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (!refreshVideoModes(monitor)) return NULL; *count = m...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x3b5c1 jmp 0x3b5e0 leaq 0x240178(%rip), %rdi # 0x27b740 leaq 0x2400e9(%rip), %rsi # 0x27b6b8 movl $0x1ae, %edx # imm = 0x1AE leaq 0x240301(%...
/tuket[P]gltf_viewer/libs/glfw/src/monitor.c
glfwSetGamma
GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) { unsigned int i; unsigned short* values; GLFWgammaramp ramp; const GLFWgammaramp* original; assert(handle != NULL); assert(gamma > 0.f); assert(gamma <= FLT_MAX); _GLFW_REQUIRE_INIT(); if (gamma != gamma || gamma <= 0.f |...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) cmpq $0x0, -0x8(%rbp) je 0x3b72a jmp 0x3b749 leaq 0x240219(%rip), %rdi # 0x27b94a leaq 0x23ff80(%rip), %rsi # 0x27b6b8 movl $0x1cd, %edx # imm = 0x1CD leaq 0x240215(%rip), %rcx # 0x27b959 callq 0x11410 movss -0...
/tuket[P]gltf_viewer/libs/glfw/src/monitor.c
glfwGetGammaRamp
GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; assert(monitor != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(NULL); _glfwFreeGammaArrays(&monitor->currentRamp); if (!_glfwPlatformGetGammaRamp(monitor, &monitor->currentRamp)) ret...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x3b93d jmp 0x3b95c leaq 0x23fdfc(%rip), %rdi # 0x27b740 leaq 0x23fd6d(%rip), %rsi # 0x27b6b8 movl $0x1f9, %edx # imm = 0x1F9 leaq 0x24005e(%rip), %rcx # 0x27b9b...
/tuket[P]gltf_viewer/libs/glfw/src/monitor.c
glfwSetGammaRamp
GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; assert(monitor != NULL); assert(ramp != NULL); assert(ramp->size > 0); assert(ramp->red != NULL); assert(ramp->green != NULL); assert(ramp->blue != NULL); if (...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x3b9f1 jmp 0x3ba10 leaq 0x23fd48(%rip), %rdi # 0x27b740 leaq 0x23fcb9(%rip), %rsi # 0x27b6b8 movl $0x207, %edx # imm = 0x207 leaq 0x23ffdf(%ri...
/tuket[P]gltf_viewer/libs/glfw/src/monitor.c
glfwSetWindowMonitor
GLFWAPI void glfwSetWindowMonitor(GLFWwindow* wh, GLFWmonitor* mh, int xpos, int ypos, int width, int height, int refreshRate) { _GLFWwindow* window = (_GLFWwindow*) wh; _GLFWm...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movl %r8d, -0x1c(%rbp) movl %r9d, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x28(%rbp) je ...
/tuket[P]gltf_viewer/libs/glfw/src/window.c
glfwWaitEventsTimeout
GLFWAPI void glfwWaitEventsTimeout(double timeout) { _GLFW_REQUIRE_INIT(); assert(timeout == timeout); assert(timeout >= 0.0); assert(timeout <= DBL_MAX); if (timeout != timeout || timeout < 0.0 || timeout > DBL_MAX) { _glfwInputError(GLFW_INVALID_VALUE, "Invalid time %f", timeout); ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movsd %xmm0, -0x8(%rbp) leaq 0x2c59e4(%rip), %rax # 0x304d38 cmpl $0x0, (%rax) jne 0x3f36e movl $0x10001, %edi # imm = 0x10001 xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x366f0 jmp 0x3f44b movsd -0x8(%rbp), %xmm0 ucomisd -0x8(%rbp), %xmm0 jne 0x3f37e jp...
/tuket[P]gltf_viewer/libs/glfw/src/window.c
glfwCreateCursorX11
Cursor _glfwCreateCursorX11(const GLFWimage* image, int xhot, int yhot) { int i; Cursor cursor; if (!_glfw.x11.xcursor.handle) return None; XcursorImage* native = XcursorImageCreate(image->width, image->height); if (native == NULL) return None; native->xhot = xhot; native-...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) leaq 0x2c578f(%rip), %rax # 0x304d38 cmpq $0x0, 0x20d50(%rax) jne 0x3f5c0 movq $0x0, -0x8(%rbp) jmp 0x3f716 leaq 0x2c5771(%rip), %rax # 0x304d38 movq 0x20d58(%rax), %rax movq -0x10(%rbp), %rcx movl (%r...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
glfwPlatformInit
int _glfwPlatformInit(void) { #if !defined(X_HAVE_UTF8_STRING) // HACK: If the current locale is "C" and the Xlib UTF-8 functions are // unavailable, apply the environment's locale in the hope that it's // both available and not "C" // This is done because the "C" locale breaks wide ch...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp callq 0x11520 callq 0x111f0 xorl %eax, %eax movl %eax, %edi callq 0x11870 movq %rax, %rcx leaq 0x2c55f3(%rip), %rax # 0x304d38 movq %rcx, 0x1fec0(%rax) leaq 0x2c55e5(%rip), %rax # 0x304d38 cmpq $0x0, 0x1fec0(%rax) jne 0x3f7ac leaq 0x23d79c(%rip), %rdi # 0x27cf00 call...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
getSystemContentScale
static void getSystemContentScale(float* xscale, float* yscale) { // Start by assuming the default X11 DPI // NOTE: Some desktop environments (KDE) may remove the Xft.dpi field when it // would be set to 96, so assume that is the case if we cannot find it float xdpi = 96.f, ydpi = 96.f; // NO...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss 0x23d4e0(%rip), %xmm0 # 0x27ce38 movss %xmm0, -0x14(%rbp) movss 0x23d4d3(%rip), %xmm0 # 0x27ce38 movss %xmm0, -0x18(%rbp) leaq 0x2c53c7(%rip), %rax # 0x304d38 movq 0x1fec0(%rax), %rdi callq 0x11140 movq %rax, -0x20(%rb...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
hasUsableInputMethodStyle
static GLFWbool hasUsableInputMethodStyle(void) { GLFWbool found = GLFW_FALSE; XIMStyles* styles = NULL; if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) return GLFW_FALSE; for (unsigned int i = 0; i < styles->count_styles; i++) { if (styles->supported_st...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x0, -0x8(%rbp) movq $0x0, -0x10(%rbp) leaq 0x2c3eea(%rip), %rax # 0x304d38 movq 0x1fef8(%rax), %rdi leaq 0x23c849(%rip), %rsi # 0x27d6a5 leaq -0x10(%rbp), %rdx xorl %eax, %eax movl %eax, %ecx movb $0x0, %al callq 0x11180 cmpq $0x0, %rax je 0x40e7a movl $0x0, -0x4...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
glfwPlatformTerminate
void _glfwPlatformTerminate(void) { if (_glfw.x11.helperWindowHandle) { if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == _glfw.x11.helperWindowHandle) { _glfwPushSelectionToManagerX11(); } XDestroyWindow(_glfw.x11.display, _glfw.x11.helpe...
pushq %rbp movq %rsp, %rbp leaq 0x2c3e4d(%rip), %rax # 0x304d38 cmpq $0x0, 0x1fee0(%rax) je 0x40f5e leaq 0x2c3e3c(%rip), %rax # 0x304d38 movq 0x1fec0(%rax), %rdi leaq 0x2c3e2e(%rip), %rax # 0x304d38 movq 0x20c08(%rax), %rsi callq 0x11cb0 leaq 0x2c3e1b(%rip), %rcx # 0x304d38 cmpq 0x1fee0(%rcx), %rax jne 0x40...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
createKeyTables
static void createKeyTables(void) { int scancode, key; memset(_glfw.x11.keycodes, -1, sizeof(_glfw.x11.keycodes)); memset(_glfw.x11.scancodes, -1, sizeof(_glfw.x11.scancodes)); if (_glfw.x11.xkb.available) { // Use XKB to determine physical key locations independently of the // cur...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp leaq 0x2c3b59(%rip), %rdi # 0x304d38 addq $0x1fec0, %rdi # imm = 0x1FEC0 addq $0x72a, %rdi # imm = 0x72A movl $0xff, %esi movl $0x200, %edx # imm = 0x200 callq 0x11370 leaq 0x2c3b35(%rip), %rdi # 0x304d38 addq $0x1fec0, %rdi # imm...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
detectEWMH
static void detectEWMH(void) { // First we read the _NET_SUPPORTING_WM_CHECK property on the root window Window* windowFromRoot = NULL; if (!_glfwGetWindowPropertyX11(_glfw.x11.root, _glfw.x11.NET_SUPPORTING_WM_CHECK, XA_WINDOW, ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq $0x0, -0x8(%rbp) leaq 0x2c32f1(%rip), %rax # 0x304d38 movq 0x1fed0(%rax), %rdi leaq 0x2c32e3(%rip), %rax # 0x304d38 movq 0x20ac8(%rax), %rsi movl $0x21, %edx leaq -0x8(%rbp), %rcx callq 0x44500 cmpq $0x0, %rax jne 0x41a75 jmp 0x41d43 callq 0x3f490 movq $0x0, -0x10(...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
getSupportedAtom
static Atom getSupportedAtom(Atom* supportedAtoms, unsigned long atomCount, const char* atomName) { const Atom atom = XInternAtom(_glfw.x11.display, atomName, False); for (unsigned int i = 0; i < atomCount; i++) { if (supportedAtoms[i] == ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) leaq 0x2c217d(%rip), %rax # 0x304d38 movq 0x1fec0(%rax), %rdi movq -0x20(%rbp), %rsi xorl %edx, %edx callq 0x11470 movq %rax, -0x28(%rbp) movl $0x0, -0x2c(%rbp) movl -0x2c(%rbp), %eax cmpq -0x18(%rbp), %r...
/tuket[P]gltf_viewer/libs/glfw/src/x11_init.c
glfwSetVideoModeX11
void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { GLFWvidmode current; RRMode native = None; const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired); _glfwPlatformGetVideoMod...
pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0xa0, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) leaq 0x2c1b9b(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c50(%rax) je 0x433e8 leaq 0x2c1b87(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c74(%rax) jne 0x433e8 movq $0x0, -0x40(%rbp) movq -0x18(%rbp), %rdi movq -0x2...
/tuket[P]gltf_viewer/libs/glfw/src/x11_monitor.c
vidmodeFromModeInfo
static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, const XRRCrtcInfo* ci) { GLFWvidmode mode; if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) { mode.width = mi->height; mode.height = mi->width; } else { ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x20(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x8(%rbp) movq %rdx, -0x10(%rbp) movq -0x10(%rbp), %rax movzwl 0x20(%rax), %eax cmpl $0x2, %eax je 0x436a2 movq -0x10(%rbp), %rax movzwl 0x20(%rax), %eax cmpl $0x8, %eax jne 0x436bb movq -0x20(%rbp), %rax movq -0x8(%rb...
/tuket[P]gltf_viewer/libs/glfw/src/x11_monitor.c
glfwPlatformGetMonitorWorkarea
void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height) { int areaX = 0, areaY = 0, areaWidth = 0, areaHeight = 0; if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr = XRRGetScreenResourcesCurrent(...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movl $0x0, -0x2c(%rbp) movl $0x0, -0x30(%rbp) movl $0x0, -0x34(%rbp) movl $0x0, -0x38(%rbp) leaq 0x2c12f6(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c50(%rax) je 0x4...
/tuket[P]gltf_viewer/libs/glfw/src/x11_monitor.c
glfwPlatformGetVideoModes
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) { GLFWvidmode* result; *count = 0; if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); XRRCrtc...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movl $0x0, (%rax) leaq 0x2c0f57(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c50(%rax) je 0x43fd2 leaq 0x2c0f43(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c74(%rax) jne 0x43fd2 leaq 0x2c0f2f(%rip), %rax # 0x304d...
/tuket[P]gltf_viewer/libs/glfw/src/x11_monitor.c
glfwPlatformSetGammaRamp
void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) { if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) { if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size) { _glfwInputError(GLFW_PLATFORM_ERROR, ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq 0x2c0b31(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c50(%rax) je 0x44332 leaq 0x2c0b1d(%rip), %rax # 0x304d38 cmpl $0x0, 0x20c70(%rax) jne 0x44332 leaq 0x2c0b09(%rip), %rax # 0x304d38 movq 0x20ca8(%rax), %rax leaq 0x2c0afb...
/tuket[P]gltf_viewer/libs/glfw/src/x11_monitor.c
isSelectionEvent
static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) { if (event->xany.window != _glfw.x11.helperWindowHandle) return False; return event->type == SelectionRequest || event->type == SelectionNotify || event->type == SelectionClear; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax leaq 0x2c0609(%rip), %rcx # 0x304d38 cmpq 0x1fee0(%rcx), %rax je 0x44741 movl $0x0, -0x4(%rbp) jmp 0x44775 movq -0x18(%rbp), %rcx movb $0x1, %al cmpl $0x1e, (%rcx) movb %al, -0...
/tuket[P]gltf_viewer/libs/glfw/src/x11_window.c
handleSelectionRequest
static void handleSelectionRequest(XEvent* event) { const XSelectionRequestEvent* request = &event->xselectionrequest; XEvent reply = { SelectionNotify }; reply.xselection.property = writeTargetToProperty(request); reply.xselection.display = request->display; reply.xselection.requestor = request->r...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) leaq -0xd0(%rbp), %rdi xorl %esi, %esi movl $0xc0, %edx callq 0x11370 movl $0x1f, -0xd0(%rbp) movq -0x10(%rbp), %rdi callq 0x4a550 movq %rax, -0x98(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax,...
/tuket[P]gltf_viewer/libs/glfw/src/x11_window.c
waitForEvent
static GLFWbool waitForEvent(double* timeout) { fd_set fds; const int fd = ConnectionNumber(_glfw.x11.display); int count = fd + 1; #if defined(__linux__) if (_glfw.linjs.inotify > fd) count = _glfw.linjs.inotify + 1; #endif for (;;) { FD_ZERO(&fds); FD_SET(fd, &fds); #i...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x10(%rbp) leaq 0x2c0462(%rip), %rax # 0x304d38 movq 0x1fec0(%rax), %rax movl 0x10(%rax), %eax movl %eax, -0x94(%rbp) movl -0x94(%rbp), %eax addl $0x1, %eax movl %eax, -0x98(%rbp) leaq 0x2c043c(%rip), %rax # 0x304d38 movl 0x20f38(%r...
/tuket[P]gltf_viewer/libs/glfw/src/x11_window.c
glfwPlatformCreateWindow
int _glfwPlatformCreateWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig) { Visual* visual; int depth; if (ctxconfig->client != GLFW_NO_API) ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpl $0x0, (%rax) je 0x44cbe movq -0x20(%rbp), %rax cmpl $0x36001, 0x4(%rax) # imm = 0x36001 jne 0x44c44 callq 0x4b2c0 cmpl $0x0, %eax jne 0x44c18 movl $0x0,...
/tuket[P]gltf_viewer/libs/glfw/src/x11_window.c
createNativeWindow
static GLFWbool createNativeWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, Visual* visual, int depth) { int width = wndconfig->width; int height = wndconfig->height; if (wndconfig->scaleToMonitor) { width *= _gl...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movl (%rax), %eax movl %eax, -0x28(%rbp) movq -0x18(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x2c(%rbp) movq -0x18(%rbp), %rax cmpl...
/tuket[P]gltf_viewer/libs/glfw/src/x11_window.c
glfwPlatformDestroyWindow
void _glfwPlatformDestroyWindow(_GLFWwindow* window) { if (_glfw.x11.disabledCursorWindow == window) _glfw.x11.disabledCursorWindow = NULL; if (window->monitor) releaseMonitor(window); if (window->x11.ic) { XDestroyIC(window->x11.ic); window->x11.ic = NULL; } i...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x2bf265(%rip), %rax # 0x304d38 movq 0x20ab8(%rax), %rax cmpq -0x8(%rbp), %rax jne 0x45af2 leaq 0x2bf251(%rip), %rax # 0x304d38 movq $0x0, 0x20ab8(%rax) movq -0x8(%rbp), %rax cmpq $0x0, 0x40(%rax) je 0x45b06 movq -0x8(%rbp), %rdi callq 0x45c30...
/tuket[P]gltf_viewer/libs/glfw/src/x11_window.c