// // sub_1003A970C from 0x1003a970c to 0x1003a9a30 (804 bytes) // // 1 xrefs: // > SecretLayer2::onSubmit @ 0x1003a814c // // This function is hookable on this platform (idp: arm, 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:03:50 +0000 // void __fastcall sub_1003A970C(__int64 a1, int a2) { __int64 v3; // x0 void *v4; // x0 char *CString; // x0 int v6; // w28 int v7; // w20 unsigned int v8; // w21 __int64 v9; // x19 unsigned int v10; // w24 __int64 v11; // x8 int v12; // w22 void *v13; // x23 void *v14; // x0 const char *v15; // x0 void *v16; // x22 char v17; // w23 float *v18; // x24 float *v19; // x25 float *v20; // x0 float v21; // s0 __int64 v22; // x1 __int64 v23; // x2 __int64 v24; // x3 __int64 v25; // x4 __int64 v26; // x5 __int64 v27; // x6 __int64 v28; // x7 __int64 v29; // x23 char v30; // w0 __int64 v31; // x1 __int64 v32; // x2 __int64 v33; // x3 __int64 v34; // x4 __int64 v35; // x5 __int64 v36; // x6 __int64 v37; // x7 int v39; // [xsp+40h] [xbp-D0h] std::string v40; // [xsp+48h] [xbp-C8h] BYREF std::string __str; // [xsp+60h] [xbp-B0h] BYREF __int64 v42; // [xsp+7Ch] [xbp-94h] BYREF std::allocator __a; // [xsp+87h] [xbp-89h] BYREF v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3, &v42); v4 = sub_1003065B0("%i", a2); CString = (char *)cocos2d::CCString::getCString((__int64)v4); sub_100009900(&__str, CString); v6 = 0; v7 = 0; v39 = 0; v8 = 0; v9 = (unsigned int)(int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 100.0); do { if ( v8 ) { if ( v6 <= 2 ) { if ( v7 <= 1 ) { if ( vcvts_n_f32_s32(rand(), 0x1Fu) > 0.5 ) v10 = 1; else v10 = 2; } else { v10 = 1; } } else { v10 = 2; } if ( v10 == 1 ) ++v6; else ++v7; std::string::basic_string(&v40, &__str, v39, v10, &__a); if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 ) { v13 = (void *)v40.__r_.__value_.__r.__words[0]; v12 = atoi(v40.__r_.__value_.__l.__data_); operator delete(v13); } else { v12 = atoi((const char *)&v40); } v39 += v10; v11 = (unsigned int)(v12 + v9); } else { v11 = v9; } v9 = v11; v14 = sub_1003065B0("%i", v11); v15 = (const char *)cocos2d::CCString::getCString((__int64)v14); v16 = cocos2d::CCLabelBMFont::create_1(v15, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v16); sub_1000262BC((float *)&v40, *(float *)&v42 * 0.5, (float)(*((float *)&v42 + 1) * 0.5) + 94.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 184LL))(v16, &v40); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v16 + 1024LL))(v16, 0); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v16 + 160LL))(v16, 3.0); v17 = (unsigned __int8)cocos2d::CCShow::create(); v18 = cocos2d::CCDelayTime::create((float)v8 * 0.55); v19 = cocos2d::CCFadeIn::create(0.1); v20 = cocos2d::CCScaleTo::create_1(0.2, 1.0); cocos2d::CCSpawn::createWithTwoActions((__int64)v19, (__int64)v20); cocos2d::CCDelayTime::create(0.2); if ( v8 == 5 ) v21 = 0.5; else v21 = 0.25; cocos2d::CCFadeOut::create(v21); cocos2d::CCCallFunc::create((__int64)v16, 536, 1); v29 = sub_10021D420((__int64)v18, v22, v23, v24, v25, v26, v27, v28, v17); if ( v8 == 5 ) { v30 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, 536, 1); v29 = sub_10021D420(v29, v31, v32, v33, v34, v35, v36, v37, v30); v40.__r_.__value_.__s.__data_[2] = -1; LOWORD(v40.__r_.__value_.__l.__data_) = -106; (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 1072LL))(v16, &v40); } cocos2d::CCNode::runAction((__int64)v16, v29); ++v8; } while ( v8 != 6 ); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source