name
string | code
string | asm
string | file
string |
|---|---|---|---|
QtMWidgets::Picker::_q_emitCurrentIndexChanged(QModelIndex const&)
|
void
Picker::_q_emitCurrentIndexChanged( const QModelIndex & index )
{
emit currentIndexChanged( index.row() );
const QString text = d->itemText( index );
emit currentIndexChanged( text );
emit currentTextChanged( text );
#ifndef QT_NO_ACCESSIBILITY
QAccessibleEvent event( this, QAccessible::NameChanged );
QAccessible::updateAccessibility( &event );
#endif
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
callq 0xf42c0
movq -0x68(%rbp), %rdi
movl %eax, %esi
callq 0xa4780
movq -0x68(%rbp), %rdi
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rsi
movq -0x10(%rbp), %rdx
leaq -0x28(%rbp), %rdi
movq %rdi, -0x60(%rbp)
callq 0xf0370
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0xa47c0
jmp 0xf02ec
movq -0x68(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xa4800
jmp 0xf02fb
movq -0x68(%rbp), %rsi
leaq -0x58(%rbp), %rdi
movl $0x800c, %edx # imm = 0x800C
callq 0xb2280
jmp 0xf030f
leaq -0x58(%rbp), %rdi
callq 0x97260
jmp 0xf031a
leaq -0x58(%rbp), %rdi
callq 0x973e0
leaq -0x28(%rbp), %rdi
callq 0xa7b90
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xf0355
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x973e0
leaq -0x28(%rbp), %rdi
callq 0xa7b90
movq -0x30(%rbp), %rdi
callq 0x97810
nopw (%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/picker.cpp
|
QtMWidgets::PickerPrivate::minimumSizeHint(QStyleOption const&)
|
QSize
PickerPrivate::minimumSizeHint( const QStyleOption & opt )
{
stringHeight = opt.fontMetrics.boundingRect( QLatin1String( "A" ) ).height();
itemSideMargin = opt.fontMetrics.averageCharWidth() * 3;
itemTopMargin = stringHeight / 3;
const int minStringWidth = opt.fontMetrics.averageCharWidth() *
( minStringLength + 2 );
const int widgetWidth = minStringWidth + 2 * itemSideMargin;
const int widgetHeight = ( stringHeight + itemTopMargin ) *
itemsCount - itemTopMargin;
return QSize( widgetWidth, widgetHeight );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x88(%rbp)
leaq 0x1f6ac(%rip), %rsi # 0x10fb10
leaq -0x50(%rbp), %rdi
callq 0xb96d0
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x40(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0xb9720
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x97990
movq %rdx, -0x78(%rbp)
movq %rax, -0x70(%rbp)
jmp 0xf049c
movq -0x78(%rbp), %rax
movq -0x70(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq %rax, -0x20(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xb1a30
movl %eax, %ecx
movq -0x90(%rbp), %rax
movl %ecx, 0x58(%rax)
leaq -0x40(%rbp), %rdi
callq 0xa7b90
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0x97e40
movl %eax, %ecx
movq -0x90(%rbp), %rax
imull $0x3, %ecx, %ecx
movl %ecx, 0x54(%rax)
movl 0x58(%rax), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x90(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0x97e40
movq -0x90(%rbp), %rcx
movl 0x40(%rcx), %edx
addl $0x2, %edx
imull %edx, %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl 0x54(%rcx), %edx
shll %edx
addl %edx, %eax
movl %eax, -0x64(%rbp)
movl 0x58(%rcx), %eax
addl 0x50(%rcx), %eax
imull 0x4c(%rcx), %eax
subl 0x50(%rcx), %eax
movl %eax, -0x68(%rbp)
movl -0x64(%rbp), %esi
movl -0x68(%rbp), %edx
leaq -0x8(%rbp), %rdi
callq 0xa0c80
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xa7b90
movq -0x58(%rbp), %rdi
callq 0x97810
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/picker.cpp
|
QtMWidgets::PickerPrivate::indexForPos(QPoint const&)
|
QModelIndex
PickerPrivate::indexForPos( const QPoint & pos )
{
int offset = drawItemOffset;
for( int i = 0; i < itemsCount + 1; ++i )
{
const QRect r( q->rect().x() + itemSideMargin, offset,
q->rect().width() - itemSideMargin, stringHeight );
if( r.contains( pos ) )
{
QPersistentModelIndex index = topItemIndex;
for( int j = 0; j < i; ++j )
makeNextIndex( index );
return index;
}
offset += stringHeight + itemTopMargin;
}
return QModelIndex();
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x80(%rbp)
movq %rdi, -0x78(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movl 0x30(%rax), %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x70(%rbp), %rcx
movl -0x18(%rbp), %eax
movl 0x4c(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xf1435
movq -0x70(%rbp), %rax
movq (%rax), %rdi
callq 0xb1a50
movq %rax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xb1e30
movl %eax, %ecx
movq -0x70(%rbp), %rax
addl 0x54(%rax), %ecx
movl %ecx, -0x88(%rbp)
movl -0x14(%rbp), %ecx
movl %ecx, -0x84(%rbp)
movq (%rax), %rdi
callq 0xb1a50
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xb1a10
movl -0x88(%rbp), %esi
movl -0x84(%rbp), %edx
movl %eax, %ecx
movq -0x70(%rbp), %rax
subl 0x54(%rax), %ecx
movl 0x58(%rax), %r8d
leaq -0x28(%rbp), %rdi
callq 0xb1e60
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdi
xorl %edx, %edx
callq 0x97120
testb $0x1, %al
jne 0xf13aa
jmp 0xf1417
movq -0x70(%rbp), %rsi
addq $0x28, %rsi
leaq -0x50(%rbp), %rdi
callq 0x97790
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xf13fd
movq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xf0fc0
jmp 0xf13d9
jmp 0xf13db
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0xf13c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x980e0
jmp 0xf144b
movq -0x80(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x98440
jmp 0xf140c
leaq -0x50(%rbp), %rdi
callq 0x980e0
jmp 0xf143e
movq -0x70(%rbp), %rcx
movl 0x58(%rcx), %eax
addl 0x50(%rcx), %eax
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xf1310
movq -0x80(%rbp), %rdi
callq 0xad3c0
movq -0x78(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x97810
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/picker.cpp
|
QtMWidgets::Picker::_q_dataChanged(QModelIndex const&, QModelIndex const&)
|
void
Picker::_q_dataChanged( const QModelIndex & topLeft,
const QModelIndex & bottomRight )
{
if( d->inserting || topLeft.parent() != d->root )
return;
if( d->currentIndex.row() >= topLeft.row() &&
d->currentIndex.row() <= bottomRight.row() )
{
const QString text = itemText( d->currentIndex.row() );
emit currentTextChanged( text );
update();
}
else if( d->isIndexesVisible( topLeft, bottomRight ) )
update();
#ifndef QT_NO_ACCESSIBILITY
QAccessibleEvent event( this, QAccessible::NameChanged );
QAccessible::updateAccessibility( &event );
#endif
}
|
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rcx
movb $0x1, %al
testb $0x1, 0x38(%rcx)
movb %al, -0x91(%rbp)
jne 0xf1cfc
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0xf42d0
movq -0xa0(%rbp), %rdi
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rsi
addq $0x20, %rsi
leaq -0x48(%rbp), %rdi
callq 0x98440
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xf4360
movb %al, -0x91(%rbp)
movb -0x91(%rbp), %al
testb $0x1, %al
jne 0xf1d08
jmp 0xf1d0d
jmp 0xf1e69
movq -0xa0(%rbp), %rdi
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rdi
addq $0x18, %rdi
callq 0x97430
movl %eax, -0xa4(%rbp)
movq -0x10(%rbp), %rdi
callq 0xf42c0
movl %eax, %ecx
movl -0xa4(%rbp), %eax
cmpl %ecx, %eax
jl 0xf1dfc
movq -0xa0(%rbp), %rdi
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rdi
addq $0x18, %rdi
callq 0x97430
movl %eax, -0xa8(%rbp)
movq -0x18(%rbp), %rdi
callq 0xf42c0
movl %eax, %ecx
movl -0xa8(%rbp), %eax
cmpl %ecx, %eax
jg 0xf1dfc
movq -0xa0(%rbp), %rdi
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rdi
addq $0x18, %rdi
callq 0x97430
movq -0xa0(%rbp), %rsi
movl %eax, %edx
leaq -0x60(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0xf0880
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0xa4800
jmp 0xf1dc9
movq -0xa0(%rbp), %rdi
callq 0x974f0
jmp 0xf1dd7
leaq -0x60(%rbp), %rdi
callq 0xa7b90
jmp 0xf1e30
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xa7b90
jmp 0xf1e8a
movq -0xa0(%rbp), %rdi
addq $0x28, %rdi
callq 0xf45f0
movq %rax, %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xf1510
testb $0x1, %al
jne 0xf1e22
jmp 0xf1e2e
movq -0xa0(%rbp), %rdi
callq 0x974f0
jmp 0xf1e30
movq -0xa0(%rbp), %rsi
leaq -0x90(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
movl $0x800c, %edx # imm = 0x800C
callq 0xb2280
movq -0xb8(%rbp), %rdi
callq 0x97260
jmp 0xf1e5d
leaq -0x90(%rbp), %rdi
callq 0x973e0
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x973e0
movq -0x68(%rbp), %rdi
callq 0x97810
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/picker.cpp
|
QtMWidgets::Picker::wheelEvent(QWheelEvent*)
|
void
Picker::wheelEvent( QWheelEvent * event )
{
QPoint numPixels = event->pixelDelta();
QPoint numDegrees = event->angleDelta();
if( !numPixels.isNull() )
{
d->drawItemOffset += numPixels.y();
update();
}
else if( !numDegrees.isNull() )
{
d->drawItemOffset += numDegrees.y() / 8;
update();
}
event->accept();
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0xba320
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xba340
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
callq 0xba360
testb $0x1, %al
jne 0xf3f5c
leaq -0x18(%rbp), %rdi
callq 0xb2360
movq -0x28(%rbp), %rdi
movl %eax, -0x2c(%rbp)
addq $0x28, %rdi
callq 0xf45f0
movl -0x2c(%rbp), %ecx
movq -0x28(%rbp), %rdi
addl 0x30(%rax), %ecx
movl %ecx, 0x30(%rax)
callq 0x974f0
jmp 0xf3f9e
leaq -0x20(%rbp), %rdi
callq 0xba360
testb $0x1, %al
jne 0xf3f9c
leaq -0x20(%rbp), %rdi
callq 0xb2360
movq -0x28(%rbp), %rdi
movl $0x8, %ecx
cltd
idivl %ecx
movl %eax, -0x30(%rbp)
addq $0x28, %rdi
callq 0xf45f0
movl -0x30(%rbp), %ecx
movq -0x28(%rbp), %rdi
addl 0x30(%rax), %ecx
movl %ecx, 0x30(%rax)
callq 0x974f0
jmp 0xf3f9e
movq -0x10(%rbp), %rdi
callq 0xb44d0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
/igormironchik[P]qtmwidgets/src/picker.cpp
|
QtMWidgets::ScrollArea::setWidget(QWidget*)
|
void
ScrollArea::setWidget( QWidget * widget )
{
ScrollAreaPrivate * d = d_func();
if( widget == d->widget || !widget )
return;
d->horIndicator->setParent( 0 );
d->vertIndicator->setParent( 0 );
d->horBlur->setParent( 0 );
d->vertBlur->setParent( 0 );
delete d->widget;
d->widget = 0;
if( widget->parentWidget() != d->viewport )
widget->setParent( d->viewport );
if( !widget->testAttribute( Qt::WA_Resized ) )
widget->resize( widget->sizeHint() );
d->widget = widget;
d->horIndicator->setParent( d->widget );
d->horIndicator->raise();
d->vertIndicator->setParent( d->widget );
d->vertIndicator->raise();
d->horBlur->setParent( d->widget );
d->vertBlur->setParent( d->widget );
d->widget->setAutoFillBackground( true );
widget->installEventFilter( this );
d->updateScrolledSize();
d->widget->show();
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
callq 0xff8f0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0xa8, %rsi
callq 0xff930
testb $0x1, %al
jne 0xfe7c0
cmpq $0x0, -0x10(%rbp)
jne 0xfe7c5
jmp 0xfe9bf
movq -0x18(%rbp), %rax
movq 0x58(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x97650
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x97650
movq -0x18(%rbp), %rax
movq 0x88(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x97650
movq -0x18(%rbp), %rax
movq 0x90(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x97650
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff7e0
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0xfe833
movq -0x30(%rbp), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xff970
movq -0x10(%rbp), %rdi
callq 0xcb5a0
movq -0x18(%rbp), %rcx
cmpq 0x20(%rcx), %rax
je 0xfe86b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x97650
movq -0x10(%rbp), %rdi
movl $0x2a, %esi
callq 0xb2220
testb $0x1, %al
jne 0xfe8a0
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
movq -0x38(%rbp), %rdi
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x98c80
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff970
movq -0x18(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff7e0
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x97650
movq -0x18(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x97290
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff7e0
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0x97650
movq -0x18(%rbp), %rax
movq 0x60(%rax), %rdi
callq 0x97290
movq -0x18(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff7e0
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0x97650
movq -0x18(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff7e0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x97650
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff720
movq %rax, %rdi
movl $0x1, %esi
callq 0x98160
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x98a00
movq -0x18(%rbp), %rdi
callq 0xfe300
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
callq 0xff720
movq %rax, %rdi
callq 0x97e80
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/scrollarea.cpp
|
QtMWidgets::ScrollArea::ensureVisible(int, int, int, int)
|
void
ScrollArea::ensureVisible( int x, int y, int xmargin, int ymargin )
{
ScrollAreaPrivate * d = d_func();
int logicalX = QStyle::visualPos( layoutDirection(), d->viewport->rect(),
QPoint( x, y ) ).x();
int posX = 0;
int posY = 0;
if( logicalX - xmargin < topLeftPointShownArea().x() )
posX = qMax( 0, logicalX - xmargin );
else if( logicalX > topLeftPointShownArea().x() + d->viewport->width() - xmargin )
posX = qMin( logicalX - d->viewport->width() + xmargin,
scrolledAreaSize().width() );
if( y - ymargin < topLeftPointShownArea().y() )
posY = qMax( 0, y - ymargin );
else if( y > topLeftPointShownArea().y() + d->viewport->height() - ymargin )
posY= qMin( y - d->viewport->height() + ymargin,
scrolledAreaSize().height() );
setTopLeftPointShownArea( QPoint( posX, posY ) );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0xff8f0
movq -0x80(%rbp), %rdi
movq %rax, -0x20(%rbp)
callq 0x97950
movl %eax, -0x84(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xb1a50
movq %rax, -0x3c(%rbp)
movq %rdx, -0x34(%rbp)
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
leaq -0x44(%rbp), %rdi
callq 0xb22c0
movl -0x84(%rbp), %edi
leaq -0x3c(%rbp), %rsi
leaq -0x44(%rbp), %rdx
callq 0x98af0
movq %rax, -0x2c(%rbp)
leaq -0x2c(%rbp), %rdi
callq 0xb2350
movq -0x80(%rbp), %rdi
movl %eax, -0x24(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x24(%rbp), %eax
subl -0x14(%rbp), %eax
movl %eax, -0x78(%rbp)
callq 0xb8f40
movq %rax, %rdi
callq 0xb2350
movl %eax, %ecx
movl -0x78(%rbp), %eax
cmpl %ecx, %eax
jge 0xff2ab
movl $0x0, -0x50(%rbp)
movl -0x24(%rbp), %eax
subl -0x14(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x54(%rbp), %rsi
callq 0xb1d00
movl (%rax), %eax
movl %eax, -0x48(%rbp)
jmp 0xff33d
movq -0x80(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, -0x88(%rbp)
callq 0xb8f40
movq %rax, %rdi
callq 0xb2350
movl %eax, -0x8c(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xb9930
movl -0x8c(%rbp), %ecx
movl %eax, %edx
movl -0x88(%rbp), %eax
addl %edx, %ecx
subl -0x14(%rbp), %ecx
cmpl %ecx, %eax
jle 0xff33b
movl -0x24(%rbp), %eax
movl %eax, -0x90(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xb9930
movq -0x80(%rbp), %rdi
movl %eax, %ecx
movl -0x90(%rbp), %eax
subl %ecx, %eax
addl -0x14(%rbp), %eax
movl %eax, -0x58(%rbp)
callq 0xb8e70
movq %rax, %rdi
callq 0xb9860
movl %eax, -0x5c(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x5c(%rbp), %rsi
callq 0xb1d40
movl (%rax), %eax
movl %eax, -0x48(%rbp)
jmp 0xff33d
movq -0x80(%rbp), %rdi
movl -0x10(%rbp), %eax
subl -0x18(%rbp), %eax
movl %eax, -0x94(%rbp)
callq 0xb8f40
movq %rax, %rdi
callq 0xb2360
movl %eax, %ecx
movl -0x94(%rbp), %eax
cmpl %ecx, %eax
jge 0xff38d
movl $0x0, -0x60(%rbp)
movl -0x10(%rbp), %eax
subl -0x18(%rbp), %eax
movl %eax, -0x64(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0xb1d00
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0xff41f
movq -0x80(%rbp), %rdi
movl -0x10(%rbp), %eax
movl %eax, -0x98(%rbp)
callq 0xb8f40
movq %rax, %rdi
callq 0xb2360
movl %eax, -0x9c(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xb9960
movl -0x9c(%rbp), %ecx
movl %eax, %edx
movl -0x98(%rbp), %eax
addl %edx, %ecx
subl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jle 0xff41d
movl -0x10(%rbp), %eax
movl %eax, -0xa0(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0xb9960
movq -0x80(%rbp), %rdi
movl %eax, %ecx
movl -0xa0(%rbp), %eax
subl %ecx, %eax
addl -0x18(%rbp), %eax
movl %eax, -0x68(%rbp)
callq 0xb8e70
movq %rax, %rdi
callq 0xb9870
movl %eax, -0x6c(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0xb1d40
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0xff41f
movl -0x48(%rbp), %esi
movl -0x4c(%rbp), %edx
leaq -0x74(%rbp), %rdi
callq 0xb22c0
movq -0x80(%rbp), %rdi
leaq -0x74(%rbp), %rsi
callq 0xb8f70
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/scrollarea.cpp
|
QtMWidgets::Section::Section()
|
Section::Section()
: type( NoSection )
, zeroesAdded( false )
, sectionWidth( 0 )
, currentIndex( -1 )
, offset( 0 )
{
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
movl $0x0, (%rdi)
movb $0x0, 0x4(%rdi)
movl $0x0, 0x8(%rdi)
addq $0x10, %rdi
callq 0x1035e0
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x28(%rax) # imm = 0xFFFFFFFF
movl $0x0, 0x2c(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
|
QtMWidgets::Section::Section(QtMWidgets::Section::Type)
|
Section::Section( Type t )
: type( t )
, zeroesAdded( false )
, sectionWidth( 0 )
, currentIndex( -1 )
, offset( 0 )
{
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
movl -0xc(%rbp), %eax
movl %eax, (%rdi)
movb $0x0, 0x4(%rdi)
movl $0x0, 0x8(%rdi)
addq $0x10, %rdi
callq 0x1035e0
movq -0x18(%rbp), %rax
movl $0xffffffff, 0x28(%rax) # imm = 0xFFFFFFFF
movl $0x0, 0x2c(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
|
QtMWidgets::maxShortDay(QStyleOption const&)
|
static inline QString
maxShortDay( const QStyleOption & opt )
{
int index = 1;
int width = 0;
for( int i = 1; i < 8; ++i )
{
const int tmpWidth = opt.fontMetrics.boundingRect(
QLocale::system().dayName( i, QLocale::ShortFormat ) + QLatin1Char( ' ' ) ).width();
if( tmpWidth > width )
{
index = i;
width = tmpWidth;
}
}
return QLocale::system().dayName( index, QLocale::ShortFormat );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x90(%rbp)
movq %rdi, %rax
movq %rax, -0x88(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
cmpl $0x8, -0x1c(%rbp)
jge 0x100ebe
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0xa0(%rbp)
leaq -0x68(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x98880
movq -0x98(%rbp), %rsi
movl -0x1c(%rbp), %edx
leaq -0x60(%rbp), %rdi
movl $0x1, %ecx
callq 0x98340
jmp 0x100dbc
leaq -0x77(%rbp), %rdi
movl $0x20, %esi
callq 0xc1240
movzbl -0x77(%rbp), %esi
leaq -0x76(%rbp), %rdi
callq 0xc1260
movzwl -0x76(%rbp), %edx
leaq -0x48(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x1038b0
jmp 0x100dea
movq -0xa0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x97990
movq %rdx, -0xb0(%rbp)
movq %rax, -0xa8(%rbp)
jmp 0x100e0a
movq -0xb0(%rbp), %rax
movq -0xa8(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movq %rax, -0x28(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xb1a10
movl %eax, -0xb4(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xa7b90
leaq -0x60(%rbp), %rdi
callq 0xa7b90
leaq -0x68(%rbp), %rdi
callq 0x973c0
movl -0xb4(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x18(%rbp), %eax
jle 0x100eae
movl -0x1c(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x18(%rbp)
jmp 0x100eae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x100ea3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x100e9a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xa7b90
leaq -0x60(%rbp), %rdi
callq 0xa7b90
leaq -0x68(%rbp), %rdi
callq 0x973c0
jmp 0x100f19
jmp 0x100eb0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x100d79
leaq -0x80(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x98880
movq -0x90(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movl -0x14(%rbp), %edx
movl $0x1, %ecx
callq 0x98340
jmp 0x100eeb
leaq -0x80(%rbp), %rdi
callq 0x973c0
movq -0x88(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x973c0
movq -0x70(%rbp), %rdi
callq 0x97810
nopw %cs:(%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
|
QtMWidgets::DateTimeParser::DateTimeParser(QMetaType::Type)
|
DateTimeParser::DateTimeParser( QMetaType::Type t )
: type( t )
{
parseFormat( QLatin1String( "dddd MMMM yyyy hh mm" ) );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x58(%rbp)
leaq 0x40382(%rip), %rax # 0x142c10
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x8, %rdi
movq %rdi, -0x60(%rbp)
callq 0x103770
movq -0x58(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, 0x20(%rdi)
addq $0x28, %rdi
movq %rdi, -0x50(%rbp)
callq 0xab2a0
leaq 0xd417(%rip), %rsi # 0x10fcd7
leaq -0x38(%rbp), %rdi
callq 0xb96d0
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
leaq -0x28(%rbp), %rdi
callq 0xb9720
jmp 0x1028dc
movq -0x58(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x102940
jmp 0x1028eb
leaq -0x28(%rbp), %rdi
callq 0xa7b90
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x10291d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa7b90
movq -0x50(%rbp), %rdi
callq 0xa7b90
movq -0x60(%rbp), %rdi
callq 0x103790
movq -0x40(%rbp), %rdi
callq 0x97810
nopl (%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
|
QtMWidgets::drawCylinder(QPainter*, QRect const&, QColor const&, bool, bool)
|
void
drawCylinder( QPainter * p, const QRect & r, const QColor & baseColor,
bool roundLeftCorner, bool roundRightCorner )
{
QLinearGradient firstVertLineGradient( QPointF( 0.0, 0.0 ),
QPointF( 0.0, 1.0 ) );
firstVertLineGradient.setCoordinateMode( QGradient::ObjectBoundingMode );
firstVertLineGradient.setColorAt( 0.0, darkerColor( baseColor, 50 ) );
firstVertLineGradient.setColorAt( 0.5, lighterColor( baseColor, 25 ) );
firstVertLineGradient.setColorAt( 1.0, darkerColor( baseColor, 50 ) );
QLinearGradient secondVertLineGradient( QPointF( 0.0, 0.0 ),
QPointF( 0.0, 1.0 ) );
secondVertLineGradient.setCoordinateMode( QGradient::ObjectBoundingMode );
secondVertLineGradient.setColorAt( 0.0, darkerColor( baseColor, 40 ) );
secondVertLineGradient.setColorAt( 0.5, lighterColor( baseColor, 50 ) );
secondVertLineGradient.setColorAt( 1.0, darkerColor( baseColor, 40 ) );
p->setPen( Qt::NoPen );
p->setBrush( firstVertLineGradient );
p->drawRect( r.x(), roundLeftCorner ? 2 : 0,
1, roundLeftCorner ? r.height() - 4 : r.height() );
p->drawRect( r.x() + r.width() - 1, roundRightCorner ? 2 : 0,
1, roundRightCorner ? r.height() - 4 : r.height() );
p->setBrush( secondVertLineGradient );
p->drawRect( r.x() + 1, roundLeftCorner ? 1 : 0,
1, roundLeftCorner ? r.height() - 2 : r.height() );
p->drawRect( r.x() + r.width() - 2, roundRightCorner ? 1 : 0,
1, roundRightCorner ? r.height() - 2 : r.height() );
p->drawRect( r.x() + 2, 0, 1, r.height() );
p->drawRect( r.x() + r.width() - 3, 0,
1, r.height() );
QLinearGradient backgroundGradient( QPointF( 0.0, 0.0 ),
QPointF( 0.0, 1.0 ) );
backgroundGradient.setCoordinateMode( QGradient::ObjectBoundingMode );
backgroundGradient.setColorAt( 0.0, baseColor );
backgroundGradient.setColorAt( 0.15, lighterColor( baseColor, 75 ) );
backgroundGradient.setColorAt( 0.5, lighterColor( baseColor, 200 ) );
backgroundGradient.setColorAt( 0.85, lighterColor( baseColor, 75 ) );
backgroundGradient.setColorAt( 1.0, baseColor );
p->setPen( Qt::NoPen );
p->setBrush( backgroundGradient );
p->drawRect( r.x() + 3, 0, r.width() - 2 * 3, r.height() );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x460, %rsp # imm = 0x460
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %cl
movb %cl, -0x19(%rbp)
andb $0x1, %al
movb %al, -0x1a(%rbp)
leaq -0x88(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
xorps %xmm1, %xmm1
movsd %xmm1, -0x2f0(%rbp)
movaps %xmm1, %xmm0
callq 0xb4510
movsd -0x2f0(%rbp), %xmm0
leaq -0x98(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
movsd 0x9404(%rip), %xmm1 # 0x10f638
callq 0xb4510
movq -0x2e8(%rbp), %rsi
movq -0x2e0(%rbp), %rdx
leaq -0x78(%rbp), %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x970d0
movq -0x2d8(%rbp), %rdi
movl $0x2, %esi
callq 0x970c0
jmp 0x10626a
movq -0x18(%rbp), %rdi
movl $0x32, %esi
callq 0xd9d20
movq %rdx, -0x300(%rbp)
movq %rax, -0x2f8(%rbp)
jmp 0x106288
movq -0x300(%rbp), %rax
movq -0x2f8(%rbp), %rcx
movq %rcx, -0xc8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movq -0xc2(%rbp), %rcx
movq %rcx, -0xb2(%rbp)
movq %rax, -0xb8(%rbp)
leaq -0x78(%rbp), %rdi
xorps %xmm0, %xmm0
leaq -0xb8(%rbp), %rsi
callq 0x98970
jmp 0x1062d5
movq -0x18(%rbp), %rdi
movl $0x19, %esi
callq 0xd9c00
movq %rdx, -0x310(%rbp)
movq %rax, -0x308(%rbp)
jmp 0x1062f3
movq -0x310(%rbp), %rax
movq -0x308(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
movq -0xe2(%rbp), %rcx
movq %rcx, -0xd2(%rbp)
movq %rax, -0xd8(%rbp)
leaq -0x78(%rbp), %rdi
movsd 0x9331(%rip), %xmm0 # 0x10f668
leaq -0xd8(%rbp), %rsi
callq 0x98970
jmp 0x106345
movq -0x18(%rbp), %rdi
movl $0x32, %esi
callq 0xd9d20
movq %rdx, -0x320(%rbp)
movq %rax, -0x318(%rbp)
jmp 0x106363
movq -0x320(%rbp), %rax
movq -0x318(%rbp), %rcx
movq %rcx, -0x108(%rbp)
movq %rax, -0x100(%rbp)
movq -0x108(%rbp), %rax
movq -0x102(%rbp), %rcx
movq %rcx, -0xf2(%rbp)
movq %rax, -0xf8(%rbp)
leaq -0x78(%rbp), %rdi
movsd 0x9291(%rip), %xmm0 # 0x10f638
leaq -0xf8(%rbp), %rsi
callq 0x98970
jmp 0x1063b5
leaq -0x170(%rbp), %rdi
movq %rdi, -0x330(%rbp)
xorps %xmm1, %xmm1
movsd %xmm1, -0x338(%rbp)
movaps %xmm1, %xmm0
callq 0xb4510
movsd -0x338(%rbp), %xmm0
leaq -0x180(%rbp), %rdi
movq %rdi, -0x328(%rbp)
movsd 0x9244(%rip), %xmm1 # 0x10f638
callq 0xb4510
movq -0x330(%rbp), %rsi
movq -0x328(%rbp), %rdx
leaq -0x160(%rbp), %rdi
callq 0x970d0
jmp 0x106415
leaq -0x160(%rbp), %rdi
movl $0x2, %esi
callq 0x970c0
jmp 0x106428
movq -0x18(%rbp), %rdi
movl $0x28, %esi
callq 0xd9d20
movq %rdx, -0x348(%rbp)
movq %rax, -0x340(%rbp)
jmp 0x106446
movq -0x348(%rbp), %rax
movq -0x340(%rbp), %rcx
movq %rcx, -0x1a0(%rbp)
movq %rax, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
movq -0x19a(%rbp), %rcx
movq %rcx, -0x18a(%rbp)
movq %rax, -0x190(%rbp)
leaq -0x160(%rbp), %rdi
xorps %xmm0, %xmm0
leaq -0x190(%rbp), %rsi
callq 0x98970
jmp 0x106496
movq -0x18(%rbp), %rdi
movl $0x32, %esi
callq 0xd9c00
movq %rdx, -0x358(%rbp)
movq %rax, -0x350(%rbp)
jmp 0x1064b4
movq -0x358(%rbp), %rax
movq -0x350(%rbp), %rcx
movq %rcx, -0x1c0(%rbp)
movq %rax, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rax
movq -0x1ba(%rbp), %rcx
movq %rcx, -0x1aa(%rbp)
movq %rax, -0x1b0(%rbp)
leaq -0x160(%rbp), %rdi
movsd 0x916d(%rip), %xmm0 # 0x10f668
leaq -0x1b0(%rbp), %rsi
callq 0x98970
jmp 0x106509
movq -0x18(%rbp), %rdi
movl $0x28, %esi
callq 0xd9d20
movq %rdx, -0x368(%rbp)
movq %rax, -0x360(%rbp)
jmp 0x106527
movq -0x368(%rbp), %rax
movq -0x360(%rbp), %rcx
movq %rcx, -0x1e0(%rbp)
movq %rax, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rax
movq -0x1da(%rbp), %rcx
movq %rcx, -0x1ca(%rbp)
movq %rax, -0x1d0(%rbp)
leaq -0x160(%rbp), %rdi
movsd 0x90ca(%rip), %xmm0 # 0x10f638
leaq -0x1d0(%rbp), %rsi
callq 0x98970
jmp 0x10657c
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x982e0
jmp 0x106589
movq -0x8(%rbp), %rax
movq %rax, -0x370(%rbp)
leaq -0x1e8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x97c20
jmp 0x1065a6
movq -0x370(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x97be0
jmp 0x1065bb
leaq -0x1e8(%rbp), %rdi
callq 0x98b30
movq -0x8(%rbp), %rax
movq %rax, -0x380(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x378(%rbp)
movb -0x19(%rbp), %dl
xorl %eax, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x374(%rbp)
testb $0x1, -0x19(%rbp)
je 0x106611
movq -0x10(%rbp), %rdi
callq 0xb1a30
subl $0x4, %eax
movl %eax, -0x384(%rbp)
jmp 0x106620
movq -0x10(%rbp), %rdi
callq 0xb1a30
movl %eax, -0x384(%rbp)
movl -0x374(%rbp), %edx
movl -0x378(%rbp), %esi
movq -0x380(%rbp), %rdi
movl -0x384(%rbp), %r8d
movl $0x1, %ecx
callq 0xc1320
jmp 0x106646
movq -0x8(%rbp), %rax
movq %rax, -0x398(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x390(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
movl %eax, %ecx
movl -0x390(%rbp), %eax
addl %ecx, %eax
subl $0x1, %eax
movl %eax, -0x38c(%rbp)
movb -0x1a(%rbp), %dl
xorl %eax, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x388(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x1066ac
movq -0x10(%rbp), %rdi
callq 0xb1a30
subl $0x4, %eax
movl %eax, -0x39c(%rbp)
jmp 0x1066bb
movq -0x10(%rbp), %rdi
callq 0xb1a30
movl %eax, -0x39c(%rbp)
movl -0x388(%rbp), %edx
movl -0x38c(%rbp), %esi
movq -0x398(%rbp), %rdi
movl -0x39c(%rbp), %r8d
movl $0x1, %ecx
callq 0xc1320
jmp 0x1066e1
movq -0x8(%rbp), %rax
movq %rax, -0x3a8(%rbp)
leaq -0x1f0(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x97c20
jmp 0x106701
movq -0x3a8(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x97be0
jmp 0x106716
leaq -0x1f0(%rbp), %rdi
callq 0x98b30
movq -0x8(%rbp), %rax
movq %rax, -0x3b8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
addl $0x1, %eax
movl %eax, -0x3b0(%rbp)
movb -0x19(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x3ac(%rbp)
testb $0x1, -0x19(%rbp)
je 0x10676f
movq -0x10(%rbp), %rdi
callq 0xb1a30
subl $0x2, %eax
movl %eax, -0x3bc(%rbp)
jmp 0x10677e
movq -0x10(%rbp), %rdi
callq 0xb1a30
movl %eax, -0x3bc(%rbp)
movl -0x3ac(%rbp), %edx
movl -0x3b0(%rbp), %esi
movq -0x3b8(%rbp), %rdi
movl -0x3bc(%rbp), %r8d
movl $0x1, %ecx
callq 0xc1320
jmp 0x1067a4
movq -0x8(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x3c8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
movl %eax, %ecx
movl -0x3c8(%rbp), %eax
addl %ecx, %eax
subl $0x2, %eax
movl %eax, -0x3c4(%rbp)
movb -0x1a(%rbp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x3c0(%rbp)
testb $0x1, -0x1a(%rbp)
je 0x10680a
movq -0x10(%rbp), %rdi
callq 0xb1a30
subl $0x2, %eax
movl %eax, -0x3d4(%rbp)
jmp 0x106819
movq -0x10(%rbp), %rdi
callq 0xb1a30
movl %eax, -0x3d4(%rbp)
movl -0x3c0(%rbp), %edx
movl -0x3c4(%rbp), %esi
movq -0x3d0(%rbp), %rdi
movl -0x3d4(%rbp), %r8d
movl $0x1, %ecx
callq 0xc1320
jmp 0x10683f
movq -0x8(%rbp), %rax
movq %rax, -0x3e0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
addl $0x2, %eax
movl %eax, -0x3d8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a30
movq -0x3e0(%rbp), %rdi
movl -0x3d8(%rbp), %esi
movl %eax, %r8d
xorl %edx, %edx
movl $0x1, %ecx
callq 0xc1320
jmp 0x106883
movq -0x8(%rbp), %rax
movq %rax, -0x3f0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x3f4(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
movl -0x3f4(%rbp), %ecx
movl %eax, %edx
movl %ecx, %eax
movl %edx, %ecx
leal -0x3(%rax,%rcx), %eax
movl %eax, -0x3e4(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a30
movq -0x3f0(%rbp), %rdi
movl -0x3e4(%rbp), %esi
movl %eax, %r8d
xorl %edx, %edx
movl $0x1, %ecx
callq 0xc1320
jmp 0x1068e3
leaq -0x258(%rbp), %rdi
movq %rdi, -0x408(%rbp)
xorps %xmm1, %xmm1
movsd %xmm1, -0x410(%rbp)
movaps %xmm1, %xmm0
callq 0xb4510
movsd -0x410(%rbp), %xmm0
leaq -0x268(%rbp), %rdi
movq %rdi, -0x400(%rbp)
movsd 0x8d16(%rip), %xmm1 # 0x10f638
callq 0xb4510
movq -0x408(%rbp), %rsi
movq -0x400(%rbp), %rdx
leaq -0x248(%rbp), %rdi
callq 0x970d0
jmp 0x106943
leaq -0x248(%rbp), %rdi
movl $0x2, %esi
callq 0x970c0
jmp 0x106956
movq -0x18(%rbp), %rsi
leaq -0x248(%rbp), %rdi
xorps %xmm0, %xmm0
callq 0x98970
jmp 0x10696b
movq -0x18(%rbp), %rdi
movl $0x4b, %esi
callq 0xd9c00
movq %rdx, -0x420(%rbp)
movq %rax, -0x418(%rbp)
jmp 0x106989
movq -0x420(%rbp), %rax
movq -0x418(%rbp), %rcx
movq %rcx, -0x288(%rbp)
movq %rax, -0x280(%rbp)
movq -0x288(%rbp), %rax
movq -0x282(%rbp), %rcx
movq %rcx, -0x272(%rbp)
movq %rax, -0x278(%rbp)
leaq -0x248(%rbp), %rdi
movsd 0x9518(%rip), %xmm0 # 0x10fee8
leaq -0x278(%rbp), %rsi
callq 0x98970
jmp 0x1069de
movq -0x18(%rbp), %rdi
movl $0xc8, %esi
callq 0xd9c00
movq %rdx, -0x430(%rbp)
movq %rax, -0x428(%rbp)
jmp 0x1069fc
movq -0x430(%rbp), %rax
movq -0x428(%rbp), %rcx
movq %rcx, -0x2a8(%rbp)
movq %rax, -0x2a0(%rbp)
movq -0x2a8(%rbp), %rax
movq -0x2a2(%rbp), %rcx
movq %rcx, -0x292(%rbp)
movq %rax, -0x298(%rbp)
leaq -0x248(%rbp), %rdi
movsd 0x8c25(%rip), %xmm0 # 0x10f668
leaq -0x298(%rbp), %rsi
callq 0x98970
jmp 0x106a51
movq -0x18(%rbp), %rdi
movl $0x4b, %esi
callq 0xd9c00
movq %rdx, -0x440(%rbp)
movq %rax, -0x438(%rbp)
jmp 0x106a6f
movq -0x440(%rbp), %rax
movq -0x438(%rbp), %rcx
movq %rcx, -0x2c8(%rbp)
movq %rax, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rax
movq -0x2c2(%rbp), %rcx
movq %rcx, -0x2b2(%rbp)
movq %rax, -0x2b8(%rbp)
leaq -0x248(%rbp), %rdi
movsd 0x943a(%rip), %xmm0 # 0x10fef0
leaq -0x2b8(%rbp), %rsi
callq 0x98970
jmp 0x106ac4
movq -0x18(%rbp), %rsi
leaq -0x248(%rbp), %rdi
movsd 0x8b61(%rip), %xmm0 # 0x10f638
callq 0x98970
jmp 0x106ade
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x982e0
jmp 0x106aeb
movq -0x8(%rbp), %rax
movq %rax, -0x448(%rbp)
leaq -0x2d0(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x97c20
jmp 0x106b0b
movq -0x448(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x97be0
jmp 0x106b20
leaq -0x2d0(%rbp), %rdi
callq 0x98b30
movq -0x8(%rbp), %rax
movq %rax, -0x458(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e30
addl $0x3, %eax
movl %eax, -0x450(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
addl $-0x6, %eax
movl %eax, -0x44c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a30
movq -0x458(%rbp), %rdi
movl -0x450(%rbp), %esi
movl -0x44c(%rbp), %ecx
movl %eax, %r8d
xorl %edx, %edx
callq 0xc1320
jmp 0x106b83
leaq -0x248(%rbp), %rdi
callq 0x97db0
leaq -0x160(%rbp), %rdi
callq 0x97db0
leaq -0x78(%rbp), %rdi
callq 0x97db0
addq $0x460, %rsp # imm = 0x460
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x106c62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x106c56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x98b30
jmp 0x106c56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0x98b30
jmp 0x106c56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x106c4a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x2d0(%rbp), %rdi
callq 0x98b30
leaq -0x248(%rbp), %rdi
callq 0x97db0
leaq -0x160(%rbp), %rdi
callq 0x97db0
leaq -0x78(%rbp), %rdi
callq 0x97db0
movq -0xa0(%rbp), %rdi
callq 0x97810
nopw (%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/private/drawing.cpp
|
QtMWidgets::drawArrow(QPainter*, QRect const&, QColor const&)
|
void drawArrow( QPainter * p, const QRect & r,
const QColor & color )
{
const qreal width = r.width() / 3;
const qreal middle = r.height() / 2;
QPainterPath path;
path.moveTo( r.x(), r.y() );
path.lineTo( r.x() + width, r.y() );
path.lineTo( r.x() + r.width(), r.y() + middle );
path.lineTo( r.x() + width, r.y() + r.height() );
path.lineTo( r.x(), r.y() + r.height() );
path.lineTo( r.x() + r.width() - width, r.y() + middle );
path.lineTo( r.x(), r.y() );
p->setPen( color );
p->setBrush( color );
p->drawPath( path );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
cltq
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a30
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x28(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x97a50
movq -0x10(%rbp), %rdi
callq 0xb1e30
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movq -0x58(%rbp), %rdi
movsd -0x50(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
callq 0xb4310
jmp 0x107036
movq -0x10(%rbp), %rdi
callq 0xb1e30
cvtsi2sd %eax, %xmm0
movsd -0x20(%rbp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movsd -0x60(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
leaq -0x30(%rbp), %rdi
callq 0xb4360
jmp 0x10706e
movq -0x10(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x6c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
movl %eax, %ecx
movl -0x6c(%rbp), %eax
addl %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x68(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movsd -0x68(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
movsd -0x28(%rbp), %xmm2
addsd %xmm2, %xmm1
leaq -0x30(%rbp), %rdi
callq 0xb4360
jmp 0x1070b9
movq -0x10(%rbp), %rdi
callq 0xb1e30
cvtsi2sd %eax, %xmm0
movsd -0x20(%rbp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x78(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movl %eax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a30
movsd -0x78(%rbp), %xmm0
movl %eax, %ecx
movl -0x70(%rbp), %eax
addl %ecx, %eax
cvtsi2sd %eax, %xmm1
leaq -0x30(%rbp), %rdi
callq 0xb4360
jmp 0x107104
movq -0x10(%rbp), %rdi
callq 0xb1e30
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x88(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movl %eax, -0x7c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a30
movsd -0x88(%rbp), %xmm0
movl %eax, %ecx
movl -0x7c(%rbp), %eax
addl %ecx, %eax
cvtsi2sd %eax, %xmm1
leaq -0x30(%rbp), %rdi
callq 0xb4360
jmp 0x10714c
movq -0x10(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x94(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1a10
movl %eax, %ecx
movl -0x94(%rbp), %eax
addl %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd -0x20(%rbp), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, -0x90(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movsd -0x90(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
movsd -0x28(%rbp), %xmm2
addsd %xmm2, %xmm1
leaq -0x30(%rbp), %rdi
callq 0xb4360
jmp 0x1071ac
movq -0x10(%rbp), %rdi
callq 0xb1e30
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0xa0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb1e40
movsd -0xa0(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
leaq -0x30(%rbp), %rdi
callq 0xb4360
jmp 0x1071e1
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x98820
jmp 0x1071f0
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x18(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movl $0x1, %edx
callq 0x97a30
jmp 0x10720f
movq -0xa8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x97be0
jmp 0x107221
leaq -0x48(%rbp), %rdi
callq 0x98b30
movq -0x8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x97d50
jmp 0x107239
leaq -0x30(%rbp), %rdi
callq 0x984b0
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x10726e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x98b30
leaq -0x30(%rbp), %rdi
callq 0x984b0
movq -0x38(%rbp), %rdi
callq 0x97810
|
/igormironchik[P]qtmwidgets/src/private/drawing.cpp
|
QtMWidgets::SliderPrivate::grooveRect() const
|
QRect
SliderPrivate::grooveRect() const
{
const QRect cr = q->contentsRect();
int gx = 0, gy = 0, gw = 0, gh = 0;
if( q->orientation() == Qt::Vertical )
{
gx = cr.topLeft().x() + ( cr.width() - grooveHeight ) / 2;
gy = cr.topLeft().y() + 1;
gw = grooveHeight;
gh = cr.height() - 2;
}
else
{
gx = cr.topLeft().x() + 1;
gy = cr.topLeft().y() + ( cr.height() - grooveHeight ) / 2;
gw = cr.width() - 2;
gh = grooveHeight;
}
return QRect( gx, gy, gw, gh );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movq (%rax), %rdi
callq 0x979b0
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x38(%rbp)
movq (%rax), %rdi
callq 0x978e0
cmpl $0x2, %eax
jne 0x108788
leaq -0x28(%rbp), %rdi
callq 0xc7610
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xb2350
movl %eax, -0x64(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xb1a10
movq -0x60(%rbp), %rcx
subl 0xc(%rcx), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x64(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x2c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xc7610
movq %rax, -0x48(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xb2360
movl %eax, %ecx
movq -0x60(%rbp), %rax
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xb1a30
subl $0x2, %eax
movl %eax, -0x38(%rbp)
jmp 0x1087fa
leaq -0x28(%rbp), %rdi
callq 0xc7610
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xb2350
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xc7610
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xb2360
movl %eax, -0x68(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xb1a30
movq -0x60(%rbp), %rcx
subl 0xc(%rcx), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x68(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xb1a10
movl %eax, %ecx
movq -0x60(%rbp), %rax
subl $0x2, %ecx
movl %ecx, -0x34(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0x38(%rbp)
movl -0x2c(%rbp), %esi
movl -0x30(%rbp), %edx
movl -0x34(%rbp), %ecx
movl -0x38(%rbp), %r8d
leaq -0x10(%rbp), %rdi
callq 0xb1e60
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0x70, %rsp
popq %rbp
retq
nop
|
/igormironchik[P]qtmwidgets/src/slider.cpp
|
QtMWidgets::Slider::mouseMoveEvent(QMouseEvent*)
|
void
Slider::mouseMoveEvent( QMouseEvent * e )
{
if( d->pressedControl != QStyle::SC_SliderHandle )
{
e->ignore();
return;
}
e->accept();
const int newPosition = d->pixelPosToRangeValue(
d->pick( e->pos() ) - d->clickOffset );
setSliderPosition( newPosition );
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
addq $0x28, %rdi
callq 0x1096b0
cmpl $0x2, 0x10(%rax)
je 0x1095c2
movq -0x10(%rbp), %rdi
callq 0xb44f0
jmp 0x109635
movq -0x10(%rbp), %rdi
callq 0xb44d0
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
callq 0x1096b0
movq -0x28(%rbp), %rdi
movq %rax, -0x30(%rbp)
addq $0x28, %rdi
callq 0x1096b0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb4490
movq -0x40(%rbp), %rdi
movq %rax, -0x1c(%rbp)
leaq -0x1c(%rbp), %rsi
callq 0x109770
movq -0x28(%rbp), %rdi
movl %eax, -0x34(%rbp)
addq $0x28, %rdi
callq 0x1096b0
movl -0x34(%rbp), %esi
movq -0x30(%rbp), %rdi
subl 0x14(%rax), %esi
callq 0x1085d0
movq -0x28(%rbp), %rdi
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %esi
callq 0x98630
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/slider.cpp
|
QtMWidgets::BusyIndicatorPrivate::init()
|
void
BusyIndicatorPrivate::init()
{
animation = new QVariantAnimation( q );
animation->setStartValue( 0.0 );
animation->setEndValue( 359.0 );
animation->setDuration( 1000 );
animation->setLoopCount( -1 );
QObject::connect( animation, &QVariantAnimation::valueChanged,
q, &BusyIndicator::_q_update );
color = q->palette().color( QPalette::Highlight );
animation->start();
}
|
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movl $0x10, %edi
callq 0x980d0
movq %rax, %rdi
movq -0x90(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x88(%rbp)
movq (%rax), %rsi
callq 0x984e0
jmp 0x109862
movq -0x90(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rcx, 0x20(%rax)
movq 0x20(%rax), %rax
movq %rax, -0xa0(%rbp)
leaq -0x38(%rbp), %rdi
movq %rdi, -0x98(%rbp)
xorps %xmm0, %xmm0
callq 0x97b40
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x979f0
jmp 0x1098a7
leaq -0x38(%rbp), %rdi
callq 0x97690
movq -0x90(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xb0(%rbp)
leaq -0x58(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
movsd 0x6633(%rip), %xmm0 # 0x10ff08
callq 0x97b40
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x98890
jmp 0x1098ef
leaq -0x58(%rbp), %rdi
callq 0x97690
movq -0x90(%rbp), %rax
movq 0x20(%rax), %rdi
movl $0x3e8, %esi # imm = 0x3E8
callq 0x98080
movq -0x90(%rbp), %rax
movq 0x20(%rax), %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x972d0
movq -0x90(%rbp), %rax
movq (%rax), %r8
movq 0x20(%rax), %rsi
movq 0x395e9(%rip), %rax # 0x142f20
movq %rax, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x70(%rbp), %rdx
movq -0x68(%rbp), %rcx
leaq 0xde(%rip), %rax # 0x109a30
movq %rax, -0x80(%rbp)
movq $0x0, -0x78(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rax
xorl %r9d, %r9d
movq (%rax), %r10
movq %r10, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x10a340
leaq -0x60(%rbp), %rdi
callq 0x977f0
movq -0x90(%rbp), %rax
movq (%rax), %rdi
callq 0x97f10
movq %rax, %rdi
movl $0xc, %esi
callq 0xb18c0
movq %rax, %rcx
movq -0x90(%rbp), %rax
movq (%rcx), %rdx
movq %rdx, 0x28(%rax)
movl 0x8(%rcx), %edx
movl %edx, 0x30(%rax)
movw 0xc(%rcx), %cx
movw %cx, 0x34(%rax)
movq 0x20(%rax), %rdi
xorl %esi, %esi
callq 0x97e60
addq $0xc0, %rsp
popq %rbp
retq
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
movl $0x10, %esi
callq 0x971b0
jmp 0x109a21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x97690
jmp 0x109a21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x97690
movq -0x10(%rbp), %rdi
callq 0x97810
nopw (%rax,%rax)
|
/igormironchik[P]qtmwidgets/src/busyindicator.cpp
|
mbedtls_x509_get_ext
|
int mbedtls_x509_get_ext( unsigned char **p, const unsigned char *end,
mbedtls_x509_buf *ext, int tag )
{
int ret;
size_t len;
if( *p == end )
return( 0 );
ext->tag = **p;
if( ( ret = mbedtls_asn1_get_tag( p, end, &ext->len,
MBEDTLS_ASN1_CONTEXT_SPECIFIC | MBEDTLS_ASN1_CONSTRUCTED | tag ) ) != 0 )
return( ret );
ext->p = *p;
end = *p + ext->len;
/*
* Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension
*
* Extension ::= SEQUENCE {
* extnID OBJECT IDENTIFIER,
* critical BOOLEAN DEFAULT FALSE,
* extnValue OCTET STRING }
*/
if( ( ret = mbedtls_asn1_get_tag( p, end, &len,
MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE ) ) != 0 )
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS + ret );
if( end != *p + len )
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS +
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH );
return( 0 );
}
|
movq (%rdi), %rax
cmpq %rsi, %rax
je 0xda22
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movzbl (%rax), %eax
movl %eax, (%rdx)
addq $0x8, %rdx
orl $0xa0, %ecx
callq 0x10b1a
testl %eax, %eax
jne 0xda3a
movq (%rbx), %rax
movq %rax, 0x10(%r14)
movq (%rbx), %r15
addq 0x8(%r14), %r15
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movl $0x30, %ecx
callq 0x10b1a
testl %eax, %eax
je 0xda25
addl $0xffffdb00, %eax # imm = 0xFFFFDB00
jmp 0xda3a
xorl %eax, %eax
retq
movq (%rbx), %rax
addq 0x8(%rsp), %rax
xorl %ecx, %ecx
cmpq %rax, %r15
movl $0xffffda9a, %eax # imm = 0xFFFFDA9A
cmovel %ecx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
/project-everest[P]mbedtls/library/x509.c
|
mbedtls_x509_dn_gets
|
int mbedtls_x509_dn_gets( char *buf, size_t size, const mbedtls_x509_name *dn )
{
int ret;
size_t i, n;
unsigned char c, merge = 0;
const mbedtls_x509_name *name;
const char *short_name = NULL;
char s[MBEDTLS_X509_MAX_DN_NAME_SIZE], *p;
memset( s, 0, sizeof( s ) );
name = dn;
p = buf;
n = size;
while( name != NULL )
{
if( !name->oid.p )
{
name = name->next;
continue;
}
if( name != dn )
{
ret = mbedtls_snprintf( p, n, merge ? " + " : ", " );
MBEDTLS_X509_SAFE_SNPRINTF;
}
ret = mbedtls_oid_get_attr_short_name( &name->oid, &short_name );
if( ret == 0 )
ret = mbedtls_snprintf( p, n, "%s=", short_name );
else
ret = mbedtls_snprintf( p, n, "\?\?=" );
MBEDTLS_X509_SAFE_SNPRINTF;
for( i = 0; i < name->val.len; i++ )
{
if( i >= sizeof( s ) - 1 )
break;
c = name->val.p[i];
if( c < 32 || c == 127 || ( c > 128 && c < 160 ) )
s[i] = '?';
else s[i] = c;
}
s[i] = '\0';
ret = mbedtls_snprintf( p, n, "%s", s );
MBEDTLS_X509_SAFE_SNPRINTF;
merge = name->next_merged;
name = name->next;
}
return( (int) ( size - n ) );
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r15
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movl $0x100, %edx # imm = 0x100
xorl %esi, %esi
callq 0xc0e0
movq %rbx, %r12
testq %rbp, %rbp
je 0xdbc6
movq %rbp, %r14
xorl %eax, %eax
movq %rbx, %r12
cmpq $0x0, 0x10(%r14)
jne 0xdaa1
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0xda8c
jmp 0xdbc6
cmpq %rbp, %r14
je 0xdae3
testb %al, %al
leaq 0x247a4(%rip), %rdx # 0x32253
leaq 0x247a1(%rip), %rax # 0x32257
cmoveq %rax, %rdx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0xc0d0
movl $0xffffd680, %r13d # imm = 0xFFFFD680
testl %eax, %eax
js 0xdbcc
movl %eax, %eax
subq %rax, %r12
jbe 0xdbcc
addq %rax, %r15
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x16084
testl %eax, %eax
je 0xdb0a
movq %r15, %rdi
movq %r12, %rsi
leaq 0x2475d(%rip), %rdx # 0x3225e
xorl %eax, %eax
callq 0xc0d0
jmp 0xdb23
movq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r12, %rsi
leaq 0x2473e(%rip), %rdx # 0x3225a
xorl %eax, %eax
callq 0xc0d0
movl $0xffffd680, %r13d # imm = 0xFFFFD680
testl %eax, %eax
js 0xdbcc
movl %eax, %eax
subq %rax, %r12
jbe 0xdbcc
cmpq $0x0, 0x20(%r14)
je 0xdb8c
xorl %ecx, %ecx
movq 0x28(%r14), %rdx
movzbl (%rdx,%rcx), %edx
leal 0x7f(%rdx), %r8d
movl $0x3f, %esi
movl $0x3f, %edi
cmpb $0x1f, %r8b
jb 0xdb63
movl %edx, %edi
cmpb $0x7f, %dl
cmovel %esi, %edi
cmpb $0x20, %dl
cmovbl %esi, %edi
movb %dil, 0x10(%rsp,%rcx)
leaq 0x1(%rcx), %rdx
cmpq $0xfd, %rcx
ja 0xdb8e
movq %rdx, %rcx
cmpq 0x20(%r14), %rdx
jb 0xdb45
jmp 0xdb8e
xorl %edx, %edx
addq %rax, %r15
movb $0x0, 0x10(%rsp,%rdx)
movq %r15, %rdi
movq %r12, %rsi
leaq 0x247d6(%rip), %rdx # 0x32379
leaq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0xc0d0
testl %eax, %eax
js 0xdbcc
movl %eax, %eax
subq %rax, %r12
jbe 0xdbcc
addq %rax, %r15
movb 0x38(%r14), %al
jmp 0xda93
subl %r12d, %ebx
movl %ebx, %r13d
movl %r13d, %eax
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/project-everest[P]mbedtls/library/x509.c
|
mbedtls_x509_serial_gets
|
int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial )
{
int ret;
size_t i, n, nr;
char *p;
p = buf;
n = size;
nr = ( serial->len <= 32 )
? serial->len : 28;
for( i = 0; i < nr; i++ )
{
if( i == 0 && nr > 1 && serial->p[i] == 0x0 )
continue;
ret = mbedtls_snprintf( p, n, "%02X%s",
serial->p[i], ( i < nr - 1 ) ? ":" : "" );
MBEDTLS_X509_SAFE_SNPRINTF;
}
if( nr != serial->len )
{
ret = mbedtls_snprintf( p, n, "...." );
MBEDTLS_X509_SAFE_SNPRINTF;
}
return( (int) ( size - n ) );
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdx), %rax
cmpq $0x21, %rax
movl $0x1c, %ebp
cmovbq %rax, %rbp
testq %rbp, %rbp
movq %rsi, (%rsp)
je 0xdc81
leaq -0x1(%rbp), %rbx
xorl %r13d, %r13d
cmpq $0x1, %rbp
sete %al
testq %r13, %r13
setne %cl
orb %al, %cl
jne 0xdc31
movq 0x10(%r12), %rax
cmpb $0x0, (%rax)
je 0xdc79
movq 0x10(%r12), %rax
movzbl (%rax,%r13), %ecx
cmpq %rbx, %r13
leaq 0x2a5d0(%rip), %r8 # 0x38215
leaq 0x245a4(%rip), %rax # 0x321f0
cmovbq %rax, %r8
movq %r15, %rdi
movq %r14, %rsi
leaq 0x24605(%rip), %rdx # 0x32262
xorl %eax, %eax
callq 0xc0d0
movl %eax, %ecx
movl $0xffffd680, %eax # imm = 0xFFFFD680
testl %ecx, %ecx
js 0xdcb5
movl %ecx, %ecx
subq %rcx, %r14
jbe 0xdcb5
addq %rcx, %r15
incq %r13
cmpq %r13, %rbp
jne 0xdc16
cmpq 0x8(%r12), %rbp
je 0xdcae
leaq 0x245da(%rip), %rdx # 0x32269
movq %r15, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0xc0d0
movl %eax, %ecx
movl $0xffffd680, %eax # imm = 0xFFFFD680
testl %ecx, %ecx
js 0xdcb5
movl %ecx, %ecx
subq %rcx, %r14
jbe 0xdcb5
movq (%rsp), %rax
subl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/project-everest[P]mbedtls/library/x509.c
|
mbedtls_x509_sig_alg_gets
|
int mbedtls_x509_sig_alg_gets( char *buf, size_t size, const mbedtls_x509_buf *sig_oid,
mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,
const void *sig_opts )
{
int ret;
char *p = buf;
size_t n = size;
const char *desc = NULL;
ret = mbedtls_oid_get_sig_alg_desc( sig_oid, &desc );
if( ret != 0 )
ret = mbedtls_snprintf( p, n, "???" );
else
ret = mbedtls_snprintf( p, n, "%s", desc );
MBEDTLS_X509_SAFE_SNPRINTF;
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
if( pk_alg == MBEDTLS_PK_RSASSA_PSS )
{
const mbedtls_pk_rsassa_pss_options *pss_opts;
const mbedtls_md_info_t *md_info, *mgf_md_info;
pss_opts = (const mbedtls_pk_rsassa_pss_options *) sig_opts;
md_info = mbedtls_md_info_from_type( md_alg );
mgf_md_info = mbedtls_md_info_from_type( pss_opts->mgf1_hash_id );
ret = mbedtls_snprintf( p, n, " (%s, MGF1-%s, 0x%02X)",
md_info ? mbedtls_md_get_name( md_info ) : "???",
mgf_md_info ? mbedtls_md_get_name( mgf_md_info ) : "???",
pss_opts->expected_salt_len );
MBEDTLS_X509_SAFE_SNPRINTF;
}
#else
((void) pk_alg);
((void) md_alg);
((void) sig_opts);
#endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
return( (int)( size - n ) );
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movl %r8d, %r13d
movl %ecx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq %rdx, %rdi
callq 0x161d0
testl %eax, %eax
je 0xdd0f
leaq 0x2456e(%rip), %rdx # 0x3226e
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0xc0d0
jmp 0xdd28
movq 0x10(%rsp), %rcx
leaq 0x2465e(%rip), %rdx # 0x32379
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0xc0d0
movl $0xffffd680, %ebp # imm = 0xFFFFD680
testl %eax, %eax
js 0xddea
movl %r13d, %edi
movq %r12, 0x8(%rsp)
movl %eax, %r13d
movq %rbx, %r12
subq %r13, %r12
jbe 0xddea
cmpl $0x6, %r15d
jne 0xdde5
callq 0x158bf
movq %rax, %r15
movq 0x8(%rsp), %rax
movl (%rax), %edi
callq 0x158bf
leaq 0x244fd(%rip), %r8 # 0x3226e
movq %r8, %rcx
testq %r15, %r15
je 0xdd91
movq %r15, %rdi
movq %rax, %r15
callq 0x15ea9
leaq 0x244e3(%rip), %r8 # 0x3226e
movq %rax, %rcx
movq %r15, %rax
addq %r13, %r14
testq %rax, %rax
je 0xddaa
movq %rax, %rdi
movq %rcx, %r15
callq 0x15ea9
movq %r15, %rcx
movq %rax, %r8
movq 0x8(%rsp), %rax
movl 0x4(%rax), %r9d
leaq 0x244b8(%rip), %rdx # 0x32272
xorl %r15d, %r15d
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0xc0d0
testl %eax, %eax
setns %cl
movl %eax, %eax
cmpq %rax, %r12
seta %dl
andb %cl, %dl
cmovneq %rax, %r15
cmpb $0x1, %dl
jne 0xddea
subq %r15, %r12
subl %r12d, %ebx
movl %ebx, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/project-everest[P]mbedtls/library/x509.c
|
mbedtls_x509_key_size_helper
|
int mbedtls_x509_key_size_helper( char *buf, size_t buf_size, const char *name )
{
char *p = buf;
size_t n = buf_size;
int ret;
ret = mbedtls_snprintf( p, n, "%s key size", name );
MBEDTLS_X509_SAFE_SNPRINTF;
return( 0 );
}
|
pushq %rbp
pushq %rbx
pushq %rax
movq %rdx, %rcx
movq %rsi, %rbx
leaq 0x2447e(%rip), %rdx # 0x32289
xorl %ebp, %ebp
xorl %eax, %eax
callq 0xc0d0
movl %eax, %ecx
cmpq %rbx, %rcx
movl $0xffffd680, %ecx # imm = 0xFFFFD680
cmovael %ecx, %ebp
testl %eax, %eax
cmovsl %ecx, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
/project-everest[P]mbedtls/library/x509.c
|
x509_get_current_time
|
static int x509_get_current_time( mbedtls_x509_time *now )
{
struct tm *lt;
mbedtls_time_t tt;
int ret = 0;
#if defined(MBEDTLS_THREADING_C)
if( mbedtls_mutex_lock( &mbedtls_threading_gmtime_mutex ) != 0 )
return( MBEDTLS_ERR_THREADING_MUTEX_ERROR );
#endif
tt = mbedtls_time( NULL );
lt = gmtime( &tt );
if( lt == NULL )
ret = -1;
else
{
now->year = lt->tm_year + 1900;
now->mon = lt->tm_mon + 1;
now->day = lt->tm_mday;
now->hour = lt->tm_hour;
now->min = lt->tm_min;
now->sec = lt->tm_sec;
}
#if defined(MBEDTLS_THREADING_C)
if( mbedtls_mutex_unlock( &mbedtls_threading_gmtime_mutex ) != 0 )
return( MBEDTLS_ERR_THREADING_MUTEX_ERROR );
#endif
return( ret );
}
|
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %ebx, %ebx
xorl %edi, %edi
callq 0xc160
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0xc1c0
testq %rax, %rax
je 0xdeb0
movl $0x76c, %ecx # imm = 0x76C
addl 0x14(%rax), %ecx
movl %ecx, (%r14)
movl 0x10(%rax), %ecx
incl %ecx
movl %ecx, 0x4(%r14)
movl 0xc(%rax), %ecx
movl %ecx, 0x8(%r14)
movl 0x8(%rax), %ecx
movl %ecx, 0xc(%r14)
movl 0x4(%rax), %ecx
movl %ecx, 0x10(%r14)
movl (%rax), %eax
movl %eax, 0x14(%r14)
jmp 0xdeb5
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
/project-everest[P]mbedtls/library/x509.c
|
x509_check_time
|
static int x509_check_time( const mbedtls_x509_time *before, const mbedtls_x509_time *after )
{
if( before->year > after->year )
return( 1 );
if( before->year == after->year &&
before->mon > after->mon )
return( 1 );
if( before->year == after->year &&
before->mon == after->mon &&
before->day > after->day )
return( 1 );
if( before->year == after->year &&
before->mon == after->mon &&
before->day == after->day &&
before->hour > after->hour )
return( 1 );
if( before->year == after->year &&
before->mon == after->mon &&
before->day == after->day &&
before->hour == after->hour &&
before->min > after->min )
return( 1 );
if( before->year == after->year &&
before->mon == after->mon &&
before->day == after->day &&
before->hour == after->hour &&
before->min == after->min &&
before->sec > after->sec )
return( 1 );
return( 0 );
}
|
movl (%rdi), %ecx
movl (%rsi), %edx
movl $0x1, %eax
cmpl %edx, %ecx
jg 0xdf7c
jne 0xdf7a
movl 0x4(%rdi), %r8d
cmpl 0x4(%rsi), %r8d
jg 0xdf7c
cmpl %edx, %ecx
jne 0xdf7a
movl 0x4(%rdi), %r8d
cmpl 0x4(%rsi), %r8d
jne 0xdf00
movl 0x8(%rdi), %r8d
cmpl 0x8(%rsi), %r8d
jg 0xdf7c
cmpl %edx, %ecx
jne 0xdf7a
movl 0x4(%rdi), %r8d
cmpl 0x4(%rsi), %r8d
jne 0xdf22
movl 0x8(%rdi), %r8d
cmpl 0x8(%rsi), %r8d
jne 0xdf22
movl 0xc(%rdi), %r8d
cmpl 0xc(%rsi), %r8d
jg 0xdf7c
cmpl %edx, %ecx
jne 0xdf7a
movl 0x4(%rdi), %r8d
cmpl 0x4(%rsi), %r8d
jne 0xdf4e
movl 0x8(%rdi), %r8d
cmpl 0x8(%rsi), %r8d
jne 0xdf4e
movl 0xc(%rdi), %r8d
cmpl 0xc(%rsi), %r8d
jne 0xdf4e
movl 0x10(%rdi), %r8d
cmpl 0x10(%rsi), %r8d
jg 0xdf7c
cmpl %edx, %ecx
jne 0xdf7a
movl 0x4(%rdi), %ecx
cmpl 0x4(%rsi), %ecx
jne 0xdf7a
movl 0x8(%rdi), %ecx
cmpl 0x8(%rsi), %ecx
jne 0xdf7a
movl 0xc(%rdi), %ecx
cmpl 0xc(%rsi), %ecx
jne 0xdf7a
movl 0x10(%rdi), %ecx
cmpl 0x10(%rsi), %ecx
jne 0xdf7a
movl 0x14(%rdi), %ecx
cmpl 0x14(%rsi), %ecx
jg 0xdf7c
xorl %eax, %eax
retq
|
/project-everest[P]mbedtls/library/x509.c
|
mbedtls_x509_self_test
|
int mbedtls_x509_self_test( int verbose )
{
#if defined(MBEDTLS_CERTS_C) && defined(MBEDTLS_SHA256_C)
int ret;
uint32_t flags;
mbedtls_x509_crt cacert;
mbedtls_x509_crt clicert;
if( verbose != 0 )
mbedtls_printf( " X.509 certificate load: " );
mbedtls_x509_crt_init( &clicert );
ret = mbedtls_x509_crt_parse( &clicert, (const unsigned char *) mbedtls_test_cli_crt,
mbedtls_test_cli_crt_len );
if( ret != 0 )
{
if( verbose != 0 )
mbedtls_printf( "failed\n" );
return( ret );
}
mbedtls_x509_crt_init( &cacert );
ret = mbedtls_x509_crt_parse( &cacert, (const unsigned char *) mbedtls_test_ca_crt,
mbedtls_test_ca_crt_len );
if( ret != 0 )
{
if( verbose != 0 )
mbedtls_printf( "failed\n" );
return( ret );
}
if( verbose != 0 )
mbedtls_printf( "passed\n X.509 signature verify: ");
ret = mbedtls_x509_crt_verify( &clicert, &cacert, NULL, NULL, &flags, NULL, NULL );
if( ret != 0 )
{
if( verbose != 0 )
mbedtls_printf( "failed\n" );
return( ret );
}
if( verbose != 0 )
mbedtls_printf( "passed\n\n");
mbedtls_x509_crt_free( &cacert );
mbedtls_x509_crt_free( &clicert );
return( 0 );
#else
((void) verbose);
return( 0 );
#endif /* MBEDTLS_CERTS_C && MBEDTLS_SHA1_C */
}
|
pushq %rbp
pushq %r14
pushq %rbx
subq $0x460, %rsp # imm = 0x460
movl %edi, %ebx
testl %edi, %edi
je 0xdfcc
leaq 0x242d0(%rip), %rdi # 0x32295
xorl %eax, %eax
callq 0xc0c0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0xe761
leaq 0x3d178(%rip), %rax # 0x4b158
movq (%rax), %rsi
leaq 0x293ee(%rip), %rax # 0x373d8
movq (%rax), %rdx
movq %r14, %rdi
callq 0xe76d
testl %eax, %eax
jne 0xe065
leaq 0x238(%rsp), %r14
movq %r14, %rdi
callq 0xe761
leaq 0x3d120(%rip), %rax # 0x4b130
movq (%rax), %rsi
leaq 0x29396(%rip), %rax # 0x373b0
movq (%rax), %rdx
movq %r14, %rdi
callq 0xe76d
testl %eax, %eax
jne 0xe065
testl %ebx, %ebx
je 0xe03b
leaq 0x2427c(%rip), %rdi # 0x322b0
xorl %eax, %eax
callq 0xc0c0
movq $0x0, (%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x238(%rsp), %rsi
leaq 0xc(%rsp), %r8
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0xf8cc
testl %eax, %eax
je 0xe085
movl %eax, %ebp
testl %ebx, %ebx
je 0xe077
leaq 0x2b474(%rip), %rdi # 0x394e6
callq 0xc050
movl %ebp, %eax
addq $0x460, %rsp # imm = 0x460
popq %rbx
popq %r14
popq %rbp
retq
testl %ebx, %ebx
je 0xe095
leaq 0x24242(%rip), %rdi # 0x322d2
callq 0xc050
leaq 0x238(%rsp), %rdi
callq 0xff21
leaq 0x10(%rsp), %rdi
callq 0xff21
xorl %ebp, %ebp
jmp 0xe077
|
/project-everest[P]mbedtls/library/x509.c
|
x509_date_is_valid
|
static int x509_date_is_valid(const mbedtls_x509_time *t )
{
int ret = MBEDTLS_ERR_X509_INVALID_DATE;
int month_len;
CHECK_RANGE( 0, 9999, t->year );
CHECK_RANGE( 0, 23, t->hour );
CHECK_RANGE( 0, 59, t->min );
CHECK_RANGE( 0, 59, t->sec );
switch( t->mon )
{
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
month_len = 31;
break;
case 4: case 6: case 9: case 11:
month_len = 30;
break;
case 2:
if( ( !( t->year % 4 ) && t->year % 100 ) ||
!( t->year % 400 ) )
month_len = 29;
else
month_len = 28;
break;
default:
return( ret );
}
CHECK_RANGE( 1, month_len, t->day );
return( 0 );
}
|
movl (%rdi), %ecx
movl $0xffffdc00, %eax # imm = 0xFFFFDC00
cmpl $0x270f, %ecx # imm = 0x270F
ja 0xe10d
cmpl $0x17, 0xc(%rdi)
ja 0xe10d
cmpl $0x3b, 0x10(%rdi)
ja 0xe10d
cmpl $0x3b, 0x14(%rdi)
ja 0xe10d
movl 0x4(%rdi), %esi
cmpl $0xc, %esi
ja 0xe10d
movl $0x1f, %edx
movl $0x15aa, %r8d # imm = 0x15AA
btl %esi, %r8d
jb 0xe0f9
movl $0xa50, %edx # imm = 0xA50
btl %esi, %edx
jae 0xe10e
movl $0x1e, %edx
movl 0x8(%rdi), %ecx
xorl %eax, %eax
cmpl %edx, %ecx
movl $0xffffdc00, %edx # imm = 0xFFFFDC00
cmovgl %edx, %eax
testl %ecx, %ecx
cmovlel %edx, %eax
retq
cmpl $0x2, %esi
jne 0xe10d
testb $0x3, %cl
jne 0xe133
movl %ecx, %eax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
shrq $0x25, %rax
imull $0x64, %eax, %eax
movl %ecx, %esi
movl $0x1d, %edx
subl %eax, %esi
jne 0xe0f9
imull $0xc28f5c29, %ecx, %eax # imm = 0xC28F5C29
rorl $0x4, %eax
xorl %edx, %edx
cmpl $0xa3d70b, %eax # imm = 0xA3D70B
adcl $0x1c, %edx
jmp 0xe0f9
|
/project-everest[P]mbedtls/library/x509.c
|
mbedtls_x509_crt_parse_file
|
int mbedtls_x509_crt_parse_file( mbedtls_x509_crt *chain, const char *path )
{
int ret;
size_t n;
unsigned char *buf;
if( ( ret = mbedtls_pk_load_file( path, &buf, &n ) ) != 0 )
return( ret );
ret = mbedtls_x509_crt_parse( chain, buf, n );
mbedtls_zeroize( buf, n );
mbedtls_free( buf );
return( ret );
}
|
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rax
movq %rdi, %r14
leaq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x17d40
movl %eax, %ebx
testl %eax, %eax
jne 0xea18
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xe76d
movl %eax, %ebx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xea0e
movq 0x8(%rsp), %rcx
xorl %edx, %edx
movb $0x0, (%rcx,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0xea02
movq 0x8(%rsp), %rdi
callq 0xc030
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
|
/project-everest[P]mbedtls/library/x509_crt.c
|
mbedtls_mpi_mod_mpi
|
int mbedtls_mpi_mod_mpi( mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B )
{
int ret;
if( mbedtls_mpi_cmp_int( B, 0 ) < 0 )
return( MBEDTLS_ERR_MPI_NEGATIVE_VALUE );
MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( NULL, R, A, B ) );
while( mbedtls_mpi_cmp_int( R, 0 ) < 0 )
MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( R, R, B ) );
while( mbedtls_mpi_cmp_mpi( R, B ) >= 0 )
MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( R, R, B ) );
cleanup:
return( ret );
}
|
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x8(%rsp), %r12
movq $0x0, (%r12)
leaq 0x10(%rsp), %rsi
movl $0x1, (%rsi)
movq $0x1, 0x8(%rsi)
movq %r12, 0x10(%rsi)
movq %rdx, %rdi
callq 0x1220c
testl %eax, %eax
js 0x1340e
xorl %edi, %edi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x12b64
testl %eax, %eax
jne 0x13413
leaq 0x10(%rsp), %r15
movq $0x0, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq $0x1, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1220c
testl %eax, %eax
jns 0x133fb
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12538
testl %eax, %eax
je 0x133a7
jmp 0x13413
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x125a6
testl %eax, %eax
jne 0x13413
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1220c
testl %eax, %eax
jns 0x133e9
xorl %eax, %eax
jmp 0x13413
movl $0xfffffff6, %eax # imm = 0xFFFFFFF6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
/project-everest[P]mbedtls/library/bignum.c
|
mbedtls_mpi_fill_random
|
int mbedtls_mpi_fill_random( mbedtls_mpi *X, size_t size,
int (*f_rng)(void *, unsigned char *, size_t),
void *p_rng )
{
int ret;
unsigned char buf[MBEDTLS_MPI_MAX_SIZE];
if( size > MBEDTLS_MPI_MAX_SIZE )
return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA );
MBEDTLS_MPI_CHK( f_rng( p_rng, buf, size ) );
MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( X, buf, size ) );
cleanup:
mbedtls_zeroize( buf, sizeof( buf ) );
return( ret );
}
|
movl $0xfffffffc, %eax # imm = 0xFFFFFFFC
cmpq $0x400, %rsi # imm = 0x400
ja 0x14165
pushq %r14
pushq %rbx
subq $0x408, %rsp # imm = 0x408
movq %rdx, %r8
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %rsi
movq %rcx, %rdi
movq %rbx, %rdx
callq *%r8
testl %eax, %eax
jne 0x14149
movq %rsp, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x11e37
xorl %ecx, %ecx
movb $0x0, (%rsp,%rcx)
incq %rcx
cmpq $0x400, %rcx # imm = 0x400
jne 0x1414b
addq $0x408, %rsp # imm = 0x408
popq %rbx
popq %r14
retq
|
/project-everest[P]mbedtls/library/bignum.c
|
get_one_and_zeros_padding
|
static int get_one_and_zeros_padding( unsigned char *input, size_t input_len,
size_t *data_len )
{
size_t i;
unsigned char done = 0, prev_done, bad;
if( NULL == input || NULL == data_len )
return( MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA );
bad = 0x80;
*data_len = 0;
for( i = input_len; i > 0; i-- )
{
prev_done = done;
done |= ( input[i - 1] != 0 );
*data_len |= ( i - 1 ) * ( done != prev_done );
bad ^= input[i - 1] * ( done != prev_done );
}
return( MBEDTLS_ERR_CIPHER_INVALID_PADDING * ( bad != 0 ) );
}
|
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
movl $0xffff9f00, %eax # imm = 0xFFFF9F00
jne 0x2e3d4
movq $0x0, (%rdx)
testq %rsi, %rsi
je 0x2e3d5
movq (%rdx), %rax
decq %rsi
xorl %r9d, %r9d
movb $-0x80, %r10b
xorl %r8d, %r8d
cmpb $0x0, (%rdi,%rsi)
movl %r10d, %ecx
setne %r8b
orl %r9d, %r8d
cmpl %r9d, %r8d
je 0x2e39f
movq %rsi, %r10
jmp 0x2e3a2
xorl %r10d, %r10d
orq %r10, %rax
movq %rax, (%rdx)
movl $0x0, %r11d
cmpl %r9d, %r8d
je 0x2e3b8
movzbl (%rdi,%rsi), %r11d
movl %r11d, %r10d
xorb %cl, %r10b
movl %r8d, %r9d
addq $-0x1, %rsi
jb 0x2e384
xorl %edx, %edx
cmpb %cl, %r11b
movl $0xffff9e00, %eax # imm = 0xFFFF9E00
cmovel %edx, %eax
retq
movl $0xffff9e00, %eax # imm = 0xFFFF9E00
retq
|
/project-everest[P]mbedtls/library/cipher.c
|
mbedtls_camellia_setkey_dec
|
int mbedtls_camellia_setkey_dec( mbedtls_camellia_context *ctx, const unsigned char *key,
unsigned int keybits )
{
int idx, ret;
size_t i;
mbedtls_camellia_context cty;
uint32_t *RK;
uint32_t *SK;
mbedtls_camellia_init( &cty );
/* Also checks keybits */
if( ( ret = mbedtls_camellia_setkey_enc( &cty, key, keybits ) ) != 0 )
goto exit;
ctx->nr = cty.nr;
idx = ( ctx->nr == 4 );
RK = ctx->rk;
SK = cty.rk + 24 * 2 + 8 * idx * 2;
*RK++ = *SK++;
*RK++ = *SK++;
*RK++ = *SK++;
*RK++ = *SK++;
for( i = 22 + 8 * idx, SK -= 6; i > 0; i--, SK -= 4 )
{
*RK++ = *SK++;
*RK++ = *SK++;
}
SK -= 2;
*RK++ = *SK++;
*RK++ = *SK++;
*RK++ = *SK++;
*RK++ = *SK++;
exit:
mbedtls_camellia_free( &cty );
return( ret );
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4(%rsp), %r15
movl $0x114, %edx # imm = 0x114
movq %r15, %rdi
xorl %esi, %esi
callq 0xc0e0
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x2ff77
testl %eax, %eax
jne 0x30786
movl 0x4(%rsp), %ecx
movl %ecx, (%rbx)
xorl %edx, %edx
cmpl $0x4, %ecx
sete %dl
leal (,%rdx,8), %ecx
shll $0x6, %edx
movl 0xc8(%rsp,%rdx), %esi
movl %esi, 0x4(%rbx)
movl 0xcc(%rsp,%rdx), %esi
movl %esi, 0x8(%rbx)
movl 0xd0(%rsp,%rdx), %esi
movl %esi, 0xc(%rbx)
movl 0xd4(%rsp,%rdx), %edx
movl %edx, 0x10(%rbx)
addq $0x14, %rbx
movq %rbx, %rdx
movl 0xc0(%rsp,%rcx,8), %esi
movl %esi, (%rbx)
movl 0xc4(%rsp,%rcx,8), %esi
movl %esi, 0x4(%rbx)
decq %rcx
addq $0x8, %rbx
cmpq $-0x16, %rcx
jne 0x3073b
movl 0xb8(%rsp,%rcx,8), %esi
movl %esi, 0x8(%rdx)
movl 0xbc(%rsp,%rcx,8), %esi
movl %esi, 0xc(%rdx)
movl 0xc0(%rsp,%rcx,8), %esi
movl %esi, 0x10(%rdx)
movl 0xc4(%rsp,%rcx,8), %ecx
movl %ecx, 0x14(%rdx)
xorl %ecx, %ecx
movb $0x0, 0x4(%rsp,%rcx)
incq %rcx
cmpq $0x114, %rcx # imm = 0x114
jne 0x30788
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
/project-everest[P]mbedtls/library/camellia.c
|
mbedtls_ccm_setkey
|
int mbedtls_ccm_setkey( mbedtls_ccm_context *ctx,
mbedtls_cipher_id_t cipher,
const unsigned char *key,
unsigned int keybits )
{
int ret;
const mbedtls_cipher_info_t *cipher_info;
cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, MBEDTLS_MODE_ECB );
if( cipher_info == NULL )
return( MBEDTLS_ERR_CCM_BAD_INPUT );
if( cipher_info->block_size != 16 )
return( MBEDTLS_ERR_CCM_BAD_INPUT );
mbedtls_cipher_free( &ctx->cipher_ctx );
if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 )
return( ret );
if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits,
MBEDTLS_ENCRYPT ) ) != 0 )
{
return( ret );
}
return( 0 );
}
|
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %edi
movl %ecx, %esi
movl $0x1, %edx
callq 0x2dc27
movq %rax, %r12
movl $0xfffffff3, %eax # imm = 0xFFFFFFF3
testq %r12, %r12
je 0x3110d
cmpl $0x10, 0x20(%r12)
jne 0x3110d
movq %r15, %rdi
callq 0x2dc7c
movq %r15, %rdi
movq %r12, %rsi
callq 0x2dca9
testl %eax, %eax
je 0x31119
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2dd67
|
/project-everest[P]mbedtls/library/ccm.c
|
parse_error
|
static void parse_error(VrplibParser *p, char *fmt, ...) {
fprintf(stderr, "%s:%d: error: ", p->filename, p->curline);
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
}
|
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
testb %al, %al
je 0x24a9
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
leaq 0x20(%rsp), %r14
movq %rdx, 0x10(%r14)
movq %rcx, 0x18(%r14)
movq %r8, 0x20(%r14)
movq %r9, 0x28(%r14)
movq 0xbb2b(%rip), %r15 # 0xdff0
movq (%r15), %rax
movq (%rdi), %rdx
movl 0x18(%rdi), %ecx
leaq 0x78f4(%rip), %rsi # 0x9dc9
movq %rax, %rdi
xorl %eax, %eax
callq 0x2230
movq %rsp, %rdx
movq %r14, 0x10(%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, (%rdx)
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x2350
movq (%r15), %rsi
pushq $0xa
popq %rdi
callq 0x21d0
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
/dparo[P]master-thesis/src/parser.c
|
validate_instance
|
TEST validate_instance(Instance *instance, int32_t expected_num_customers,
int32_t expected_num_vehicles) {
ASSERT(is_valid_instance(instance));
ASSERT_EQ(instance->num_customers, expected_num_customers);
ASSERT_EQ(instance->num_vehicles, expected_num_vehicles);
ASSERT(instance->vehicle_cap > 0);
ASSERT(instance->positions);
ASSERT(instance->demands);
ASSERT(instance->profits);
ASSERT(instance->demands[0] == 0.0);
for (int32_t i = 1; i < instance->num_customers + 1; i++)
ASSERT(instance->demands[i] > 0.0);
// TODO: __EMAIL the professor__
// Double check these assertions. For some reason there are instances
// where the depot doesn't have a dual = 0, and some customers have
// duals which are negative. Therefore not all instances pass these
// checks. For this reason these checks are currently disabled
if (0) {
ASSERT(instance->profits[0] == 0.0);
for (int32_t i = 1; i < instance->num_customers + 1; i++)
ASSERT(instance->profits[i] >= 0.0);
}
PASS();
}
|
pushq %rax
movl 0xa95e(%rip), %eax # 0xe26c
leal 0x1(%rax), %ecx
movl %ecx, 0xa955(%rip) # 0xe26c
movl 0x10(%rdi), %r9d
testl %r9d, %r9d
jle 0x3a0b
movl 0x14(%rdi), %r8d
testl %r8d, %r8d
jle 0x3a0b
movsd 0x18(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x3a0b
movq 0x30(%rdi), %rcx
testq %rcx, %rcx
je 0x3a0b
leal 0x2(%rax), %r10d
movl %r10d, 0xa910(%rip) # 0xe26c
cmpl %esi, %r9d
jne 0x3a45
leal 0x3(%rax), %r9d
movl %r9d, 0xa8fc(%rip) # 0xe26c
cmpl %edx, %r8d
jne 0x3a66
leal 0x4(%rax), %edx
movl %edx, 0xa8ea(%rip) # 0xe26c
ucomisd %xmm1, %xmm0
jbe 0x3a87
leal 0x5(%rax), %edx
movl %edx, 0xa8d7(%rip) # 0xe26c
cmpq $0x0, 0x28(%rdi)
je 0x3aa8
leal 0x7(%rax), %edx
movl %edx, 0xa8c3(%rip) # 0xe26c
cmpq $0x0, 0x38(%rdi)
je 0x3acc
leal 0x8(%rax), %edx
movl %edx, 0xa8af(%rip) # 0xe26c
movsd (%rcx), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x3af0
jp 0x3af0
addl %esi, %edx
incl %esi
decq %rsi
xorl %edi, %edi
movsd 0x8(%rcx,%rdi,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x3b14
incq %rdi
cmpq %rdi, %rsi
jne 0x39de
movl %edx, 0xa870(%rip) # 0xe26c
movq $0x0, 0xa879(%rip) # 0xe280
xorl %eax, %eax
jmp 0x3a43
leaq 0x5abd(%rip), %rax # 0x94cf
movq %rax, 0xa85f(%rip) # 0xe278
movl $0x25, 0xa84d(%rip) # 0xe270
leaq 0x5cf7(%rip), %rax # 0x9721
movq %rax, 0xa84f(%rip) # 0xe280
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testb $0x4, 0xa7eb(%rip) # 0xe228
jne 0x3b43
popq %rcx
retq
leaq 0x5a83(%rip), %rax # 0x94cf
movq %rax, 0xa825(%rip) # 0xe278
movl $0x26, 0xa813(%rip) # 0xe270
leaq 0x5cd9(%rip), %rax # 0x973d
jmp 0x3a2a
leaq 0x5a62(%rip), %rax # 0x94cf
movq %rax, 0xa804(%rip) # 0xe278
movl $0x27, 0xa7f2(%rip) # 0xe270
leaq 0x5cea(%rip), %rax # 0x976f
jmp 0x3a2a
leaq 0x5a41(%rip), %rax # 0x94cf
movq %rax, 0xa7e3(%rip) # 0xe278
movl $0x28, 0xa7d1(%rip) # 0xe270
leaq 0x5cf9(%rip), %rax # 0x979f
jmp 0x3a2a
leaq 0x5a20(%rip), %rax # 0x94cf
movq %rax, 0xa7c2(%rip) # 0xe278
movl $0x2a, 0xa7b0(%rip) # 0xe270
leaq 0x5cf2(%rip), %rax # 0x97b9
jmp 0x3a2a
leaq 0x59fc(%rip), %rax # 0x94cf
movq %rax, 0xa79e(%rip) # 0xe278
movl $0x2c, 0xa78c(%rip) # 0xe270
leaq 0x5ce2(%rip), %rax # 0x97cd
jmp 0x3a2a
leaq 0x59d8(%rip), %rax # 0x94cf
movq %rax, 0xa77a(%rip) # 0xe278
movl $0x2e, 0xa768(%rip) # 0xe270
leaq 0x5cd0(%rip), %rax # 0x97df
jmp 0x3a2a
addl %edi, %eax
addl $0x9, %eax
movl %eax, 0xa74d(%rip) # 0xe26c
leaq 0x59a9(%rip), %rax # 0x94cf
movq %rax, 0xa74b(%rip) # 0xe278
movl $0x30, 0xa739(%rip) # 0xe270
leaq 0x5cbd(%rip), %rax # 0x97fb
jmp 0x3a2a
callq 0x2060
|
/dparo[P]master-thesis/tests/test-parser.c
|
prep_memory
|
static bool prep_memory(Instance *instance) {
instance->positions =
calloc(instance->num_customers + 1, sizeof(*instance->positions));
instance->demands =
calloc(instance->num_customers + 1, sizeof(*instance->demands));
instance->profits =
calloc(instance->num_customers + 1, sizeof(*instance->profits));
return instance->positions && instance->demands && instance->profits;
}
|
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movslq 0x10(%rdi), %r15
incq %r15
movl $0x10, %esi
movq %r15, %rdi
callq 0x2200
movq %rax, %r12
movq %rax, 0x28(%r14)
movl $0x8, %esi
movq %r15, %rdi
callq 0x2200
movq %rax, %rbx
movq %rax, 0x30(%r14)
movl $0x8, %esi
movq %r15, %rdi
callq 0x2200
movq %rax, 0x38(%r14)
testq %r12, %r12
je 0x42fc
testq %rbx, %rbx
setne %cl
testq %rax, %rax
setne %al
andb %cl, %al
jmp 0x42fe
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
|
/dparo[P]master-thesis/src/parser.c
|
parse_vrplib_depot_section
|
static bool parse_vrplib_depot_section(VrplibParser *p, Instance *instance) {
UNUSED_PARAM(instance);
bool result = true;
for (int32_t i = 0; result && (i <= 1); i++) {
char *lexeme = get_token_lexeme(p);
if (!lexeme) {
result = false;
} else {
int32_t nodeid = 0;
if (!str_to_int32(lexeme, &nodeid)) {
parse_error(p, "Expected valid integer for DEPOT_SECTION");
result = false;
} else {
if (i == 0) {
if (nodeid != 1) {
parse_error(p,
"Expected single depot with index `1`. Got "
"`%d` instead",
nodeid);
result = false;
}
} else {
if (nodeid != -1) {
parse_error(p,
"Expected value `-1` marking the end of "
"the depot section, Found `%d` instead",
nodeid);
result = false;
}
}
}
}
if (lexeme) {
free(lexeme);
}
if (!parser_match_newline(p)) {
parse_error(p, "Expected newline");
result = false;
}
}
return result;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x1, %r12b
leaq 0x4(%rsp), %r14
leaq 0x5a65(%rip), %r13 # 0x9eaf
movq %rbx, %rdi
callq 0x4c1e
testq %rax, %rax
je 0x4491
movq %rax, %r15
movl $0x0, 0x4(%rsp)
movq %rax, %rdi
movq %r14, %rsi
callq 0x4f38
testb %al, %al
je 0x44bb
movl 0x4(%rsp), %edx
movb $0x1, %bpl
testb $0x1, %r12b
je 0x4495
cmpl $0x1, %edx
je 0x449a
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x5a49(%rip), %rsi # 0x9ed8
jmp 0x44d8
xorl %ebp, %ebp
jmp 0x44a2
cmpl $-0x1, %edx
jne 0x44cc
movq %r15, %rdi
callq 0x2030
movq %rbx, %rdi
callq 0x4776
testb %al, %al
je 0x44e1
testb %r12b, %bpl
movl $0x0, %r12d
jne 0x444a
jmp 0x44f4
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x245f
jmp 0x449a
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x5a37(%rip), %rsi # 0x9f0f
xorl %eax, %eax
callq 0x245f
jmp 0x449a
leaq 0x5a74(%rip), %rsi # 0x9f5c
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0x245f
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/dparo[P]master-thesis/src/parser.c
|
parser_match_string
|
static bool parser_match_string(VrplibParser *p, char *string) {
parser_eat_whitespaces(p);
size_t len = MIN(parser_remainder_size(p), strlen(string));
bool result = (0 == strncmp(string, p->at, len));
if (result) {
parser_adv(p, len);
}
parser_eat_whitespaces(p);
return result;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r12
movq %rdi, %rbx
callq 0x4b08
movq 0x8(%rbx), %r14
movq 0x10(%rbx), %r15
subq %r15, %r14
addq 0x20(%rbx), %r14
movq %r12, %rdi
callq 0x2140
cmpq %rax, %r14
cmovaeq %rax, %r14
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20a0
testl %eax, %eax
jne 0x473e
testq %r14, %r14
je 0x4757
addq %r14, %r15
movq %r15, 0x10(%rbx)
testl %eax, %eax
sete %bpl
movq %rbx, %rdi
callq 0x4b08
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x562a(%rip), %rdi # 0x9d88
leaq 0x52d0(%rip), %rsi # 0x9a35
leaq 0x5625(%rip), %rcx # 0x9d91
movl $0xbc, %edx
callq 0x2180
|
/dparo[P]master-thesis/src/parser.c
|
parser_eat_all_blanks
|
static void parser_eat_all_blanks(VrplibParser *p) {
char *at = NULL;
do {
at = p->at;
parser_eat_whitespaces(p);
parser_eat_newline(p);
parser_eat_whitespaces(p);
} while (p->at != at);
}
|
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movq %rbx, %rdi
callq 0x4b08
movq %rbx, %rdi
callq 0x4a96
movq %rbx, %rdi
callq 0x4b08
movq 0x10(%rbx), %rax
cmpq %r14, %rax
movq %rax, %r14
jne 0x47af
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
/dparo[P]master-thesis/src/parser.c
|
parser_eat_newline
|
static void parser_eat_newline(VrplibParser *p) {
parser_eat_whitespaces(p);
while (!parser_is_eof(p) && (*p->at == '\r' || *p->at == '\n')) {
if (*p->at == '\r') {
parser_adv(p, 1);
if (!parser_is_eof(p) && (*p->at == '\n')) {
parser_adv(p, 1);
}
p->curline += 1;
} else {
assert(*p->at == '\n');
p->curline += 1;
parser_adv(p, 1);
}
}
}
|
pushq %rbx
movq %rdi, %rbx
callq 0x4b08
movq 0x8(%rbx), %rax
xorl %ecx, %ecx
subq 0x20(%rbx), %rcx
movq 0x10(%rbx), %rdx
movq %rax, %rsi
subq %rdx, %rsi
cmpq %rcx, %rsi
je 0x4b06
movzbl (%rdx), %edi
cmpl $0xa, %edi
je 0x4af1
cmpl $0xd, %edi
jne 0x4b06
xorl %edi, %edi
cmpq %rcx, %rsi
setne %dil
addq %rdi, %rdx
movq %rdx, 0x10(%rbx)
movq %rax, %rsi
subq %rdx, %rsi
cmpq %rcx, %rsi
je 0x4aec
cmpb $0xa, (%rdx)
jne 0x4aec
incq %rdx
movq %rdx, 0x10(%rbx)
incl 0x18(%rbx)
jmp 0x4aad
incl 0x18(%rbx)
xorl %edi, %edi
cmpq %rcx, %rsi
setne %dil
addq %rdi, %rdx
movq %rdx, 0x10(%rbx)
jmp 0x4aad
popq %rbx
retq
|
/dparo[P]master-thesis/src/parser.c
|
str_to_int32
|
bool str_to_int32(const char *string, int32_t *out) {
size_t len = strlen(string);
int base = 10;
bool is_negated = false;
if (len >= 1 && (string[0] == '-' || string[0] == '+')) {
is_negated = string[0] == '-';
len -= 1;
string += 1;
}
if (len >= 2 && string[0] == '0' && string[1] == 'x') {
base = 16;
string += 2;
len -= 2;
} else if (len >= 2 && string[0] == '0' && string[1] == 'b') {
base = 2;
string += 2;
len -= 2;
}
STATIC_ASSERT(sizeof(long) >= sizeof(int32_t),
"These sizes should match so that we can use the correct "
"strtoXXX C function");
char *endptr = NULL;
errno = 0;
long conv_ret_val = strtol(string, &endptr, base);
conv_ret_val *= is_negated ? -1 : +1;
bool out_of_range = (errno == ERANGE) || (conv_ret_val < INT32_MIN) ||
(conv_ret_val > INT32_MAX);
bool failed =
len == 0 || out_of_range || endptr == string || endptr == NULL;
bool result = !failed && *endptr == '\0';
if (result) {
*out = conv_ret_val;
} else {
*out = INT32_MIN;
}
return result;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
callq 0x2140
movl $0xa, %ebp
testq %rax, %rax
je 0x4f85
movq %rax, %r15
movzbl (%r14), %eax
cmpl $0x2d, %eax
je 0x4f6e
cmpl $0x2b, %eax
jne 0x4f8f
xorl %ecx, %ecx
cmpb $0x2d, %al
setne %cl
decq %r15
incq %r14
leaq -0x1(,%rcx,2), %rbx
jmp 0x4f94
movl $0x1, %ebx
xorl %r15d, %r15d
jmp 0x4fc8
movl $0x1, %ebx
cmpq $0x2, %r15
jb 0x4fc8
cmpb $0x30, (%r14)
jne 0x4fc2
movzbl 0x1(%r14), %eax
cmpl $0x62, %eax
je 0x505b
cmpl $0x78, %eax
jne 0x4fc2
addq $0x2, %r14
addq $-0x2, %r15
movl $0x10, %ebp
jmp 0x4fc8
movl $0x1, %r15d
leaq 0x10(%rsp), %r13
movq $0x0, (%r13)
callq 0x2070
movq %rax, %r12
movl $0x0, (%rax)
movq %r14, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x2260
movq %rax, %rcx
xorl %eax, %eax
movl $0x80000000, %edx # imm = 0x80000000
testq %r15, %r15
je 0x5045
cmpl $0x22, (%r12)
je 0x5045
imulq %rbx, %rcx
leaq -0x80000000(%rcx), %rsi
movabsq $-0x100000000, %rdi # imm = 0xFFFFFFFF00000000
cmpq %rdi, %rsi
jb 0x5045
movq 0x10(%rsp), %rax
cmpq %r14, %rax
sete %sil
testq %rax, %rax
sete %dil
orb %sil, %dil
je 0x503c
xorl %eax, %eax
jmp 0x5045
cmpb $0x0, (%rax)
sete %al
cmovel %ecx, %edx
movq 0x8(%rsp), %rcx
movl %edx, (%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x2, %r14
addq $-0x2, %r15
movl $0x2, %ebp
jmp 0x4fc8
|
/dparo[P]master-thesis/src/parsing-utils.c
|
param_type_as_str
|
const char *param_type_as_str(ParamType type) {
switch (type) {
case TYPED_PARAM_DOUBLE:
return "DOUBLE";
case TYPED_PARAM_FLOAT:
return "FLOAT";
case TYPED_PARAM_BOOL:
return "BOOL";
case TYPED_PARAM_INT32:
return "INT32";
case TYPED_PARAM_USIZE:
return "USIZE";
case TYPED_PARAM_STR:
return "STR";
}
assert(!"Invalid code path");
return "<UNKNOWN>";
}
|
cmpl $0x6, %edi
jae 0x57a2
movl %edi, %eax
leaq 0x4b5e(%rip), %rcx # 0xa2f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
retq
pushq %rax
leaq 0x4b88(%rip), %rdi # 0xa332
leaq 0x4b96(%rip), %rsi # 0xa347
leaq 0x4be9(%rip), %rcx # 0xa3a1
movl $0x9d, %edx
callq 0x2180
|
/dparo[P]master-thesis/src/core.c
|
os_basename
|
char *os_basename(const char *path, Path *p) {
#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__NetBSD__) || defined(__DragonFly__)
p->cstr[0] = 0;
strncpy(p->cstr, path, ARRAY_LEN(p->cstr));
char *c = basename(p->cstr);
assert(c >= p->cstr && c < p->cstr + strlen(p->cstr));
return c;
#elif __APPLE__
#error "TODO os_basename for APPLE platform"
#else
#error "TODO os_basename for WINDOWS platform"
#endif
}
|
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %rsi
movb $0x0, (%rbx)
movl $0x1000, %edx # imm = 0x1000
movq %rbx, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2280
cmpq %rbx, %rax
jb 0x672a
movq %rax, %r14
movq %rbx, %rdi
callq 0x2140
addq %rbx, %rax
cmpq %rax, %r14
jae 0x672a
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x41ce(%rip), %rdi # 0xa8ff
leaq 0x41f5(%rip), %rsi # 0xa92d
leaq 0x4246(%rip), %rcx # 0xa985
movl $0x12f, %edx # imm = 0x12F
callq 0x2180
|
/dparo[P]master-thesis/src/os.c
|
stbds_hmput_key
|
void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode)
{
size_t keyoffset=0;
void *raw_a;
stbds_hash_index *table;
if (a == NULL) {
a = stbds_arrgrowf(0, elemsize, 0, 1);
memset(a, 0, elemsize);
stbds_header(a)->length += 1;
// adjust a to point AFTER the default element
a = STBDS_ARR_TO_HASH(a,elemsize);
}
// adjust a to point to the default element
raw_a = a;
a = STBDS_HASH_TO_ARR(a,elemsize);
table = (stbds_hash_index *) stbds_header(a)->hash_table;
if (table == NULL || table->used_count >= table->used_count_threshold) {
stbds_hash_index *nt;
size_t slot_count;
slot_count = (table == NULL) ? STBDS_BUCKET_LENGTH : table->slot_count*2;
nt = stbds_make_hash_index(slot_count, table);
if (table)
STBDS_FREE(NULL, table);
else
nt->string.mode = mode >= STBDS_HM_STRING ? STBDS_SH_DEFAULT : 0;
stbds_header(a)->hash_table = table = nt;
STBDS_STATS(++stbds_hash_grow);
}
// we iterate hash table explicitly because we want to track if we saw a tombstone
{
size_t hash = mode >= STBDS_HM_STRING ? stbds_hash_string((char*)key,table->seed) : stbds_hash_bytes(key, keysize,table->seed);
size_t step = STBDS_BUCKET_LENGTH;
size_t pos;
ptrdiff_t tombstone = -1;
stbds_hash_bucket *bucket;
// stored hash values are forbidden from being 0, so we can detect empty slots to early out quickly
if (hash < 2) hash += 2;
pos = stbds_probe_position(hash, table->slot_count, table->slot_count_log2);
for (;;) {
size_t limit, i;
STBDS_STATS(++stbds_hash_probes);
bucket = &table->storage[pos >> STBDS_BUCKET_SHIFT];
// start searching from pos to end of bucket
for (i=pos & STBDS_BUCKET_MASK; i < STBDS_BUCKET_LENGTH; ++i) {
if (bucket->hash[i] == hash) {
if (stbds_is_key_equal(raw_a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) {
stbds_temp(a) = bucket->index[i];
if (mode >= STBDS_HM_STRING)
stbds_temp_key(a) = * (char **) ((char *) raw_a + elemsize*bucket->index[i] + keyoffset);
return STBDS_ARR_TO_HASH(a,elemsize);
}
} else if (bucket->hash[i] == 0) {
pos = (pos & ~STBDS_BUCKET_MASK) + i;
goto found_empty_slot;
} else if (tombstone < 0) {
if (bucket->index[i] == STBDS_INDEX_DELETED)
tombstone = (ptrdiff_t) ((pos & ~STBDS_BUCKET_MASK) + i);
}
}
// search from beginning of bucket to pos
limit = pos & STBDS_BUCKET_MASK;
for (i = 0; i < limit; ++i) {
if (bucket->hash[i] == hash) {
if (stbds_is_key_equal(raw_a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) {
stbds_temp(a) = bucket->index[i];
return STBDS_ARR_TO_HASH(a,elemsize);
}
} else if (bucket->hash[i] == 0) {
pos = (pos & ~STBDS_BUCKET_MASK) + i;
goto found_empty_slot;
} else if (tombstone < 0) {
if (bucket->index[i] == STBDS_INDEX_DELETED)
tombstone = (ptrdiff_t) ((pos & ~STBDS_BUCKET_MASK) + i);
}
}
// quadratic probing
pos += step;
step += STBDS_BUCKET_LENGTH;
pos &= (table->slot_count-1);
}
found_empty_slot:
if (tombstone >= 0) {
pos = tombstone;
--table->tombstone_count;
}
++table->used_count;
{
ptrdiff_t i = (ptrdiff_t) stbds_arrlen(a);
// we want to do stbds_arraddn(1), but we can't use the macros since we don't have something of the right type
if ((size_t) i+1 > stbds_arrcap(a))
*(void **) &a = stbds_arrgrowf(a, elemsize, 1, 0);
raw_a = STBDS_ARR_TO_HASH(a,elemsize);
STBDS_ASSERT((size_t) i+1 <= stbds_arrcap(a));
stbds_header(a)->length = i+1;
bucket = &table->storage[pos >> STBDS_BUCKET_SHIFT];
bucket->hash[pos & STBDS_BUCKET_MASK] = hash;
bucket->index[pos & STBDS_BUCKET_MASK] = i-1;
stbds_temp(a) = i-1;
switch (table->string.mode) {
case STBDS_SH_STRDUP: stbds_temp_key(a) = *(char **) ((char *) a + elemsize*i) = stbds_strdup((char*) key); break;
case STBDS_SH_ARENA: stbds_temp_key(a) = *(char **) ((char *) a + elemsize*i) = stbds_stralloc(&table->string, (char*)key); break;
case STBDS_SH_DEFAULT: stbds_temp_key(a) = *(char **) ((char *) a + elemsize*i) = (char *) key; break;
default: memcpy((char *) a + elemsize*i, key, keysize); break;
}
}
return STBDS_ARR_TO_HASH(a,elemsize);
}
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r8d, 0xc(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, %rbx
testq %rdi, %rdi
jne 0x7ae2
leaq 0x20(,%rbx,4), %rdi
callq 0x22a0
movq %rax, %r13
leaq 0x20(%rax), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x4, 0x8(%rax)
xorl %esi, %esi
movq %rbx, %rdx
callq 0x21a0
movq $0x1, (%r13)
leaq (%rbx,%r13), %rdi
addq $0x20, %rdi
movq %rdi, 0x20(%rsp)
movq %rdi, %r14
subq %rbx, %r14
movq -0x10(%r14), %r15
testq %r15, %r15
je 0x7b1f
movq 0x10(%r15), %rax
cmpq 0x18(%r15), %rax
jb 0x7b3b
movq 0x8(%r15), %rdi
addq %rdi, %rdi
movq %r15, %rsi
callq 0x7e6c
movq %rax, %r12
movq %r15, %rdi
callq 0x2030
movq %r12, %r15
jmp 0x7b37
movl $0x8, %edi
xorl %esi, %esi
callq 0x7e6c
movq %rax, %r15
cmpl $0x0, 0xc(%rsp)
setg 0x59(%rax)
movq %r15, -0x10(%r14)
movq 0x38(%r15), %rdx
cmpl $0x0, 0xc(%rsp)
movq %r14, 0x30(%rsp)
jle 0x7b5a
movq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0x747a
jmp 0x7b69
movq 0x10(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x74d4
movq %rbx, 0x40(%rsp)
movq %rax, %r13
orq $0x2, %r13
cmpq $0x2, %rax
cmovaeq %rax, %r13
movq 0x8(%r15), %rcx
movq %r15, 0x28(%rsp)
movq 0x60(%r15), %rax
decq %rcx
movq %rcx, 0x58(%rsp)
andq %r13, %rcx
movq $-0x1, %r12
movl $0x8, %edx
movq %rdx, 0x50(%rsp)
movq %rax, 0x48(%rsp)
movq %rcx, %rbx
shlq $0x4, %rbx
andq $-0x80, %rbx
addq %rax, %rbx
movl %ecx, %r14d
andl $0x7, %r14d
movq %rcx, 0x60(%rsp)
movq %rcx, %rax
andq $-0x8, %rax
movq %rax, 0x18(%rsp)
movq %r14, %r15
movq (%rbx,%r15,8), %rax
cmpq %r13, %rax
jne 0x7c10
movq 0x40(%rbx,%r15,8), %rbp
movq %rbp, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
movl 0xc(%rsp), %r9d
callq 0x805a
testl %eax, %eax
je 0x7c30
jmp 0x7d10
testq %rax, %rax
je 0x7cc6
testq %r12, %r12
jns 0x7c30
movq 0x18(%rsp), %rax
addq %r15, %rax
cmpq $-0x2, 0x40(%rbx,%r15,8)
cmoveq %rax, %r12
incq %r15
cmpq $0x8, %r15
jne 0x7bd4
testq %r14, %r14
je 0x7ca1
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rax
cmpq %r13, %rax
jne 0x7c7d
movq 0x40(%rbx,%r15,8), %rbp
movq %rbp, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
movl 0xc(%rsp), %r9d
callq 0x805a
testl %eax, %eax
je 0x7c99
jmp 0x7e4c
testq %rax, %rax
je 0x7cc6
testq %r12, %r12
jns 0x7c99
movq 0x18(%rsp), %rax
addq %r15, %rax
cmpq $-0x2, 0x40(%rbx,%r15,8)
cmoveq %rax, %r12
incq %r15
cmpq %r15, %r14
jne 0x7c41
movq 0x60(%rsp), %rcx
movq 0x50(%rsp), %rax
addq %rax, %rcx
addq $0x8, %rax
movq %rax, 0x50(%rsp)
andq 0x58(%rsp), %rcx
movq 0x48(%rsp), %rax
jmp 0x7bab
addq %r15, 0x18(%rsp)
testq %r12, %r12
movq 0x40(%rsp), %r14
movq 0x28(%rsp), %rax
js 0x7ce3
decq 0x28(%rax)
movq %r12, 0x18(%rsp)
incq 0x10(%rax)
cmpq $0x0, 0x20(%rsp)
je 0x7d45
movq 0x30(%rsp), %r12
movq -0x20(%r12), %r15
leaq 0x1(%r15), %rbx
cmpq -0x18(%r12), %rbx
ja 0x7d52
movq 0x28(%rsp), %rdx
movq 0x48(%rsp), %rcx
jmp 0x7d70
movq 0x30(%rsp), %rax
movq %rbp, -0x8(%rax)
cmpl $0x0, 0xc(%rsp)
jle 0x7e55
movq 0x40(%rsp), %rax
imulq 0x40(%rbx,%r15,8), %rax
movq 0x20(%rsp), %r12
movq (%r12,%rax), %rax
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x7e5a
movl $0x1, %ebx
xorl %r15d, %r15d
movq 0x30(%rsp), %r12
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x73e0
movq %rax, %r12
movq 0x28(%rsp), %rdx
movq 0x60(%rdx), %rcx
movq %rbx, -0x20(%r12)
movq 0x18(%rsp), %rsi
movq %rsi, %rax
shlq $0x4, %rax
andq $-0x80, %rax
addq %rcx, %rax
andl $0x7, %esi
movq %r13, (%rax,%rsi,8)
leaq -0x1(%r15), %rcx
movq %rcx, 0x40(%rax,%rsi,8)
movq %rcx, -0x8(%r12)
movzbl 0x59(%rdx), %eax
cmpl $0x1, %eax
je 0x7e17
cmpl $0x3, %eax
je 0x7df2
cmpl $0x2, %eax
jne 0x7e2e
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2140
movq %r12, %rbp
leaq 0x1(%rax), %r12
movq %r12, %rdi
callq 0x22a0
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %rbp, %r12
callq 0x2270
imulq %r14, %r15
movq %r13, (%rbp,%r15)
movq -0x10(%rbp), %rax
movq %r13, (%rax)
jmp 0x7e47
movq 0x28(%rsp), %rdi
addq $0x48, %rdi
movq 0x10(%rsp), %rsi
callq 0x8095
imulq %r14, %r15
movq %rax, (%r12,%r15)
movq -0x10(%r12), %rcx
movq %rax, (%rcx)
jmp 0x7e47
imulq %r14, %r15
movq 0x10(%rsp), %rcx
movq %rcx, (%r12,%r15)
movq -0x10(%r12), %rax
movq %rcx, (%rax)
jmp 0x7e47
imulq %r14, %r15
addq %r12, %r15
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x2270
addq %r14, %r12
jmp 0x7e5a
movq 0x30(%rsp), %rax
movq %rbp, -0x8(%rax)
movq 0x20(%rsp), %r12
movq %r12, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/dparo[P]master-thesis/deps/stb/stb_ds.h
|
String::detach(unsigned long, unsigned long)
|
void detach(usize copyLength, usize minCapacity)
{
#ifdef ASSERT
ASSERT(copyLength <= minCapacity);
#endif
if(data->ref == 1 && minCapacity <= data->capacity)
{
((char*)data->str)[data->len = copyLength] = '\0';
return;
}
usize capacity = minCapacity | 0x3;
Data* newData = (Data*)new char[(capacity + 1) * sizeof(char) + sizeof(Data)];
newData->str = (char*)((byte*)newData + sizeof(Data));
if(data->len > 0)
{
Memory::copy((char*)newData->str, data->str, (data->len < copyLength ? data->len : copyLength) * sizeof(char));
((char*)newData->str)[newData->len = copyLength] = '\0';
}
else
{
*(char*)newData->str = '\0';
newData->len = copyLength;
}
newData->ref = 1;
newData->capacity = capacity;
if(data->ref && Atomic::decrement(data->ref) == 0)
delete[] (char*)data;
data = newData;
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x1, %rax
jne 0x3a58
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq (%rcx), %rcx
cmpq 0x10(%rcx), %rax
ja 0x3a58
movq -0x30(%rbp), %rdx
movq (%rdx), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rdx), %rdx
movq %rcx, 0x8(%rdx)
movb $0x0, (%rax,%rcx)
jmp 0x3b86
movq -0x18(%rbp), %rax
orq $0x3, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
addq $0x1, %rdi
shlq $0x0, %rdi
addq $0x20, %rdi
callq 0x2040
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq -0x28(%rbp), %rdx
addq $0x20, %rdx
movq -0x28(%rbp), %rcx
movq %rdx, (%rcx)
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
jbe 0x3b0a
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq %rcx, -0x40(%rbp)
movq (%rax), %rcx
movq (%rcx), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
movq 0x8(%rax), %rax
cmpq -0x10(%rbp), %rax
jae 0x3ad4
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x3adc
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rdx
shlq $0x0, %rdx
callq 0x73b0
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rdx
movq %rcx, 0x8(%rdx)
movb $0x0, (%rax,%rcx)
jmp 0x3b20
movq -0x28(%rbp), %rax
movq (%rax), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq $0x1, 0x18(%rcx)
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq %rdx, 0x10(%rcx)
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x0, %rax
je 0x3b7b
movq -0x30(%rbp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
callq 0x2c60
cmpq $0x0, %rax
jne 0x3b7b
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x3b79
movq -0x50(%rbp), %rdi
callq 0x2350
jmp 0x3b7b
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, (%rax)
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
|
/craflin[P]libnstd/src/../include/nstd/String.hpp
|
Error::Private::Str::operator=(Error::Private::Str const&)
|
Str& operator=(const Str& other)
{
delete []_ptr;
_len = other._len;
_ptr = new char[_len + 1];
memcpy(_ptr, other._ptr, _len + 1);
return *this;
}
|
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 (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x4b6e
movq -0x18(%rbp), %rdi
callq 0x2350
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq 0x8(%rax), %rdi
addq $0x1, %rdi
callq 0x2040
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq (%rax), %rdi
movq -0x10(%rbp), %rcx
movq (%rcx), %rsi
movq 0x8(%rax), %rdx
addq $0x1, %rdx
callq 0x2230
movq -0x20(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/craflin[P]libnstd/src/Error.cpp
|
File::close()
|
void File::close()
{
#ifdef _WIN32
if(fp != INVALID_HANDLE_VALUE)
{
CloseHandle((HANDLE)fp);
fp = INVALID_HANDLE_VALUE;
}
#else
if(fp)
{
::close((int)(intptr_t)fp);
fp = 0;
}
#endif
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, (%rax)
je 0x5743
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl %eax, %edi
callq 0x2590
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
|
/craflin[P]libnstd/src/File.cpp
|
File::rename(String const&, String const&, bool)
|
bool File::rename(const String& from, const String& to, bool failIfExists)
{
#ifdef _WIN32
return MoveFileEx(from, to, MOVEFILE_COPY_ALLOWED | (failIfExists ? 0 : MOVEFILE_REPLACE_EXISTING)) == TRUE;
#else
if(failIfExists)
{
int fd = ::open(to, O_CREAT | O_EXCL | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if(fd == -1)
return false;
if(::rename(from, to) != 0)
{
int err = errno;
::close(fd);
errno = err;
return false;
}
::close(fd);
return true;
}
else
return ::rename(from, to) == 0;
#endif
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
je 0x5a6d
movq -0x18(%rbp), %rdi
callq 0x4c50
movq %rax, %rdi
movl $0x800c0, %esi # imm = 0x800C0
movl $0x1a4, %edx # imm = 0x1A4
movb $0x0, %al
callq 0x21e0
movl %eax, -0x20(%rbp)
cmpl $-0x1, -0x20(%rbp)
jne 0x5a10
movb $0x0, -0x1(%rbp)
jmp 0x5a9a
movq -0x10(%rbp), %rdi
callq 0x4c50
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x4c50
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x21c0
cmpl $0x0, %eax
je 0x5a5f
callq 0x2050
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %edi
callq 0x2590
movl -0x24(%rbp), %eax
movl %eax, -0x34(%rbp)
callq 0x2050
movl -0x34(%rbp), %ecx
movl %ecx, (%rax)
movb $0x0, -0x1(%rbp)
jmp 0x5a9a
movl -0x20(%rbp), %edi
callq 0x2590
movb $0x1, -0x1(%rbp)
jmp 0x5a9a
movq -0x10(%rbp), %rdi
callq 0x4c50
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
callq 0x4c50
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x21c0
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/craflin[P]libnstd/src/File.cpp
|
File::read(void*, unsigned long)
|
ssize File::read(void* buffer, usize len)
{
#ifdef _WIN32
#ifdef _AMD64
byte* bufferStart = (byte*)buffer;
DWORD i;
while(len > (usize)INT_MAX)
{
if(!ReadFile((HANDLE)fp, buffer, INT_MAX, &i, NULL))
return -1;
buffer = (byte*)buffer + i;
if(i != INT_MAX)
return (byte*)buffer - bufferStart;
len -= INT_MAX;
}
if(!ReadFile((HANDLE)fp, buffer, (DWORD)len, &i, NULL))
return -1;
buffer = (byte*)buffer + i;
return (byte*)buffer - bufferStart;
#else
DWORD i;
if(!ReadFile((HANDLE)fp, buffer, len, &i, NULL))
return -1;
return i;
#endif
#else
return ::read((int)(intptr_t)fp, buffer, len);
#endif
}
|
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), %rax
movl %eax, %edi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x23f0
addq $0x20, %rsp
popq %rbp
retq
|
/craflin[P]libnstd/src/File.cpp
|
File::isExecutable(String const&)
|
bool File::isExecutable(const String& file)
{
#ifdef _WIN32
String extension = File::getExtension(file).toLowerCase();
return extension == "exe" || extension == "com" || extension == "bat";
#else
struct stat buf;
if(stat(file, &buf) != 0)
return false;
return (buf.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0;
#endif
}
|
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4c50
movq %rax, %rdi
leaq -0xa0(%rbp), %rsi
callq 0x2280
cmpl $0x0, %eax
je 0x6d52
movb $0x0, -0x1(%rbp)
jmp 0x6d66
movl -0x88(%rbp), %eax
andl $0x49, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/craflin[P]libnstd/src/File.cpp
|
Process::getEnvironmentVariable(String const&, String const&)
|
String Process::getEnvironmentVariable(const String& name, const String& defaultValue)
{
#ifdef _WIN32
String buffer;
DWORD bufferSize = 256;
for(;;)
{
buffer.resize(bufferSize);
DWORD dw = GetEnvironmentVariable((const char*)name, (char*)buffer, bufferSize);
if(dw >= bufferSize)
{
bufferSize <<= 1;
continue;
}
if(!dw)
{
if (GetLastError() == ERROR_ENVVAR_NOT_FOUND)
return defaultValue;
return String();
}
buffer.resize(dw);
return buffer;
}
#else
const char* var = getenv((const char*)name);
if(!var)
return defaultValue;
return String(var, String::length(var));
#endif
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x30(%rbp)
movq %rdi, %rax
movq %rax, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4c50
movq %rax, %rdi
callq 0x2330
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x8d6a
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x72a0
jmp 0x8d8b
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
callq 0x3920
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rax, %rdx
callq 0x3960
movq -0x28(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
/craflin[P]libnstd/src/Process.cpp
|
nn_backtrace_print
|
void nn_backtrace_print (void)
{
void *frames[50];
int size;
size = backtrace (frames, sizeof (frames) / sizeof (frames[0]));
if (size > 1) {
/* Don't include the frame nn_backtrace_print itself. */
backtrace_symbols_fd (&frames[1], size-1, fileno (stderr));
}
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp # imm = 0x1A0
leaq -0x190(%rbp), %rdi
movl $0x32, %esi
callq 0x1060
movl %eax, -0x194(%rbp)
cmpl $0x1, -0x194(%rbp)
jle 0x135f
leaq -0x190(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x1a0(%rbp)
movl -0x194(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x198(%rbp)
movq 0x3cad(%rip), %rax # 0x4ff0
movq (%rax), %rdi
callq 0x1030
movq -0x1a0(%rbp), %rdi
movl -0x198(%rbp), %esi
movl %eax, %edx
callq 0x11a0
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbp
retq
nopl (%rax,%rax)
|
/nanomsg[P]nanomsg/tests/../src/utils/err.c
|
test_socket_impl
|
static int NN_UNUSED test_socket_impl (char *file, int line, int family,
int protocol)
{
int sock;
sock = nn_socket (family, protocol);
if (sock == -1) {
fprintf (stderr, "Failed create socket: %s [%d] (%s:%d)\n",
nn_err_strerror (errno),
(int) errno, file, line);
nn_err_abort ();
}
return sock;
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl -0x10(%rbp), %edi
movl -0x14(%rbp), %esi
callq 0x10c0
movl %eax, -0x18(%rbp)
cmpl $-0x1, -0x18(%rbp)
jne 0x19a1
movq 0x3690(%rip), %rax # 0x4ff0
movq (%rax), %rax
movq %rax, -0x28(%rbp)
callq 0x1150
movl (%rax), %edi
callq 0x1390
movq %rax, -0x20(%rbp)
callq 0x1150
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl (%rax), %ecx
movq -0x8(%rbp), %r8
movl -0xc(%rbp), %r9d
leaq 0x1829(%rip), %rsi # 0x31be
movb $0x0, %al
callq 0x11d0
callq 0x1370
movl -0x18(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
/nanomsg[P]nanomsg/tests/testutil.h
|
test_close_impl
|
static void NN_UNUSED test_close_impl (char *file, int line, int sock)
{
int rc;
rc = nn_close (sock);
if ((rc != 0) && (errno != EBADF && errno != ETERM)) {
fprintf (stderr, "Failed to close socket: %s [%d] (%s:%d)\n",
nn_err_strerror (errno),
(int) errno, file, line);
nn_err_abort ();
}
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl -0x10(%rbp), %edi
callq 0x1190
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x1ac2
callq 0x1150
cmpl $0x9, (%rax)
je 0x1ac2
callq 0x1150
cmpl $0x9523dfd, (%rax) # imm = 0x9523DFD
je 0x1ac2
movq 0x356f(%rip), %rax # 0x4ff0
movq (%rax), %rax
movq %rax, -0x28(%rbp)
callq 0x1150
movl (%rax), %edi
callq 0x1390
movq %rax, -0x20(%rbp)
callq 0x1150
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl (%rax), %ecx
movq -0x8(%rbp), %r8
movl -0xc(%rbp), %r9d
leaq 0x1755(%rip), %rsi # 0x320b
movb $0x0, %al
callq 0x11d0
callq 0x1370
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
/nanomsg[P]nanomsg/tests/testutil.h
|
test_connect_impl
|
static int NN_UNUSED test_connect_impl (char *file, int line,
int sock, char *address)
{
int rc;
rc = nn_connect (sock, address);
if(rc < 0) {
fprintf (stderr, "Failed connect to \"%s\": %s [%d] (%s:%d)\n",
address,
nn_err_strerror (errno),
(int) errno, file, line);
nn_err_abort ();
}
return rc;
}
|
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movl -0x10(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x1160
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jge 0x1c82
movq 0x33be(%rip), %rax # 0x4ff0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
callq 0x1150
movl (%rax), %edi
callq 0x1390
movq %rax, -0x28(%rbp)
callq 0x1150
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl (%rax), %r8d
movq -0x8(%rbp), %r9
movl -0xc(%rbp), %eax
leaq 0x15c1(%rip), %rsi # 0x3234
movl %eax, (%rsp)
movb $0x0, %al
callq 0x11d0
callq 0x1370
movl -0x1c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
/nanomsg[P]nanomsg/tests/testutil.h
|
m256v_make
|
m256v m256v_make(int n_row, int n_col, uint8_t* memory)
{
m256v ret;
ret.n_row = n_row;
ret.n_col = n_col;
ret.rstride = n_col;
ret.e = memory;
return ret;
}
|
movq %rdi, %rax
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movslq %edx, %rdx
movq %rdx, 0x8(%rdi)
movq %rcx, 0x10(%rdi)
retq
|
/lorinder[P]TvRQ/algebra/m256v.c
|
m256v_get_subview
|
m256v m256v_get_subview(const m256v* M,
int row_offs,
int col_offs,
int n_row,
int n_col)
{
assert(0 <= row_offs);
assert(row_offs + n_row <= M->n_row);
assert(0 <= col_offs);
assert(col_offs + n_col <= M->n_col);
m256v R;
R.n_row = n_row;
R.n_col = n_col;
R.rstride = M->rstride;
R.e = M->e + m256v_get_el_offs(M, row_offs, col_offs);
return R;
}
|
movq %rdi, %rax
movl %r8d, (%rdi)
movl %r9d, 0x4(%rdi)
movq 0x8(%rsi), %rdi
movq %rdi, 0x8(%rax)
movslq %edx, %rdx
imulq %rdi, %rdx
addq 0x10(%rsi), %rdx
movslq %ecx, %rcx
addq %rcx, %rdx
movq %rdx, 0x10(%rax)
retq
|
/lorinder[P]TvRQ/algebra/m256v.c
|
m256v_set_el
|
inline size_t m256v_get_el_offs(const m256v* M, int r, int c)
{
assert(0 <= r);
assert(0 <= c);
assert(r < M->n_row);
/* The check for the column is loose so as to make it possible
* to get a pointer to one beyond the last column
*/
assert(c <= M->n_col);
return r * M->rstride + c;
}
|
movslq %esi, %rax
imulq 0x8(%rdi), %rax
movslq %edx, %rdx
addq 0x10(%rdi), %rax
movb %cl, (%rdx,%rax)
retq
|
/lorinder[P]TvRQ/algebra/m256v.h
|
m256v_swap_rows
|
void m256v_swap_rows(m256v* M, int r1, int r2)
{
if (r1 == r2)
return;
size_t o1 = get_el_offs(M, r1, 0);
size_t o2 = get_el_offs(M, r2, 0);
for (int i = 0; i < M->n_col; ++i) {
const uint8_t sw = M->e[o1];
M->e[o1] = M->e[o2];
M->e[o2] = sw;
++o1;
++o2;
}
}
|
cmpl %edx, %esi
je 0x155c
cmpl $0x0, 0x4(%rdi)
jle 0x155c
movq 0x8(%rdi), %r8
movslq %edx, %rax
imulq %r8, %rax
movslq %esi, %rcx
imulq %r8, %rcx
xorl %edx, %edx
movq 0x10(%rdi), %rsi
movb (%rsi,%rcx), %r8b
movb (%rsi,%rax), %r9b
movb %r9b, (%rsi,%rcx)
movq 0x10(%rdi), %rsi
movb %r8b, (%rsi,%rax)
incq %rcx
incq %rax
incl %edx
cmpl 0x4(%rdi), %edx
jl 0x1537
retq
|
/lorinder[P]TvRQ/algebra/m256v.c
|
m256v_mult_row
|
void m256v_mult_row(m256v* M, int r, uint8_t alpha)
{
/* Special case: Zero multiplier */
if (alpha == 0) {
m256v_clear_row(M, r);
return;
}
/* General case: Nonzero alpha */
const uint8_t log_alpha = flog(alpha);
for (int j = 0; j < M->n_col; ++j) {
uint8_t v = get_el(M, r, j);
if (v != 0) {
set_el(M, r, j, fexp(flog(v) + log_alpha));
}
}
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
testl %edx, %edx
je 0x15f1
movzbl %dl, %edi
callq 0x2755
cmpl $0x0, 0x4(%rbx)
jle 0x1618
movslq %ebp, %r14
movzbl %al, %r15d
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
imulq %r14, %rax
addq 0x10(%rbx), %rax
movb (%r12,%rax), %al
testb %al, %al
je 0x15e3
movzbl %al, %edi
callq 0x2755
leal (%rax,%r15), %edi
callq 0x276f
movq 0x8(%rbx), %rcx
imulq %r14, %rcx
addq 0x10(%rbx), %rcx
movb %al, (%r12,%rcx)
incq %r12
movslq 0x4(%rbx), %rax
cmpq %rax, %r12
jl 0x15ae
jmp 0x1618
cmpl $0x0, 0x4(%rbx)
jle 0x1618
movslq %ebp, %rax
xorl %ecx, %ecx
movq 0x8(%rbx), %rdx
imulq %rax, %rdx
addq 0x10(%rbx), %rdx
movb $0x0, (%rcx,%rdx)
incq %rcx
movslq 0x4(%rbx), %rdx
cmpq %rdx, %rcx
jl 0x15fc
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/m256v.c
|
m256v_multadd_row_from
|
void m256v_multadd_row_from(const m256v* M1,
int r1,
int offs,
uint8_t alpha,
m256v* Mt,
int rt)
{
assert (M1->n_col == Mt->n_col);
if (alpha == 0)
return;
if (alpha == 1) {
uint8_t* s = M1->e + get_el_offs(M1, r1, offs);
uint8_t* t = Mt->e + get_el_offs(Mt, rt, offs);
uint8_t* end = M1->e + get_el_offs(M1, r1, M1->n_col);
while (s < end) {
*t++ ^= *s++;
}
} else {
const int log_alpha = flog(alpha);
uint8_t* s = M1->e + get_el_offs(M1, r1, offs);
uint8_t* t = Mt->e + get_el_offs(Mt, rt, offs);
uint8_t* end = M1->e + get_el_offs(M1, r1, M1->n_col);
while (s < end) {
/* Mt[rt, i] += exp(log_alpha + log(M1[r1, i]))
* if said logarithm is defined.
*
* Otherwise, M[rt, i] is unchanged.
*/
const uint8_t ve = *s++;
if (ve != 0) {
*t ^= fexp(log_alpha + flog(ve));
}
++t;
}
}
}
|
testl %ecx, %ecx
je 0x1701
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movq %r8, %rbx
movl %edx, %r12d
movl %esi, %r14d
movq %rdi, %r15
cmpl $0x1, %ecx
jne 0x1695
movslq %r14d, %rax
imulq 0x8(%r15), %rax
movslq %r12d, %rcx
addq 0x10(%r15), %rax
leaq (%rax,%rcx), %rsi
movslq 0x4(%r15), %rdx
leaq (%rax,%rdx), %rdi
cmpq %rdi, %rsi
jae 0x16f3
movslq %ebp, %rsi
imulq 0x8(%rbx), %rsi
addq 0x10(%rbx), %rsi
movb (%rax,%rcx), %dil
xorb %dil, (%rsi,%rcx)
incq %rcx
cmpq %rcx, %rdx
jne 0x1683
jmp 0x16f3
movzbl %cl, %edi
callq 0x2755
movslq %r14d, %r13
imulq 0x8(%r15), %r13
movl %eax, %r14d
movslq %r12d, %r12
addq 0x10(%r15), %r13
leaq (%r12,%r13), %rax
movslq 0x4(%r15), %r15
leaq (%r15,%r13), %rcx
cmpq %rcx, %rax
jae 0x16f3
movslq %ebp, %rbp
imulq 0x8(%rbx), %rbp
addq 0x10(%rbx), %rbp
movb (%r13,%r12), %al
testb %al, %al
je 0x16eb
movzbl %al, %edi
callq 0x2755
leal (%rax,%r14), %edi
callq 0x276f
xorb %al, (%rbp,%r12)
incq %r12
cmpq %r12, %r15
jne 0x16cc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/m256v.c
|
m256v_mult_col_from
|
void m256v_mult_col_from(m256v* M, int c, int offs, uint8_t alpha)
{
if (alpha != 0) {
const int log_alpha = flog(alpha);
for (int j = offs; j < M->n_row; ++j) {
uint8_t val = get_el(M, j, c);
if (val != 0) {
val = fexp(flog(val) + log_alpha);
set_el(M, j, c, val);
}
}
} else {
for (int j = offs; j < M->n_row; ++j) {
set_el(M, j, c, 0);
}
}
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
testl %ecx, %ecx
je 0x1824
movzbl %cl, %edi
callq 0x2755
cmpl %ebp, (%rbx)
jle 0x1849
movl %eax, %r14d
movslq %r15d, %r15
movslq %ebp, %r12
movq 0x8(%rbx), %rax
imulq %r12, %rax
addq 0x10(%rbx), %rax
movb (%r15,%rax), %al
testb %al, %al
je 0x1817
movzbl %al, %edi
callq 0x2755
leal (%rax,%r14), %edi
callq 0x276f
movq 0x8(%rbx), %rcx
imulq %r12, %rcx
addq 0x10(%rbx), %rcx
movb %al, (%r15,%rcx)
incq %r12
movslq (%rbx), %rax
cmpq %rax, %r12
jl 0x17e2
jmp 0x1849
cmpl %ebp, (%rbx)
jle 0x1849
movslq %r15d, %rax
movslq %ebp, %rcx
movq 0x8(%rbx), %rdx
imulq %rcx, %rdx
addq 0x10(%rbx), %rdx
movb $0x0, (%rax,%rdx)
incq %rcx
movslq (%rbx), %rdx
cmpq %rdx, %rcx
jl 0x182e
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/m256v.c
|
m256v_copy_submat
|
void MV_GEN_N(_copy_submat)(const MV_GEN_TYPE* A,
int A_row_offs,
int A_col_offs,
int n_row,
int n_col,
MV_GEN_TYPE* At,
int At_row_offs,
int At_col_offs)
{
assert(0 <= n_row);
assert(0 <= n_col);
assert(0 <= A_row_offs);
assert(0 <= A_col_offs);
assert(A_row_offs + n_row <= A->n_row);
assert(A_col_offs + n_col <= A->n_col);
assert(0 <= At_row_offs);
assert(0 <= At_col_offs);
assert(At_row_offs + n_row <= At->n_row);
assert(At_col_offs + n_col <= At->n_col);
for (int r = 0; r < n_row; ++r) {
for (int c = 0; c < n_col; ++c) {
MV_GEN_N(_set_el)(At,
r + At_row_offs,
c + At_col_offs,
MV_GEN_N(_get_el)(A, r + A_row_offs, c + A_col_offs));
}
}
}
|
testl %ecx, %ecx
jle 0x19e9
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq 0x40(%rsp), %rax
movslq %edx, %rdx
movslq 0x38(%rsp), %r10
movslq %esi, %rsi
movl %ecx, %ecx
movl %r8d, %r11d
xorl %ebx, %ebx
movq %r11, %r14
movq %rdx, %r15
movq %rax, %r12
testl %r8d, %r8d
jle 0x19d1
movq 0x8(%rdi), %r13
imulq %rsi, %r13
addq 0x10(%rdi), %r13
movb (%r15,%r13), %bpl
movq 0x8(%r9), %r13
imulq %r10, %r13
addq 0x10(%r9), %r13
movb %bpl, (%r12,%r13)
incq %r12
incq %r15
decq %r14
jne 0x19a6
incq %rbx
incq %r10
incq %rsi
cmpq %rcx, %rbx
jne 0x1998
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_permute_cols
|
void MV_GEN_N(_permute_cols)(MV_GEN_TYPE* M, const int* colperm)
{
char visited[M->n_col];
for (int i = 0; i < M->n_col; ++i)
visited[i] = 0;
MV_GEN_N(_Def)(colbuf_mat, colbuf, M->n_row, 1);
for (int i = 0; i < M->n_col; ++i) {
if (visited[i])
continue;
if (colperm[i] == i) {
/* Simple case of a self-cycle; do nothing. */
visited[i] = 1;
continue;
}
/* Otherwise we need to shuffle things around. */
MV_GEN_N(_copy_col)(M, i, &colbuf_mat, 0);
int e = i, e_next = colperm[i];
while (e_next != i) {
assert(!visited[e_next]);
visited[e_next] = 1;
MV_GEN_N(_copy_col)(M, e_next, M, e);
/* Advance in the cycle */
e = e_next;
e_next = colperm[e_next];
}
visited[i] = 1;
MV_GEN_N(_copy_col)(&colbuf_mat, 0, M, e);
}
}
|
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rdi), %edx
movq %rsp, %r15
leaq 0xf(%rdx), %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
testl %edx, %edx
jle 0x1b5c
movq %r15, %rdi
xorl %esi, %esi
callq 0x1040
movl (%r14), %eax
movq %rsp, %rcx
leaq 0xf(%rax), %rdx
andq $-0x10, %rdx
subq %rdx, %rcx
movq %rcx, %rsp
cmpl $0x0, 0x4(%r14)
jle 0x1c4a
xorl %edx, %edx
cmpb $0x0, (%r15,%rdx)
jne 0x1c3a
movl (%rbx,%rdx,4), %esi
cmpq %rsi, %rdx
jne 0x1b9a
movb $0x1, (%r15,%rdx)
jmp 0x1c3a
testl %eax, %eax
jle 0x1bbe
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
addq %rdx, %rdi
xorl %r8d, %r8d
movb (%rdi), %r9b
movb %r9b, (%rcx,%r8)
incq %r8
addq %rsi, %rdi
cmpq %r8, %rax
jne 0x1bac
movl (%rbx,%rdx,4), %edi
movl %edx, %esi
cmpq %rdi, %rdx
je 0x1c0b
movl %edx, %r8d
movl %edi, %esi
movslq %edi, %rdi
movb $0x1, (%r15,%rdi)
cmpl $0x0, (%r14)
jle 0x1c00
movslq %r8d, %r8
xorl %r9d, %r9d
movq 0x8(%r14), %r10
imulq %r9, %r10
addq 0x10(%r14), %r10
movb (%rdi,%r10), %r11b
movb %r11b, (%r8,%r10)
incq %r9
movslq (%r14), %r10
cmpq %r10, %r9
jl 0x1be1
movl (%rbx,%rdi,4), %edi
movl %esi, %r8d
cmpq %rdi, %rdx
jne 0x1bcb
movb $0x1, (%r15,%rdx)
cmpl $0x0, (%r14)
jle 0x1c3a
movslq %esi, %rsi
xorl %edi, %edi
movb (%rcx,%rdi), %r8b
movq 0x8(%r14), %r9
imulq %rdi, %r9
addq 0x10(%r14), %r9
movb %r8b, (%rsi,%r9)
incq %rdi
movslq (%r14), %r8
cmpq %r8, %rdi
jl 0x1c1b
incq %rdx
movslq 0x4(%r14), %rsi
cmpq %rsi, %rdx
jl 0x1b7d
leaq -0x18(%rbp), %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_mul
|
void MV_GEN_N(_mul)(const MV_GEN_TYPE* A, const MV_GEN_TYPE* B, MV_GEN_TYPE* AB_out)
{
assert(A->n_col == B->n_row);
assert(A->n_row == AB_out->n_row);
assert(B->n_col == AB_out->n_col);
for (int i = 0; i < AB_out->n_row; ++i) {
for (int j = 0; j < AB_out->n_col; ++j) {
MV_GEN_ELTYPE x = 0;
for (int e = 0; e < A->n_col; ++e) {
const MV_GEN_ELTYPE a = MV_GEN_N(_get_el)(A, i, e);
const MV_GEN_ELTYPE b = MV_GEN_N(_get_el)(B, e, j);
x = fadd(x, fmul(a, b));
}
MV_GEN_N(_set_el)(AB_out, i, j, x);
}
}
}
|
cmpl $0x0, (%rdx)
jle 0x1dd7
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movq %rdx, (%rsp)
cmpl $0x0, 0x4(%rdx)
jle 0x1dba
xorl %r13d, %r13d
cmpl $0x0, 0x4(%r15)
jle 0x1d97
xorl %ebx, %ebx
xorl %ebp, %ebp
movq 0x8(%r15), %rax
imulq %r12, %rax
addq 0x10(%r15), %rax
movzbl (%rbx,%rax), %edi
movq 0x8(%r14), %rax
imulq %rbx, %rax
addq 0x10(%r14), %rax
movzbl (%r13,%rax), %esi
callq 0x277d
movzbl %al, %esi
movzbl %bpl, %edi
callq 0x2750
movl %eax, %ebp
incq %rbx
movslq 0x4(%r15), %rax
cmpq %rax, %rbx
jl 0x1d54
jmp 0x1d99
xorl %ebp, %ebp
movq (%rsp), %rdx
movq 0x8(%rdx), %rax
imulq %r12, %rax
addq 0x10(%rdx), %rax
movb %bpl, (%r13,%rax)
incq %r13
movslq 0x4(%rdx), %rax
cmpq %rax, %r13
jl 0x1d49
incq %r12
movslq (%rdx), %rax
cmpq %rax, %r12
jl 0x1d40
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_LU_decomp_inplace
|
int MV_GEN_N(_LU_decomp_inplace)(MV_GEN_TYPE* A,
int* rp,
int* cp)
{
/* Initialize permutations */
int i;
for (i = 0; i < A->n_row; ++i)
rp[i] = i;
for (i = 0; i < A->n_col; ++i)
cp[i] = i;
/* LU decomposition */
for (i = 0; i < A->n_col && i < A->n_row; ++i) {
/* Find a pivot
*
* We must pick in A to process that does not lead to a
* zero value on the diagonal of U, for otherwise we
* can't keep processing.
*
* Find a row such that the resulting U[i,i]
* will be nonzero.
*/
int prow;
int pcol;
for (pcol = i; pcol < A->n_col; ++pcol) {
for (prow = i; prow < A->n_row; ++prow) {
if (MV_GEN_N(_get_el)(A, prow, pcol) != 0) {
goto pivot_found;
}
}
}
/* No pivot found; maximum rank reached */
assert (pcol == A->n_col);
break;
pivot_found:
/* Permute row and column to get pivot into place,
and record */
if (prow != i) {
SwapInt(rp[i], rp[prow]);
MV_GEN_N(_swap_rows)(A, i, prow);
}
if (pcol != i) {
SwapInt(cp[i], cp[pcol]);
MV_GEN_N(_swap_cols)(A, pcol, i);
}
/* At this point, the row i of U is computed correctly
* already, due to the updates to a (see below, "update
* A in the undecomposed part"). The column i of L is
* not quite correct yet; we need to divide the entries
* by Uii.
*/
/* Compute the column i of L */
MV_GEN_ELTYPE Uii_inv = finv(MV_GEN_N(_get_el)(A, i, i));
MV_GEN_N(_mult_col_from)(A, i, i + 1, Uii_inv);
/* Update A in the yet undecomposed part */
for (int j = i + 1; j < A->n_row; ++j) {
const MV_GEN_ELTYPE Lji = MV_GEN_N(_get_el)(A, j, i);
MV_GEN_N(_multadd_row_from)(A, i, i + 1, Lji, A, j);
}
}
/* At this point, i is the rank of the matrix */
return i;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
cmpl $0x0, (%rdi)
jle 0x1dfe
xorl %eax, %eax
movl %eax, (%rsi,%rax,4)
incq %rax
movslq (%r15), %rcx
cmpq %rcx, %rax
jl 0x1df0
cmpl $0x0, 0x4(%r15)
jle 0x1e16
xorl %eax, %eax
movl %eax, (%rdx,%rax,4)
incq %rax
movslq 0x4(%r15), %rcx
cmpq %rcx, %rax
jl 0x1e07
movl 0x4(%r15), %edi
testl %edi, %edi
jle 0x1f70
movq %rsi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movl $0x1, %eax
movq %rax, (%rsp)
xorl %r12d, %r12d
movslq (%r15), %rcx
cmpq %rcx, %r12
jge 0x1f73
movslq %edi, %rax
cmpq %rax, %r12
setl %r14b
jge 0x1f73
movl %ecx, %ecx
movl %edi, %esi
movq 0x8(%r15), %rdi
leaq 0x1(%rdi), %r8
imulq %r12, %r8
addq 0x10(%r15), %r8
movq %r12, %r13
movq %r8, %r9
movq %r12, %rdx
cmpb $0x0, (%r9)
jne 0x1e99
incq %rdx
addq %rdi, %r9
cmpq %rdx, %rcx
jne 0x1e71
incq %r13
cmpq %rax, %r13
setl %r14b
incq %r8
cmpq %rsi, %r13
jne 0x1e6b
jmp 0x1f73
movl %edx, %eax
cmpq %r12, %rax
je 0x1ec0
movl %edx, %eax
movq 0x8(%rsp), %rdi
movl (%rdi,%rax,4), %ecx
movl (%rdi,%r12,4), %esi
movl %esi, (%rdi,%rax,4)
movl %ecx, (%rdi,%r12,4)
movq %r15, %rdi
movl %r12d, %esi
callq 0x1519
movl %r13d, %eax
cmpq %r12, %rax
je 0x1eec
movl %r13d, %eax
movq 0x10(%rsp), %rsi
movl (%rsi,%rax,4), %ecx
movl (%rsi,%r12,4), %edx
movl %edx, (%rsi,%rax,4)
movl %ecx, (%rsi,%r12,4)
movq %r15, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x177f
movq 0x8(%r15), %rax
imulq %r12, %rax
addq 0x10(%r15), %rax
movzbl (%r12,%rax), %edi
callq 0x27b3
leaq 0x1(%r12), %rbx
leal 0x1(%r12), %ebp
movzbl %al, %ecx
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x17b9
movslq (%r15), %rax
cmpq %rax, %rbx
jge 0x1f54
movq (%rsp), %r13
movq 0x8(%r15), %rax
imulq %r13, %rax
addq 0x10(%r15), %rax
movzbl (%r12,%rax), %ecx
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
movq %r15, %r8
movl %r13d, %r9d
callq 0x1630
incq %r13
cmpl %r13d, (%r15)
jg 0x1f28
testb $0x1, %r14b
je 0x1f73
movslq 0x4(%r15), %rdi
incq (%rsp)
movq %rbx, %r12
cmpq %rdi, %rbx
jl 0x1e38
jmp 0x1f73
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_LU_mult
|
void MV_GEN_N(_LU_mult)(const MV_GEN_TYPE* LU,
const int* rp,
const int* cp,
const MV_GEN_TYPE* X,
MV_GEN_TYPE* Y_out)
{
/* Check dimensions */
assert(LU->n_col == X->n_row);
assert(LU->n_row == Y_out->n_row);
assert(X->n_col == Y_out->n_col);
/* Clear out the rows in the target vector */
for (int i = 0; i < Y_out->n_row; ++i) {
MV_GEN_N(_clear_row)(Y_out, i);
}
/* Multiply with U */
for (int i = 0; i < LU->n_row; ++i) {
const int t = rp[i];
for (int j = LU->n_col - 1; j >= i; --j) {
MV_GEN_N(_multadd_row)(X, cp[j],
MV_GEN_N(_get_el)(LU, i, j),
Y_out, t);
}
}
/* Multiply with L */
for (int i = LU->n_row - 1; i >= 0; --i) {
if (i >= LU->n_col) {
/* We're in the rectangle below the triangular part
*/
for (int j = LU->n_col - 1; j >= 0; --j) {
MV_GEN_N(_multadd_row)(Y_out, rp[j],
MV_GEN_N(_get_el)(LU, i, j),
Y_out, rp[i]);
}
} else {
/* i < LU->n_col, we're in the triangular part */
for (int j = i - 1; j >= 0; --j) {
MV_GEN_N(_multadd_row)(Y_out, rp[j],
MV_GEN_N(_get_el)(LU, i, j),
Y_out, rp[i]);
}
}
}
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %r9
movq %rdi, %r15
cmpl $0x0, (%r8)
jle 0x2018
xorl %eax, %eax
cmpl $0x0, 0x4(%rbx)
jle 0x200d
xorl %ecx, %ecx
movq 0x8(%rbx), %rdx
imulq %rax, %rdx
addq 0x10(%rbx), %rdx
movb $0x0, (%rcx,%rdx)
incq %rcx
movslq 0x4(%rbx), %rdx
cmpq %rdx, %rcx
jl 0x1ff1
incq %rax
movslq (%rbx), %rcx
cmpq %rcx, %rax
jl 0x1fe9
movq %rsi, 0x10(%rsp)
movl (%r15), %eax
testl %eax, %eax
jle 0x2088
xorl %r12d, %r12d
movslq 0x4(%r15), %rax
cmpq %rax, %r12
jge 0x207d
movq 0x10(%rsp), %rcx
movl (%rcx,%r12,4), %ecx
movl %ecx, 0x8(%rsp)
leaq -0x1(%rax), %r14
movl -0x4(%r9,%rax,4), %esi
movq 0x8(%r15), %rcx
imulq %r12, %rcx
addq 0x10(%r15), %rcx
movzbl -0x1(%rax,%rcx), %ecx
movq %r13, %rdi
xorl %edx, %edx
movq %rbx, %r8
movq %r15, %rbp
movq %r9, %r15
movl 0x8(%rsp), %r9d
callq 0x1630
movq %r15, %r9
movq %rbp, %r15
movq %r14, %rax
cmpq %r12, %r14
jg 0x203d
incq %r12
movslq (%r15), %rax
cmpq %rax, %r12
jl 0x2027
testl %eax, %eax
jle 0x2167
movl %eax, %edx
addl $-0x2, %eax
leaq -0x1(%rdx), %rcx
movq 0x10(%rsp), %r13
movq %rdx, %rsi
movl %eax, %eax
movq %rax, 0x18(%rsp)
decq %rdx
movslq 0x4(%r15), %rbp
cmpq %rbp, %rsi
movq %rdx, 0x8(%rsp)
movq %rcx, %r12
movq %rsi, 0x20(%rsp)
jle 0x210b
testl %ebp, %ebp
movq 0x10(%rsp), %r14
jle 0x2151
incq %rbp
movl -0x8(%r14,%rbp,4), %esi
movq 0x8(%r15), %rax
imulq %rcx, %rax
addq 0x10(%r15), %rax
movzbl -0x2(%rbp,%rax), %ecx
movl (%r14,%rdx,4), %r9d
movq %rbx, %rdi
xorl %edx, %edx
movq %rbx, %r8
callq 0x1630
movq %r12, %rcx
movq 0x8(%rsp), %rdx
decq %rbp
cmpq $0x1, %rbp
jg 0x20d1
jmp 0x2151
cmpq $0x2, %rsi
jl 0x2151
movl %ecx, %ebp
movq 0x18(%rsp), %r14
movl (%r13,%r14,4), %esi
movq 0x8(%r15), %rax
imulq %rcx, %rax
addq 0x10(%r15), %rax
movzbl (%r14,%rax), %ecx
movl (%r13,%rdx,4), %r9d
movq %rbx, %rdi
xorl %edx, %edx
movq %rbx, %r8
callq 0x1630
movq %r12, %rcx
movq 0x8(%rsp), %rdx
decq %r14
decl %ebp
testl %ebp, %ebp
jg 0x2118
movq 0x18(%rsp), %rax
decl %eax
decq %rcx
cmpq $0x1, 0x20(%rsp)
jg 0x209e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_LU_invmult
|
void MV_GEN_N(_LU_invmult)(const MV_GEN_TYPE* LU,
int rank,
const int* rowperm,
const int* colperm,
const MV_GEN_TYPE* Y,
MV_GEN_TYPE* X_out)
{
/* Check dimensions */
assert(LU->n_col == X_out->n_row);
assert(LU->n_row == Y->n_row);
assert(X_out->n_col == Y->n_col);
/* If the rank is unspecified (-1), we assume the max rank */
if (rank == -1)
rank = (LU->n_col < LU->n_row ? LU->n_col : LU->n_row);
/* Clear out the unused rows in the target vector */
for (int i = rank; i < X_out->n_row; ++i) {
MV_GEN_N(_clear_row)(X_out, colperm[i]);
}
/* Multiply with L^-1 */
for (int i = 0; i < rank; ++i) {
MV_GEN_N(_copy_row)(Y, rowperm[i], X_out, colperm[i]);
for (int j = 0; j < i; ++j) {
MV_GEN_N(_multadd_row)(X_out, colperm[j],
MV_GEN_N(_get_el)(LU, i, j),
X_out, colperm[i]);
}
}
/* Multiply with U^-1 */
for (int i = rank - 1; i >= 0; --i) {
for (int j = i + 1; j < LU->n_col; ++j) {
MV_GEN_N(_multadd_row)(X_out, colperm[j],
MV_GEN_N(_get_el)(LU, i, j), X_out, colperm[i]);
}
MV_GEN_N(_mult_row)(X_out, colperm[i],
finv(MV_GEN_N(_get_el)(LU, i, i)));
}
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r12
movq %rcx, %r14
movq %rdx, (%rsp)
movq %rdi, %r15
cmpl $-0x1, %esi
jne 0x21a5
movl (%r15), %esi
movl 0x4(%r15), %eax
cmpl %esi, %eax
cmovll %eax, %esi
cmpl (%rbx), %esi
jge 0x21df
movslq %esi, %rax
cmpl $0x0, 0x4(%rbx)
jle 0x21d4
movslq (%r14,%rax,4), %rcx
xorl %edx, %edx
movq 0x8(%rbx), %rdi
imulq %rcx, %rdi
addq 0x10(%rbx), %rdi
movb $0x0, (%rdx,%rdi)
incq %rdx
movslq 0x4(%rbx), %rdi
cmpq %rdi, %rdx
jl 0x21b8
incq %rax
movslq (%rbx), %rcx
cmpq %rcx, %rax
jl 0x21ac
movl %esi, %r13d
movl %esi, 0x14(%rsp)
testl %esi, %esi
jle 0x227f
xorl %ebp, %ebp
movq %r13, 0x8(%rsp)
cmpl $0x0, 0x4(%rbx)
jle 0x2237
movslq (%r14,%rbp,4), %rax
movq (%rsp), %rcx
movslq (%rcx,%rbp,4), %rcx
xorl %edx, %edx
movq 0x8(%r12), %rsi
imulq %rcx, %rsi
addq 0x10(%r12), %rsi
movb (%rdx,%rsi), %sil
movq 0x8(%rbx), %rdi
imulq %rax, %rdi
addq 0x10(%rbx), %rdi
movb %sil, (%rdx,%rdi)
incq %rdx
movslq 0x4(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x2209
testq %rbp, %rbp
je 0x226e
xorl %r13d, %r13d
movl (%r14,%r13,4), %esi
movq 0x8(%r15), %rax
imulq %rbp, %rax
addq 0x10(%r15), %rax
movzbl (%r13,%rax), %ecx
movl (%r14,%rbp,4), %r9d
movq %rbx, %rdi
xorl %edx, %edx
movq %rbx, %r8
callq 0x1630
incq %r13
cmpq %r13, %rbp
jne 0x223f
incq %rbp
movq 0x8(%rsp), %r13
cmpq %r13, %rbp
jne 0x21f5
cmpl $0x0, 0x14(%rsp)
jle 0x2314
leaq -0x1(%r13), %r12
movq %r13, %rcx
decq %r13
movslq 0x4(%r15), %rax
movq %rcx, %rbp
movq %rcx, 0x8(%rsp)
cmpq %rax, %rcx
jge 0x22d7
movl (%r14,%rbp,4), %esi
movq 0x8(%r15), %rax
imulq %r12, %rax
addq 0x10(%r15), %rax
movzbl (%rbp,%rax), %ecx
movl (%r14,%r13,4), %r9d
movq %rbx, %rdi
xorl %edx, %edx
movq %rbx, %r8
callq 0x1630
incq %rbp
movslq 0x4(%r15), %rax
cmpq %rax, %rbp
jl 0x22a5
movl (%r14,%r13,4), %eax
movl %eax, (%rsp)
movq 0x8(%r15), %rax
imulq %r13, %rax
addq 0x10(%r15), %rax
movq 0x8(%rsp), %rbp
movzbl -0x1(%rbp,%rax), %edi
callq 0x27b3
movzbl %al, %edx
movq %rbx, %rdi
movl (%rsp), %esi
callq 0x1585
decq %r12
cmpq $0x1, %rbp
jg 0x228e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_LU_mult_inplace
|
void MV_GEN_N(_LU_mult_inplace)(const MV_GEN_TYPE* LU,
const int* inv_rowperm,
const int* colperm,
MV_GEN_TYPE* X_inout)
{
/* Create the views for inputs & outputs
*
* The views access the same underlying backend storage,
* so some elements alias. The number of rows of the views
* differ, however.
*/
assert(LU->n_col <= X_inout->n_row);
assert(LU->n_row <= X_inout->n_row);
MV_GEN_TYPE X = MV_GEN_N(_get_subview)(X_inout, 0, 0, LU->n_col, X_inout->n_col);
MV_GEN_TYPE Y = MV_GEN_N(_get_subview)(X_inout, 0, 0, LU->n_row, X_inout->n_col);
/* Apply the column permutation */
if (colperm != NULL) {
MV_GEN_N(_permute_rows)(&X, colperm);
}
MV_GEN_N(_U_mult_inplace)(LU, X_inout);
MV_GEN_N(_L_mult_inplace)(LU, X_inout);
/* Apply the row permutation */
if (inv_rowperm != NULL) {
MV_GEN_N(_permute_rows)(&Y, inv_rowperm);
}
}
|
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movl 0x4(%rdi), %eax
movl 0x4(%rcx), %ecx
movl %eax, 0x18(%rsp)
movl %ecx, 0x1c(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%r14), %rsi
movq %rsi, 0x28(%rsp)
movl (%rdi), %edi
movl %edi, (%rsp)
movl %ecx, 0x4(%rsp)
movq %rax, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
testq %rdx, %rdx
je 0x237a
leaq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0x19ea
movq %r15, %rdi
movq %r14, %rsi
callq 0x23aa
movq %r15, %rdi
movq %r14, %rsi
callq 0x244a
testq %rbx, %rbx
je 0x23a0
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x19ea
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_U_mult_inplace
|
void MV_GEN_N(_U_mult_inplace)(const MV_GEN_TYPE* LU, MV_GEN_TYPE* X_inout)
{
for (int i = 0; i < LU->n_col && i < LU->n_row; ++i) {
MV_GEN_N(_mult_row)(X_inout, i, MV_GEN_N(_get_el)(LU, i, i));
for (int j = i + 1; j < LU->n_col; ++j) {
MV_GEN_N(_multadd_row)(X_inout, j,
MV_GEN_N(_get_el)(LU, i, j),
X_inout, i);
}
}
}
|
cmpl $0x0, 0x4(%rdi)
jle 0x2449
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %r13d
xorl %ebp, %ebp
movslq (%r14), %rax
cmpq %rax, %rbp
jge 0x243b
movq %rbp, %r15
movq 0x8(%r14), %rax
imulq %rbp, %rax
addq 0x10(%r14), %rax
movzbl (%rbp,%rax), %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1585
incq %rbp
movslq 0x4(%r14), %rax
cmpq %rax, %rbp
jge 0x242f
movq %r13, %r12
movq 0x8(%r14), %rax
imulq %r15, %rax
addq 0x10(%r14), %rax
movzbl (%r12,%rax), %ecx
movq %rbx, %rdi
movl %r12d, %esi
xorl %edx, %edx
movq %rbx, %r8
movl %r15d, %r9d
callq 0x1630
incq %r12
cmpl %r12d, 0x4(%r14)
jg 0x2402
movslq 0x4(%r14), %rax
incq %r13
cmpq %rax, %rbp
jl 0x23cd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_LU_invmult_inplace
|
void MV_GEN_N(_LU_invmult_inplace)(const MV_GEN_TYPE* LU,
int rank,
const int* rowperm,
const int* inv_colperm,
MV_GEN_TYPE* X_inout)
{
/* If the rank is unspecified (-1), we assume the max rank */
if (rank == -1)
rank = (LU->n_col < LU->n_row ? LU->n_col : LU->n_row);
/* Create adequate views */
assert(LU->n_col <= X_inout->n_row);
assert(LU->n_row <= X_inout->n_row);
MV_GEN_TYPE X = MV_GEN_N(_get_subview)(X_inout, 0, 0, LU->n_col, X_inout->n_col);
MV_GEN_TYPE Y = MV_GEN_N(_get_subview)(X_inout, 0, 0, LU->n_row, X_inout->n_col);
/* Apply the row permutation */
if (rowperm != NULL) {
MV_GEN_N(_permute_rows)(&Y, rowperm);
}
MV_GEN_N(_L_invmult_inplace)(LU, rank, &Y);
MV_GEN_N(_U_invmult_inplace)(LU, rank, &X);
/* Apply the column permutation */
if (inv_colperm != NULL) {
MV_GEN_N(_permute_rows)(&X, inv_colperm);
}
}
|
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rcx, %rbx
movl %esi, %ebp
movq %rdi, %r14
cmpl $-0x1, %esi
jne 0x2567
movl (%r14), %ebp
movl 0x4(%r14), %eax
cmpl %ebp, %eax
cmovll %eax, %ebp
movl 0x4(%r14), %eax
movl 0x4(%r8), %ecx
movl %eax, 0x18(%rsp)
movl %ecx, 0x1c(%rsp)
movq 0x8(%r8), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%r8), %rsi
movq %rsi, 0x28(%rsp)
movl (%r14), %edi
movl %edi, (%rsp)
movl %ecx, 0x4(%rsp)
movq %rax, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
testq %rdx, %rdx
je 0x25ad
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x19ea
movq %rsp, %rdx
movq %r14, %rdi
movl %ebp, %esi
xorl %ecx, %ecx
callq 0x25f6
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
xorl %ecx, %ecx
callq 0x2680
testq %rbx, %rbx
je 0x25df
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x19ea
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_L_invmult_inplace_p
|
void MV_GEN_N(_L_invmult_inplace_p)(const MV_GEN_TYPE* LU,
int rank,
MV_GEN_TYPE* X_inout,
const int* placements)
{
/* Apply L^(-1) */
for (int i = 0; i < rank; ++i) {
const int pi = (placements ? placements[i] : i);
for (int j = 0; j < i; ++j) {
const int pj = (placements ? placements[j] : j);
MV_GEN_N(_multadd_row)(X_inout, pj,
MV_GEN_N(_get_el)(LU, i, j),
X_inout, pi);
}
}
}
|
testl %esi, %esi
jle 0x267f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %eax
movq %rax, (%rsp)
xorl %r13d, %r13d
testq %rbx, %rbx
je 0x2626
movl (%rbx,%r13,4), %ebp
jmp 0x2629
movl %r13d, %ebp
testq %r13, %r13
je 0x2668
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x263c
movl (%rbx,%r12,4), %esi
jmp 0x263f
movl %r12d, %esi
movq 0x8(%r15), %rax
imulq %r13, %rax
addq 0x10(%r15), %rax
movzbl (%r12,%rax), %ecx
movq %r14, %rdi
xorl %edx, %edx
movq %r14, %r8
movl %ebp, %r9d
callq 0x1630
incq %r12
cmpq %r12, %r13
jne 0x2631
incq %r13
cmpq (%rsp), %r13
jne 0x261b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
m256v_U_invmult_inplace_p
|
void MV_GEN_N(_U_invmult_inplace_p)(const MV_GEN_TYPE* LU,
int rank,
MV_GEN_TYPE* X_inout,
const int* placements)
{
/* Apply U^(-1) */
for (int i = rank - 1; i >= 0; --i) {
const int pi = (placements ? placements[i] : i);
for (int j = i + 1; j < LU->n_col; ++j) {
const int pj = (placements ? placements[j] : j);
MV_GEN_N(_multadd_row)(X_inout, pj,
MV_GEN_N(_get_el)(LU, i, j),
X_inout, pi);
}
MV_GEN_N(_mult_row)(X_inout, pi,
finv(MV_GEN_N(_get_el)(LU, i, i)));
}
}
|
testl %esi, %esi
jle 0x274f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %ecx
leaq -0x1(%rcx), %r12
leaq -0x1(%rcx), %rax
testq %rbx, %rbx
movq %rax, 0x8(%rsp)
je 0x26b8
movl (%rbx,%rax,4), %ebp
jmp 0x26ba
movl %eax, %ebp
movslq 0x4(%r15), %rax
movq %rcx, %r13
movq %rcx, 0x10(%rsp)
cmpq %rax, %rcx
jge 0x2704
testq %rbx, %rbx
je 0x26d6
movl (%rbx,%r13,4), %esi
jmp 0x26d9
movl %r13d, %esi
movq 0x8(%r15), %rax
imulq %r12, %rax
addq 0x10(%r15), %rax
movzbl (%r13,%rax), %ecx
movq %r14, %rdi
xorl %edx, %edx
movq %r14, %r8
movl %ebp, %r9d
callq 0x1630
incq %r13
cmpl %r13d, 0x4(%r15)
jg 0x26cb
movq 0x8(%r15), %rax
imulq 0x8(%rsp), %rax
addq 0x10(%r15), %rax
movq 0x10(%rsp), %r13
movzbl -0x1(%r13,%rax), %edi
callq 0x27b3
movzbl %al, %edx
movq %r14, %rdi
movl %ebp, %esi
callq 0x1585
decq %r12
cmpq $0x1, %r13
movq 0x8(%rsp), %rcx
jg 0x26a5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/lorinder[P]TvRQ/algebra/mv_generic.h
|
parameters_dump
|
void parameters_dump(const parameters* P, void* usr, parameter_print_func f)
{
#define pr(var) do { (*f)(usr, #var, P->var); } while(0)
pr(K);
pr(Kprime);
pr(J);
pr(L);
pr(S);
pr(H);
pr(B);
pr(W);
pr(P);
pr(P1);
pr(U);
#undef pr
}
|
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %edx
leaq 0x3502(%rip), %rsi # 0x5ddc
movq %rbx, %rdi
callq *%r15
movl 0x4(%r14), %edx
leaq 0x34f3(%rip), %rsi # 0x5dde
movq %rbx, %rdi
callq *%r15
movl 0x8(%r14), %edx
leaq 0x34e9(%rip), %rsi # 0x5de5
movq %rbx, %rdi
callq *%r15
movl 0xc(%r14), %edx
leaq 0x34da(%rip), %rsi # 0x5de7
movq %rbx, %rdi
callq *%r15
movl 0x10(%r14), %edx
leaq 0x34cb(%rip), %rsi # 0x5de9
movq %rbx, %rdi
callq *%r15
movl 0x14(%r14), %edx
leaq 0x34bc(%rip), %rsi # 0x5deb
movq %rbx, %rdi
callq *%r15
movl 0x18(%r14), %edx
leaq 0x34ad(%rip), %rsi # 0x5ded
movq %rbx, %rdi
callq *%r15
movl 0x1c(%r14), %edx
leaq 0x349e(%rip), %rsi # 0x5def
movq %rbx, %rdi
callq *%r15
movl 0x20(%r14), %edx
leaq 0x348f(%rip), %rsi # 0x5df1
movq %rbx, %rdi
callq *%r15
movl 0x24(%r14), %edx
leaq 0x3480(%rip), %rsi # 0x5df3
movq %rbx, %rdi
callq *%r15
movl 0x28(%r14), %edx
leaq 0x3472(%rip), %rsi # 0x5df6
movq %rbx, %rdi
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
jmpq *%rax
|
/lorinder[P]TvRQ/rfc6330_alg/parameters.c
|
main
|
int main( void )
{
#ifndef REGTEST
char source[100];
#include "scanf_testcases.h"
#endif
return TEST_RESULTS;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
leaq 0x10(%rsp), %rdi
movl $0x6f6f66, (%rdi) # imm = 0x6F6F66
leaq 0x30fa(%rip), %rsi # 0x60a5
leaq 0x80(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x384f
movl $0x6f66, %eax # imm = 0x6F66
xorl 0x80(%rsp), %eax
movzbl 0x82(%rsp), %ecx
xorl $0x6f, %ecx
orw %ax, %cx
je 0x2fff
incl 0x6c5f(%rip) # 0x9c44
leaq 0x316d(%rip), %rdi # 0x6159
leaq 0x31e0(%rip), %rdx # 0x61d3
movl $0xc, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x333834373431322d, %rbx # imm = 0x333834373431322D
leaq 0x10(%rsp), %rdi
movq %rbx, (%rdi)
movl $0x383436, 0x8(%rdi) # imm = 0x383436
leaq 0x31e0(%rip), %rsi # 0x61ff
xorl %ebp, %ebp
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x385b
cmpl (%rsp), %ebp
jo 0x3059
incl 0x6c05(%rip) # 0x9c44
leaq 0x3113(%rip), %rdi # 0x6159
leaq 0x31b5(%rip), %rdx # 0x6202
movl $0x1e, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x3633383437343132, %r14 # imm = 0x3633383437343132
leaq 0x10(%rsp), %rdi
movq %r14, (%rdi)
movl $0x373436, 0x7(%rdi) # imm = 0x373436
leaq 0x3186(%rip), %rsi # 0x61ff
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3867
cmpl $0x7fffffff, (%rsp) # imm = 0x7FFFFFFF
je 0x30b5
incl 0x6ba9(%rip) # 0x9c44
leaq 0x30b7(%rip), %rdi # 0x6159
leaq 0x3171(%rip), %rdx # 0x621a
movl $0x20, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movb $0x0, 0x2(%rdi)
movw $0x312d, (%rdi) # imm = 0x312D
leaq 0x3135(%rip), %rsi # 0x61ff
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3873
cmpl $-0x1, (%rsp)
je 0x3103
incl 0x6b5b(%rip) # 0x9c44
leaq 0x3069(%rip), %rdi # 0x6159
leaq 0x3130(%rip), %rdx # 0x6227
movl $0x22, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movw $0x30, (%rdi)
leaq 0x30eb(%rip), %rsi # 0x61ff
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x387f
cmpl $0x0, (%rsp)
je 0x314d
incl 0x6b11(%rip) # 0x9c44
leaq 0x301f(%rip), %rdi # 0x6159
leaq 0x30ee(%rip), %rdx # 0x622f
movl $0x24, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movw $0x31, (%rdi)
leaq 0x30a1(%rip), %rsi # 0x61ff
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x388b
cmpl $0x1, (%rsp)
je 0x3197
incl 0x6ac7(%rip) # 0x9c44
leaq 0x2fd5(%rip), %rdi # 0x6159
leaq 0x30ab(%rip), %rdx # 0x6236
movl $0x26, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movq %rbx, (%rdi)
movl $0x383436, 0x8(%rdi) # imm = 0x383436
leaq 0x3090(%rip), %rsi # 0x623d
xorl %ebx, %ebx
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3897
cmpl (%rsp), %ebx
jo 0x31e7
incl 0x6a77(%rip) # 0x9c44
leaq 0x2f85(%rip), %rdi # 0x6159
leaq 0x3027(%rip), %rdx # 0x6202
movl $0x28, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movq %r14, (%rdi)
movl $0x373436, 0x7(%rdi) # imm = 0x373436
leaq 0x3040(%rip), %rsi # 0x623d
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38a3
cmpl $0x7fffffff, (%rsp) # imm = 0x7FFFFFFF
je 0x3239
incl 0x6a25(%rip) # 0x9c44
leaq 0x2f33(%rip), %rdi # 0x6159
leaq 0x2fed(%rip), %rdx # 0x621a
movl $0x2a, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movb $0x0, 0x2(%rdi)
movw $0x312d, (%rdi) # imm = 0x312D
leaq 0x2fef(%rip), %rsi # 0x623d
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38af
cmpl $-0x1, (%rsp)
je 0x3287
incl 0x69d7(%rip) # 0x9c44
leaq 0x2ee5(%rip), %rdi # 0x6159
leaq 0x2fac(%rip), %rdx # 0x6227
movl $0x2c, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movw $0x30, (%rdi)
leaq 0x2fa5(%rip), %rsi # 0x623d
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38bb
cmpl $0x0, (%rsp)
je 0x32d1
incl 0x698d(%rip) # 0x9c44
leaq 0x2e9b(%rip), %rdi # 0x6159
leaq 0x2f6a(%rip), %rdx # 0x622f
movl $0x2e, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movw $0x31, (%rdi)
leaq 0x2f5b(%rip), %rsi # 0x623d
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38c7
cmpl $0x1, (%rsp)
je 0x331b
incl 0x6943(%rip) # 0x9c44
leaq 0x2e51(%rip), %rdi # 0x6159
leaq 0x2f27(%rip), %rdx # 0x6236
movl $0x30, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x4646464646377830, %rax # imm = 0x4646464646377830
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movl $0x464646, 0x7(%rdi) # imm = 0x464646
leaq 0x2f02(%rip), %rsi # 0x623d
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38d3
cmpl $0x7fffffff, (%rsp) # imm = 0x7FFFFFFF
je 0x3377
incl 0x68e7(%rip) # 0x9c44
leaq 0x2df5(%rip), %rdi # 0x6159
leaq 0x2eaf(%rip), %rdx # 0x621a
movl $0x32, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movl $0x307830, (%rdi) # imm = 0x307830
leaq 0x2eb4(%rip), %rsi # 0x623d
movq %rsp, %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38df
cmpl $0x0, (%rsp)
je 0x33c5
incl 0x6899(%rip) # 0x9c44
leaq 0x2da7(%rip), %rdi # 0x6159
leaq 0x2e76(%rip), %rdx # 0x622f
movl $0x34, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x3237363934393234, %rax # imm = 0x3237363934393234
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movl $0x353932, 0x7(%rdi) # imm = 0x353932
leaq 0x2e71(%rip), %rsi # 0x6256
leaq 0x4(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38eb
cmpl $-0x1, 0x4(%rsp)
je 0x3421
incl 0x683d(%rip) # 0x9c44
leaq 0x2d4b(%rip), %rdi # 0x6159
leaq 0x2e44(%rip), %rdx # 0x6259
movl $0x3c, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movw $0x30, (%rdi)
leaq 0x2e24(%rip), %rsi # 0x6256
leaq 0x4(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x38f7
cmpl $0x0, 0x4(%rsp)
je 0x346e
incl 0x67f0(%rip) # 0x9c44
leaq 0x2cfe(%rip), %rdi # 0x6159
leaq 0x2e05(%rip), %rdx # 0x6267
movl $0x3e, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x4646464646464666, %rax # imm = 0x4646464646464666
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
leaq 0x2dec(%rip), %rsi # 0x6277
leaq 0x4(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3903
cmpl $-0x1, 0x4(%rsp)
je 0x34c7
incl 0x6797(%rip) # 0x9c44
leaq 0x2ca5(%rip), %rdi # 0x6159
leaq 0x2d9e(%rip), %rdx # 0x6259
movl $0x40, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x4646464646464637, %rax # imm = 0x4646464646464637
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
leaq 0x2d93(%rip), %rsi # 0x6277
leaq 0x4(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x390f
cmpl $0x7fffffff, 0x4(%rsp) # imm = 0x7FFFFFFF
je 0x3523
incl 0x673b(%rip) # 0x9c44
leaq 0x2c49(%rip), %rdi # 0x6159
leaq 0x2d63(%rip), %rdx # 0x627a
movl $0x42, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movw $0x30, (%rdi)
leaq 0x2d53(%rip), %rsi # 0x6287
leaq 0x4(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x391b
cmpl $0x0, 0x4(%rsp)
je 0x3570
incl 0x66ee(%rip) # 0x9c44
leaq 0x2bfc(%rip), %rdi # 0x6159
leaq 0x2d03(%rip), %rdx # 0x6267
movl $0x44, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x3737373737373733, %rax # imm = 0x3737373737373733
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movl $0x373737, 0x8(%rdi) # imm = 0x373737
leaq 0x2cf7(%rip), %rsi # 0x6287
leaq 0x4(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3927
cmpl $-0x1, 0x4(%rsp)
je 0x35cc
incl 0x6692(%rip) # 0x9c44
leaq 0x2ba0(%rip), %rdi # 0x6159
leaq 0x2c99(%rip), %rdx # 0x6259
movl $0x46, %esi
xorl %eax, %eax
callq 0x3bc0
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rdx
movaps %xmm0, 0x50(%rdx)
movaps %xmm0, 0x40(%rdx)
movaps %xmm0, 0x30(%rdx)
movaps %xmm0, 0x20(%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movl $0x0, 0x60(%rdx)
leaq 0x10(%rsp), %rdi
movw $0x78, (%rdi)
leaq 0x2c90(%rip), %rsi # 0x6296
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3933
cmpw $0x78, 0x80(%rsp)
je 0x3641
incl 0x661d(%rip) # 0x9c44
leaq 0x2b2b(%rip), %rdi # 0x6159
leaq 0x2c64(%rip), %rdx # 0x6299
movl $0x4a, %esi
xorl %eax, %eax
callq 0x3bc0
movabsq $0x67666564636261, %rax # imm = 0x67666564636261
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x2c5f(%rip), %rsi # 0x62b9
leaq 0x80(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x393f
cmpl $0x636261, 0x80(%rsp) # imm = 0x636261
je 0x369f
incl 0x65bf(%rip) # 0x9c44
leaq 0x2acd(%rip), %rdi # 0x6159
leaq 0x2c2d(%rip), %rdx # 0x62c0
movl $0x57, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
leaq 0x3862(%rip), %r15 # 0x6f14
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3c58
movq %rbx, (%r14)
leaq 0x10(%rsp), %rax
movl $0xc, %ecx
movq %rax, %rdi
movq %r12, %rsi
rep movsq (%rsi), %es:(%rdi)
movl 0x60(%r12), %ecx
movl %ecx, 0x60(%rax)
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x394b
cmpq $0x0, 0x8(%rsp)
je 0x3728
incl 0x6536(%rip) # 0x9c44
leaq 0x2a44(%rip), %rdi # 0x6159
leaq 0x2bc6(%rip), %rdx # 0x62e2
movl $0x61, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x8(%rsp), %r14
movq %rbx, (%r14)
leaq 0x37dd(%rip), %r15 # 0x6f14
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3c58
movq $0x0, (%r14)
leaq 0x10(%rsp), %rax
movl $0xc, %ecx
movq %rax, %rdi
movq %r12, %rsi
rep movsq (%rsi), %es:(%rdi)
movl 0x60(%r12), %ecx
movl %ecx, 0x60(%rax)
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x3957
cmpq %rbx, 0x8(%rsp)
je 0x37b1
incl 0x64ad(%rip) # 0x9c44
leaq 0x29bb(%rip), %rdi # 0x6159
leaq 0x2b47(%rip), %rdx # 0x62ec
movl $0x66, %esi
xorl %eax, %eax
callq 0x3bc0
leaq 0x10(%rsp), %rdi
movb $0x0, (%rdi)
leaq 0x2a3f(%rip), %rsi # 0x61ff
movq %rsp, %rdx
xorl %eax, %eax
callq 0x397b
cmpl $-0x1, %eax
jne 0x3963
leaq 0x10(%rsp), %rdi
movl $0x6f6f66, (%rdi) # imm = 0x6F6F66
leaq 0x2b0f(%rip), %rsi # 0x62f4
leaq 0x80(%rsp), %rdx
xorl %eax, %eax
callq 0x397b
cmpl $0x1, %eax
jne 0x396f
movl $0x6f66, %eax # imm = 0x6F66
xorl 0x80(%rsp), %eax
movzbl 0x82(%rsp), %ecx
xorl $0x6f, %ecx
orw %ax, %cx
je 0x3839
incl 0x6425(%rip) # 0x9c44
leaq 0x2933(%rip), %rdi # 0x6159
leaq 0x29a6(%rip), %rdx # 0x61d3
movl $0x6a, %esi
xorl %eax, %eax
callq 0x3bc0
movl 0x6405(%rip), %eax # 0x9c44
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x2090
jmp 0x2fc3
movl %eax, %edi
callq 0x20bd
jmp 0x3034
movl %eax, %edi
callq 0x20ea
jmp 0x308c
movl %eax, %edi
callq 0x2117
jmp 0x30dd
movl %eax, %edi
callq 0x2144
jmp 0x3127
movl %eax, %edi
callq 0x2171
jmp 0x3171
movl %eax, %edi
callq 0x219e
jmp 0x31c2
movl %eax, %edi
callq 0x21cb
jmp 0x3210
movl %eax, %edi
callq 0x21f8
jmp 0x3261
movl %eax, %edi
callq 0x2225
jmp 0x32ab
movl %eax, %edi
callq 0x2252
jmp 0x32f5
movl %eax, %edi
callq 0x227f
jmp 0x334e
movl %eax, %edi
callq 0x22ac
jmp 0x339f
movl %eax, %edi
callq 0x22d9
jmp 0x33fa
movl %eax, %edi
callq 0x2306
jmp 0x3447
movl %eax, %edi
callq 0x2333
jmp 0x34a0
movl %eax, %edi
callq 0x2360
jmp 0x34f9
movl %eax, %edi
callq 0x238d
jmp 0x3549
movl %eax, %edi
callq 0x23ba
jmp 0x35a5
movl %eax, %edi
callq 0x23e7
jmp 0x3616
movl %eax, %edi
callq 0x2414
jmp 0x3672
movl %eax, %edi
callq 0x2441
jmp 0x3700
movl %eax, %edi
callq 0x246e
jmp 0x378a
movl %eax, %edi
callq 0x249b
jmp 0x37d3
movl %eax, %edi
callq 0x24c8
jmp 0x37fd
|
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_scan.c
|
testscanf
|
static int testscanf( const char * s, const char * format, ... )
{
struct _PDCLIB_status_t status;
char const * rc;
status.n = 0;
status.i = 0;
status.s = ( char * )s;
status.stream = NULL;
va_start( status.arg, format );
rc = _PDCLIB_scan( format, &status );
if ( rc != NULL && rc[0] != '\0' )
{
printf( "_PDCLIB_scan() did not return end-of-specifier on '%s'.\n", format );
++TEST_RESULTS;
}
if ( rc == NULL && s[0] != '\0' )
{
printf( "_PDCLIB_scan() returned NULL on '%s' input.", s );
++TEST_RESULTS;
}
va_end( status.arg );
return status.n;
}
|
pushq %r14
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x60(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x39e4
movaps %xmm0, 0x90(%rsp)
movaps %xmm1, 0xa0(%rsp)
movaps %xmm2, 0xb0(%rsp)
movaps %xmm3, 0xc0(%rsp)
movaps %xmm4, 0xd0(%rsp)
movaps %xmm5, 0xe0(%rsp)
movaps %xmm6, 0xf0(%rsp)
movaps %xmm7, 0x100(%rsp)
xorps %xmm0, %xmm0
leaq 0x8(%rsp), %rsi
movups %xmm0, 0x8(%rsi)
movq %r14, 0x20(%rsi)
movq $0x0, 0x38(%rsi)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, 0x40(%rsi)
leaq 0x130(%rsp), %rax
movq %rax, 0x48(%rsi)
movq %rdi, 0x50(%rsi)
movq %rbx, %rdi
callq 0x25ec
testq %rax, %rax
je 0x3a38
cmpb $0x0, (%rax)
je 0x3a55
leaq 0x28c5(%rip), %rdi # 0x62f8
movq %rbx, %rsi
jmp 0x3a48
cmpb $0x0, (%r14)
je 0x3a55
leaq 0x28ec(%rip), %rdi # 0x6331
movq %r14, %rsi
xorl %eax, %eax
callq 0x3bc0
incl 0x61ef(%rip) # 0x9c44
movl 0x10(%rsp), %eax
addq $0x118, %rsp # imm = 0x118
popq %rbx
popq %r14
retq
|
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_scan.c
|
fputs
|
int fputs( const char * _PDCLIB_restrict s, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
{
_PDCLIB_LOCK( stream->mtx );
if ( _PDCLIB_prepwrite( stream ) == EOF )
{
_PDCLIB_UNLOCK( stream->mtx );
return EOF;
}
while ( *s != '\0' )
{
/* Unbuffered and line buffered streams get flushed when fputs() does
write the terminating end-of-line. All streams get flushed if the
buffer runs full.
*/
stream->buffer[ stream->bufidx++ ] = *s;
if ( ( stream->bufidx == stream->bufsize ) ||
( ( stream->status & _IOLBF ) && *s == '\n' )
)
{
if ( _PDCLIB_flushbuffer( stream ) == EOF )
{
_PDCLIB_UNLOCK( stream->mtx );
return EOF;
}
}
++s;
}
if ( stream->status & _IONBF )
{
if ( _PDCLIB_flushbuffer( stream ) == EOF )
{
_PDCLIB_UNLOCK( stream->mtx );
return EOF;
}
}
_PDCLIB_UNLOCK( stream->mtx );
return 0;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
leaq 0x48(%rsi), %rbx
movq %rbx, %rdi
callq 0x551c
movq %r14, %rdi
callq 0x401c
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
je 0x3bab
movb (%r15), %al
testb %al, %al
je 0x3b95
incq %r15
movq 0x8(%r14), %rcx
movq 0x18(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%r14)
movb %al, (%rcx,%rdx)
movq 0x18(%r14), %rax
cmpq 0x10(%r14), %rax
jne 0x3b7d
movq %r14, %rdi
callq 0x5490
cmpl $-0x1, %eax
jne 0x3b8b
jmp 0x3bab
testb $0x2, 0x44(%r14)
je 0x3b8b
cmpb $0xa, -0x1(%r15)
je 0x3b6e
movb (%r15), %al
incq %r15
testb %al, %al
jne 0x3b51
testb $0x4, 0x44(%r14)
je 0x3ba9
movq %r14, %rdi
callq 0x5490
cmpl $-0x1, %eax
je 0x3bab
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x5534
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
/DevSolar[P]pdclib/functions/stdio/fputs.c
|
sprintf
|
int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... )
{
int rc;
va_list ap;
va_start( ap, format );
rc = vsnprintf( s, SIZE_MAX, format, ap ); /* TODO: replace with non-checking call */
va_end( ap );
return rc;
}
|
subq $0xd8, %rsp
movq %rsi, %r10
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x3cb2
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rsi, 0x10(%rcx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, (%rcx)
movq $-0x1, %rsi
movq %r10, %rdx
callq 0x3e70
addq $0xd8, %rsp
retq
nopl (%rax)
|
/DevSolar[P]pdclib/functions/stdio/sprintf.c
|
vfprintf
|
int vfprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, va_list arg )
{
/* TODO: This function should interpret format as multibyte characters. */
struct _PDCLIB_status_t status;
status.base = 0;
status.flags = 0;
status.n = SIZE_MAX;
status.i = 0;
status.current = 0;
status.s = NULL;
status.width = 0;
status.prec = EOF;
status.stream = stream;
_PDCLIB_LOCK( stream->mtx );
if ( _PDCLIB_prepwrite( stream ) == EOF )
{
_PDCLIB_UNLOCK( stream->mtx );
return EOF;
}
va_copy( status.arg, arg );
while ( *format != '\0' )
{
const char * rc;
if ( ( *format != '%' ) || ( ( rc = _PDCLIB_print( format, &status ) ) == format ) )
{
/* No conversion specifier, print verbatim */
stream->buffer[ stream->bufidx++ ] = *format;
if ( ( stream->bufidx == stream->bufsize )
|| ( ( stream->status & _IOLBF ) && ( *format == '\n' ) )
|| ( stream->status & _IONBF )
)
{
if ( _PDCLIB_flushbuffer( stream ) != 0 )
{
_PDCLIB_UNLOCK( stream->mtx );
return EOF;
}
}
++format;
status.i++;
}
else
{
/* Continue parsing after conversion specifier */
format = rc;
}
}
va_end( status.arg );
_PDCLIB_UNLOCK( stream->mtx );
return status.i;
}
|
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
movq $-0x1, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movups %xmm0, 0x28(%rsp)
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
movq %rdi, 0x40(%rsp)
leaq 0x48(%rdi), %r15
movq %r15, %rdi
callq 0x551c
movq %rbx, %rdi
callq 0x401c
cmpl $-0x1, %eax
je 0x3e44
movq 0x10(%r13), %rax
leaq 0x8(%rsp), %r12
movq %rax, 0x50(%r12)
movups (%r13), %xmm0
movups %xmm0, 0x40(%r12)
movzbl (%r14), %eax
cmpl $0x25, %eax
je 0x3dca
testl %eax, %eax
jne 0x3de1
jmp 0x3e53
movq %r14, %rdi
movq %r12, %rsi
callq 0x4068
cmpq %r14, %rax
je 0x3de1
movb $0x1, %cl
movq %rax, %r14
jmp 0x3e3a
movb (%r14), %al
movq 0x8(%rbx), %rcx
movq 0x18(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rbx)
movb %al, (%rcx,%rdx)
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
jne 0x3e19
movq %rbx, %rdi
callq 0x5490
testl %eax, %eax
je 0x3e30
movq %r15, %rdi
callq 0x5534
xorl %ecx, %ecx
jmp 0x3e3a
movl 0x44(%rbx), %eax
testb $0x2, %al
jne 0x3e26
testb $0x4, %al
jne 0x3e01
jmp 0x3e30
testb $0x4, %al
jne 0x3e01
cmpb $0xa, (%r14)
je 0x3e01
incq %r14
incq 0x18(%rsp)
movb $0x1, %cl
testb %cl, %cl
jne 0x3db8
jmp 0x3e4c
movq %r15, %rdi
callq 0x5534
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x3e5f
movq %r15, %rdi
callq 0x5534
movl 0x18(%rsp), %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
|
/DevSolar[P]pdclib/functions/stdio/vfprintf.c
|
strtol
|
long int strtol( const char * s, char ** endptr, int base )
{
long int rc;
char sign = '+';
const char * p = _PDCLIB_strtox_prelim( s, &sign, &base );
if ( base < 2 || base > 36 )
{
return 0;
}
if ( sign == '+' )
{
rc = ( long int )_PDCLIB_strtox_main( &p, ( unsigned )base, ( uintmax_t )LONG_MAX, ( uintmax_t )( LONG_MAX / base ), ( int )( LONG_MAX % base ), &sign );
}
else
{
rc = ( long int )_PDCLIB_strtox_main( &p, ( unsigned )base, ( uintmax_t )LONG_MIN, ( uintmax_t )( LONG_MIN / -base ), ( int )( -( LONG_MIN % base ) ), &sign );
}
if ( endptr != NULL )
{
*endptr = ( p != NULL ) ? ( char * ) p : ( char * ) s;
}
return ( sign == '+' ) ? rc : -rc;
}
|
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1c(%rsp), %r15
movl %edx, (%r15)
leaq 0xf(%rsp), %rsi
movb $0x2b, (%rsi)
movq %r15, %rdx
callq 0x5388
movq %rax, 0x10(%rsp)
movslq (%r15), %rsi
leal -0x25(%rsi), %eax
cmpl $-0x23, %eax
jae 0x3f5a
xorl %ecx, %ecx
jmp 0x3ff5
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpb $0x2b, 0xf(%rsp)
jne 0x3f8f
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
xorl %edx, %edx
divq %rsi
movq %rdx, %r8
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %r9
movq %rcx, %rdx
movq %rax, %rcx
jmp 0x3fcd
movq %rsi, %r8
negq %r8
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movq %rdi, %rax
cqto
idivq %r8
movq %rax, %r8
movq %rdi, %rax
cqto
idivq %rsi
movq %rdx, %rax
negl %eax
incq %rcx
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %r9
movq %rcx, %rdx
movq %r8, %rcx
movl %eax, %r8d
callq 0x5258
testq %rbx, %rbx
je 0x3fe6
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
cmovneq %rcx, %r14
movq %r14, (%rbx)
movq %rax, %rcx
negq %rcx
cmpb $0x2b, 0xf(%rsp)
cmoveq %rax, %rcx
movq %rcx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
|
/DevSolar[P]pdclib/functions/stdlib/strtol.c
|
PDCLIB_prepwrite
|
int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream )
{
if ( ( stream->bufidx < stream->bufend ) || ( stream->ungetidx > 0 ) ||
( stream->status & ( _PDCLIB_FREAD | _PDCLIB_ERRORFLAG | _PDCLIB_WIDESTREAM | _PDCLIB_EOFFLAG ) ) ||
!( stream->status & ( _PDCLIB_FWRITE | _PDCLIB_FAPPEND | _PDCLIB_FRW ) ) )
{
/* Function called on illegal (e.g. input) stream. */
*_PDCLIB_errno_func() = _PDCLIB_EBADF;
stream->status |= _PDCLIB_ERRORFLAG;
return EOF;
}
stream->status |= _PDCLIB_FWRITE | _PDCLIB_BYTESTREAM;
return 0;
}
|
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rax
cmpq 0x20(%rdi), %rax
jb 0x4045
cmpq $0x0, 0x38(%rbx)
jne 0x4045
movl 0x44(%rbx), %eax
testl $0xe08, %eax # imm = 0xE08
sete %cl
testb $0x70, %al
setne %dl
testb %dl, %cl
jne 0x405b
callq 0x567c
movl $0x9, (%rax)
orb $0x2, 0x45(%rbx)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbx
retq
orl $0x1010, %eax # imm = 0x1010
movl %eax, 0x44(%rbx)
xorl %eax, %eax
jmp 0x4059
nop
|
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_prepwrite.c
|
intformat
|
static void intformat( intmax_t value, struct _PDCLIB_status_t * status )
{
/* At worst, we need two prefix characters (hex prefix). */
char preface[3] = "\0";
size_t preidx = 0;
if ( status->prec < 0 )
{
status->prec = 1;
}
if ( ( status->flags & E_alt ) && ( status->base == 16 || status->base == 8 ) && ( value != 0 ) )
{
/* Octal / hexadecimal prefix for "%#" conversions */
preface[ preidx++ ] = '0';
if ( status->base == 16 )
{
preface[ preidx++ ] = ( status->flags & E_lower ) ? 'x' : 'X';
}
}
if ( value < 0 )
{
/* Negative sign for negative values - at all times. */
preface[ preidx++ ] = '-';
}
else if ( !( status->flags & E_unsigned ) )
{
/* plus sign / extra space are only for signed conversions */
if ( status->flags & E_plus )
{
preface[ preidx++ ] = '+';
}
else
{
if ( status->flags & E_space )
{
preface[ preidx++ ] = ' ';
}
}
}
{
/* At this point, status->current has the number of digits queued up.
Determine if we have a precision requirement to pad those.
*/
size_t prec_pads = ( ( _PDCLIB_size_t )status->prec > status->current ) ? ( ( _PDCLIB_size_t )status->prec - status->current ) : 0;
if ( !( status->flags & ( E_minus | E_zero ) ) )
{
/* Space padding is only done if no zero padding or left alignment
is requested. Calculate the number of characters that WILL be
printed, including any prefixes determined above.
*/
/* The number of characters to be printed, plus prefixes if any. */
/* This line contained probably the most stupid, time-wasting bug
I've ever perpetrated. Greetings to Samface, DevL, and all
sceners at Breakpoint 2006.
*/
size_t characters = preidx + ( ( status->current > ( _PDCLIB_size_t )status->prec ) ? status->current : ( _PDCLIB_size_t )status->prec );
if ( status->width > characters )
{
size_t i;
for ( i = 0; i < status->width - characters; ++i )
{
PUT( ' ' );
++( status->current );
}
}
}
/* Now we did the padding, do the prefixes (if any). */
preidx = 0;
while ( preface[ preidx ] != '\0' )
{
PUT( preface[ preidx++ ] );
++( status->current );
}
/* Do the precision padding if necessary. */
while ( prec_pads-- > 0 )
{
PUT( '0' );
++( status->current );
}
if ( ( !( status->flags & E_minus ) ) && ( status->flags & E_zero ) )
{
/* If field is not left aligned, and zero padding is requested, do
so.
*/
while ( status->current < status->width )
{
PUT( '0' );
++( status->current );
}
}
}
}
|
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movb $0x0, 0xe(%rsp)
movw $0x0, 0xc(%rsp)
cmpl $0x0, 0x30(%rsi)
jns 0x4f48
movl $0x1, 0x30(%rbx)
movl 0x4(%rbx), %eax
testb $0x4, %al
jne 0x4f6a
xorl %ecx, %ecx
testq %rdi, %rdi
js 0x4f80
btl $0x11, %eax
jb 0x4f89
movb $0x2b, %dl
testb $0x2, %al
jne 0x4f82
movb $0x20, %dl
testb $0x8, %al
jne 0x4f82
jmp 0x4f89
movl (%rbx), %edx
cmpl $0x10, %edx
jne 0x50ce
testq %rdi, %rdi
jne 0x50e4
jmp 0x4f4f
movb $0x2d, %dl
movb %dl, 0xc(%rsp,%rcx)
incq %rcx
movslq 0x30(%rbx), %r15
movq 0x18(%rbx), %r14
testb $0x11, %al
jne 0x4fef
cmpq %r15, %r14
movq %r15, %r12
cmovaq %r14, %r12
addq %rcx, %r12
cmpq %r12, 0x28(%rbx)
jbe 0x4fef
cmpq %r12, 0x28(%rbx)
je 0x4fef
xorl %r13d, %r13d
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rax
jae 0x4fd8
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
je 0x4fd0
movl $0x20, %edi
callq 0x5558
jmp 0x4fd8
movq 0x20(%rbx), %rcx
movb $0x20, (%rcx,%rax)
incq 0x10(%rbx)
incq 0x18(%rbx)
incq %r13
movq 0x28(%rbx), %rax
subq %r12, %rax
cmpq %rax, %r13
jb 0x4fb1
movb 0xc(%rsp), %al
testb %al, %al
je 0x5033
leaq 0xd(%rsp), %r12
movq 0x10(%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jae 0x5020
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
je 0x5019
movsbl %al, %edi
callq 0x5558
jmp 0x5020
movq 0x20(%rbx), %rdx
movb %al, (%rdx,%rcx)
incq 0x10(%rbx)
incq 0x18(%rbx)
movb (%r12), %al
incq %r12
testb %al, %al
jne 0x4ffc
cmpq %r15, %r14
jae 0x5073
cmovaeq %r15, %r14
subq %r15, %r14
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rax
jae 0x5066
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
je 0x505e
movl $0x30, %edi
callq 0x5558
jmp 0x5066
movq 0x20(%rbx), %rcx
movb $0x30, (%rcx,%rax)
incq 0x10(%rbx)
incq 0x18(%rbx)
incq %r14
jne 0x503f
movl 0x4(%rbx), %eax
andl $0x11, %eax
cmpl $0x10, %eax
jne 0x50c0
movq 0x18(%rbx), %rax
cmpq 0x28(%rbx), %rax
jae 0x50c0
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rax
jae 0x50af
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
je 0x50a7
movl $0x30, %edi
callq 0x5558
jmp 0x50af
movq 0x20(%rbx), %rcx
movb $0x30, (%rcx,%rax)
incq 0x10(%rbx)
movq 0x18(%rbx), %rax
incq %rax
movq %rax, 0x18(%rbx)
jmp 0x5082
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
cmpl $0x8, %edx
sete %cl
testq %rdi, %rdi
setne %sil
testb %cl, %sil
je 0x4f4f
movb $0x30, 0xc(%rsp)
movl $0x1, %ecx
cmpl $0x10, %edx
jne 0x4f51
movl %eax, %ecx
shrl $0x10, %ecx
andl $0x1, %ecx
shlb $0x5, %cl
orb $0x58, %cl
movb %cl, 0xd(%rsp)
movl $0x2, %ecx
jmp 0x4f51
nop
|
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_print_integer.c
|
PDCLIB_strtox_main
|
_PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, uintmax_t error, uintmax_t limval, int limdigit, char * sign )
{
_PDCLIB_uintmax_t rc = 0;
int digit = -1;
const char * x;
while ( ( x = (const char *)memchr( _PDCLIB_digits, tolower( (unsigned char)**p ), base ) ) != NULL )
{
digit = x - _PDCLIB_digits;
if ( ( rc < limval ) || ( ( rc == limval ) && ( digit <= limdigit ) ) )
{
rc = rc * base + ( unsigned )digit;
++( *p );
}
else
{
errno = ERANGE;
/* TODO: Only if endptr != NULL - but do we really want *another* parameter? */
/* TODO: Earlier version was missing tolower() here but was not caught by tests */
while ( memchr( _PDCLIB_digits, tolower( (unsigned char)**p ), base ) != NULL )
{
++( *p );
}
/* TODO: This is ugly, but keeps caller from negating the error value */
*sign = '+';
return error;
}
}
if ( digit == -1 )
{
*p = NULL;
return 0;
}
return rc;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbp
movl %r8d, 0x4(%rsp)
movq %rcx, %r13
movq %rdx, %r15
movq %rdi, %rbx
movl %esi, %r12d
movq (%rdi), %r14
movzbl (%r14), %edi
callq 0x3a80
leaq 0x10d3(%rip), %rdi # 0x6360
movl %eax, %esi
movq %r12, %rdx
callq 0x4004
testq %rax, %rax
je 0x52fe
movq %rbp, 0x8(%rsp)
movq %r15, 0x10(%rsp)
incq %r14
xorl %ebp, %ebp
movl %eax, %r15d
subl 0x3d2b(%rip), %r15d # 0x8fe0
cmpq %r13, %rbp
jb 0x52c3
jne 0x5311
cmpl 0x4(%rsp), %r15d
jg 0x5311
movq %rbp, %rax
imulq %r12, %rax
movl %r15d, %ebp
addq %rax, %rbp
movq %r14, (%rbx)
movzbl (%r14), %edi
callq 0x3a80
leaq 0x107d(%rip), %rdi # 0x6360
movl %eax, %esi
movq %r12, %rdx
callq 0x4004
incq %r14
testq %rax, %rax
jne 0x52ab
cmpl $-0x1, %r15d
sete %al
jmp 0x5302
movb $0x1, %al
xorl %ebp, %ebp
testb %al, %al
je 0x5376
movq $0x0, (%rbx)
xorl %ebp, %ebp
jmp 0x5376
callq 0x567c
movl $0x22, (%rax)
movq (%rbx), %r14
movzbl (%r14), %edi
callq 0x3a80
leaq 0x1031(%rip), %rdi # 0x6360
movl %eax, %esi
movq %r12, %rdx
callq 0x4004
testq %rax, %rax
je 0x5369
incq %r14
leaq 0x1018(%rip), %r15 # 0x6360
movq %r14, (%rbx)
movzbl (%r14), %edi
callq 0x3a80
movq %r15, %rdi
movl %eax, %esi
movq %r12, %rdx
callq 0x4004
incq %r14
testq %rax, %rax
jne 0x5348
movq 0x8(%rsp), %rax
movb $0x2b, (%rax)
movq 0x10(%rsp), %rbp
movq %rbp, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_strtox_main.c
|
PDCLIB_flushbuffer
|
int _PDCLIB_flushbuffer( struct _PDCLIB_file_t * stream )
{
/* No need to handle buffers > INT_MAX, as PDCLib doesn't allow them */
_PDCLIB_size_t written = 0;
int rc;
unsigned int retries;
if ( !( stream->status & _PDCLIB_FBIN ) )
{
/* TODO: Text stream conversion here */
}
/* Keep trying to write data until everything is written, an error
occurs, or the configured number of retries is exceeded.
*/
for ( retries = _PDCLIB_IO_RETRIES; retries > 0; --retries )
{
rc = ( int )write( stream->handle, stream->buffer + written, stream->bufidx - written );
if ( rc < 0 )
{
/* The 1:1 mapping done in _PDCLIB_config.h ensures
this works.
*/
*_PDCLIB_errno_func() = errno;
/* Flag the stream */
stream->status |= _PDCLIB_ERRORFLAG;
/* Move unwritten remains to begin of buffer. */
stream->bufidx -= written;
memmove( stream->buffer, stream->buffer + written, stream->bufidx );
return EOF;
}
written += ( _PDCLIB_size_t )rc;
stream->pos.offset += rc;
if ( written == stream->bufidx )
{
/* Buffer written completely. */
stream->bufidx = 0;
return 0;
}
}
/* Number of retries exceeded. */
*_PDCLIB_errno_func() = _PDCLIB_EAGAIN;
stream->status |= _PDCLIB_ERRORFLAG;
/* Move unwritten remains to begin of buffer. */
stream->bufidx -= written;
memmove( stream->buffer, stream->buffer + written, stream->bufidx );
return EOF;
}
|
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movb $0x1, %al
xorl %ebx, %ebx
testb $0x1, %al
je 0x54d7
movl (%r14), %edi
movq 0x8(%r14), %rsi
addq %rbx, %rsi
movq 0x18(%r14), %rdx
subq %rbx, %rdx
callq 0x2040
testl %eax, %eax
js 0x54e4
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
addq %rax, 0x28(%r14)
addq %rax, %rbx
xorl %eax, %eax
cmpq 0x18(%r14), %rbx
jne 0x549b
movq $0x0, 0x18(%r14)
jmp 0x5516
callq 0x567c
movl $0xb, (%rax)
jmp 0x54f2
callq 0x2030
movl (%rax), %ebp
callq 0x567c
movl %ebp, (%rax)
orb $0x2, 0x45(%r14)
movq 0x8(%r14), %rdi
movq 0x18(%r14), %rdx
subq %rbx, %rdx
movq %rdx, 0x18(%r14)
addq %rdi, %rbx
movq %rbx, %rsi
callq 0x562c
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %rbp
retq
nop
|
/DevSolar[P]pdclib/platform/example/functions/_PDCLIB/_PDCLIB_flushbuffer.c
|
fputc
|
int fputc( int c, struct _PDCLIB_file_t * stream )
{
_PDCLIB_LOCK( stream->mtx );
if ( _PDCLIB_prepwrite( stream ) == EOF )
{
_PDCLIB_UNLOCK( stream->mtx );
return EOF;
}
stream->buffer[stream->bufidx++] = ( char )c;
if ( ( stream->bufidx == stream->bufsize ) /* _IOFBF */
|| ( ( stream->status & _IOLBF ) && ( ( char )c == '\n' ) ) /* _IOLBF */
|| ( stream->status & _IONBF ) /* _IONBF */
)
{
/* buffer filled, unbuffered stream, or end-of-line. */
c = ( _PDCLIB_flushbuffer( stream ) == 0 ) ? c : EOF;
}
_PDCLIB_UNLOCK( stream->mtx );
return c;
}
|
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movl %edi, %ebx
leaq 0x48(%rsi), %r14
movq %r14, %rdi
callq 0x551c
movq %r15, %rdi
callq 0x401c
cmpl $-0x1, %eax
je 0x56d6
movq 0x8(%r15), %rax
movq 0x18(%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%r15)
movb %bl, (%rax,%rcx)
movq 0x18(%r15), %rax
cmpq 0x10(%r15), %rax
jne 0x56dd
movq %r15, %rdi
callq 0x5490
xorl %ecx, %ecx
negl %eax
sbbl %ecx, %ecx
orl %ecx, %ebx
jmp 0x56f6
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
jmp 0x56f6
movl 0x44(%r15), %edx
testb $0x2, %dl
sete %al
cmpb $0xa, %bl
setne %cl
testb $0x4, %dl
jne 0x56c4
orb %al, %cl
je 0x56c4
movq %r14, %rdi
callq 0x5534
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
|
/DevSolar[P]pdclib/functions/stdio/fputc.c
|
bool test_type_conversion<std::reference_wrapper<int>&>(chaiscript::Boxed_Value const&, bool)
|
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
bool ret = run_test_type_conversion<To>(bv, expectedpass);
if (!ret) {
std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "")
<< bv.get_type_info().name() << " To: " << (std::is_const<To>::value ? "const " : "")
<< typeid(To).name() << " test was expected to " << (expectedpass ? "succeed" : "fail")
<< " but did not\n";
}
return ret;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x3bca4
movl %eax, %ebx
testb %al, %al
jne 0x34aa4
movq 0x69638(%rip), %r12 # 0x9dfd8
leaq 0x476c7(%rip), %rsi # 0x7c06e
movl $0x27, %edx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
xorl %ecx, %ecx
testb $0x1, 0x10(%rax)
leaq 0x4774f(%rip), %r15 # 0x7c113
leaq 0x476cb(%rip), %rsi # 0x7c096
cmoveq %r15, %rsi
movl $0x6, %edx
cmoveq %rcx, %rdx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
testb $0x20, 0x10(%rax)
jne 0x349fd
movq (%rax), %rax
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq 0x695cc(%rip), %r14 # 0x9dfd8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0x4767c(%rip), %rsi # 0x7c09d
movl $0x5, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x476de(%rip), %rsi # 0x7c113
movq %r14, %rdi
xorl %edx, %edx
callq 0x2e170
leaq 0x47a5d(%rip), %rsi # 0x7c4a3
movl $0x18, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x47649(%rip), %rsi # 0x7c0a3
movl $0x16, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x4764c(%rip), %rax # 0x7c0ba
leaq 0x4764d(%rip), %rsi # 0x7c0c2
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %eax
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %r14, %rdi
callq 0x2e170
leaq 0x47630(%rip), %rsi # 0x7c0c7
movl $0xd, %edx
movq %r14, %rdi
callq 0x2e170
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
bool test_type_conversion<std::reference_wrapper<int> const>(chaiscript::Boxed_Value const&, bool)
|
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
bool ret = run_test_type_conversion<To>(bv, expectedpass);
if (!ret) {
std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "")
<< bv.get_type_info().name() << " To: " << (std::is_const<To>::value ? "const " : "")
<< typeid(To).name() << " test was expected to " << (expectedpass ? "succeed" : "fail")
<< " but did not\n";
}
return ret;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x3c470
movl %eax, %ebx
testb %al, %al
jne 0x34d0b
movq 0x693d4(%rip), %r12 # 0x9dfd8
leaq 0x47463(%rip), %rsi # 0x7c06e
movl $0x27, %edx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
xorl %ecx, %ecx
testb $0x1, 0x10(%rax)
leaq 0x474eb(%rip), %r15 # 0x7c113
leaq 0x47467(%rip), %rsi # 0x7c096
cmoveq %r15, %rsi
movl $0x6, %edx
cmoveq %rcx, %rdx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
testb $0x20, 0x10(%rax)
jne 0x34c61
movq (%rax), %rax
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq 0x69368(%rip), %r14 # 0x9dfd8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0x47418(%rip), %rsi # 0x7c09d
movl $0x5, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x473fd(%rip), %rsi # 0x7c096
movl $0x6, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x477f6(%rip), %rsi # 0x7c4a3
movl $0x18, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x473e2(%rip), %rsi # 0x7c0a3
movl $0x16, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x473e5(%rip), %rax # 0x7c0ba
leaq 0x473e6(%rip), %rsi # 0x7c0c2
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %eax
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %r14, %rdi
callq 0x2e170
leaq 0x473c9(%rip), %rsi # 0x7c0c7
movl $0xd, %edx
movq %r14, %rdi
callq 0x2e170
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
bool test_type_conversion<chaiscript::Boxed_Number*>(chaiscript::Boxed_Value const&, bool)
|
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
bool ret = run_test_type_conversion<To>(bv, expectedpass);
if (!ret) {
std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "")
<< bv.get_type_info().name() << " To: " << (std::is_const<To>::value ? "const " : "")
<< typeid(To).name() << " test was expected to " << (expectedpass ? "succeed" : "fail")
<< " but did not\n";
}
return ret;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x3e5ae
movl %eax, %ebx
testb %al, %al
jne 0x356a1
movq 0x68a3b(%rip), %r12 # 0x9dfd8
leaq 0x46aca(%rip), %rsi # 0x7c06e
movl $0x27, %edx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
xorl %ecx, %ecx
testb $0x1, 0x10(%rax)
leaq 0x46b52(%rip), %r15 # 0x7c113
leaq 0x46ace(%rip), %rsi # 0x7c096
cmoveq %r15, %rsi
movl $0x6, %edx
cmoveq %rcx, %rdx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
testb $0x20, 0x10(%rax)
jne 0x355fa
movq (%rax), %rax
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq 0x689cf(%rip), %r14 # 0x9dfd8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0x46a7f(%rip), %rsi # 0x7c09d
movl $0x5, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x46ae1(%rip), %rsi # 0x7c113
movq %r14, %rdi
xorl %edx, %edx
callq 0x2e170
leaq 0x46eb0(%rip), %rsi # 0x7c4f3
movl $0x1d, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x46a4c(%rip), %rsi # 0x7c0a3
movl $0x16, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x46a4f(%rip), %rax # 0x7c0ba
leaq 0x46a50(%rip), %rsi # 0x7c0c2
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %eax
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %r14, %rdi
callq 0x2e170
leaq 0x46a33(%rip), %rsi # 0x7c0c7
movl $0xd, %edx
movq %r14, %rdi
callq 0x2e170
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
bool chaiscript::Type_Conversions::convertable_type<int&>() const
|
bool convertable_type() const noexcept {
const auto type = user_type<T>().bare_type_info();
return thread_cache().count(type) != 0;
}
|
pushq %rbx
subq $0x10, %rsp
movq 0x65ce2(%rip), %rax # 0x9df08
movq %rax, 0x8(%rsp)
callq 0x36726
movq %rax, %rbx
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x36e60
addq $0x8, %rbx
cmpq %rbx, %rax
setne %al
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x3306e
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/type_conversions.hpp
|
bool run_test_type_conversion<int const&>(chaiscript::Boxed_Value const&, bool)
|
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
try {
To ret = chaiscript::boxed_cast<To>(bv);
use(ret);
} catch (const chaiscript::exception::bad_boxed_cast &e) {
if (expectedpass) {
std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n';
return false;
}
return true;
} catch (const std::exception &e) {
std::cerr << "Unexpected standard exception when attempting cast_conversion: " << e.what() << '\n';
return false;
} catch (...) {
std::cerr << "Unexpected unknown exception when attempting cast_conversion.\n";
return false;
}
return expectedpass;
}
|
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
xorl %esi, %esi
callq 0x383d4
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %r14
movq %rax, %rdi
cmpl $0x3, %r14d
jne 0x3832f
callq 0x2e060
testb %bl, %bl
je 0x38325
movq %rax, %r14
movq 0x65cf1(%rip), %rdi # 0x9dfd8
leaq 0x43e66(%rip), %rsi # 0x7c154
movl $0x25, %edx
callq 0x2e170
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x65cd0(%rip), %rdi # 0x9dfd8
movq %rax, %rsi
callq 0x2e140
leaq 0x6(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e170
xorb $0x1, %bl
callq 0x2e1f0
jmp 0x382be
callq 0x2e060
cmpl $0x2, %r14d
jne 0x38384
movq %rax, %rbx
movq 0x65c94(%rip), %rdi # 0x9dfd8
leaq 0x43dc9(%rip), %rsi # 0x7c114
movl $0x3f, %edx
callq 0x2e170
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x65c73(%rip), %rdi # 0x9dfd8
movq %rax, %rsi
callq 0x2e140
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e170
jmp 0x3839c
movq 0x65c4d(%rip), %rdi # 0x9dfd8
leaq 0x43d43(%rip), %rsi # 0x7c0d5
movl $0x3e, %edx
callq 0x2e170
callq 0x2e1f0
xorl %ebx, %ebx
jmp 0x382be
movq %rax, %rbx
callq 0x2e1f0
jmp 0x383c4
movq %rax, %rbx
callq 0x2e1f0
jmp 0x383c4
movq %rax, %rbx
callq 0x2e1f0
movq %rbx, %rdi
callq 0x2e220
movq %rax, %rdi
callq 0x3306e
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
bool run_test_type_conversion<std::shared_ptr<int> const&>(chaiscript::Boxed_Value const&, bool)
|
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
try {
To ret = chaiscript::boxed_cast<To>(bv);
use(ret);
} catch (const chaiscript::exception::bad_boxed_cast &e) {
if (expectedpass) {
std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n';
return false;
}
return true;
} catch (const std::exception &e) {
std::cerr << "Unexpected standard exception when attempting cast_conversion: " << e.what() << '\n';
return false;
} catch (...) {
std::cerr << "Unexpected unknown exception when attempting cast_conversion.\n";
return false;
}
return expectedpass;
}
|
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3add1
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3acbb
movq 0x632d7(%rip), %rax # 0x9df70
cmpb $0x0, (%rax)
je 0x3aca3
incl 0x8(%rdi)
jmp 0x3aca7
lock
incl 0x8(%rdi)
callq 0x376e2
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3acbb
callq 0x376e2
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %r14
movq %rax, %rdi
cmpl $0x3, %r14d
jne 0x3ad2c
callq 0x2e060
testb %bl, %bl
je 0x3ad22
movq %rax, %r14
movq 0x632f4(%rip), %rdi # 0x9dfd8
leaq 0x41469(%rip), %rsi # 0x7c154
movl $0x25, %edx
callq 0x2e170
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x632d3(%rip), %rdi # 0x9dfd8
movq %rax, %rsi
callq 0x2e140
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e170
xorb $0x1, %bl
callq 0x2e1f0
jmp 0x3acbb
callq 0x2e060
cmpl $0x2, %r14d
jne 0x3ad81
movq %rax, %rbx
movq 0x63297(%rip), %rdi # 0x9dfd8
leaq 0x413cc(%rip), %rsi # 0x7c114
movl $0x3f, %edx
callq 0x2e170
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x63276(%rip), %rdi # 0x9dfd8
movq %rax, %rsi
callq 0x2e140
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e170
jmp 0x3ad99
movq 0x63250(%rip), %rdi # 0x9dfd8
leaq 0x41346(%rip), %rsi # 0x7c0d5
movl $0x3e, %edx
callq 0x2e170
callq 0x2e1f0
xorl %ebx, %ebx
jmp 0x3acbb
movq %rax, %rbx
callq 0x2e1f0
jmp 0x3adc1
movq %rax, %rbx
callq 0x2e1f0
jmp 0x3adc1
movq %rax, %rbx
callq 0x2e1f0
movq %rbx, %rdi
callq 0x2e220
movq %rax, %rdi
callq 0x3306e
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
chaiscript::detail::Cast_Helper<chaiscript::Boxed_Number>::cast(chaiscript::Boxed_Value const&, chaiscript::Type_Conversions_State const*)
|
static Boxed_Number cast(const Boxed_Value &ob, const Type_Conversions_State *) { return Boxed_Number(ob); }
|
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rsp)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x3d872
movq 0x6070c(%rip), %rcx # 0x9df70
cmpb $0x0, (%rcx)
je 0x3d86e
incl 0x8(%rax)
jmp 0x3d872
lock
incl 0x8(%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3d8b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3d88c
callq 0x376e2
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3d8a7
callq 0x376e2
movq %rbx, %rdi
callq 0x2e220
nop
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_number.hpp
|
bool run_test_type_conversion<chaiscript::Boxed_Value const&>(chaiscript::Boxed_Value const&, bool)
|
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
try {
To ret = chaiscript::boxed_cast<To>(bv);
use(ret);
} catch (const chaiscript::exception::bad_boxed_cast &e) {
if (expectedpass) {
std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n';
return false;
}
return true;
} catch (const std::exception &e) {
std::cerr << "Unexpected standard exception when attempting cast_conversion: " << e.what() << '\n';
return false;
} catch (...) {
std::cerr << "Unexpected unknown exception when attempting cast_conversion.\n";
return false;
}
return expectedpass;
}
|
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x40615
movq 0x5d984(%rip), %rax # 0x9df70
cmpb $0x0, (%rax)
je 0x405f7
incl 0x8(%r14)
jmp 0x40601
lock
incl 0x8(%r14)
cmpb $0x0, (%rax)
je 0x4061f
incl 0x8(%r14)
movq %r14, %rdi
callq 0x376e2
movq %r14, %rdi
callq 0x376e2
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
lock
incl 0x8(%r14)
jmp 0x40605
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
bool test_type_conversion<std::shared_ptr<double const>>(chaiscript::Boxed_Value const&, bool)
|
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
bool ret = run_test_type_conversion<To>(bv, expectedpass);
if (!ret) {
std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "")
<< bv.get_type_info().name() << " To: " << (std::is_const<To>::value ? "const " : "")
<< typeid(To).name() << " test was expected to " << (expectedpass ? "succeed" : "fail")
<< " but did not\n";
}
return ret;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x45985
movl %eax, %ebx
testb %al, %al
jne 0x4207d
movq 0x5c05f(%rip), %r12 # 0x9dfd8
leaq 0x3a0ee(%rip), %rsi # 0x7c06e
movl $0x27, %edx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
xorl %ecx, %ecx
testb $0x1, 0x10(%rax)
leaq 0x3a176(%rip), %r15 # 0x7c113
leaq 0x3a0f2(%rip), %rsi # 0x7c096
cmoveq %r15, %rsi
movl $0x6, %edx
cmoveq %rcx, %rdx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
testb $0x20, 0x10(%rax)
jne 0x41fd6
movq (%rax), %rax
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq 0x5bff3(%rip), %r14 # 0x9dfd8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0x3a0a3(%rip), %rsi # 0x7c09d
movl $0x5, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x3a105(%rip), %rsi # 0x7c113
movq %r14, %rdi
xorl %edx, %edx
callq 0x2e170
leaq 0x3a82b(%rip), %rsi # 0x7c84a
movl $0x12, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x3a070(%rip), %rsi # 0x7c0a3
movl $0x16, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x3a073(%rip), %rax # 0x7c0ba
leaq 0x3a074(%rip), %rsi # 0x7c0c2
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %eax
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %r14, %rdi
callq 0x2e170
leaq 0x3a057(%rip), %rsi # 0x7c0c7
movl $0xd, %edx
movq %r14, %rdi
callq 0x2e170
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
decltype(auto) chaiscript::boxed_cast<double const*>(chaiscript::Boxed_Value const&, chaiscript::Type_Conversions_State const*)
|
decltype(auto) boxed_cast(const Boxed_Value &bv, const Type_Conversions_State *t_conversions = nullptr) {
if (!t_conversions || bv.get_type_info().bare_equal(user_type<Type>()) || (t_conversions && !(*t_conversions)->convertable_type<Type>())) {
try {
return detail::Cast_Helper<Type>::cast(bv, t_conversions);
} catch (const chaiscript::detail::exception::bad_any_cast &) {
}
}
if (t_conversions && (*t_conversions)->convertable_type<Type>()) {
try {
// We will not catch any bad_boxed_dynamic_cast that is thrown, let the user get it
// either way, we are not responsible if it doesn't work
return (detail::Cast_Helper<Type>::cast((*t_conversions)->boxed_type_conversion<Type>(t_conversions->saves(), bv), t_conversions));
} catch (...) {
try {
// try going the other way
return (detail::Cast_Helper<Type>::cast((*t_conversions)->boxed_type_down_conversion<Type>(t_conversions->saves(), bv),
t_conversions));
} catch (const chaiscript::detail::exception::bad_any_cast &) {
throw exception::bad_boxed_cast(bv.get_type_info(), typeid(Type));
}
}
} else {
// If it's not convertable, just throw the error, don't waste the time on the
// attempted dynamic_cast
throw exception::bad_boxed_cast(bv.get_type_info(), typeid(Type));
}
}
|
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x44ada
movq (%rbx), %rdi
movq 0x594f3(%rip), %rax # 0x9df38
movq %rsp, %rsi
movq %rax, (%rsi)
movq 0x5958e(%rip), %rax # 0x9dfe0
movq %rax, 0x8(%rsi)
movl $0x5, 0x10(%rsi)
callq 0x366b4
testb %al, %al
jne 0x44ada
movq (%r14), %rdi
callq 0x44cac
testb %al, %al
je 0x44ada
movq (%r14), %rdi
callq 0x44cac
testb %al, %al
je 0x44c38
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq 0x594a8(%rip), %r12 # 0x9df38
leaq 0x20(%rsp), %rdx
movq %r12, (%rdx)
movq 0x59541(%rip), %r13 # 0x9dfe0
movq %r13, 0x8(%rdx)
movl $0x5, 0x10(%rdx)
movq %rsp, %rdi
movq %rbx, %r8
callq 0x36fe0
movq (%rsp), %rdi
movq 0x28(%rdi), %r15
movq 0x5951c(%rip), %rsi # 0x9dfe0
callq 0x2e61e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x44aed
callq 0x376e2
jmp 0x44aed
movq (%rbx), %rdi
movq 0x28(%rdi), %r15
movq 0x594f8(%rip), %rsi # 0x9dfe0
callq 0x2e61e
movq %r15, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x44b15
callq 0x376e2
jmp 0x44b15
movq %rax, %r15
movq %r15, %rdi
callq 0x2e060
movq (%r14), %rsi
movq 0x8(%r14), %rcx
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %r13, 0x8(%rdx)
movl $0x5, 0x10(%rdx)
movq %rsp, %rdi
movq %rbx, %r8
callq 0x3790c
movq (%rsp), %rdi
movq 0x28(%rdi), %r15
movq 0x5948f(%rip), %rsi # 0x9dfe0
callq 0x2e61e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x44b65
callq 0x376e2
callq 0x2e1f0
jmp 0x44aed
movq %rdx, %r14
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x44b89
callq 0x376e2
jmp 0x44b89
movq %rdx, %r14
movq %rax, %r15
cmpl $0x1, %r14d
jne 0x44c04
movq %r15, %rdi
callq 0x2e060
movl $0x38, %edi
callq 0x2e080
movq (%rbx), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, (%rsp)
leaq 0x57ed5(%rip), %rcx # 0x9ca90
movq %rcx, (%rax)
movaps (%rsp), %xmm0
movups %xmm0, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r12, 0x20(%rax)
movq $0x19, 0x28(%rax)
leaq 0x3765b(%rip), %rcx # 0x7c23d
movq %rcx, 0x30(%rax)
leaq 0x57dfb(%rip), %rsi # 0x9c9e8
movq 0x593a4(%rip), %rdx # 0x9df98
movq %rax, %rdi
callq 0x2e200
movq %rax, %r15
callq 0x2e1f0
callq 0x2e1f0
jmp 0x44ca4
movq %rax, %rdi
callq 0x3306e
movq %rax, %r15
cmpl $0x1, %edx
jne 0x44ca4
movq %r15, %rdi
callq 0x2e060
callq 0x2e1f0
testq %r14, %r14
jne 0x44a72
movl $0x38, %edi
callq 0x2e080
movq (%rbx), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, (%rsp)
leaq 0x57e34(%rip), %rcx # 0x9ca90
movq %rcx, (%rax)
movaps (%rsp), %xmm0
movups %xmm0, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0x592c1(%rip), %rcx # 0x9df38
movq %rcx, 0x20(%rax)
movq $0x19, 0x28(%rax)
leaq 0x375b3(%rip), %rcx # 0x7c23d
movq %rcx, 0x30(%rax)
leaq 0x57d53(%rip), %rsi # 0x9c9e8
movq 0x592fc(%rip), %rdx # 0x9df98
movq %rax, %rdi
callq 0x2e200
movq %r15, %rdi
callq 0x2e220
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_cast.hpp
|
bool run_test_type_conversion<std::shared_ptr<double>&>(chaiscript::Boxed_Value const&, bool)
|
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
try {
To ret = chaiscript::boxed_cast<To>(bv);
use(ret);
} catch (const chaiscript::exception::bad_boxed_cast &e) {
if (expectedpass) {
std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n';
return false;
}
return true;
} catch (const std::exception &e) {
std::cerr << "Unexpected standard exception when attempting cast_conversion: " << e.what() << '\n';
return false;
} catch (...) {
std::cerr << "Unexpected unknown exception when attempting cast_conversion.\n";
return false;
}
return expectedpass;
}
|
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x45fb7
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax), %rdx
movq %rdx, 0x20(%rcx)
movq %rdx, 0x28(%rcx)
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x45ea1
movq 0x580e2(%rip), %rax # 0x9df70
cmpb $0x0, (%rax)
je 0x45e98
incl 0x8(%rdi)
jmp 0x45e9c
lock
incl 0x8(%rdi)
callq 0x376e2
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %r14
movq %rax, %rdi
cmpl $0x3, %r14d
jne 0x45f12
callq 0x2e060
testb %bl, %bl
je 0x45f08
movq %rax, %r14
movq 0x5810e(%rip), %rdi # 0x9dfd8
leaq 0x36283(%rip), %rsi # 0x7c154
movl $0x25, %edx
callq 0x2e170
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x580ed(%rip), %rdi # 0x9dfd8
movq %rax, %rsi
callq 0x2e140
leaq 0x8(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e170
xorb $0x1, %bl
callq 0x2e1f0
jmp 0x45ea1
callq 0x2e060
cmpl $0x2, %r14d
jne 0x45f67
movq %rax, %rbx
movq 0x580b1(%rip), %rdi # 0x9dfd8
leaq 0x361e6(%rip), %rsi # 0x7c114
movl $0x3f, %edx
callq 0x2e170
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x58090(%rip), %rdi # 0x9dfd8
movq %rax, %rsi
callq 0x2e140
leaq 0x8(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e170
jmp 0x45f7f
movq 0x5806a(%rip), %rdi # 0x9dfd8
leaq 0x36160(%rip), %rsi # 0x7c0d5
movl $0x3e, %edx
callq 0x2e170
callq 0x2e1f0
xorl %ebx, %ebx
jmp 0x45ea1
movq %rax, %rbx
callq 0x2e1f0
jmp 0x45fa7
movq %rax, %rbx
callq 0x2e1f0
jmp 0x45fa7
movq %rax, %rbx
callq 0x2e1f0
movq %rbx, %rdi
callq 0x2e220
movq %rax, %rdi
callq 0x3306e
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
chaiscript::detail::Any::Data_Impl<std::shared_ptr<long>>::clone() const
|
std::unique_ptr<Data> clone() const override { return std::make_unique<Data_Impl<T>>(m_data); }
|
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x20, %edi
callq 0x2e150
movq 0x10(%r14), %rcx
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0x67458
movq 0x36b26(%rip), %rsi # 0x9df70
cmpb $0x0, (%rsi)
je 0x67454
incl 0x8(%rdx)
jmp 0x67458
lock
incl 0x8(%rdx)
leaq 0x360c9(%rip), %rsi # 0x9d528
movq %rsi, 0x8(%rax)
leaq 0x36196(%rip), %rsi # 0x9d600
movq %rsi, (%rax)
movq %rcx, 0x10(%rax)
movq %rdx, 0x18(%rax)
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/any.hpp
|
auto chaiscript::Boxed_Value::Object_Data::get<long const>(std::shared_ptr<long const>&&, bool)
|
static auto get(std::shared_ptr<T> &&obj, bool t_return_value) {
auto ptr = obj.get();
return std::make_shared<Data>(detail::Get_Type_Info<T>::get(), chaiscript::detail::Any(std::move(obj)), false, ptr, t_return_value);
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %r12
movl $0x20, %edi
callq 0x2e150
movq %rax, %r14
movq 0x8(%r15), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
leaq 0x35fd6(%rip), %rcx # 0x9d568
movq %rcx, 0x8(%r14)
leaq 0x360fb(%rip), %rcx # 0x9d698
movq %rcx, (%r14)
movq %r12, 0x10(%r14)
movq %rax, 0x18(%r14)
movq $0x0, (%rbx)
movl $0x50, %edi
callq 0x2e150
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x35652(%rip), %rcx # 0x9cc20
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq 0x369d1(%rip), %rdx # 0x9dfb0
movq %rdx, 0x10(%rax)
movq %rdx, 0x18(%rax)
movl $0x11, 0x20(%rax)
movq %r14, 0x28(%rax)
xorl %edx, %edx
movq %rdx, 0x30(%rax)
movq %r12, 0x38(%rax)
movq %rdx, 0x40(%rax)
movb $0x0, 0x48(%rax)
movb %bpl, 0x49(%rax)
movq %rax, 0x8(%rbx)
movq %rcx, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x67646
movq %rbx, %rdi
callq 0x2e220
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_value.hpp
|
chaiscript::detail::Any::Any<std::shared_ptr<long const> const&, void>(std::shared_ptr<long const> const&)
|
explicit Any(ValueType &&t_value)
: m_data(std::make_unique<Data_Impl<std::decay_t<ValueType>>>(std::forward<ValueType>(t_value))) {
}
|
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x20, %edi
callq 0x2e150
movq (%r14), %rcx
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x67b63
movq 0x3641b(%rip), %rsi # 0x9df70
cmpb $0x0, (%rsi)
je 0x67b5f
incl 0x8(%rdx)
jmp 0x67b63
lock
incl 0x8(%rdx)
leaq 0x359fe(%rip), %rsi # 0x9d568
movq %rsi, 0x8(%rax)
leaq 0x35b23(%rip), %rsi # 0x9d698
movq %rsi, (%rax)
movq %rcx, 0x10(%rax)
movq %rdx, 0x18(%rax)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/any.hpp
|
chaiscript::const_var(bool)
|
inline Boxed_Value const_var(bool b) {
static const auto t = detail::const_var_impl(true);
static const auto f = detail::const_var_impl(false);
if (b) {
return t;
} else {
return f;
}
}
|
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movb 0x36282(%rip), %al # 0x9e178
testb %al, %al
je 0x67f5b
movb 0x36290(%rip), %al # 0x9e190
testb %al, %al
je 0x67fad
testb %bpl, %bpl
je 0x67f20
movq 0x36254(%rip), %rax # 0x9e168
movq %rax, (%rbx)
movq 0x36252(%rip), %rax # 0x9e170
jmp 0x67f31
movq 0x36259(%rip), %rax # 0x9e180
movq %rax, (%rbx)
movq 0x36257(%rip), %rax # 0x9e188
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x67f4f
movq 0x3602f(%rip), %rcx # 0x9df70
cmpb $0x0, (%rcx)
je 0x67f4b
incl 0x8(%rax)
jmp 0x67f4f
lock
incl 0x8(%rax)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x36216(%rip), %r14 # 0x9e178
movq %r14, %rdi
callq 0x2e230
testl %eax, %eax
je 0x67efa
leaq 0xf(%rsp), %rsi
movb $0x1, (%rsi)
leaq 0x361eb(%rip), %rdi # 0x9e168
callq 0x71071
leaq -0x34b4b(%rip), %rdi # 0x3343e
leaq 0x361d8(%rip), %rsi # 0x9e168
leaq 0x36191(%rip), %rdx # 0x9e128
callq 0x2e120
leaq 0x361d5(%rip), %rdi # 0x9e178
callq 0x2e0c0
jmp 0x67efa
leaq 0x361dc(%rip), %r14 # 0x9e190
movq %r14, %rdi
callq 0x2e230
testl %eax, %eax
je 0x67f08
leaq 0xe(%rsp), %rsi
movb $0x0, (%rsi)
leaq 0x361ad(%rip), %rdi # 0x9e180
callq 0x71071
leaq -0x34ba1(%rip), %rdi # 0x3343e
leaq 0x3619a(%rip), %rsi # 0x9e180
leaq 0x3613b(%rip), %rdx # 0x9e128
callq 0x2e120
leaq 0x36197(%rip), %rdi # 0x9e190
callq 0x2e0c0
jmp 0x67f08
jmp 0x68005
movq %rax, %rbx
movq %r14, %rdi
callq 0x2e0b0
movq %rbx, %rdi
callq 0x2e220
|
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_value.hpp
|
bool test_type_conversion<bool* const>(chaiscript::Boxed_Value const&, bool)
|
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
bool ret = run_test_type_conversion<To>(bv, expectedpass);
if (!ret) {
std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "")
<< bv.get_type_info().name() << " To: " << (std::is_const<To>::value ? "const " : "")
<< typeid(To).name() << " test was expected to " << (expectedpass ? "succeed" : "fail")
<< " but did not\n";
}
return ret;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x6b916
movl %eax, %ebx
testb %al, %al
jne 0x68927
movq 0x357d2(%rip), %r12 # 0x9dfd8
leaq 0x13861(%rip), %rsi # 0x7c06e
movl $0x27, %edx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
xorl %ecx, %ecx
testb $0x1, 0x10(%rax)
leaq 0x138e9(%rip), %r15 # 0x7c113
leaq 0x13865(%rip), %rsi # 0x7c096
cmoveq %r15, %rsi
movl $0x6, %edx
cmoveq %rcx, %rdx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
testb $0x20, 0x10(%rax)
jne 0x68863
movq (%rax), %rax
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq 0x35766(%rip), %r14 # 0x9dfd8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0x13816(%rip), %rsi # 0x7c09d
movl $0x5, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x137fb(%rip), %rsi # 0x7c096
movl $0x6, %edx
movq %r14, %rdi
callq 0x2e170
movq 0x35671(%rip), %rax # 0x9df20
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0x137c6(%rip), %rsi # 0x7c0a3
movl $0x16, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0x137c9(%rip), %rax # 0x7c0ba
leaq 0x137ca(%rip), %rsi # 0x7c0c2
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %eax
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %r14, %rdi
callq 0x2e170
leaq 0x137ad(%rip), %rsi # 0x7c0c7
movl $0xd, %edx
movq %r14, %rdi
callq 0x2e170
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
bool test_type_conversion<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(chaiscript::Boxed_Value const&, bool)
|
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) {
bool ret = run_test_type_conversion<To>(bv, expectedpass);
if (!ret) {
std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "")
<< bv.get_type_info().name() << " To: " << (std::is_const<To>::value ? "const " : "")
<< typeid(To).name() << " test was expected to " << (expectedpass ? "succeed" : "fail")
<< " but did not\n";
}
return ret;
}
|
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x73bc0
movl %eax, %ebx
testb %al, %al
jne 0x71c8c
movq 0x2c450(%rip), %r12 # 0x9dfd8
leaq 0xa4df(%rip), %rsi # 0x7c06e
movl $0x27, %edx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
xorl %ecx, %ecx
testb $0x1, 0x10(%rax)
leaq 0xa567(%rip), %r15 # 0x7c113
leaq 0xa4e3(%rip), %rsi # 0x7c096
cmoveq %r15, %rsi
movl $0x6, %edx
cmoveq %rcx, %rdx
movq %r12, %rdi
callq 0x2e170
movq (%r14), %rax
testb $0x20, 0x10(%rax)
jne 0x71be5
movq (%rax), %rax
movq 0x8(%rax), %rax
xorl %r15d, %r15d
cmpb $0x2a, (%rax)
sete %r15b
addq %rax, %r15
movq %r15, %rdi
callq 0x2e070
movq 0x2c3e4(%rip), %r14 # 0x9dfd8
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e170
leaq 0xa494(%rip), %rsi # 0x7c09d
movl $0x5, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0xa4f6(%rip), %rsi # 0x7c113
movq %r14, %rdi
xorl %edx, %edx
callq 0x2e170
leaq 0xb8f0(%rip), %rsi # 0x7d51e
movl $0x34, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0xa461(%rip), %rsi # 0x7c0a3
movl $0x16, %edx
movq %r14, %rdi
callq 0x2e170
leaq 0xa464(%rip), %rax # 0x7c0ba
leaq 0xa465(%rip), %rsi # 0x7c0c2
testb %bpl, %bpl
cmovneq %rax, %rsi
movzbl %bpl, %eax
leaq (%rax,%rax,2), %rdx
addq $0x4, %rdx
movq %r14, %rdi
callq 0x2e170
leaq 0xa448(%rip), %rsi # 0x7c0c7
movl $0xd, %edx
movq %r14, %rdi
callq 0x2e170
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
|
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.