name string | code string | asm string | file string |
|---|---|---|---|
Json::StyledWriter::isMultilineArray(Json::Value const&) | bool StyledWriter::isMultilineArray(const Value& value) {
ArrayIndex const size = value.size();
bool isMultiLine = size * 3 >= rightMargin_;
childValues_.clear();
for (ArrayIndex index = 0; index < size && !isMultiLine; ++index) {
const Value& childValue = value[index];
isMultiLine = ((childValue.isArra... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8d8820
movq -0x38(%rbp), %rdi
movl %eax, -0x14(%rbp)
imull $0x3, -0x14(%rbp), %eax
cmpl 0x60(%rdi), %eax
setae %al
andb $0x1, %al
movb %al, -0x15(%rbp)
add... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::StyledWriter::writeIndent() | void StyledWriter::writeIndent() {
if (!document_.empty()) {
char last = document_[document_.length() - 1];
if (last == ' ') // already indented
return;
if (last != '\n') // Comments may add new-line
document_ += '\n';
}
document_ += indentString_;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
addq $0x20, %rdi
callq 0x3b870
testb $0x1, %al
jne 0x8e4a06
movq -0x18(%rbp), %rdi
movq %rdi, %rax
addq $0x20, %rax
movq %rax, -0x20(%rbp)
addq $0x20, %rdi
callq 0x3be30
movq -0x20(%rbp), %rdi
movq %rax, %rsi
... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::StyledStreamWriter::StyledStreamWriter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | StyledStreamWriter::StyledStreamWriter(String indentation)
: document_(nullptr), indentation_(std::move(indentation)),
addChildValues_(), indented_(false) {} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rsi, -0x20(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x60530
movq -0x18(%rbp), %rdi
movq $0x0, 0x18(%rdi)
addq $0x20, %rdi
callq 0x3d1f0
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rdi
movl $0x4a, 0x40(%rdi)
addq... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::StyledStreamWriter::writeValue(Json::Value const&) | void StyledStreamWriter::writeValue(const Value& value) {
switch (value.type()) {
case nullValue:
pushValue("null");
break;
case intValue:
pushValue(valueToString(value.asLargestInt()));
break;
case uintValue:
pushValue(valueToString(value.asLargestUInt()));
break;
case realValue:
... | pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp # imm = 0x270
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8d6190
movl %eax, %ecx
movq %rcx, -0x200(%rbp)
subl $0x7, %eax
ja 0x8e54c8
movq -0x200(%rbp), %rax
leaq 0x2d35d9(%rip), %rcx ... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::StyledStreamWriter::writeCommentAfterValueOnSameLine(Json::Value const&) | void StyledStreamWriter::writeCommentAfterValueOnSameLine(const Value& root) {
if (root.hasComment(commentAfterOnSameLine))
*document_ << ' ' << root.getComment(commentAfterOnSameLine);
if (root.hasComment(commentAfter)) {
writeIndent();
*document_ << root.getComment(commentAfter);
}
indented_ = fa... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x8db840
testb $0x1, %al
jne 0x8e550f
jmp 0x8e556f
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rdi
movl $0x20, %esi
callq 0x3be10
movq %rax, -0x... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::StyledStreamWriter::writeArrayValue(Json::Value const&) | void StyledStreamWriter::writeArrayValue(const Value& value) {
unsigned size = value.size();
if (size == 0)
pushValue("[]");
else {
bool isArrayMultiLine = isMultilineArray(value);
if (isArrayMultiLine) {
writeWithIndent("[");
indent();
bool hasChildValue = !childValues_.empty();
... | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8d8820
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x8e5717
leaq -0x39(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x3c460
movq -0xb8(%rbp), %rdx
leaq 0... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::StyledStreamWriter::isMultilineArray(Json::Value const&) | bool StyledStreamWriter::isMultilineArray(const Value& value) {
ArrayIndex const size = value.size();
bool isMultiLine = size * 3 >= rightMargin_;
childValues_.clear();
for (ArrayIndex index = 0; index < size && !isMultiLine; ++index) {
const Value& childValue = value[index];
isMultiLine = ((childValue.... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8d8820
movq -0x38(%rbp), %rdi
movl %eax, -0x14(%rbp)
imull $0x3, -0x14(%rbp), %eax
cmpl 0x40(%rdi), %eax
setae %al
andb $0x1, %al
movb %al, -0x15(%rbp)
cal... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::BuiltStyledStreamWriter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Json::CommentStyle::Enum, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>,... | BuiltStyledStreamWriter::BuiltStyledStreamWriter(
String indentation, CommentStyle::Enum cs, String colonSymbol,
String nullSymbol, String endingLineFeedSymbol, bool useSpecialFloats,
bool emitUTF8, unsigned int precision, PrecisionType precisionType)
: rightMargin_(74), indentation_(std::move(indentati... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %r9, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %rcx, -0x58(%rbp)
movl %edx, %eax
movq -0x58(%rbp), %rdx
movl %eax, -0x64(%rbp)
movq %rsi, %rax
movl -0x64(%rbp), %esi
movq %rax, -0x60(%rbp)
movq %rdi, %r10
movq -0x60(%rbp), %rdi
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
mo... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::write(Json::Value const&, std::ostream*) | int BuiltStyledStreamWriter::write(Value const& root, OStream* sout) {
sout_ = sout;
addChildValues_ = false;
indented_ = true;
indentString_.clear();
writeCommentBeforeValue(root);
if (!indented_)
writeIndent();
indented_ = true;
writeValue(root);
writeCommentAfterValueOnSameLine(root);
*sout_ ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, 0x8(%rdi)
movb 0xd8(%rdi), %al
andb $-0x2, %al
orb $0x0, %al
movb %al, 0xd8(%rdi)
movb 0xd8(%rdi), %al
andb $-0x3, %al
orb $0x2, ... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::writeCommentBeforeValue(Json::Value const&) | void BuiltStyledStreamWriter::writeCommentBeforeValue(Value const& root) {
if (cs_ == CommentStyle::None)
return;
if (!root.hasComment(commentBefore))
return;
if (!indented_)
writeIndent();
const String& comment = root.getComment(commentBefore);
String::const_iterator iter = comment.begin();
wh... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpl $0x0, 0x70(%rax)
jne 0x8e6006
jmp 0x8e6190
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x8db840
testb $0x1, %al
jne 0x8e601a
jmp 0x8e6190
movq -0x78(%rbp), %rax
movb 0xd8(%rax), %a... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::writeIndent() | void BuiltStyledStreamWriter::writeIndent() {
// blep intended this to look at the so-far-written string
// to determine whether we are already indented, but
// with a stream we cannot do that. So we rely on some saved state.
// The caller checks indented_.
if (!indentation_.empty()) {
// In this case, d... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
addq $0x50, %rdi
callq 0x3b870
testb $0x1, %al
jne 0x8e61f3
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0xa, %esi
callq 0x3be10
movq -0x10(%rbp), %rsi
movq %rax, %rdi
addq $0x28, %rsi
callq 0x3d3d0
addq ... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::writeValue(Json::Value const&) | void BuiltStyledStreamWriter::writeValue(Value const& value) {
switch (value.type()) {
case nullValue:
pushValue(nullSymbol_);
break;
case intValue:
pushValue(valueToString(value.asLargestInt()));
break;
case uintValue:
pushValue(valueToString(value.asLargestUInt()));
break;
case realV... | pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8d6190
movl %eax, %ecx
movq %rcx, -0x1d8(%rbp)
subl $0x7, %eax
ja 0x8e6914
movq -0x1d8(%rbp), %rax
leaq 0x2d2189(%rip), %rcx ... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(Json::Value const&) | void BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(
Value const& root) {
if (cs_ == CommentStyle::None)
return;
if (root.hasComment(commentAfterOnSameLine))
*sout_ << " " + root.getComment(commentAfterOnSameLine);
if (root.hasComment(commentAfter)) {
writeIndent();
*sout_ << root.... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpl $0x0, 0x70(%rax)
jne 0x8e6959
jmp 0x8e6a8d
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x8db840
testb $0x1, %al
jne 0x8e6970
jmp 0x8e6a0b
movq -0x88(%rbp), %rax
movq 0x8(%rax), %ra... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::BuiltStyledStreamWriter::isMultilineArray(Json::Value const&) | bool BuiltStyledStreamWriter::isMultilineArray(Value const& value) {
ArrayIndex const size = value.size();
bool isMultiLine = size * 3 >= rightMargin_;
childValues_.clear();
for (ArrayIndex index = 0; index < size && !isMultiLine; ++index) {
Value const& childValue = value[index];
isMultiLine = ((childV... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8d8820
movq -0x38(%rbp), %rdi
movl %eax, -0x14(%rbp)
imull $0x3, -0x14(%rbp), %eax
cmpl 0x48(%rdi), %eax
setae %al
andb $0x1, %al
movb %al, -0x15(%rbp)
add... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
Json::utf8ToCodepoint(char const*&, char const*) | static unsigned int utf8ToCodepoint(const char*& s, const char* e) {
const unsigned int REPLACEMENT_CHARACTER = 0xFFFD;
unsigned int firstByte = static_cast<unsigned char>(*s);
if (firstByte < 0x80)
return firstByte;
if (firstByte < 0xE0) {
if (e - s < 2)
return REPLACEMENT_CHARACTER;
unsi... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0xfffd, -0x1c(%rbp) # imm = 0xFFFD
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movl %eax, -0x20(%rbp)
cmpl $0x80, -0x20(%rbp)
jae 0x8e8994
movl -0x20(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x8e8b59
cmpl $0xe0, -0x20(%rbp)
... | /JKorbelRA[P]CMake/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp |
archive_entry_clear | struct archive_entry *
archive_entry_clear(struct archive_entry *entry)
{
if (entry == NULL)
return (NULL);
archive_mstring_clean(&entry->ae_fflags_text);
archive_mstring_clean(&entry->ae_gname);
archive_mstring_clean(&entry->ae_hardlink);
archive_mstring_clean(&entry->ae_pathname);
archive_mstring_clean(&entry... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x8e9410
movq $0x0, -0x8(%rbp)
jmp 0x8e94e5
movq -0x10(%rbp), %rdi
addq $0xc8, %rdi
callq 0x9396b0
movq -0x10(%rbp), %rdi
addq $0x140, %rdi # imm = 0x140
callq 0x9396b0
movq -0x10(%rbp), %rdi
addq $0x1a8, %rdi ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_clone | struct archive_entry *
archive_entry_clone(struct archive_entry *entry)
{
struct archive_entry *entry2;
struct ae_xattr *xp;
struct ae_sparse *sp;
size_t s;
const void *p;
/* Allocate new structure and copy over all of the fields. */
/* TODO: Should we copy the archive over? Or require a new archive
* as an ... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x8e9900
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x8e95d0
movq $0x0, -0x8(%rbp)
jmp 0x8e98ee
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
movl $0xa8, %edx
callq ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_fflags_text | const char *
archive_entry_fflags_text(struct archive_entry *entry)
{
const char *f;
char *p;
if (archive_mstring_get_mbs(entry->archive,
&entry->ae_fflags_text, &f) == 0) {
if (f != NULL)
return (f);
} else if (errno == ENOMEM)
__archive_errx(1, "No memory");
if (entry->ae_fflags_set == 0 && entry... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0xc8, %rsi
leaq -0x18(%rbp), %rdx
callq 0x9398a0
cmpl $0x0, %eax
jne 0x8e9cb2
cmpq $0x0, -0x18(%rbp)
je 0x8e9cb0
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x8e9d92
jmp 0x8e9ccf... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_gname | const char *
archive_entry_gname(struct archive_entry *entry)
{
const char *p;
if (archive_mstring_get_mbs(entry->archive, &entry->ae_gname, &p) == 0)
return (p);
if (errno == ENOMEM)
__archive_errx(1, "No memory");
return (NULL);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x140, %rsi # imm = 0x140
leaq -0x18(%rbp), %rdx
callq 0x9398a0
cmpl $0x0, %eax
jne 0x8ea016
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x8ea039
callq 0x3e130
cmpl $0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_copy_hardlink_l | int
_archive_entry_copy_hardlink_l(struct archive_entry *entry,
const char *target, size_t len, struct archive_string_conv *sc)
{
int r;
r = archive_mstring_copy_mbs_len_l(&entry->ae_hardlink,
target, len, sc);
if (target != NULL && r == 0)
entry->ae_set |= AE_SET_HARDLINK;
else
entry->ae_set &= ~AE_S... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
addq $0x1a8, %rdi # imm = 0x1A8
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x939e80
movl %eax, -0x24(%rbp)
cmpq $0x0, -0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_update_link_utf8 | int
archive_entry_update_link_utf8(struct archive_entry *entry, const char *target)
{
int r;
if (entry->ae_set & AE_SET_SYMLINK)
r = archive_mstring_update_utf8(entry->archive,
&entry->ae_symlink, target);
else
r = archive_mstring_update_utf8(entry->archive,
&entry->ae_hardlink, target);
if (r == 0)... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0xc0(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x8ebcc2
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x278, %rsi # imm = 0x278
movq -0x18(%rbp), %rdx
callq 0x939... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_copy_link_l | int
_archive_entry_copy_link_l(struct archive_entry *entry,
const char *target, size_t len, struct archive_string_conv *sc)
{
int r;
if (entry->ae_set & AE_SET_SYMLINK)
r = archive_mstring_copy_mbs_len_l(&entry->ae_symlink,
target, len, sc);
else
r = archive_mstring_copy_mbs_len_l(&entry->ae_hardlink,... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl 0xc0(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x8ebd6b
movq -0x8(%rbp), %rdi
addq $0x278, %rdi # imm = 0x278
movq -0x10(%rbp), %rsi
movq -0x1... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_update_pathname_utf8 | int
archive_entry_update_pathname_utf8(struct archive_entry *entry, const char *name)
{
if (archive_mstring_update_utf8(entry->archive,
&entry->ae_pathname, name) == 0)
return (1);
if (errno == ENOMEM)
__archive_errx(1, "No memory");
return (0);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x210, %rsi # imm = 0x210
movq -0x18(%rbp), %rdx
callq 0x939f20
cmpl $0x0, %eax
jne 0x8ebfd9
movl $0x1, -0x4(%rbp)
jmp 0x8ebffb
callq 0x3e130
cmpl $0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_update_symlink_utf8 | int
archive_entry_update_symlink_utf8(struct archive_entry *entry, const char *linkname)
{
if (linkname != NULL)
entry->ae_set |= AE_SET_SYMLINK;
else
entry->ae_set &= ~AE_SET_SYMLINK;
if (archive_mstring_update_utf8(entry->archive,
&entry->ae_symlink, linkname) == 0)
return (1);
if (errno == ENOMEM)
_... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x8ec40c
movq -0x10(%rbp), %rax
movl 0xc0(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0xc0(%rax)
jmp 0x8ec41f
movq -0x10(%rbp), %rax
movl 0xc0(%rax), %ecx
andl $-0x3, %ecx
movl %ecx, 0xc0(%rax)
movq -0x10(%rbp)... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_copy_symlink_l | int
_archive_entry_copy_symlink_l(struct archive_entry *entry,
const char *linkname, size_t len, struct archive_string_conv *sc)
{
int r;
r = archive_mstring_copy_mbs_len_l(&entry->ae_symlink,
linkname, len, sc);
if (linkname != NULL && r == 0)
entry->ae_set |= AE_SET_SYMLINK;
else
entry->ae_set &= ~A... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
addq $0x278, %rdi # imm = 0x278
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x939e80
movl %eax, -0x24(%rbp)
cmpq $0x0, -0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_update_uname_utf8 | int
archive_entry_update_uname_utf8(struct archive_entry *entry, const char *name)
{
if (archive_mstring_update_utf8(entry->archive,
&entry->ae_uname, name) == 0)
return (1);
if (errno == ENOMEM)
__archive_errx(1, "No memory");
return (0);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x2e0, %rsi # imm = 0x2E0
movq -0x18(%rbp), %rdx
callq 0x939f20
cmpl $0x0, %eax
jne 0x8ec629
movl $0x1, -0x4(%rbp)
jmp 0x8ec64b
callq 0x3e130
cmpl $0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_digest | const unsigned char *
archive_entry_digest(struct archive_entry *entry, int type)
{
switch (type) {
case ARCHIVE_ENTRY_DIGEST_MD5:
return entry->digest.md5;
case ARCHIVE_ENTRY_DIGEST_RMD160:
return entry->digest.rmd160;
case ARCHIVE_ENTRY_DIGEST_SHA1:
return entry->digest.sha1;
case ARCHIVE_ENTRY_DIGEST_SHA2... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl -0x14(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x5, %eax
ja 0x8ec7c9
movq -0x20(%rbp), %rax
leaq 0x2cc37e(%rip), %rcx # 0xbb8ac8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
addq $0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_set_digest | int
archive_entry_set_digest(struct archive_entry *entry, int type,
const unsigned char *digest)
{
#define copy_digest(_e, _t, _d)\
memcpy(_e->digest._t, _d, sizeof(_e->digest._t))
switch (type) {
case ARCHIVE_ENTRY_DIGEST_MD5:
copy_digest(entry, md5, digest);
break;
case ARCHIVE_ENTRY_DIGEST_RMD160:
cop... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl -0x14(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x5, %eax
ja 0x8ec906
movq -0x28(%rbp), %rax
leaq 0x2cc2ce(%rip), %rcx # 0xbb8ae0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
j... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_acl_next | int
archive_entry_acl_next(struct archive_entry *entry, int want_type, int *type,
int *permset, int *tag, int *id, const char **name)
{
int r;
r = archive_acl_next(entry->archive, &entry->acl, want_type, type,
permset, tag, id, name);
if (r == ARCHIVE_FATAL && errno == ENOMEM)
__archive_errx(1, "No memory");... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
addq $0x490, %rsi # imm = 0x490
movl -0xc(%rbp)... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_acl_text | const char *
archive_entry_acl_text(struct archive_entry *entry, int flags)
{
free(entry->acl.acl_text);
entry->acl.acl_text = NULL;
if (archive_entry_acl_text_compat(&flags) == 0)
entry->acl.acl_text = archive_acl_to_text_l(&entry->acl, NULL,
flags, NULL);
return (entry->acl.acl_text);
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x4b8(%rax), %rdi
callq 0x3e548
movq -0x8(%rbp), %rax
movq $0x0, 0x4b8(%rax)
leaq -0xc(%rbp), %rdi
callq 0x8ecd50
cmpl $0x0, %eax
jne 0x8ece24
movq -0x8(%rbp), %rdi
addq $0x490, %rdi # imm = 0x4... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_acl_text_l | int
_archive_entry_acl_text_l(struct archive_entry *entry, int flags,
const char **acl_text, size_t *len, struct archive_string_conv *sc)
{
free(entry->acl.acl_text);
entry->acl.acl_text = NULL;
if (archive_entry_acl_text_compat(&flags) == 0)
entry->acl.acl_text = archive_acl_to_text_l(&entry->acl,
(ssi... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x4b8(%rax), %rdi
callq 0x3e548
movq -0x8(%rbp), %rax
movq $0x0, 0x4b8(%rax)
leaq -0xc(%rbp), %rdi
callq 0x8ecd50
cmpl $0x0, %eax
jne 0x8... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry.c |
archive_entry_sparse_clear | void
archive_entry_sparse_clear(struct archive_entry *entry)
{
struct ae_sparse *sp;
while (entry->sparse_head != NULL) {
sp = entry->sparse_head->next;
free(entry->sparse_head);
entry->sparse_head = sp;
}
entry->sparse_tail = NULL;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x4d8(%rax)
je 0x8ecf1d
movq -0x8(%rbp), %rax
movq 0x4d8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x4d8(%rax), %rdi
callq 0x3e548
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %r... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry_sparse.c |
archive_entry_sparse_add_entry | void
archive_entry_sparse_add_entry(struct archive_entry *entry,
la_int64_t offset, la_int64_t length)
{
struct ae_sparse *sp;
if (offset < 0 || length < 0)
/* Invalid value */
return;
if (offset > INT64_MAX - length ||
offset + length > archive_entry_size(entry))
/* A value of "length" parameter is too... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
jl 0x8ecf62
cmpq $0x0, -0x18(%rbp)
jge 0x8ecf67
jmp 0x8ed0b2
movq -0x10(%rbp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
subq -0x18(%rbp), %rcx
cmpq %rcx, %rax
j... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry_sparse.c |
archive_entry_sparse_count | int
archive_entry_sparse_count(struct archive_entry *entry)
{
struct ae_sparse *sp;
int count = 0;
for (sp = entry->sparse_head; sp != NULL; sp = sp->next)
count++;
/*
* Sanity check if this entry is exactly sparse.
* If amount of sparse blocks is just one and it indicates the whole
* file data, we should... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x4d8(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x8ed0ff
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
jm... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry_sparse.c |
archive_entry_xattr_add_entry | void
archive_entry_xattr_add_entry(struct archive_entry *entry,
const char *name, const void *value, size_t size)
{
struct ae_xattr *xp;
if ((xp = (struct ae_xattr *)malloc(sizeof(struct ae_xattr))) == NULL)
__archive_errx(1, "Out of memory");
if ((xp->name = strdup(name)) == NULL)
__archive_errx(1, "Out of m... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x20, %edi
callq 0x3e578
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0x8ed4dd
movl $0x1, %edi
leaq 0x272f4d(%rip), %rsi # 0xb60425
callq 0x940330
movq -0x10(%rbp), %rdi
callq 0x... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry_xattr.c |
archive_entry_xattr_next | int
archive_entry_xattr_next(struct archive_entry * entry,
const char **name, const void **value, size_t *size)
{
if (entry->xattr_p) {
*name = entry->xattr_p->name;
*value = entry->xattr_p->value;
*size = entry->xattr_p->size;
entry->xattr_p = entry->xattr_p->next;
return (ARCHIVE_OK);
} else {
*name ... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x4d0(%rax)
je 0x8ed686
movq -0x10(%rbp), %rax
movq 0x4d0(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x4d0(%... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_entry_xattr.c |
archive_match_path_unmatched_inclusions_next | int
archive_match_path_unmatched_inclusions_next(struct archive *_a,
const char **_p)
{
struct archive_match *a;
const void *v;
int r;
archive_check_magic(_a, ARCHIVE_MATCH_MAGIC,
ARCHIVE_STATE_NEW, "archive_match_unmatched_inclusions_next");
a = (struct archive_match *)_a;
r = match_list_unmatched_inc... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl $0xcad11c9, %esi # imm = 0xCAD11C9
movl $0x1, %edx
leaq 0x2ca16c(%rip), %rcx # 0xbb90b1
callq 0x9770c0
movl %eax, -0x30(%rbp)
cmpl $-0x1e, -0x30(%rbp)
jne 0x8eef5c
movl $0xffffffe2, -0x4(%rbp)... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_match.c |
archive_match_include_time | int
archive_match_include_time(struct archive *_a, int flag, time_t sec,
long nsec)
{
int r;
r = validate_time_flag(_a, flag, "archive_match_include_time");
if (r != ARCHIVE_OK)
return (r);
return set_timefilter((struct archive_match *)_a, flag,
sec, nsec, sec, nsec);
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
leaq 0x2c9f0e(%rip), %rdx # 0xbb9103
callq 0x8ef240
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x8ef20b
movl -0x2c(%rbp), %eax
mo... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_match.c |
set_timefilter_date | static int
set_timefilter_date(struct archive_match *a, int timetype, const char *datestr)
{
time_t t;
if (datestr == NULL || *datestr == '\0') {
archive_set_error(&(a->archive), EINVAL, "date is empty");
return (ARCHIVE_FAILED);
}
t = get_date(a->now, datestr);
if (t == (time_t)-1) {
archive_set_error(&(a-... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x8ef576
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x8ef596
movq -0x10(%rbp), %rdi
movl $0x16, %esi
leaq 0x2c9d7d(%rip), %rdx # 0xbb9303
movb $0x0, %al
callq... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_match.c |
match_path_inclusion | static int
match_path_inclusion(struct archive_match *a, struct match *m,
int mbs, const void *pn)
{
/* Recursive operation requires only a prefix match. */
int flag = a->recursive_include ?
PATHMATCH_NO_ANCHOR_END :
0;
int r;
if (mbs) {
const char *p;
r = archive_mstring_get_mbs(&(a->archive), &(m->pa... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x94(%rax), %edx
xorl %eax, %eax
movl $0x2, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x8f04fc
movq -0x10(%rb... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_match.c |
_archive_pathmatch_w | int
__archive_pathmatch_w(const wchar_t *p, const wchar_t *s, int flags)
{
/* Empty pattern only matches the empty string. */
if (p == NULL || *p == L'\0')
return (s == NULL || *s == L'\0');
else if (s == NULL)
return (0);
/* Leading '^' anchors the start of the pattern. */
if (*p == L'^') {
++p;
flags &=... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x8f0ef3
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x8f0f1c
movb $0x1, %al
cmpq $0x0, -0x18(%rbp)
movb %al, -0x1d(%rbp)
je 0x8f0f0c
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
sete ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_pathmatch.c |
pm_w | static int
pm_w(const wchar_t *p, const wchar_t *s, int flags)
{
const wchar_t *end;
/*
* Ignore leading './', './/', '././', etc.
*/
if (s[0] == L'.' && s[1] == L'/')
s = pm_slashskip_w(s + 1);
if (p[0] == L'.' && p[1] == L'/')
p = pm_slashskip_w(p + 1);
for (;;) {
switch (*p) {
case L'\0':
if (s... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x2e, (%rax)
jne 0x8f1087
movq -0x18(%rbp), %rax
cmpl $0x2f, 0x4(%rax)
jne 0x8f1087
movq -0x18(%rbp), %rdi
addq $0x4, %rdi
callq 0x8f15d0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp),... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_pathmatch.c |
pm_list | static int
pm_list(const char *start, const char *end, const char c, int flags)
{
const char *p = start;
char rangeStart = '\0', nextRangeStart;
int match = 1, nomatch = 0;
/* This will be used soon... */
(void)flags; /* UNUSED */
/* If this is a negated class, return success for nomatch. */
if ((*p == '!' || ... | pushq %rbp
movq %rsp, %rbp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movb %al, -0x19(%rbp)
movl %ecx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movb $0x0, -0x29(%rbp)
movl $0x1, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x21, %eax
je 0x8f1496
m... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_pathmatch.c |
pm_slashskip_w | static const wchar_t *
pm_slashskip_w(const wchar_t *s) {
while ((*s == L'/')
|| (s[0] == L'.' && s[1] == L'/')
|| (s[0] == L'.' && s[1] == L'\0'))
++s;
return (s);
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movb $0x1, %al
cmpl $0x2f, (%rcx)
movb %al, -0x9(%rbp)
je 0x8f1620
movq -0x8(%rbp), %rax
cmpl $0x2e, (%rax)
jne 0x8f15fe
movq -0x8(%rbp), %rcx
movb $0x1, %al
cmpl $0x2f, 0x4(%rcx)
movb %al, -0x9(%rbp)
je 0x8f1620
movq -0x8(%rbp), %rcx
xorl %eax, %ea... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_pathmatch.c |
_archive_rb_tree_find_node | struct archive_rb_node *
__archive_rb_tree_find_node(struct archive_rb_tree *rbt, const void *key)
{
archive_rbto_compare_key_fn compare_key = rbt->rbt_ops->rbto_compare_key;
struct archive_rb_node *parent = rbt->rbt_root;
while (!RB_SENTINEL_P(parent)) {
const signed int diff = (*compare_key)(parent, key);
if ... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x8f181b
j... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_find_node_geq | struct archive_rb_node *
__archive_rb_tree_find_node_geq(struct archive_rb_tree *rbt, const void *key)
{
archive_rbto_compare_key_fn compare_key = rbt->rbt_ops->rbto_compare_key;
struct archive_rb_node *parent = rbt->rbt_root;
struct archive_rb_node *last = NULL;
while (!RB_SENTINEL_P(parent)) {
const signed int... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
sete %al
xorb $-0x1, %al
testb $... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_find_node_leq | struct archive_rb_node *
__archive_rb_tree_find_node_leq(struct archive_rb_tree *rbt, const void *key)
{
archive_rbto_compare_key_fn compare_key = rbt->rbt_ops->rbto_compare_key;
struct archive_rb_node *parent = rbt->rbt_root;
struct archive_rb_node *last = NULL;
while (!RB_SENTINEL_P(parent)) {
const signed int... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
sete %al
xorb $-0x1, %al
testb $... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_insert_node | int
__archive_rb_tree_insert_node(struct archive_rb_tree *rbt,
struct archive_rb_node *self)
{
archive_rbto_compare_nodes_fn compare_nodes = rbt->rbt_ops->rbto_compare_nodes;
struct archive_rb_node *parent, *tmp;
unsigned int position;
int rebalance;
tmp = rbt->rbt_root;
/*
* This is a hack. Because rbt->... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x34(%rbp)
cmpq $0x0, -... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_prune_node | static void
__archive_rb_tree_prune_node(struct archive_rb_tree *rbt,
struct archive_rb_node *self, int rebalance)
{
const unsigned int which = RB_POSITION(self);
struct archive_rb_node *father = RB_FATHER(self);
/*
* Since we are childless, we know that self->rb_left is pointing
* to the sentinel node.
*... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
andq $0x2, %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
andq $-0x4, ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_prune_blackred_branch | static void
__archive_rb_tree_prune_blackred_branch(
struct archive_rb_node *self, unsigned int which)
{
struct archive_rb_node *father = RB_FATHER(self);
struct archive_rb_node *son = self->rb_nodes[which];
/*
* Remove ourselves from the tree and give our former child our
* properties (position, color, roo... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
andq $-0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
xorq 0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_iterate | struct archive_rb_node *
__archive_rb_tree_iterate(struct archive_rb_tree *rbt,
struct archive_rb_node *self, const unsigned int direction)
{
const unsigned int other = direction ^ RB_DIR_OTHER;
if (self == NULL) {
self = rbt->rbt_root;
if (RB_SENTINEL_P(self))
return NULL;
while (!RB_SENTINEL_P(self->r... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x8f1f35
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x8f1efe
movq $0x0, -0x8(%rbp)
jmp ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_swap_prune_and_rebalance | static void
__archive_rb_tree_swap_prune_and_rebalance(struct archive_rb_tree *rbt,
struct archive_rb_node *self, struct archive_rb_node *standin)
{
const unsigned int standin_which = RB_POSITION(standin);
unsigned int standin_other = standin_which ^ RB_DIR_OTHER;
struct archive_rb_node *standin_son;
struct arc... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
andq $0x2, %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x20(%... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_reparent_nodes | static void
__archive_rb_tree_reparent_nodes(
struct archive_rb_node *old_father, const unsigned int which)
{
const unsigned int other = which ^ RB_DIR_OTHER;
struct archive_rb_node * const grandpa = RB_FATHER(old_father);
struct archive_rb_node * const old_child = old_father->rb_nodes[which];
struct archive_rb... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
andq $-0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
_archive_rb_tree_removal_rebalance | static void
__archive_rb_tree_removal_rebalance(struct archive_rb_tree *rbt,
struct archive_rb_node *parent, unsigned int which)
{
while (RB_BLACK_P(parent->rb_nodes[which])) {
unsigned int other = which ^ RB_DIR_OTHER;
struct archive_rb_node *brother = parent->rb_nodes[other];
if (brother == NULL)
retu... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %eax
movl %eax, %edx
movb $0x1, %al
cmpq $0x0, (%rcx,%rdx,8)
movb %al, -0x21(%rbp)
je 0x8f2445
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
m... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_rb.c |
archive_read_extract_set_skip_file | void
archive_read_extract_set_skip_file(struct archive *_a, la_int64_t d,
la_int64_t i)
{
struct archive_read *a = (struct archive_read *)_a;
if (ARCHIVE_OK != __archive_check_magic(_a, ARCHIVE_READ_MAGIC,
ARCHIVE_STATE_ANY, "archive_read_extract_set_skip_file"))
return;
a->skip_file_set = 1;
a->skip_file_... | 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)
movq -0x8(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0x7fff, %edx # imm = 0x7FFF
leaq 0x2c6ca7(%rip), %rcx # 0xbb93f8
callq 0x977... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_open1 | int
archive_read_open1(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
struct archive_read_filter *filter, *tmp;
int slot, e = ARCHIVE_OK;
archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_NEW,
"archive_read_open");
archive_clear_error(&a->archive);
if (a->client.reader ==... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0x1, %edx
leaq 0x2c6baa(%rip), %rcx # 0xbb955a
callq 0x9770c0
movl %eax, -0x34(%rbp)
cmpl $-0x1e, -0x34(%r... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_open2 | int
archive_read_open2(struct archive *a, void *client_data,
archive_open_callback *client_opener,
archive_read_callback *client_reader,
archive_skip_callback *client_skipper,
archive_close_callback *client_closer)
{
/* Old archive_read_open2() is just a thin shell around
* archive_read_open1. */
ar... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8f2950
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x8f2800
movq -0x8(%rbp), %rdi... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
read_client_close_proxy | static int
read_client_close_proxy(struct archive_read *a)
{
int r = ARCHIVE_OK, r2;
unsigned int i;
if (a->client.closer == NULL)
return (r);
for (i = 0; i < a->client.nodes; i++)
{
r2 = (a->client.closer)
((struct archive *)a, a->client.dataset[i].data);
if (r > r2)
r = r2;
}
return (r);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0xd0(%rax)
jne 0x8f31b9
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x8f321d
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xe0(%rcx), %eax
jae 0x8f3217
movq -0x10... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
choose_format | static int
choose_format(struct archive_read *a)
{
int slots;
int i;
int bid, best_bid;
int best_bid_slot;
slots = sizeof(a->formats) / sizeof(a->formats[0]);
best_bid = -1;
best_bid_slot = -1;
/* Set up a->format for convenience of bidders. */
a->format = &(a->formats[0]);
for (i = 0; i < slots; i++, a->fo... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x10, -0x14(%rbp)
movl $0xffffffff, -0x20(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rcx
addq $0x298, %rcx # imm = 0x298
movq -0x10(%rbp), %rax
movq %rcx, 0x818(%rax)
movl $0x0, -0x18(%r... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
close_filters | static int
close_filters(struct archive_read *a)
{
struct archive_read_filter *f = a->filter;
int r = ARCHIVE_OK;
/* Close each filter in the pipeline. */
while (f != NULL) {
struct archive_read_filter *t = f->upstream;
if (!f->closed && f->vtable != NULL) {
int r1 = (f->vtable->close)(f);
f->closed = 1;
... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x278(%rax), %rax
movq %rax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x8f35e0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x89(%rax)
jne 0x8f35bd
mo... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
client_switch_proxy | static int
client_switch_proxy(struct archive_read_filter *self, unsigned int iindex)
{
int r1 = ARCHIVE_OK, r2 = ARCHIVE_OK;
void *data2 = NULL;
/* Don't do anything if already in the specified data node */
if (self->archive->client.cursor == iindex)
return (ARCHIVE_OK);
self->archive->client.cursor = iindex... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl 0xe4(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x8f3634
movl $0x0, -0x4(%rbp)
jmp 0x8f3726
movl -0x14(%rbp), %ecx
... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_has_encrypted_entries | int
archive_read_has_encrypted_entries(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
int format_supports_encryption = archive_read_format_capabilities(_a)
& (ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_DATA | ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_METADATA);
if (!_a || !format_supports_encryption) {
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8f3880
andl $0x3, %eax
movl %eax, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x8f3820
cmpl $0x0, -0x1c(%rbp)
jne 0x8f3829
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f386... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_data | la_ssize_t
archive_read_data(struct archive *_a, void *buff, size_t s)
{
struct archive *a = (struct archive *)_a;
char *dest;
const void *read_buf;
size_t bytes_read;
size_t len;
int r;
bytes_read = 0;
dest = (char *)buff;
while (s > 0) {
if (a->read_data_offset == a->read_data_output_offset &&
a... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x20(%rbp)
jbe 0x8f3b46
movq -0x28(%rbp), %rax
movq 0x68(%rax), %rax
movq -0x28(... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_data_skip | int
archive_read_data_skip(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
int r;
const void *buff;
size_t size;
int64_t offset;
archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA,
"archive_read_data_skip");
if (a->format->read_data_skip != NULL)
r = (a->format->rea... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0x4, %edx
leaq 0x2c59a7(%rip), %rcx # 0xbb95b0
callq 0x9770c0
movl %eax, -0x3c(%rbp)
cmpl $-0x1e, -0x3c(%rbp)
jne 0x8f3c20
movl $... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_seek_data | la_int64_t
archive_seek_data(struct archive *_a, int64_t offset, int whence)
{
struct archive_read *a = (struct archive_read *)_a;
archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA,
"archive_seek_data_block");
if (a->format->seek_data == NULL) {
archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGR... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0x4, %edx
leaq 0x2c58f7(%rip), %rcx # 0xbb95c7
callq 0x9770c0
movl %eax, -0x2c(%rbp... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
_archive_read_free_filters | void
__archive_read_free_filters(struct archive_read *a)
{
/* Make sure filters are closed and their buffers are freed */
close_filters(a);
while (a->filter != NULL) {
struct archive_read_filter *t = a->filter->upstream;
free(a->filter);
a->filter = t;
}
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8f3540
movq -0x8(%rbp), %rax
cmpq $0x0, 0x278(%rax)
je 0x8f3da7
movq -0x8(%rbp), %rax
movq 0x278(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x278(%rax), %rdi
callq 0x3e548
movq -0x10(... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
_archive_read_filter_ahead | const void *
__archive_read_filter_ahead(struct archive_read_filter *filter,
size_t min, ssize_t *avail)
{
ssize_t bytes_read;
size_t tocopy;
if (filter->fatal) {
if (avail)
*avail = ARCHIVE_FATAL;
return (NULL);
}
/*
* Keep pulling more data until we can satisfy the request.
*/
for (;;) {
/*
... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x8a(%rax)
je 0x8f41e0
cmpq $0x0, -0x20(%rbp)
je 0x8f41d3
movq -0x20(%rbp), %rax
movq $-0x1e, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x8f4701
jmp 0x8f41e2
movq -0x10(%rbp), %rax
m... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
_archive_read_filter_consume | int64_t
__archive_read_filter_consume(struct archive_read_filter * filter,
int64_t request)
{
int64_t skipped;
if (request < 0)
return ARCHIVE_FATAL;
if (request == 0)
return 0;
skipped = advance_file_pointer(filter, request);
if (skipped == request)
return (skipped);
/* We hit EOF before we satisfied... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jge 0x8f4761
movq $-0x1e, -0x8(%rbp)
jmp 0x8f47d1
cmpq $0x0, -0x18(%rbp)
jne 0x8f4772
movq $0x0, -0x8(%rbp)
jmp 0x8f47d1
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x8f47e0
movq %rax, -0x20(%rbp)
mo... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
advance_file_pointer | static int64_t
advance_file_pointer(struct archive_read_filter *filter, int64_t request)
{
int64_t bytes_skipped, total_bytes_skipped = 0;
ssize_t bytes_read;
size_t min;
if (filter->fatal)
return (-1);
/* Use up the copy buffer first. */
if (filter->avail > 0) {
min = (size_t)minimum(request, (int64_t)filt... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x8a(%rax)
je 0x8f4812
movq $-0x1, -0x8(%rbp)
jmp 0x8f4b05
movq -0x10(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jbe 0x8f4895
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x60(... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
_archive_read_filter_seek | int64_t
__archive_read_filter_seek(struct archive_read_filter *filter, int64_t offset,
int whence)
{
struct archive_read_client *client;
int64_t r;
unsigned int cursor;
if (filter->closed || filter->fatal)
return (ARCHIVE_FATAL);
if (filter->can_seek == 0)
return (ARCHIVE_FAILED);
client = &(filter->arc... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movsbl 0x89(%rax), %eax
cmpl $0x0, %eax
jne 0x8f4b73
movq -0x10(%rbp), %rax
movsbl 0x8a(%rax), %eax
cmpl $0x0, %eax
je 0x8f4b80
movq $-0x1e, -0x8(%rbp)
jmp 0x8f510b
movq -0x10(%rbp), %... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_close | static int
_archive_read_close(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
int r = ARCHIVE_OK, r1 = ARCHIVE_OK;
archive_check_magic(&a->archive, ARCHIVE_READ_MAGIC,
ARCHIVE_STATE_ANY | ARCHIVE_STATE_FATAL, "archive_read_close");
if (a->archive.state == ARCHIVE_STATE_CLOSED)
ret... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0xffff, %edx # imm = 0xFFFF
leaq 0x2c455f(%rip), %rcx # 0xbb9736
callq 0x... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_free | static int
_archive_read_free(struct archive *_a)
{
struct archive_read *a = (struct archive_read *)_a;
struct archive_read_passphrase *p;
int i, n;
int slots;
int r = ARCHIVE_OK;
if (_a == NULL)
return (ARCHIVE_OK);
archive_check_magic(_a, ARCHIVE_READ_MAGIC,
ARCHIVE_STATE_ANY | ARCHIVE_STATE_FATAL, "ar... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x30(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x8f526e
movl $0x0, -0x4(%rbp)
jmp 0x8f54be
jmp 0x8f5270
movq -0x10(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0xffff, %edx # ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_next_header | static int
_archive_read_next_header(struct archive *_a, struct archive_entry **entryp)
{
int ret;
struct archive_read *a = (struct archive_read *)_a;
*entryp = NULL;
ret = _archive_read_next_header2(_a, a->entry);
*entryp = a->entry;
return ret;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x90(%rax), %rsi
callq 0x8f5530
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movq 0x90(%rax), ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_next_header2 | static int
_archive_read_next_header2(struct archive *_a, struct archive_entry *entry)
{
struct archive_read *a = (struct archive_read *)_a;
int r1 = ARCHIVE_OK, r2;
archive_check_magic(_a, ARCHIVE_READ_MAGIC,
ARCHIVE_STATE_HEADER | ARCHIVE_STATE_DATA,
"archive_read_next_header");
archive_entry_clear(en... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0x6, %edx
leaq 0x2c41f7(%rip), %rcx # 0xbb975b
callq 0x9770c0
movl %eax, -0x2c(%rbp... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_data_block | static int
_archive_read_data_block(struct archive *_a,
const void **buff, size_t *size, int64_t *offset)
{
struct archive_read *a = (struct archive_read *)_a;
archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA,
"archive_read_data_block");
if (a->format->read_data == NULL) {
archive_set_error... | 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 -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movl $0xdeb0c5, %esi # imm = 0xDEB0C5
movl $0x4, %edx
leaq 0x2c4076(%rip), %rcx # 0xbb978b
callq 0x9770c... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
get_filter | static struct archive_read_filter *
get_filter(struct archive *_a, int n)
{
struct archive_read *a = (struct archive_read *)_a;
struct archive_read_filter *f = a->filter;
/* We use n == -1 for 'the last filter', which is always the
* client proxy. */
if (n == -1 && f != NULL) {
struct archive_read_filter *last ... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x278(%rax), %rax
movq %rax, -0x28(%rbp)
cmpl $-0x1, -0x14(%rbp)
jne 0x8f593a
cmpq $0x0, -0x28(%rbp)
je 0x8f593a
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rb... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
client_open_proxy | static int
client_open_proxy(struct archive_read_filter *self)
{
int r = ARCHIVE_OK;
if (self->archive->client.opener != NULL)
r = (self->archive->client.opener)(
(struct archive *)self->archive, self->data);
return (r);
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xb0(%rax)
je 0x8f5a49
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq 0xb0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rdi
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rsi
... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
client_skip_proxy | static int64_t
client_skip_proxy(struct archive_read_filter *self, int64_t request)
{
if (request < 0)
__archive_errx(1, "Negative skip requested.");
if (request == 0)
return 0;
if (self->archive->client.skipper != NULL) {
/* Seek requests over 1GiB are broken down into
* multiple seeks. This avoids overf... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jge 0x8f5a88
movl $0x1, %edi
leaq 0x2c3db8(%rip), %rsi # 0xbb983b
callq 0x940330
cmpq $0x0, -0x18(%rbp)
jne 0x8f5a9c
movq $0x0, -0x8(%rbp)
jmp 0x8f5be2
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cmpq $0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read.c |
archive_read_disk_entry_setup_path | const char *
archive_read_disk_entry_setup_path(struct archive_read_disk *a,
struct archive_entry *entry, int *fd)
{
const char *path;
path = archive_entry_sourcepath(entry);
if (path == NULL || (a->tree != NULL &&
a->tree_enter_working_dir(a->tree) != 0))
path = archive_entry_pathname(entry);
if (path... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8ea780
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x8f5c63
movq -0x8(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x8f5c70
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq -0x8(%r... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c |
archive_read_disk_entry_from_file | int
archive_read_disk_entry_from_file(struct archive *_a,
struct archive_entry *entry,
int fd,
const struct stat *st)
{
struct archive_read_disk *a = (struct archive_read_disk *)_a;
const char *path, *name;
struct stat s;
int initial_fd = fd;
int r, r1;
archive_check_magic(_a, ARCHIVE_READ_DISK_MAGIC... | pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp # imm = 0x130
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0xd4(%rbp)
movq -0x10(%rbp), %rdi
movl $0xbadb0c5, %esi # imm = 0xBADB... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c |
setup_xattrs | static int
setup_xattrs(struct archive_read_disk *a,
struct archive_entry *entry, int *fd)
{
char *list, *p;
const char *path;
ssize_t list_size;
path = NULL;
if (*fd < 0) {
path = archive_read_disk_entry_setup_path(a, entry, fd);
if (path == NULL)
return (ARCHIVE_WARN);
}
if (*fd >= 0) {
#if ARCHI... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
xorl %eax, %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c |
setup_mac_metadata | static int
setup_mac_metadata(struct archive_read_disk *a,
struct archive_entry *entry, int *fd)
{
int tempfd = -1;
int copyfile_flags = COPYFILE_NOFOLLOW | COPYFILE_ACL | COPYFILE_XATTR;
struct stat copyfile_stat;
int ret = ARCHIVE_OK;
void *buff = NULL;
int have_attrs;
const char *name, *tempdir;
struct a... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
xorl %eax, %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c |
setup_sparse_fiemap | static int
setup_sparse_fiemap(struct archive_read_disk *a,
struct archive_entry *entry, int *fd)
{
char buff[4096];
struct fiemap *fm;
struct fiemap_extent *fe;
int64_t size;
int count, do_fiemap, iters;
int exit_sts = ARCHIVE_OK;
const char *path;
if (archive_entry_filetype(entry) != AE_IFREG
|| arc... | pushq %rbp
movq %rsp, %rbp
subq $0x1070, %rsp # imm = 0x1070
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x1048(%rbp)
movq -0x18(%rbp), %rdi
callq 0x8e9c10
cmpl $0x8000, %eax # imm = 0x8000
jne 0x8f666f
movq -0x18(%rbp), %rdi
callq 0x8ea740
cmpq $0x0, %rax
jle 0x... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_entry_from_file.c |
archive_read_disk_gname | const char *
archive_read_disk_gname(struct archive *_a, la_int64_t gid)
{
struct archive_read_disk *a = (struct archive_read_disk *)_a;
if (ARCHIVE_OK != __archive_check_magic(_a, ARCHIVE_READ_DISK_MAGIC,
ARCHIVE_STATE_ANY, "archive_read_disk_gname"))
return (NULL);
if (a->lookup_gname == NULL)
return (NULL);... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movl $0xbadb0c5, %esi # imm = 0xBADB0C5
movl $0x7fff, %edx # imm = 0x7FFF
leaq 0x2c2fc3(%rip), %rcx # 0xbb99e0
callq 0x9770c0
movl %eax, %ecx... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
archive_read_disk_set_gname_lookup | int
archive_read_disk_set_gname_lookup(struct archive *_a,
void *private_data,
const char * (*lookup_gname)(void *private, la_int64_t gid),
void (*cleanup_gname)(void *private))
{
struct archive_read_disk *a = (struct archive_read_disk *)_a;
archive_check_magic(&a->archive, ARCHIVE_READ_DISK_MAGIC,
A... | 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 -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl $0xbadb0c5, %esi # imm = 0xBADB0C5
movl $0x7fff, %edx # imm = 0x7FFF
leaq 0x2c2ecb(%rip), %rc... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
open_on_current_dir | static int
open_on_current_dir(struct tree *t, const char *path, int flags)
{
#ifdef HAVE_OPENAT
return (openat(tree_current_dir_fd(t), path, flags));
#else
if (tree_enter_working_dir(t) != 0)
return (-1);
return (open(path, flags));
#endif
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8f6de0
movl %eax, %edi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movb $0x0, %al
callq 0x3b4b0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
archive_read_disk_open | static int
_archive_read_disk_open(struct archive *_a, const char *pathname)
{
struct archive_read_disk *a = (struct archive_read_disk *)_a;
if (a->tree != NULL)
a->tree = tree_reopen(a->tree, pathname,
a->flags & ARCHIVE_READDISK_RESTORE_ATIME);
else
a->tree = tree_open(pathname, a->symlink_mode,
a... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x8f7877
movq -0x20(%rbp), %rax
movq 0xa0(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
movl 0xc0(%rax), %edx
andl $0x1, %ed... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
archive_read_free | static int
_archive_read_free(struct archive *_a)
{
struct archive_read_disk *a = (struct archive_read_disk *)_a;
int r;
if (_a == NULL)
return (ARCHIVE_OK);
archive_check_magic(_a, ARCHIVE_READ_DISK_MAGIC,
ARCHIVE_STATE_ANY | ARCHIVE_STATE_FATAL, "archive_read_free");
if (a->archive.state != ARCHIVE_STAT... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x8f7bf7
movl $0x0, -0x4(%rbp)
jmp 0x8f7d00
jmp 0x8f7bf9
movq -0x10(%rbp), %rdi
movl $0xbadb0c5, %esi # imm = 0xBADB0C5
movl $0xffff, %edx # imm = 0xFFFF
leaq 0x2c... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
archive_read_next_header | static int
_archive_read_next_header(struct archive *_a, struct archive_entry **entryp)
{
int ret;
struct archive_read_disk *a = (struct archive_read_disk *)_a;
*entryp = NULL;
ret = _archive_read_next_header2(_a, a->entry);
*entryp = a->entry;
return ret;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x90(%rax), %rsi
callq 0x8f7d70
movl %eax, -0x14(%rbp)
movq -0x20(%rbp), %rax
movq 0x90(%rax), ... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
archive_read_next_header2 | static int
_archive_read_next_header2(struct archive *_a, struct archive_entry *entry)
{
struct archive_read_disk *a = (struct archive_read_disk *)_a;
struct tree *t;
int r;
archive_check_magic(_a, ARCHIVE_READ_DISK_MAGIC,
ARCHIVE_STATE_HEADER | ARCHIVE_STATE_DATA,
"archive_read_next_header2");
t = a->... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movl $0xbadb0c5, %esi # imm = 0xBADB0C5
movl $0x6, %edx
leaq 0x2c1e81(%rip), %rcx # 0xbb9c1e
callq 0x9770c0
movl %eax, -0x30(%rbp)
cmpl $-0x1e, -0x30(%... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
tree_close | static void
tree_close(struct tree *t)
{
if (t == NULL)
return;
if (t->entry_fd >= 0) {
close_and_restore_time(t->entry_fd, t, &t->restore_time);
t->entry_fd = -1;
}
/* Close the handle of readdir(). */
if (t->d != INVALID_DIR_HANDLE) {
closedir(t->d);
t->d = INVALID_DIR_HANDLE;
}
/* Release anything ... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x8f8528
jmp 0x8f85ff
movq -0x8(%rbp), %rax
cmpl $0x0, 0x208(%rax)
jl 0x8f8561
movq -0x8(%rbp), %rax
movl 0x208(%rax), %edi
movq -0x8(%rbp), %rsi
movq -0x8(%rbp), %rdx
addq $0x198, %rdx # imm = 0x198
callq 0x8f8610
mo... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c |
process_add_entry | static int
process_add_entry(struct archive_read *a, struct mtree *mtree,
struct mtree_option **global, const char *line, ssize_t line_len,
struct mtree_entry **last_entry, int is_form_d)
{
struct mtree_entry *entry;
struct mtree_option *iter;
const char *next, *eq, *name, *end;
size_t name_len, len;
int r... | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x40, %edi
callq 0x3e578
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x91863d
movq -0x10(%rbp), %rax
movq %rax, -... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_support_format_mtree.c |
process_global_unset | static int
process_global_unset(struct archive_read *a,
struct mtree_option **global, const char *line)
{
const char *next;
size_t len;
line += 6;
if (strchr(line, '=') != NULL) {
archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
"/unset shall not contain `='");
return ARCHIVE_FATAL;
}
for (;;) {... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x6, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movl $0x3d, %esi
callq 0x3d450
cmpq $0x0, %rax
je 0x918c17
movq -0x10(%rbp), %rdi
movl $0xffffffff, %esi # imm = 0xF... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_support_format_mtree.c |
parse_escapes | static void
parse_escapes(char *src, struct mtree_entry *mentry)
{
char *dest = src;
char c;
if (mentry != NULL && strcmp(src, ".") == 0)
mentry->full = 1;
while (*src != '\0') {
c = *src++;
if (c == '/' && mentry != NULL)
mentry->full = 1;
if (c == '\\') {
switch (src[0]) {
case '0':
if (src... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x918d1c
movq -0x8(%rbp), %rdi
leaq 0x23880d(%rip), %rsi # 0xb51517
callq 0x3dbb0
cmpl $0x0, %eax
jne 0x918d1c
movq -0x10(%rbp), %rax
movb $0x1, 0x38(%rax)
j... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_support_format_mtree.c |
add_option | static int
add_option(struct archive_read *a, struct mtree_option **global,
const char *value, size_t len)
{
struct mtree_option *opt;
if ((opt = malloc(sizeof(*opt))) == NULL) {
archive_set_error(&a->archive, errno, "Can't allocate memory");
return (ARCHIVE_FATAL);
}
if ((opt->value = malloc(len + 1)) == ... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x10, %edi
callq 0x3e578
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0x918f69
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x3e130
movq -0x38(%rbp), %rdi
movl (%rax), %esi
... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_support_format_mtree.c |
try_skip_sfx | static int try_skip_sfx(struct archive_read *a)
{
const char *p;
if ((p = __archive_read_ahead(a, 7, NULL)) == NULL)
return ARCHIVE_EOF;
if ((p[0] == 'M' && p[1] == 'Z') || memcmp(p, "\x7F\x45LF", 4) == 0)
{
char signature[sizeof(rar5_signature_xor)];
const void *h;
const char *q;
size_t skip, total = 0... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movl $0x7, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x8f4160
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x923164
movl $0x1, -0x4(%rbp)
jmp 0x9232cc
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4d, %eax
jne 0x92317d
movq -0... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_read_support_format_rar5.c |
free_sconv_object | static void
free_sconv_object(struct archive_string_conv *sc)
{
free(sc->from_charset);
free(sc->to_charset);
archive_string_free(&sc->utftmp);
#if HAVE_ICONV
if (sc->cd != (iconv_t)-1)
iconv_close(sc->cd);
if (sc->cd_w != (iconv_t)-1)
iconv_close(sc->cd_w);
#endif
free(sc);
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3e548
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x3e548
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
callq 0x938460
movq -0x8(%rbp), %rdi
callq 0x3e548
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%r... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_string.c |
mbsnbytes | static size_t
mbsnbytes(const void *_p, size_t n)
{
size_t s;
const char *p, *pp;
if (_p == NULL)
return (0);
p = (const char *)_p;
/* Like strlen(p), except won't examine positions beyond p[n]. */
s = 0;
pp = p;
while (s < n && *pp) {
pp++;
s++;
}
return (s);
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x93963d
movq $0x0, -0x8(%rbp)
jmp 0x93969f
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq -0x18(%rbp), %rcx... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_string.c |
archive_mstring_get_wcs | int
archive_mstring_get_wcs(struct archive *a, struct archive_mstring *aes,
const wchar_t **wp)
{
int r, ret = 0;
(void)a;/* UNUSED */
/* Return WCS form if we already have it. */
if (aes->aes_set & AES_SET_WCS) {
*wp = aes->aes_wcs.s;
return (ret);
}
*wp = NULL;
/* Try converting UTF8 to MBS first if ... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x28(%rbp)
movq -0x18(%rbp), %rax
movl 0x60(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x939a64
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movl -0x2... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_string.c |
strncat_from_utf8_libarchive2 | static int
strncat_from_utf8_libarchive2(struct archive_string *as,
const void *_p, size_t len, struct archive_string_conv *sc)
{
const char *s;
int n;
char *p;
char *end;
uint32_t unicode;
#if HAVE_WCRTOMB
mbstate_t shift_state;
memset(&shift_state, 0, sizeof(shift_state));
#else
/* Clear the shift state ... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
leaq -0x54(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x3b780
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
addq -0x20(%rbp), %rsi
addq $0x1, %rsi
callq 0x9... | /JKorbelRA[P]CMake/Utilities/cmlibarchive/libarchive/archive_string.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.