name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
readuint | static unsigned int readuint(FILE * f, int bigendian)
{
unsigned char c1, c2, c3, c4;
if (!fread(&c1, 1, 1, f)) {
fprintf(stderr,
"\nError: fread return a number of element different from the expected.\n");
return 0;
}
if (!fread(&c2, 1, 1, f)) {
fprintf(stderr,
... | pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x7(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x3400
testq %rax, %rax
je 0xa551
leaq 0x6(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x3400
testq %rax, %rax
je 0xa558
leaq 0x5(%rsp), %rdi
movl $0x1, %esi
... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c |
imagetopnm | int imagetopnm(opj_image_t * image, const char *outfile, int force_split)
{
int *red, *green, *blue, *alpha;
int wr, hr, max;
int i;
unsigned int compno, ncomp;
int adjustR, adjustG, adjustB, adjustA;
int fails, two, want_gray, has_alpha, triple;
int prec, v;
FILE *fdest = NULL;
cons... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x8(%rsp)
movq 0x18(%rdi), %rax
movl 0x18(%rax), %ecx
movl %ecx, 0x30(%rsp)
cmpl $0x10, %ecx
jg 0xbdea
movq %rsi, %r14
movq %rsi, %rcx
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0xb758
movb -0x3(%rcx), %cl
andb $-0x21, %cl
cmp... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c |
bmp8toimage | static opj_image_t* bmp8toimage(const OPJ_UINT8* pData, OPJ_UINT32 stride,
opj_image_t* image, OPJ_UINT8 const* const* pLUT)
{
OPJ_UINT32 width, height;
const OPJ_UINT8 *pSrc = NULL;
width = image->comps[0].w;
height = image->comps[0].h;
pSrc = pData + (height - 1U... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rax
movq 0x18(%rdx), %r14
movslq 0x8(%r14), %r10
movl %r10d, %edx
movl 0xc(%r14), %r8d
leal -0x1(%r8), %r9d
imull %esi, %r9d
addq %rdi, %r9
cmpl $0x1, 0x10(%rax)
movq (%rcx), %rdi
jne 0xda97
testl %r8d, %r8d
je 0xdb00
movq 0x30(%r14), %rcx
ne... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convertbmp.c |
color_cmyk_to_rgb | void color_cmyk_to_rgb(opj_image_t *image)
{
float C, M, Y, K;
float sC, sM, sY, sK;
unsigned int w, h, max, i;
w = image->comps[0].w;
h = image->comps[0].h;
if (
(image->numcomps < 4)
|| (image->comps[0].dx != image->comps[1].dx) ||
(image->comps[0].dx != image->comps[... | pushq %rbx
cmpl $0x4, 0x10(%rdi)
jb 0x10025
movq %rdi, %rbx
movq 0x18(%rdi), %rdx
movl (%rdx), %eax
cmpl 0x40(%rdx), %eax
jne 0x10025
cmpl 0x80(%rdx), %eax
jne 0x10025
cmpl 0xc0(%rdx), %eax
jne 0x10025
movl 0x4(%rdx), %eax
cmpl 0x44(%rdx), %eax
jne 0x10025
cmpl 0x84(%rdx), %eax
jne 0x10025
cmpl 0xc4(%rdx), %eax
jne 0x1... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/common/color.c |
tif_32sto3u | static void tif_32sto3u(const OPJ_INT32* pSrc, OPJ_BYTE* pDst,
OPJ_SIZE_T length)
{
OPJ_SIZE_T i;
for (i = 0; i < (length & ~(OPJ_SIZE_T)7U); i += 8U) {
OPJ_UINT32 src0 = (OPJ_UINT32)pSrc[i + 0];
OPJ_UINT32 src1 = (OPJ_UINT32)pSrc[i + 1];
OPJ_UINT32 src2 = (OPJ_U... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rcx
xorl %eax, %eax
andq $-0x8, %rcx
je 0x10ca6
movl (%rdi,%rax,4), %ebx
movl 0x4(%rdi,%rax,4), %ebp
movl 0x8(%rdi,%rax,4), %r14d
movl 0xc(%rdi,%rax,4), %r9d
movl 0x10(%rdi,%rax,4), %r11d
movl 0x14(%rdi,%rax,4), %r10d
movl 0x18(%rdi,%rax,4), %r8d
shll $0x5, %ebx
shll $0x2, %... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/converttif.c |
tif_32sto15u | static void tif_32sto15u(const OPJ_INT32* pSrc, OPJ_BYTE* pDst,
OPJ_SIZE_T length)
{
OPJ_SIZE_T i;
for (i = 0; i < (length & ~(OPJ_SIZE_T)7U); i += 8U) {
OPJ_UINT32 src0 = (OPJ_UINT32)pSrc[i + 0];
OPJ_UINT32 src1 = (OPJ_UINT32)pSrc[i + 1];
OPJ_UINT32 src2 = (OPJ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rcx
xorl %eax, %eax
andq $-0x8, %rcx
je 0x11a4c
movl (%rdi,%rax,4), %r14d
movl 0x4(%rdi,%rax,4), %r15d
movl 0x8(%rdi,%rax,4), %ebp
movl 0xc(%rdi,%rax,4), %ebx
movl 0x10(%rdi,%rax,4), %r11d
movl 0x14(%rdi,%rax,4), %r10d
movl 0x18(%rdi,%rax,4), %r9d
movl ... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/converttif.c |
tif_12uto32s | static void tif_12uto32s(const OPJ_BYTE* pSrc, OPJ_INT32* pDst,
OPJ_SIZE_T length)
{
OPJ_SIZE_T i;
for (i = 0; i < (length & ~(OPJ_SIZE_T)1U); i += 2U) {
OPJ_UINT32 val0 = *pSrc++;
OPJ_UINT32 val1 = *pSrc++;
OPJ_UINT32 val2 = *pSrc++;
pDst[i + 0] = (OPJ_... | movq %rdx, %rcx
xorl %eax, %eax
andq $-0x2, %rcx
je 0x12e3f
movzbl (%rdi), %r8d
movzbl 0x1(%rdi), %r9d
movzbl 0x2(%rdi), %r10d
addq $0x3, %rdi
shll $0x4, %r8d
movl %r9d, %r11d
shrl $0x4, %r11d
orl %r8d, %r11d
movl %r11d, (%rsi,%rax,4)
andl $0xf, %r9d
shll $0x8, %r9d
orl %r10d, %r9d
movl %r9d, 0x4(%rsi,%rax,4)
addq $0x2... | /ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/converttif.c |
mbedtls_x509_get_rsassa_pss_params | int mbedtls_x509_get_rsassa_pss_params( const mbedtls_x509_buf *params,
mbedtls_md_type_t *md_alg, mbedtls_md_type_t *mgf_md,
int *salt_len )
{
int ret;
unsigned char *p;
const unsigned char *end, *end2;
size_t len;
mbedtls_x509_buf alg... | movl $0x4, %eax
movl %eax, (%rsi)
movl %eax, (%rdx)
movl $0x14, (%rcx)
movl $0xffffdc9e, %eax # imm = 0xFFFFDC9E
cmpl $0x30, (%rdi)
jne 0xc8a9
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq 0x10(%rdi), %rbx
movq %rbx, 0x8(%rsp)
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0xc853
movq %rc... | /Dragonchang[P]https_client/mbedtls/library/x509.c |
mbedtls_x509_get_sig_alg | int mbedtls_x509_get_sig_alg( const mbedtls_x509_buf *sig_oid, const mbedtls_x509_buf *sig_params,
mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg,
void **sig_opts )
{
int ret;
if( *sig_opts != NULL )
return( MBEDTLS_ERR_X509_BAD_INPUT_DATA );
if( (... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl $0xffffd800, %ebp # imm = 0xFFFFD800
cmpq $0x0, (%r8)
jne 0xcee8
movq %r8, %rbx
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x24dd0
testl %eax, %eax
je 0xcef3
movl %eax, %ebp
addl $0xffffda00, %ebp # imm = ... | /Dragonchang[P]https_client/mbedtls/library/x509.c |
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 | MB... | movq (%rdi), %rax
cmpq %rsi, %rax
je 0xcfb8
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 0x12355
testl %eax, %eax
jne 0xcfd0
movq (%rbx), %r15
movq %r15, 0x10(%r14)
addq 0x8(%r14), %r15
leaq 0x8(%rsp), %rdx
... | /Dragonchang[P]https_client/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 = b... | 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 0xc100
movq %rbx, %r12
testq %rbp, %rbp
je 0xd15c
movq ... | /Dragonchang[P]https_client/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 );
l... | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %ebx, %ebx
xorl %edi, %edi
callq 0xc1b0
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0xc200
testq %rax, %rax
je 0xd44a
movq 0x10(%rax), %xmm0
pshufd $0xe1, %xmm0, %xmm0 # xmm0 = xmm0[1,0,2,3]
paddd 0x24c5c(%rip), %xmm0 # 0x32090
movq %xmm0, (%r14)
movdqu (%rax), %... | /Dragonchang[P]https_client/mbedtls/library/x509.c |
mbedtls_x509_self_test | int mbedtls_x509_self_test( int verbose )
{
#if defined(MBEDTLS_CERTS_C) && defined(MBEDTLS_SHA1_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... | pushq %rbp
pushq %rbx
subq $0x468, %rsp # imm = 0x468
movl %edi, %ebp
testl %edi, %edi
je 0xd510
leaq 0x24be5(%rip), %rdi # 0x320ee
xorl %eax, %eax
callq 0xc0c0
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0xdb69
leaq 0x3cc5c(%rip), %rax # 0x4a180
movq (%rax), %rsi
leaq 0x28d12(%rip), %rax # 0x362... | /Dragonchang[P]https_client/mbedtls/library/x509.c |
mbedtls_x509_crt_parse_der | int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain, const unsigned char *buf,
size_t buflen )
{
int ret;
mbedtls_x509_crt *crt = chain, *prev = NULL;
/*
* Check for valid input
*/
if( crt == NULL || buf == NULL )
return( MBEDTLS_ERR_X509_BAD_INPUT_DATA );
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
movl $0xffffd800, %ebp # imm = 0xFFFFD800
jne 0xd7c0
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpl $0x0, 0x30(%rdi)
je 0xd6e9
movq %r13, %r14
movq %r14, %rbx
m... | /Dragonchang[P]https_client/mbedtls/library/x509_crt.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( ... | 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 0x26d38
movl %eax, %ebx
testl %eax, %eax
jne 0xdd5f
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xdb75
movl %eax, %ebx
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
t... | /Dragonchang[P]https_client/mbedtls/library/x509_crt.c |
mbedtls_x509_crt_info | int mbedtls_x509_crt_info( char *buf, size_t size, const char *prefix,
const mbedtls_x509_crt *crt )
{
int ret;
size_t n;
char *p;
char key_size_str[BEFORE_COLON];
p = buf;
n = size;
if( NULL == crt )
{
ret = mbedtls_snprintf( p, n, "\nCertificate is uninitia... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r13
testq %rcx, %rcx
je 0xe128
movq %rcx, %r15
movq %rdx, %r12
movl 0x30(%rcx), %r8d
leaq 0x2435a(%rip), %rdx # 0x321e1
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rcx
xorl %eax, %eax
callq 0xc0d0
movl $0x... | /Dragonchang[P]https_client/mbedtls/library/x509_crt.c |
mbedtls_x509_crt_check_extended_key_usage | int mbedtls_x509_crt_check_extended_key_usage( const mbedtls_x509_crt *crt,
const char *usage_oid,
size_t usage_len )
{
const mbedtls_x509_sequence *cur;
/* Extension is not mandatory, absent means no restriction */
if( ( crt->ex... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
xorl %ebx, %ebx
testb $0x8, 0x1c1(%rdi)
je 0xeb0f
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
addq $0x1d0, %r12 # imm = 0x1D0
movq 0x8(%r12), %r13
cmpq %r14, %r13
jne 0xeaed
movq 0x10(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xc1d0
testl %ea... | /Dragonchang[P]https_client/mbedtls/library/x509_crt.c |
x509_crt_verify_child | static int x509_crt_verify_child(
mbedtls_x509_crt *child, mbedtls_x509_crt *parent,
mbedtls_x509_crt *trust_ca, mbedtls_x509_crl *ca_crl,
const mbedtls_x509_crt_profile *profile,
int path_cnt, int self_cnt, uint32_t *flags,
int (*f_vrfy)(v... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %r9d, %ebx
movq %r8, %r12
movq %rcx, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, %rbp
movq %rdi, %r15
movq 0xc8(%rsp), %r13
movl 0xc0(%rsp), %r14d
movl $0x0, 0xc(%rsp)
testl %r9d, %r9d
je 0xf35d
leaq 0x98(%r15), %rdi
leaq 0xd8(%r15)... | /Dragonchang[P]https_client/mbedtls/library/x509_crt.c |
mbedtls_aes_setkey_enc | int mbedtls_aes_setkey_enc( mbedtls_aes_context *ctx, const unsigned char *key,
unsigned int keybits )
{
unsigned int i;
uint32_t *RK;
#if !defined(MBEDTLS_AES_ROM_TABLES)
if( aes_init_done == 0 )
{
aes_gen_tables();
aes_init_done = 1;
}
#endif
switch( keyb... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x818, %rsp # imm = 0x818
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x0, 0x3a100(%rip) # 0x4a1d0
jne 0x1041c
movl $0x1, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movl %edx, 0x410(%rsp,%rcx,4)
movl %edx, %esi
movl %ecx, 0x10(%... | /Dragonchang[P]https_client/mbedtls/library/aes.c |
mbedtls_aesni_gcm_mult | void mbedtls_aesni_gcm_mult( unsigned char c[16],
const unsigned char a[16],
const unsigned char b[16] )
{
unsigned char aa[16], bb[16], cc[16];
size_t i;
/* The inputs are in big-endian order, so byte-reverse them */
for( i = 0; i < 16; i++ )
{
aa[... | movdqu (%rsi), %xmm0
pxor %xmm6, %xmm6
movdqa %xmm0, %xmm1
punpcklbw %xmm6, %xmm1 # xmm1 = xmm1[0],xmm6[0],xmm1[1],xmm6[1],xmm1[2],xmm6[2],xmm1[3],xmm6[3],xmm1[4],xmm6[4],xmm1[5],xmm6[5],xmm1[6],xmm6[6],xmm1[7],xmm6[7]
pshufd $0x4e, %xmm1, %xmm1 # xmm1 = xmm1[2,3,0,1]
pshuflw $0x1b, %xmm1, %xmm1 # xmm1 = xmm... | /Dragonchang[P]https_client/mbedtls/library/aesni.c |
mbedtls_arc4_crypt | int mbedtls_arc4_crypt( mbedtls_arc4_context *ctx, size_t length, const unsigned char *input,
unsigned char *output )
{
int x, y, a, b;
size_t i;
unsigned char *m;
x = ctx->x;
y = ctx->y;
m = ctx->m;
for( i = 0; i < length; i++ )
{
x = ( x + 1 ) & 0xFF; a = m[x]... | movl (%rdi), %eax
movl 0x4(%rdi), %r8d
testq %rsi, %rsi
je 0x12175
pushq %rbx
xorl %r9d, %r9d
movl %r8d, %r10d
incl %eax
movzbl %al, %eax
movb 0x8(%rdi,%rax), %r11b
addb %r11b, %r10b
movzbl %r10b, %r8d
movb 0x8(%rdi,%r8), %bl
movb %bl, 0x8(%rdi,%rax)
movb %r11b, 0x8(%rdi,%r8)
addb %r11b, %bl
movzbl %bl, %r11d
movb 0x8(... | /Dragonchang[P]https_client/mbedtls/library/arc4.c |
mbedtls_asn1_get_bitstring | int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end,
mbedtls_asn1_bitstring *bs)
{
int ret;
/* Certificate type is a single byte bitstring */
if( ( ret = mbedtls_asn1_get_tag( p, end, &bs->len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 )
return( ret );
/*... | pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq (%rdi), %rcx
movq %rsi, %rdx
subq %rcx, %rdx
movl $0xffffffa0, %eax # imm = 0xFFFFFFA0
testq %rdx, %rdx
jle 0x12505
movl $0xffffff9e, %eax # imm = 0xFFFFFF9E
cmpb $0x3, (%rcx)
jne 0x12505
movq %rsi, %rbx
movq %rdi, %r14
incq %rcx
movq %rcx, (%rdi)
movq %... | /Dragonchang[P]https_client/mbedtls/library/asn1parse.c |
mbedtls_base64_encode | int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
const unsigned char *src, size_t slen )
{
size_t i, n;
int C1, C2, C3;
unsigned char *p;
if( slen == 0 )
{
*olen = 0;
return( 0 );
}
n = slen / 3 + ( slen % 3 != 0 );
if( n > (... | movq %rdx, %r9
testq %r8, %r8
je 0x128f4
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
movq %r8, %rax
mulq %rdx
shrq %rdx
movabsq $0x5555555555555555, %r11 # imm = 0x5555555555555555
xorl %r10d, %r10d
cmpq %r11, %rax
seta %r10b
addq %rdx, %r10
movq %r10, %rax
shrq $0x3e, %rax
je 0x128fe
movq $-0x1, (%r9... | /Dragonchang[P]https_client/mbedtls/library/base64.c |
mbedtls_mpi_safe_cond_swap | int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char swap )
{
int ret, s;
size_t i;
mbedtls_mpi_uint tmp;
if( X == Y )
return( 0 );
/* make sure swap is 0 or 1 in a time-constant manner */
swap = (swap | (unsigned char)-swap) >> 7;
MBEDTLS_MPI_CHK( mbedtls... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpq %rsi, %rdi
je 0x13043
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rsi), %rsi
callq 0x12d78
testl %eax, %eax
jne 0x13041
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x12d78
testl %eax, %eax
je 0x13050
movl %eax, %ebx
movl %ebx, %eax... | /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mbedtls_mpi_set_bit | int mbedtls_mpi_set_bit( mbedtls_mpi *X, size_t pos, unsigned char val )
{
int ret = 0;
size_t off = pos / biL;
size_t idx = pos % biL;
if( val != 0 && val != 1 )
return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA );
if( X->n * biL <= pos )
{
if( val == 0 )
return( 0 );
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl $0xfffffffc, %eax # imm = 0xFFFFFFFC
cmpb $0x1, %bpl
ja 0x1317f
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %r15
shrq $0x6, %r15
movq 0x8(%rdi), %rax
shlq $0x6, %rax
cmpq %rsi, %rax
jbe 0x13166
andl $0x3f, %ebx
movq 0x10(%r14), %rax
movq (... | /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mbedtls_mpi_add_int | int mbedtls_mpi_add_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b )
{
mbedtls_mpi _B;
mbedtls_mpi_uint p[1];
p[0] = ( b < 0 ) ? -b : b;
_B.s = ( b < 0 ) ? -1 : 1;
_B.n = 1;
_B.p = p;
return( mbedtls_mpi_add_mpi( X, A, &_B ) );
} | subq $0x28, %rsp
movq %rdx, %rax
negq %rax
cmovsq %rdx, %rax
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
sarq $0x3f, %rdx
orl $0x1, %edx
leaq 0x10(%rsp), %rax
movl %edx, (%rax)
movq $0x1, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq %rax, %rdx
callq 0x1417d
addq $0x28, %rsp
retq
| /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mbedtls_mpi_write_file | int mbedtls_mpi_write_file( const char *p, const mbedtls_mpi *X, int radix, FILE *fout )
{
int ret;
size_t n, slen, plen;
/*
* Buffer should have space for (short) label and decimal formatted MPI,
* newline characters and '\0'
*/
char s[ MBEDTLS_MPI_RW_BUFFER_SIZE ];
memset( s, 0, si... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x9d0, %rsp # imm = 0x9D0
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x10(%rsp), %r12
movl $0x9b4, %edx # imm = 0x9B4
movq %r12, %rdi
xorl %esi, %esi
callq 0xc100
leaq 0x8(%rsp), %r8
movl $0x9b2, %ecx ... | /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mbedtls_mpi_sub_abs | int mbedtls_mpi_sub_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B )
{
mbedtls_mpi TB;
int ret;
size_t n;
if( mbedtls_mpi_cmp_abs( A, B ) < 0 )
return( MBEDTLS_ERR_MPI_NEGATIVE_VALUE );
mbedtls_mpi_init( &TB );
if( X == B )
{
MBEDTLS_MPI_CHK( mbedtls_mpi_c... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x13df6
testl %eax, %eax
js 0x140c8
leaq 0x10(%rsp), %r12
movl $0x1, -0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
cmpq %rbx, %r14
je 0x140cf
leaq 0x10(%rbx)... | /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mpi_sub_hlp | static void mpi_sub_hlp( size_t n, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d )
{
size_t i;
mbedtls_mpi_uint c, z;
for( i = c = 0; i < n; i++, s++, d++ )
{
z = ( *d < c ); *d -= c;
c = ( *d < *s ) + z; *d -= *s;
}
while( c != 0 )
{
z = ( *d < c ); *d -= c;
... | testq %rdi, %rdi
je 0x1417c
xorl %ecx, %ecx
xorl %eax, %eax
xorl %r8d, %r8d
movq (%rdx,%r8,8), %r9
movq %r9, %r10
subq %rax, %r10
movq %r10, (%rdx,%r8,8)
xorl %r11d, %r11d
subq (%rsi,%r8,8), %r10
setb %r11b
cmpq %rax, %r9
movq %r11, %rax
adcq $0x0, %rax
movq %r10, (%rdx,%r8,8)
incq %r8
addq $-0x8, %rcx
cmpq %r8, %rdi
j... | /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mbedtls_mpi_sub_mpi | int mbedtls_mpi_sub_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B )
{
int ret, s = A->s;
if( A->s * B->s > 0 )
{
if( mbedtls_mpi_cmp_abs( A, B ) >= 0 )
{
MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( X, A, B ) );
X->s = s;
}
else
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl (%rsi), %ebp
movl (%rdx), %eax
imull %ebp, %eax
testl %eax, %eax
jle 0x14225
movq %r15, %rdi
movq %r14, %rsi
callq 0x13df6
movq %rbx, %rdi
testl %eax, %eax
js 0x14239
movq %r15, %rsi
movq %r14, %rdx
callq 0x14039... | /Dragonchang[P]https_client/mbedtls/library/bignum.c |
mbedtls_mpi_div_int | int mbedtls_mpi_div_int( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, mbedtls_mpi_sint b )
{
mbedtls_mpi _B;
mbedtls_mpi_uint p[1];
p[0] = ( b < 0 ) ? -b : b;
_B.s = ( b < 0 ) ? -1 : 1;
_B.n = 1;
_B.p = p;
return( mbedtls_mpi_div_mpi( Q, R, A, &_B ) );
} | subq $0x28, %rsp
movq %rcx, %rax
negq %rax
cmovsq %rcx, %rax
leaq 0x8(%rsp), %r8
movq %rax, (%r8)
sarq $0x3f, %rcx
orl $0x1, %ecx
leaq 0x10(%rsp), %rax
movl %ecx, (%rax)
movq $0x1, 0x8(%rax)
movq %r8, 0x10(%rax)
movq %rax, %rcx
callq 0x1478b
addq $0x28, %rsp
retq
| /Dragonchang[P]https_client/mbedtls/library/bignum.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_... | 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 0x13e65
testl %eax, %eax
js 0x1500c
xorl %edi, %edi
movq %r14, %rsi... | /Dragonchang[P]https_client/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 = 0xFF;
*data_... | testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
movl $0xffff9f00, %eax # imm = 0xFFFF9F00
jne 0x19873
movq $0x0, (%rdx)
testq %rsi, %rsi
je 0x19874
decq %rsi
xorl %ecx, %ecx
movb $-0x1, %al
xorl %r8d, %r8d
xorl %r9d, %r9d
cmpb $0x0, (%rdi,%rsi)
setne %r9b
orl %r8d, %r9d
cmpl %r8d, %r9d
sete %r8b
... | /Dragonchang[P]https_client/mbedtls/library/cipher.c |
mbedtls_ctr_drbg_reseed | int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx,
const unsigned char *additional, size_t len )
{
unsigned char seed[MBEDTLS_CTR_DRBG_MAX_SEED_INPUT];
size_t seedlen = 0;
if( ctx->entropy_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ||
len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT -... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x180, %rsp # imm = 0x180
movq 0x18(%rdi), %r12
movl $0x180, %eax # imm = 0x180
subq %r12, %rax
setb %cl
cmpq %rdx, %rax
setb %al
orb %cl, %al
movl $0xffffffc8, %eax # imm = 0xFFFFFFC8
jne 0x1a027
movq %rdx, %r14
movq %rsi, %r15
mo... | /Dragonchang[P]https_client/mbedtls/library/ctr_drbg.c |
mbedtls_ctr_drbg_write_seed_file | int mbedtls_ctr_drbg_write_seed_file( mbedtls_ctr_drbg_context *ctx, const char *path )
{
int ret = MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR;
FILE *f;
unsigned char buf[ MBEDTLS_CTR_DRBG_MAX_INPUT ];
if( ( f = fopen( path, "wb" ) ) == NULL )
return( MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR );
if( ( re... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %rsi, %rax
movq %rdi, %r14
leaq 0x1d98f(%rip), %rsi # 0x37da0
movq %rax, %rdi
callq 0xc1f0
testq %rax, %rax
je 0x1a46d
movq %rax, %rbx
xorl %r15d, %r15d
movq %rsp, %rsi
movl $0x100, %edx # imm = 0x100
movq %r14, %... | /Dragonchang[P]https_client/mbedtls/library/ctr_drbg.c |
mbedtls_ctr_drbg_self_test | int mbedtls_ctr_drbg_self_test( int verbose )
{
mbedtls_ctr_drbg_context ctx;
unsigned char buf[16];
mbedtls_ctr_drbg_init( &ctx );
/*
* Based on a NIST CTR_DRBG test vector (PR = True)
*/
if( verbose != 0 )
mbedtls_printf( " CTR_DRBG (PR = TRUE) : " );
test_offset = 0;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x168, %rsp # imm = 0x168
movl %edi, %ebx
leaq 0x10(%rsp), %rdi
movl $0x158, %edx # imm = 0x158
xorl %esi, %esi
callq 0xc100
testl %ebx, %ebx
je 0x1a637
leaq 0x1d81f(%rip), %rdi # 0x37da6
xorl %eax, %eax
callq 0xc0c0
movq $0x0, 0x31f47(%rip) # ... | /Dragonchang[P]https_client/mbedtls/library/ctr_drbg.c |
des3_set3key | static void des3_set3key( uint32_t esk[96],
uint32_t dsk[96],
const unsigned char key[24] )
{
int i;
mbedtls_des_setkey( esk, key );
mbedtls_des_setkey( dsk + 32, key + 8 );
mbedtls_des_setkey( esk + 64, key + 16 );
for( i = 0; i < 32; i += 2 )
... | pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rsi
callq 0x1a91f
leaq 0x80(%rbx), %rdi
leaq 0x8(%r15), %rsi
callq 0x1a91f
leaq 0x100(%r14), %rdi
addq $0x10, %r15
movq %r15, %rsi
callq 0x1a91f
movq $-0x2, %rax
movl $0x3e, %ecx
movl 0x80(%r14,%rcx,4), %edx
movl %edx, 0x8(%rbx... | /Dragonchang[P]https_client/mbedtls/library/des.c |
mbedtls_des_crypt_ecb | int mbedtls_des_crypt_ecb( mbedtls_des_context *ctx,
const unsigned char input[8],
unsigned char output[8] )
{
int i;
uint32_t X, Y, T, *SK;
SK = ctx->sk;
GET_UINT32_BE( X, input, 0 );
GET_UINT32_BE( Y, input, 4 );
DES_IP( X, Y );
for( i = 0; i < 8... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, -0x10(%rsp)
movq %rdi, -0x8(%rsp)
movl (%rsi), %ecx
movl 0x4(%rsi), %eax
bswapl %ecx
bswapl %eax
movl %ecx, %edx
shrl $0x4, %edx
xorl %eax, %edx
andl $0xf0f0f0f, %edx # imm = 0xF0F0F0F
xorl %edx, %eax
shll $0x4, %edx
xorl %ecx, %edx
mov... | /Dragonchang[P]https_client/mbedtls/library/des.c |
dhm_read_bignum | static int dhm_read_bignum( mbedtls_mpi *X,
unsigned char **p,
const unsigned char *end )
{
int ret, n;
if( end - *p < 2 )
return( MBEDTLS_ERR_DHM_BAD_INPUT_DATA );
n = ( (*p)[0] << 8 ) | (*p)[1];
(*p) += 2;
if( (int)( end - *p ) < n... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rsi), %rsi
movq %rdx, %rcx
subq %rsi, %rcx
movl $0xffffcf80, %eax # imm = 0xFFFFCF80
cmpq $0x2, %rcx
jl 0x1bdde
movzwl (%rsi), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
addq $0x2, %rsi
movq %rsi, (%rbx)
subl %esi, %edx
cmpl %edx, %ecx
jg 0x1bdde
movl %ecx, %r14d
... | /Dragonchang[P]https_client/mbedtls/library/dhm.c |
mbedtls_dhm_parse_dhm | int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin,
size_t dhminlen )
{
int ret;
size_t len;
unsigned char *p, *end;
#if defined(MBEDTLS_PEM_PARSE_C)
mbedtls_pem_context pem;
mbedtls_pem_init( &pem );
/* Avoid calling mbedtls_pem_read_buffer() on... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x251f4
testq %r15, %r15
je 0x1c5bc
cmpb $0x0, -0x1(%r14,%r15)
jne 0x1c5bf
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
leaq 0x1c3c0(%rip), %rsi # 0x38... | /Dragonchang[P]https_client/mbedtls/library/dhm.c |
mbedtls_ecp_curve_info_from_name | const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_name( const char *name )
{
const mbedtls_ecp_curve_info *curve_info;
for( curve_info = mbedtls_ecp_curve_list();
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
curve_info++ )
{
if( strcmp( curve_info->name, name ) == 0 )
... | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x2c362(%rip), %rbx # 0x48c60
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0xc150
testl %eax, %eax
je 0x1c91a
cmpl $0x0, 0x10(%rbx)
leaq 0x10(%rbx), %rbx
jne 0x1c8fe
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| /Dragonchang[P]https_client/mbedtls/library/ecp.c |
mbedtls_ecp_set_zero | int mbedtls_ecp_set_zero( mbedtls_ecp_point *pt )
{
int ret;
MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->X , 1 ) );
MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Y , 1 ) );
MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Z , 0 ) );
cleanup:
return( ret );
} | pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x130a0
testl %eax, %eax
jne 0x1cb3c
leaq 0x18(%rbx), %rdi
movl $0x1, %esi
callq 0x130a0
testl %eax, %eax
je 0x1cb3e
popq %rbx
retq
addq $0x30, %rbx
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x130a0
| /Dragonchang[P]https_client/mbedtls/library/ecp.c |
mbedtls_ecp_check_pubkey | int mbedtls_ecp_check_pubkey( const mbedtls_ecp_group *grp, const mbedtls_ecp_point *pt )
{
/* Must use affine coordinates */
if( mbedtls_mpi_cmp_int( &pt->Z, 1 ) != 0 )
return( MBEDTLS_ERR_ECP_INVALID_KEY );
#if defined(ECP_MONTGOMERY)
if( ecp_get_type( grp ) == ECP_TYPE_MONTGOMERY )
retur... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x30(%rsi), %rdi
movl $0x1, %esi
callq 0x13efe
movl $0xffffb380, %ebp # imm = 0xFFFFB380
testl %eax, %eax
je 0x1d8c3
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq... | /Dragonchang[P]https_client/mbedtls/library/ecp.c |
mbedtls_ecp_check_pub_priv | int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv )
{
int ret;
mbedtls_ecp_point Q;
mbedtls_ecp_group grp;
if( pub->grp.id == MBEDTLS_ECP_DP_NONE ||
pub->grp.id != prv->grp.id ||
mbedtls_mpi_cmp_mpi( &pub->Q.X, &prv->Q.X ) ||
mbedtls_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movl (%rdi), %eax
movl $0xffffb080, %ebp # imm = 0xFFFFB080
testl %eax, %eax
je 0x1ebf9
movq %rsi, %r12
cmpl (%rsi), %eax
jne 0x1ebf9
movq %rdi, %r13
movl $0x110, %ebx # imm = 0x110
addq %rbx, %... | /Dragonchang[P]https_client/mbedtls/library/ecp.c |
ecp_normalize_jac_many | static int ecp_normalize_jac_many( const mbedtls_ecp_group *grp,
mbedtls_ecp_point *T[], size_t t_len )
{
int ret;
size_t i;
mbedtls_mpi *c, u, Zi, ZZi;
if( t_len < 2 )
return( ecp_normalize_jac( grp, *T ) );
if( ( c = mbedtls_calloc( t_len, sizeof( mbedt... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r12
movq %rdi, %r15
cmpq $0x1, %rdx
ja 0x1ff8e
movq (%r12), %rsi
movq %r15, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1e758
movq %rdx, %rbx
movl $0x18, %esi
movq %rdx, %rdi
callq ... | /Dragonchang[P]https_client/mbedtls/library/ecp.c |
mbedtls_ecp_group_load | int mbedtls_ecp_group_load( mbedtls_ecp_group *grp, mbedtls_ecp_group_id id )
{
mbedtls_ecp_group_free( grp );
grp->id = id;
switch( id )
{
#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
case MBEDTLS_ECP_DP_SECP192R1:
NIST_MODP( p192 );
return( LOAD_GROUP( secp192r1 ) );... | pushq %r15
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
callq 0x1c9cb
movl %r14d, (%rbx)
decl %r14d
cmpl $0xb, %r14d
ja 0x20765
leaq 0x18961(%rip), %rax # 0x38cd0
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x412(%rip), %rax # 0x20791
movq %rax, 0xc8(%rbx)
subq $0x8, %rsp
movl $0x18, ... | /Dragonchang[P]https_client/mbedtls/library/ecp_curves.c |
ecp_group_load | static int ecp_group_load( mbedtls_ecp_group *grp,
const mbedtls_mpi_uint *p, size_t plen,
const mbedtls_mpi_uint *a, size_t alen,
const mbedtls_mpi_uint *b, size_t blen,
const mbedtls_mpi_uint *gx, size_t gxl... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x70(%rsp), %r13
movq 0x68(%rsp), %r12
movq 0x60(%rsp), %r10
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %r15
movq 0x48(%rsp), %r11
movq 0x40(%rsp), %r14
addq $0x8, %rdi
movl $0x1, 0x8(%rbx)
shrq $0x3, %rdx
movq %rdx, 0x10(%rbx... | /Dragonchang[P]https_client/mbedtls/library/ecp_curves.c |
ecp_mod_p255 | static int ecp_mod_p255( mbedtls_mpi *N )
{
int ret;
size_t i;
mbedtls_mpi M;
mbedtls_mpi_uint Mp[P255_WIDTH + 2];
if( N->n < P255_WIDTH )
return( 0 );
/* M = A1 */
M.s = 1;
M.n = N->n - ( P255_WIDTH - 1 );
if( M.n > P255_WIDTH + 1 )
M.n = P255_WIDTH + 1;
M.p = ... | movq 0x8(%rdi), %rcx
xorl %eax, %eax
cmpq $0x4, %rcx
jb 0x2168f
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0x1, (%r14)
addq $-0x3, %rcx
cmpq $0x5, %rcx
movl $0x5, %edx
cmovbq %rcx, %rdx
movq %rdx, 0x8(%r14)
leaq 0x20(%rsp), %rdi
movq %rdi, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm... | /Dragonchang[P]https_client/mbedtls/library/ecp_curves.c |
mbedtls_entropy_init | void mbedtls_entropy_init( mbedtls_entropy_context *ctx )
{
memset( ctx, 0, sizeof(mbedtls_entropy_context) );
#if defined(MBEDTLS_THREADING_C)
mbedtls_mutex_init( &ctx->mutex );
#endif
#if defined(MBEDTLS_ENTROPY_SHA512_ACCUMULATOR)
mbedtls_sha512_starts( &ctx->accumulator, 0 );
#else
mbedtls_sha256_... | pushq %rbx
movq %rdi, %rbx
movl $0x400, %edx # imm = 0x400
xorl %esi, %esi
callq 0xc100
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2e495
movslq 0xd8(%rbx), %rax
cmpq $0x13, %rax
jg 0x21939
leaq (%rax,%rax,4), %rcx
leaq 0x6de(%rip), %rdx # 0x21fa4
movq %rdx, 0xe0(%rbx,%rcx,8)
movq $0x0, 0xe8(%rbx,%rcx,8)
m... | /Dragonchang[P]https_client/mbedtls/library/entropy.c |
mbedtls_entropy_func | int mbedtls_entropy_func( void *data, unsigned char *output, size_t len )
{
int ret, count = 0, i, done;
mbedtls_entropy_context *ctx = (mbedtls_entropy_context *) data;
unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE];
if( len > MBEDTLS_ENTROPY_BLOCK_SIZE )
return( MBEDTLS_ERR_ENTROPY_SOURCE_FAIL... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl $0xffffffc4, %ebp # imm = 0xFFFFFFC4
cmpq $0x40, %rdx
ja 0x21c93
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpl $0x101, %r13d # imm = 0x101
je 0x21c93
movq %r15, %rdi
callq 0... | /Dragonchang[P]https_client/mbedtls/library/entropy.c |
mbedtls_platform_entropy_poll | int mbedtls_platform_entropy_poll( void *data,
unsigned char *output, size_t len, size_t *olen )
{
FILE *file;
size_t read_len;
((void) data);
#if defined(HAVE_GETRANDOM)
if( has_getrandom == -1 )
has_getrandom = ( check_version_3_17_plus() == 0 );
if( has_getran... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl 0x281ee(%rip), %eax # 0x4a1b0
cmpl $-0x1, %eax
jne 0x22012
leaq 0xa(%rsp), %r12
movq %r12, %rdi
callq 0xc0e0
movb 0x82(%r12), %cl
leal -0x33(%rcx), %eax
cmpb $0x6, %... | /Dragonchang[P]https_client/mbedtls/library/entropy_poll.c |
mbedtls_gcm_setkey | int mbedtls_gcm_setkey( mbedtls_gcm_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, ... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rdi, %rbx
movl %esi, %edi
movl %ecx, %esi
movl $0x1, %edx
callq 0x1910b
movq %rax, %r15
movl $0xffffffec, %eax # imm = 0xFFFFFFEC
testq %r15, %r15
je 0x22291
cmpl $0x10, 0x20(%r15)
jne 0x22291
movq %rbx, %rdi
callq ... | /Dragonchang[P]https_client/mbedtls/library/gcm.c |
mbedtls_hmac_drbg_reseed | int mbedtls_hmac_drbg_reseed( mbedtls_hmac_drbg_context *ctx,
const unsigned char *additional, size_t len )
{
unsigned char seed[MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT];
size_t seedlen;
/* III. Check input length */
if( len > MBEDTLS_HMAC_DRBG_MAX_INPUT ||
ctx->entropy_len + len... | movl $0xfffffffb, %eax # imm = 0xFFFFFFFB
cmpq $0x100, %rdx # imm = 0x100
ja 0x231f3
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x180, %rsp # imm = 0x180
movq %rdx, %r14
movq %rdi, %rbx
movq 0x60(%rdi), %r12
leaq (%r12,%rdx), %rcx
cmpq $0x180, %rcx # imm = 0x180
... | /Dragonchang[P]https_client/mbedtls/library/hmac_drbg.c |
mbedtls_hmac_drbg_random | int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len )
{
int ret;
mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng;
#if defined(MBEDTLS_THREADING_C)
if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 )
return( ret );
#endif
ret = mbedtls_hmac_d... | xorl %ecx, %ecx
xorl %r8d, %r8d
jmp 0x232c3
| /Dragonchang[P]https_client/mbedtls/library/hmac_drbg.c |
mbedtls_hmac_drbg_write_seed_file | int mbedtls_hmac_drbg_write_seed_file( mbedtls_hmac_drbg_context *ctx, const char *path )
{
int ret;
FILE *f;
unsigned char buf[ MBEDTLS_HMAC_DRBG_MAX_INPUT ];
if( ( f = fopen( path, "wb" ) ) == NULL )
return( MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR );
if( ( ret = mbedtls_hmac_drbg_random( ctx... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %rsi, %rax
movq %rdi, %r14
leaq 0x14976(%rip), %rsi # 0x37da0
movq %rax, %rdi
callq 0xc1f0
testq %rax, %rax
je 0x23486
movq %rax, %rbx
xorl %r15d, %r15d
movq %rsp, %rsi
movl $0x100, %edx # imm = 0x100
movq %r14, %... | /Dragonchang[P]https_client/mbedtls/library/hmac_drbg.c |
mbedtls_md_hmac_starts | int mbedtls_md_hmac_starts( mbedtls_md_context_t *ctx, const unsigned char *key, size_t keylen )
{
unsigned char sum[MBEDTLS_MD_MAX_SIZE];
unsigned char *ipad, *opad;
size_t i;
if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL )
return( MBEDTLS_ERR_MD_BAD_INPUT_DATA );
if( k... | movl $0xffffaf00, %eax # imm = 0xFFFFAF00
testq %rdi, %rdi
je 0x23d72
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x23d65
movq 0x10(%rbx), %r15
testq %r15, %r15
je 0x23d65
movq %rdx, %r12
movq %rsi, %r14
movslq 0x14(%rcx), %rdx
cmpq... | /Dragonchang[P]https_client/mbedtls/library/md.c |
mbedtls_md5_update | void mbedtls_md5_update( mbedtls_md5_context *ctx, const unsigned char *input, size_t ilen )
{
size_t fill;
uint32_t left;
if( ilen == 0 )
return;
left = ctx->total[0] & 0x3F;
fill = 64 - left;
ctx->total[0] += (uint32_t) ilen;
ctx->total[0] &= 0xFFFFFFFF;
if( ctx->total[0] <... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdx, %rdx
je 0x2481e
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %ecx
movl %ecx, %eax
andl $0x3f, %eax
movl %edx, %esi
addl %ecx, %esi
movl %esi, (%rdi)
jae 0x24799
incl 0x4(%r14)
testl %eax, %eax
je 0x247d7
movl $0x40, %r15d
subq %rax, %r15
movq %rdx, %r13... | /Dragonchang[P]https_client/mbedtls/library/md5.c |
mbedtls_oid_get_numeric_string | int mbedtls_oid_get_numeric_string( char *buf, size_t size,
const mbedtls_asn1_buf *oid )
{
int ret;
size_t i, n;
unsigned int value;
char *p;
p = buf;
n = size;
/* First byte contains first two dots */
if( oid->len > 0 )
{
ret = mbedtls_snprintf... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpq $0x0, 0x8(%rdx)
movq %rsi, %r12
je 0x251dc
movq %rdx, %r14
movq %rdi, %r15
movq 0x10(%rdx), %rax
movzbl (%rax), %eax
imull $0xcd, %eax, %ecx
shrl $0xd, %ecx
leal (,%rcx,8), %edx
leal (%rdx,%rdx,4), %edx
subb %dl, %al
movzb... | /Dragonchang[P]https_client/mbedtls/library/oid.c |
mbedtls_pem_write_buffer | int mbedtls_pem_write_buffer( const char *header, const char *footer,
const unsigned char *der_data, size_t der_len,
unsigned char *buf, size_t buf_len, size_t *olen )
{
int ret;
unsigned char *encode_buf, *c, *p = buf;
size_t len = 0, use_len, add_len = 0;
m... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r15
movq %r8, 0x20(%rsp)
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %rbp, %rcx
movq %r13, %r8
callq 0x128b0
movq %r14, 0x10(%rsp)
m... | /Dragonchang[P]https_client/mbedtls/library/pem.c |
mbedtls_pk_info_from_type | const mbedtls_pk_info_t * mbedtls_pk_info_from_type( mbedtls_pk_type_t pk_type )
{
switch( pk_type ) {
#if defined(MBEDTLS_RSA_C)
case MBEDTLS_PK_RSA:
return( &mbedtls_rsa_info );
#endif
#if defined(MBEDTLS_ECP_C)
case MBEDTLS_PK_ECKEY:
return( &mbedtls_eckey_info );
... | decl %edi
cmpl $0x3, %edi
ja 0x25ce6
movl %edi, %eax
leaq 0x23ec7(%rip), %rcx # 0x49ba8
movq (%rcx,%rax,8), %rax
retq
xorl %eax, %eax
retq
| /Dragonchang[P]https_client/mbedtls/library/pk.c |
rsa_alt_check_pair | static int rsa_alt_check_pair( const void *pub, const void *prv )
{
unsigned char sig[MBEDTLS_MPI_MAX_SIZE];
unsigned char hash[32];
size_t sig_len = 0;
int ret;
if( rsa_alt_get_bitlen( prv ) != rsa_get_bitlen( pub ) )
return( MBEDTLS_ERR_RSA_KEY_CHECK_FAILED );
memset( hash, 0x2a, siz... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x428, %rsp # imm = 0x428
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
callq *0x18(%rsi)
movq %rax, %rcx
xorq 0x8(%rbx), %rcx
shlq $0x3, %rcx
movl $0xffffbe00, %eax # imm = 0xFFFFBE00
testq %rcx, %rcx
jne 0x2664e
movaps 0x14c89(%rip), %xmm0 # 0x... | /Dragonchang[P]https_client/mbedtls/library/pk_wrap.c |
mbedtls_pk_load_file | int mbedtls_pk_load_file( const char *path, unsigned char **buf, size_t *n )
{
FILE *f;
long size;
if( ( f = fopen( path, "rb" ) ) == NULL )
return( MBEDTLS_ERR_PK_FILE_IO_ERROR );
fseek( f, 0, SEEK_END );
if( ( size = ftell( f ) ) == -1 )
{
fclose( f );
return( MBEDTLS... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
leaq 0x11053(%rip), %rsi # 0x37da3
callq 0xc1f0
movl $0xffffc200, %ebx # imm = 0xFFFFC200
testq %rax, %rax
je 0x26e16
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xc1e0
movq %... | /Dragonchang[P]https_client/mbedtls/library/pkparse.c |
mbedtls_pk_parse_subpubkey | int mbedtls_pk_parse_subpubkey( unsigned char **p, const unsigned char *end,
mbedtls_pk_context *pk )
{
int ret;
size_t len;
mbedtls_asn1_buf alg_params;
mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE;
const mbedtls_pk_info_t *pk_info;
if( ( ret = mbedtls_asn1_get_tag( p, en... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movl $0x0, 0x4(%rsp)
leaq 0x8(%rsp), %rdx
movl $0x30, %ecx
callq 0x12355
testl %eax, %eax
je 0x2734b
movl %eax, %ebp
addl $0xffffc300, %ebp # imm = 0xFFFFC300
jmp 0x273a0
movq (%r14), %r15
addq 0x8(%rsp), %r15
leaq 0x4(%r... | /Dragonchang[P]https_client/mbedtls/library/pkparse.c |
pk_get_pk_alg | static int pk_get_pk_alg( unsigned char **p,
const unsigned char *end,
mbedtls_pk_type_t *pk_alg, mbedtls_asn1_buf *params )
{
int ret;
mbedtls_asn1_buf alg_oid;
memset( params, 0, sizeof(mbedtls_asn1_buf) );
if( ( ret = mbedtls_asn1_get_alg( p, end,... | pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
movq %rsp, %rdx
callq 0x126b6
testl %eax, %eax
je 0x2746a
addl $0xffffc580, %eax # imm = 0xFFFFC580
jmp 0x2749f
movq %rsp, %rdi
movq %r14, %rsi
callq 0x24e37
movl %eax, %ecx
movl $0... | /Dragonchang[P]https_client/mbedtls/library/pkparse.c |
mbedtls_ripemd160_finish | void mbedtls_ripemd160_finish( mbedtls_ripemd160_context *ctx, unsigned char output[20] )
{
uint32_t last, padn;
uint32_t high, low;
unsigned char msglen[8];
high = ( ctx->total[0] >> 29 )
| ( ctx->total[1] << 3 );
low = ( ctx->total[0] << 3 );
PUT_UINT32_LE( low, msglen, 0 );
... | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %eax
movl 0x4(%rdi), %ecx
shldl $0x3, %eax, %ecx
leal (,%rax,8), %edx
leaq 0x8(%rsp), %r15
movb %dl, (%r15)
movl %eax, %edx
shrl $0x5, %edx
movb %dl, 0x1(%r15)
movl %eax, %edx
shrl $0xd, %edx
movb %dl, 0x2(%r15)
movl %eax, %e... | /Dragonchang[P]https_client/mbedtls/library/ripemd160.c |
mbedtls_rsa_rsaes_pkcs1_v15_encrypt | int mbedtls_rsa_rsaes_pkcs1_v15_encrypt( mbedtls_rsa_context *ctx,
int (*f_rng)(void *, unsigned char *, size_t),
void *p_rng,
int mode, size_t ilen,
const unsigned char *input,
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq 0x60(%rsp), %r10
cmpl $0x1, %ecx
jne 0x2aa23
movl $0xffffbf80, %eax # imm = 0xFFFFBF80
cmpl $0x0, 0x148(%rdi)
jne 0x2aa59
testq %r15, %r15
sete %al
testq %r9, %r9
sete %cl
orb %a... | /Dragonchang[P]https_client/mbedtls/library/rsa.c |
mbedtls_sha1_finish | void mbedtls_sha1_finish( mbedtls_sha1_context *ctx, unsigned char output[20] )
{
uint32_t last, padn;
uint32_t high, low;
unsigned char msglen[8];
high = ( ctx->total[0] >> 29 )
| ( ctx->total[1] << 3 );
low = ( ctx->total[0] << 3 );
PUT_UINT32_BE( high, msglen, 0 );
PUT_UINT3... | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl (%rdi), %eax
movl 0x4(%rdi), %ecx
shldl $0x3, %eax, %ecx
movq %rsi, %r14
leal (,%rax,8), %edx
movl %ecx, %esi
shrl $0x18, %esi
leaq 0x8(%rsp), %r15
movb %sil, (%r15)
movl %ecx, %esi
shrl $0x10, %esi
movb %sil, 0x1(%r15)
movb %ch, 0xa(%rsp)
movb %cl,... | /Dragonchang[P]https_client/mbedtls/library/sha1.c |
mbedtls_blowfish_setkey | int mbedtls_blowfish_setkey( mbedtls_blowfish_context *ctx, const unsigned char *key,
unsigned int keybits )
{
unsigned int i, j, k;
uint32_t data, datal, datar;
if( keybits < MBEDTLS_BLOWFISH_MIN_KEY_BITS || keybits > MBEDTLS_BLOWFISH_MAX_KEY_BITS ||
( keybits % 8 ) )
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
leal -0x20(%r14), %eax
cmpl $0x1a1, %eax # imm = 0x1A1
setae %cl
testb $0x7, %r14b
setne %dl
movl $0xffffffea, %eax # imm = 0xFFFFFFEA
orb %cl, %dl
jne 0x2f9df
movq %rsi, %r15
movq %rdi, %rbx
xorl %r12d, %r12d... | /Dragonchang[P]https_client/mbedtls/library/blowfish.c |
pkcs12_pbe_derive_key_iv | static int pkcs12_pbe_derive_key_iv( mbedtls_asn1_buf *pbe_params, mbedtls_md_type_t md_type,
const unsigned char *pwd, size_t pwdlen,
unsigned char *key, size_t keylen,
unsigned char *iv, size_t ivlen )
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movl $0x0, 0xc(%rsp)
movl $0xffffe080, %eax # imm = 0xFFFFE080
cmpq $0x80, %rcx
ja 0x30943
movq %r9, %rbp
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movl %esi, %ebx
movq %rdi, %r14
xorps %xmm0, %xmm0
m... | /Dragonchang[P]https_client/mbedtls/library/pkcs12.c |
mbedtls_asn1_write_int | int mbedtls_asn1_write_int( unsigned char **p, unsigned char *start, int val )
{
int ret;
size_t len = 0;
// TODO negative values and values larger than 128
// DER format assumes 2s complement for numbers, so the leftmost bit
// should be 0 for positive numbers and 1 for negative numbers.
//
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq %rax, %rcx
subq %rsi, %rcx
movl $0xffffff94, %ebx # imm = 0xFFFFFF94
testq %rcx, %rcx
jle 0x3131f
movq %rsi, %r15
movq %rdi, %r14
leaq -0x1(%rax), %rcx
movq %rcx, (%rdi)
movb %dl, -0x1(%rax)
movl $0x1, %r12d
testl %edx, %edx
jle 0x312ea... | /Dragonchang[P]https_client/mbedtls/library/asn1write.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 */
}
/*... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movb $0x1, %al
xorl %ebx, %ebx
testb $0x1, %al
je 0x3754
movl (%r14), %edi
movq 0x8(%r14), %rsi
addq %rbx, %rsi
movq 0x18(%r14), %rdx
subq %rbx, %rdx
callq 0x2040
testl %eax, %eax
js 0x3761
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
addq %rax, 0x28(%r14)
addq %rax, ... | /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 ) ... | pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movl %edi, %ebx
leaq 0x48(%rsi), %r14
movq %r14, %rdi
callq 0x3798
movq %r15, %rdi
callq 0x24a0
cmpl $-0x1, %eax
je 0x3bb6
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), %... | /DevSolar[P]pdclib/functions/stdio/fputc.c |
cJSON_CreateIntArray | CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)
{
size_t i = 0;
cJSON *n = NULL;
cJSON *p = NULL;
cJSON *a = NULL;
if ((count < 0) || (numbers == NULL))
{
return NULL;
}
a = cJSON_CreateArray();
for(i = 0; a && (i < (size_t)count); i++)
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x51e6
movl %esi, %ebp
movq %rdi, %r14
movl $0x40, %edi
callq *0x7fa1(%rip) # 0xd0c0
movq %rax, %rbx
testq %rax, %rax
je 0x5145
xorpd %xmm0, %xmm0
movupd %xmm0, 0x1... | /DaveGamble[P]cJSON/tests/../cJSON.c |
UnityNumToPtr | UNITY_INTERNAL_PTR UnityNumToPtr(const UNITY_INT num, const UNITY_UINT8 size)
{
switch(size)
{
case 1:
UnityQuickCompare.i8 = (UNITY_INT8)num;
return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.i8);
case 2:
UnityQuickCompare.i16 = (UNITY_INT16)num;
return (UN... | cmpl $0x8, %esi
je 0x7f9c
cmpl $0x2, %esi
je 0x7f93
cmpl $0x1, %esi
jne 0x7fa5
movb %dil, 0x52d7(%rip) # 0xd268
jmp 0x7fab
movw %di, 0x52ce(%rip) # 0xd268
jmp 0x7fab
movq %rdi, 0x52c5(%rip) # 0xd268
jmp 0x7fab
movl %edi, 0x52bd(%rip) # 0xd268
leaq 0x52b6(%rip), %rax # 0xd268
retq
| /DaveGamble[P]cJSON/tests/unity/src/unity.c |
default_import_callback(void*, char const*, char const*, char**, char**, unsigned long*) | static int default_import_callback(void *ctx, const char *dir, const char *file,
char **found_here_cptr, char **buf, size_t *buflen)
{
auto *vm = static_cast<JsonnetVm *>(ctx);
std::string input, found_here, err_msg;
ImportStatus status = try_path(dir, file, input, found... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, %r14
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r13
leaq 0x90(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x70(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x... | /google[P]jsonnet/core/libjsonnet.cpp |
jsonnet::internal::jsonnet_vm_execute_stream(jsonnet::internal::Allocator*, jsonnet::internal::AST const*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, jsonnet::internal::VmExt, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::al... | std::vector<std::string> jsonnet_vm_execute_stream(Allocator *alloc, const AST *ast,
const ExtMap &ext_vars, unsigned max_stack,
double gc_min_objects, double gc_growth_trigger,
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x438, %rsp # imm = 0x438
movq %r9, %rax
movq %rdx, %rbx
movq %rdi, %r15
movq 0x470(%rsp), %r9
movq 0x478(%rsp), %rdx
movq %rdx, (%rsp)
leaq 0x258(%rsp), %r14
movq %r14, %rdi
movq %rcx, %rdx
movl %r8d, %ecx
movq %rax, %r8
callq 0x66578
m... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinPow(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinPow(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "pow", args, {Value::NUMBER, Value::NUMBER});
scratch = makeNumberCheck(loc, std::pow(args[0].v.d, args[1].v.d));
return nullptr;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x891c9(%rip), %rsi # 0xfaca4
leaq 0x891c5(%rip), %rdx # 0xfaca7
leaq 0x20(%rsp), %rdi
callq 0x48cb0
movabsq $0x200000002, %rax # imm = 0x200000002
... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinCeil(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinCeil(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "ceil", args, {Value::NUMBER});
scratch = makeNumberCheck(loc, std::ceil(args[0].v.d));
return nullptr;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x88fbb(%rip), %rsi # 0xfacae
leaq 0x88fb8(%rip), %rdx # 0xfacb2
leaq 0x28(%rsp), %rdi
callq 0x48cb0
leaq 0x24(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x8(%rs... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinCos(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinCos(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "cos", args, {Value::NUMBER});
scratch = makeNumberCheck(loc, std::cos(args[0].v.d));
return nullptr;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x88ca9(%rip), %rsi # 0xfacbe
leaq 0x88ca5(%rip), %rdx # 0xfacc1
leaq 0x28(%rsp), %rdi
callq 0x48cb0
leaq 0x24(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x8(%rs... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinAsin(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinAsin(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "asin", args, {Value::NUMBER});
scratch = makeNumberCheck(loc, std::asin(args[0].v.d));
return nullptr;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x88a97(%rip), %rsi # 0xfacb8
leaq 0x88a94(%rip), %rdx # 0xfacbc
leaq 0x28(%rsp), %rdi
callq 0x48cb0
leaq 0x24(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x8(%rs... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinAcos(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinAcos(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "acos", args, {Value::NUMBER});
scratch = makeNumberCheck(loc, std::acos(args[0].v.d));
return nullptr;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x88996(%rip), %rsi # 0xfacbd
leaq 0x88993(%rip), %rdx # 0xfacc1
leaq 0x28(%rsp), %rdi
callq 0x48cb0
leaq 0x24(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x8(%rs... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinLength(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinLength(const LocationRange &loc, const std::vector<Value> &args)
{
if (args.size() != 1) {
throw makeError(loc, "length takes 1 parameter.");
}
HeapEntity *e = args[0].v.h;
switch (args[0].t) {
case Value::OBJECT: {
auto field... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jne 0x72c45
movl (%rax), %ecx
addl $-0x10, %ecx
cmpl $0x3, %ecx
ja 0x72ca4
movq 0x8(%rax), %rsi
leaq 0x877f7(%rip), %rax # 0xfa37c
movslq (%... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinPrimitiveEquals(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinPrimitiveEquals(const LocationRange &loc, const std::vector<Value> &args)
{
if (args.size() != 2) {
std::stringstream ss;
ss << "primitiveEquals takes 2 parameters, got " << args.size();
throw makeError(loc, ss.str());
}
if (args[0].t != ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp # imm = 0x1B0
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
subq %rax, %rcx
cmpq $0x20, %rcx
jne 0x73ed6
movl (%rax), %ecx
cmpl 0x10(%rax), %ecx
jne 0x73e85
cmpl $0x1, %ecx
jle 0x73e89
cmpl $0x2,... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinTrace(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinTrace(const LocationRange &loc, const std::vector<Value> &args)
{
if(args[0].t != Value::STRING) {
std::stringstream ss;
ss << "Builtin function trace expected string as first parameter but "
<< "got " << type_str(args[0].t);
throw makeErr... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp # imm = 0x1B0
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rax
cmpl $0x13, (%rax)
jne 0x747f9
movq 0x8(%rax), %rsi
addq $0x10, %rsi
leaq 0x28(%rsp), %rdi
callq 0x6f239
movq 0xcb8c1(%rip), %rdi # 0x13ffe8
leaq 0x86b8... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinRange(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinRange(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "range", args, {Value::NUMBER, Value::NUMBER});
long from = long(args[0].v.d);
long to = long(args[1].v.d);
long len = to - from + 1;
scratch = makeArray({});
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbp
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x87c55(%rip), %rsi # 0xfccdf
leaq 0x87c53(%rip), %rdx # 0xfcce4
movq %rsp, %rdi
callq 0x48cb0
movabsq $0x200000002, %rax # im... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::builtinAtan2(jsonnet::internal::LocationRange const&, std::vector<jsonnet::internal::(anonymous namespace)::Value, std::allocator<jsonnet::internal::(anonymous namespace)::Value>> const&) | const AST *builtinAtan2(const LocationRange &loc, const std::vector<Value> &args)
{
validateBuiltinArgs(loc, "atan2", args, {Value::NUMBER, Value::NUMBER});
scratch = makeNumberCheck(loc, std::atan2(args[0].v.d, args[1].v.d));
return nullptr;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x84565(%rip), %rsi # 0xfad90
leaq 0x84563(%rip), %rdx # 0xfad95
leaq 0x20(%rsp), %rdi
callq 0x48cb0
movabsq $0x200000002, %rax # imm = 0x200000002
... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::operator<<(std::ostream&, jsonnet::internal::LocationRange const&) | static inline std::ostream &operator<<(std::ostream &o, const LocationRange &loc)
{
if (loc.file.length() > 0)
o << loc.file;
if (loc.isSet()) {
if (loc.file.length() > 0)
o << ":";
if (loc.begin.line == loc.end.line) {
if (loc.begin.column == loc.end.column - 1) ... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x76f4b
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x40500
cmpq $0x0, 0x20(%r14)
je 0x77078
cmpq $0x0, 0x8(%r14)
je 0x76f71
leaq 0x9a81e(%rip), %rsi # 0x111782
movl $0x1, %edx
movq %rbx, %rdi... | /google[P]jsonnet/core/static_error.h |
jsonnet::internal::(anonymous namespace)::Interpreter::makeNumberCheck(jsonnet::internal::LocationRange const&, double) | Value makeNumberCheck(const LocationRange &loc, double v)
{
if (std::isnan(v)) {
throw makeError(loc, "not a number");
}
if (std::isinf(v)) {
throw makeError(loc, "overflow");
}
return makeNumber(v);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %r15
ucomisd %xmm0, %xmm0
jp 0x7909d
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
je 0x790fc
movsd %xmm0, (%rsp)
movq (%rsp), %rax
addq $0x20, %rsp
popq %r... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::makeString(std::__cxx11::basic_string<char32_t, std::char_traits<char32_t>, std::allocator<char32_t>> const&) | Value makeString(const UString &v)
{
Value r;
r.t = Value::STRING;
r.v.h = makeHeap<HeapString>(v);
return r;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movl $0x30, %edi
callq 0x40430
movq %rax, %rbx
movb $0x3, 0x9(%rax)
leaq 0xc5416(%rip), %rax # 0x13e5d0
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
leaq 0x20(%rbx), %rax
movq %rax, 0x10(%rbx)
movq (%r15), %rsi
movq 0x8(%r15), %rax
le... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::HeapThunk* jsonnet::internal::(anonymous namespace)::Interpreter::makeHeap<jsonnet::internal::(anonymous namespace)::HeapThunk, jsonnet::internal::Identifier const*&, std::nullptr_t, int, std::nullptr_t>(jsonnet::internal::Identifier const*&, std::nullptr_t&&, int&&, std::nullp... | T *makeHeap(Args &&... args)
{
T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
if (heap.checkHeap()) { // Do a GC cycle?
// Avoid the object we just made being collected.
heap.markFrom(r);
// Mark from the stack.
stack.mark(heap);
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl $0x70, %edi
callq 0x40430
movq %rax, %rbx
movq (%r12), %rax
movl (%r15), %ecx
movw $0x0, 0x9(%rbx)
leaq 0xc4cd6(%rip), %rdx # 0x13e4c8
movq %rdx, (%rbx)
movq %rax, 0x20(%rbx)
leaq 0x30(%rbx), %rax
movl $0x0, ... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::joinArrays() | const AST *joinArrays(void)
{
Frame &f = stack.top();
const auto& elements = static_cast<HeapArray*>(f.val2.v.h)->elements;
while (f.elementId < elements.size()) {
auto *th = elements[f.elementId];
if (th->filled) {
joinArray(f.first, f.thunks, f.val, ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x50(%rdi), %rax
movq %rax, 0x20(%rsp)
movq 0x68(%rdi), %r13
movq -0x120(%r13), %rbp
leaq -0x180(%r13), %rax
movq %rax, 0x18(%rsp)
leaq -0x70(%r13), %rax
movq %rax, 0x10(%rsp)
leaq -0xa8(%r13), %rax
movq %rax, (%rsp)... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::yamlTreeToJson[abi:cxx11](c4::yml::Tree const&) | const json yamlTreeToJson(const ryml::Tree& tree) {
std::ostringstream jsonStream;
jsonStream << ryml::as_json(tree);
return json::parse(jsonStream.str());
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x1d0, %rsp # imm = 0x1D0
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x58(%rsp), %r15
movq %r15, %rdi
callq 0x405f0
cmpq $0x0, 0x10(%r14)
je 0x7afbd
movq %r14, %rdi
callq 0x8b086
movq %rax, %rcx
jmp 0x7afc4
movq $-0x1, %rcx
movq %rsp, %rdi
movq %r15, (%rdi)
movq $0x0, 0x8(%rd... | /google[P]jsonnet/core/vm.cpp |
void jsonnet::internal::(anonymous namespace)::Stack::newFrame<jsonnet::internal::(anonymous namespace)::FrameKind, jsonnet::internal::AST const*>(jsonnet::internal::(anonymous namespace)::FrameKind, jsonnet::internal::AST const*) | void newFrame(Args... args)
{
stack.emplace_back(args...);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl %esi, 0x4(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x18(%rdi), %r12
cmpq 0x20(%rdi), %r12
je 0x7bc33
leaq 0x4(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x7dab4
addq $0x190, 0x18(%rbx) # imm = 0x190
jmp 0x7... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::HeapThunk* jsonnet::internal::(anonymous namespace)::Interpreter::makeHeap<jsonnet::internal::(anonymous namespace)::HeapThunk, jsonnet::internal::Identifier const*&, jsonnet::internal::(anonymous namespace)::HeapObject*&, unsigned int&, jsonnet::internal::AST* const&>(jsonnet:... | T *makeHeap(Args &&... args)
{
T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
if (heap.checkHeap()) { // Do a GC cycle?
// Avoid the object we just made being collected.
heap.markFrom(r);
// Mark from the stack.
stack.mark(heap);
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movl $0x70, %edi
callq 0x40430
movq %rax, %rbx
movq (%rbp), %rax
movq (%r13), %rcx
movl (%r12), %edx
movq (%r15), %rsi
movw $0x0, 0x9(%rbx)
leaq 0xc2773(%rip), %rdi... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::importData(jsonnet::internal::LocationRange const&, jsonnet::internal::LiteralString const*) | ImportCacheValue *importData(const LocationRange &loc, const LiteralString *file)
{
// `dir` is passed to the importCallback, which may be externally defined.
// For backwards compatibility, we need to keep the trailing directory separator.
// For example, the default callback in libjsonnet.... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x88(%rsp), %r15
movq %r15, %rdi
callq 0xb9714
subq $-0x80, %r13
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x9d744
leaq 0xc8(%r14), %r15
lea... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::toString[abi:cxx11](jsonnet::internal::LocationRange const&) | UString toString(const LocationRange &loc)
{
return manifestJson(loc, false, U"");
} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x8238c(%rip), %rdx # 0xff3bc
movq %rsp, %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x7f2f2
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::objectIndex(jsonnet::internal::LocationRange const&, jsonnet::internal::(anonymous namespace)::HeapObject*, jsonnet::internal::Identifier const*, unsigned int) | const AST *objectIndex(const LocationRange &loc, HeapObject *obj, const Identifier *f,
unsigned offset)
{
unsigned found_at = 0;
HeapObject *self = obj;
HeapLeafObject *found = findObject(f, obj, offset, found_at);
if (found == nullptr) {
throw ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x4(%rsp), %rcx
movl $0x0, (%rcx)
movq %r12, %rdi
movq %rdx, %rsi
movl %r8d, %edx
callq 0x7c8e2
testq %rax, %rax
je 0x7d25a
movq %rax, %r13
leaq 0xc13b4(%rip), %rsi ... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::objectInvariants(jsonnet::internal::(anonymous namespace)::HeapObject*, jsonnet::internal::(anonymous namespace)::HeapObject*, unsigned int&, std::vector<jsonnet::internal::(anonymous namespace)::HeapThunk*, std::allocator<jsonnet::internal::(anonymous namespace)::... | void objectInvariants(HeapObject *curr, HeapObject *self, unsigned &counter,
std::vector<HeapThunk *> &thunks)
{
if (auto *ext = dynamic_cast<HeapExtendedObject *>(curr)) {
objectInvariants(ext->right, self, counter, thunks);
objectInvariants(ext->left, self... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, 0x20(%rsp)
movq %rcx, %rbx
movq %rdx, 0x18(%rsp)
movq %rsi, %r13
movq %rdi, %r12
leaq 0xc0fe6(%rip), %rbp # 0x13e460
leaq 0xc10a7(%rip), %r14 # 0x13e528
testq %r13, %r13
je 0x7d49b
movq %r13, %rdi
movq %rbp, %rsi
movq %... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::(anonymous namespace)::Interpreter::runInvariants(jsonnet::internal::LocationRange const&, jsonnet::internal::(anonymous namespace)::HeapObject*) | void runInvariants(const LocationRange &loc, HeapObject *self)
{
if (stack.alreadyExecutingInvariants(self))
return;
unsigned counter = 0;
unsigned initial_stack_size = stack.size();
stack.newFrame(FRAME_INVARIANTS, loc);
std::vector<HeapThunk *> &thunks = stack.... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x60(%rdi), %rax
movq 0x68(%rdi), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
imull $0xc28f5c29, %ecx, %ebp # imm = 0xC28F5C29
movl %ebp, %ecx
decl %ecx
setns %dl
js 0x7e12d
movl %ecx, %ecx
i... | /google[P]jsonnet/core/vm.cpp |
jsonnet::internal::TraceFrame::TraceFrame(jsonnet::internal::LocationRange const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | TraceFrame(const LocationRange &location, const std::string &name = "")
: location(location), name(name)
{
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq (%rsi), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x493ee
movups 0x20(%r15), %xmm0
movups 0x30(%r15), %xmm1
movups %xmm1, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
leaq 0x4... | /google[P]jsonnet/core/vm.h |
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.