// // sub_140084E00 from 0x140084e00 to 0x140085073 (627 bytes) // // 3 xrefs: // > SpriteAnimationManager::createAnimations @ 0x14008682a // > @ 0x1409124f4 // > @ 0x140912500 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:25:56 +0000 // cocos2d::CCArray *__fastcall sub_140084E00(__int64 *a1) { cocos2d::CCArray *v2; // r14 unsigned __int64 v3; // rdi __int64 v4; // rcx unsigned __int64 v5; // rdx __int64 v6; // rsi __int64 v7; // r8 __int64 v8; // r9 __int64 v9; // rbp unsigned __int64 v10; // rcx size_t v11; // r8 size_t v12; // rcx __int64 *v13; // rax void **v14; // rdx size_t v15; // r8 struct cocos2d::CCObject *v16; // rax void *v17; // rcx __int64 v18; // rcx void *v19; // rcx void *v20; // rcx void *Block[2]; // [rsp+38h] [rbp-60h] BYREF __int64 v23; // [rsp+48h] [rbp-50h] unsigned __int64 v24; // [rsp+50h] [rbp-48h] __int128 v25; // [rsp+58h] [rbp-40h] BYREF __int128 v26; // [rsp+68h] [rbp-30h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 = 0; v4 = (__int64)a1; if ( (unsigned __int64)a1[3] > 0xF ) v4 = *a1; v6 = sub_140045BF0(v4, a1[2], 0, " ", 1); v9 = a1[2]; while ( 1 ) { *(_OWORD *)Block = 0; v23 = 0; v24 = 0; v10 = a1[2]; if ( v10 < v3 ) sub_14003F4D0(v10, v5, v7, v8); v11 = v6 - v3; v12 = v10 - v3; if ( v12 < v6 - v3 ) v11 = v12; v13 = a1; if ( (unsigned __int64)a1[3] > 0xF ) v13 = (__int64 *)*a1; sub_14003D230(Block, (char *)v13 + v3, v11); if ( v23 || v3 != v9 ) { v14 = Block; if ( v24 > 0xF ) v14 = (void **)Block[0]; v25 = 0; v26 = 0; v15 = -1; do ++v15; while ( *((_BYTE *)v14 + v15) ); sub_14003D230(&v25, v14, v15); v16 = (struct cocos2d::CCObject *)cocos2d::CCString::create(&v25); cocos2d::CCArray::addObject(v2, v16); if ( *((_QWORD *)&v26 + 1) > 0xFu ) { v17 = (void *)v25; if ( (unsigned __int64)(*((_QWORD *)&v26 + 1) + 1LL) >= 0x1000 ) { v17 = *(void **)(v25 - 8); if ( (unsigned __int64)(v25 - (_QWORD)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v17); } } if ( v6 == -1 ) break; v3 = v6 + 1; v18 = (__int64)a1; if ( (unsigned __int64)a1[3] > 0xF ) v18 = *a1; v6 = sub_140045BF0(v18, a1[2], v6 + 1, " ", 1); v5 = v24; if ( v24 > 0xF ) { v19 = Block[0]; if ( v24 + 1 >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) goto LABEL_30; } j_j_free(v19); } } if ( v24 > 0xF ) { v20 = Block[0]; if ( v24 + 1 >= 0x1000 ) { v20 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v20 - 8) > 0x1F ) LABEL_30: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source