// // AudioEffectsLayer::init from 0x14009a520 to 0x14009a6b1 (401 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x140505160 // > @ 0x140912e78 // // 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:26:04 +0000 // // Hidden C++ exception states: #wind=2 char __fastcall AudioEffectsLayer::init(cocos2d::CCLayerColor *a1, _QWORD *a2) { _BYTE *v5; // rdx size_t v6; // r8 void *v7; // rcx cocos2d::CCTextureCache *v8; // rax struct cocos2d::CCTexture2D *v9; // rax struct cocos2d::CCSpriteBatchNode *v10; // rax _QWORD v11[2]; // [rsp+30h] [rbp-48h] BYREF void *Block[2]; // [rsp+40h] [rbp-38h] BYREF __int128 v13; // [rsp+50h] [rbp-28h] v11[1] = a2; LODWORD(v11[0]) = 0; if ( cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)v11) ) { v5 = a2; if ( a2[3] > 0xFu ) v5 = (_BYTE *)*a2; *(_OWORD *)Block = 0; v13 = 0; v6 = -1; do ++v6; while ( v5[v6] ); sub_14003D230(Block, v5, v6); *((_QWORD *)a1 + 69) = sub_14009A1D0((__int64 *)Block); if ( *((_QWORD *)&v13 + 1) > 0xFu ) { v7 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v13 + 1) + 1LL) >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v7); } cocos2d::CCObject::retain(*((cocos2d::CCObject **)a1 + 69)); AudioEffectsLayer::resetAudioVars(a1); v8 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); v9 = cocos2d::CCTextureCache::addImage(v8, "GJ_GameSheet.png", 0); v10 = cocos2d::CCSpriteBatchNode::createWithTexture(v9); *((_QWORD *)a1 + 68) = v10; (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a1 + 464LL))( a1, v10); v11[0] = 0x100000302LL; (**(void (__fastcall ***)(__int64, __int64))(*((_QWORD *)a1 + 68) + 320LL))( *((_QWORD *)a1 + 68) + 320LL, 0x100000302LL); *((_DWORD *)a1 + 145) = 1036831949; sub_14003D310((__int64)a2); return 1; } else { sub_14003D310((__int64)a2); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source