// // sub_100166CC4 from 0x100166cc4 to 0x100166fbc (760 bytes) // // 1 xrefs: // > GameSettingsLayer::valueDidChange @ 0x100166924 // // 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 10:59:48 +0000 // void __fastcall sub_100166CC4(__int64 a1, char *__s1, __int64 a3) { __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x0 __int64 v13; // x0 void (*v14)(void); // x1 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x19 __int64 v22; // x0 __int64 v23; // x0 __int64 v24; // x0 __n128 v25; // q0 int v26; // w0 __int64 v27; // x0 __n128 GameVariable; // q0 if ( !strcmp(__s1, "0040") || !strcmp(__s1, "0145") ) { v13 = *(_QWORD *)(a1 + 1096); if ( !v13 ) return; v14 = *(void (**)(void))(*(_QWORD *)v13 + 1568LL); goto LABEL_26; } if ( strcmp(__s1, "0144") ) { if ( !strcmp(__s1, "0109") ) { v16 = *(_QWORD *)(a1 + 1096); if ( !v16 ) return; v14 = *(void (**)(void))(*(_QWORD *)v16 + 1576LL); } else if ( !strcmp(__s1, "0146") ) { v17 = *(_QWORD *)(a1 + 1096); if ( !v17 ) return; v14 = *(void (**)(void))(*(_QWORD *)v17 + 1584LL); } else { if ( strcmp(__s1, "0125") ) { v6 = strcmp(__s1, "0166"); if ( (_DWORD)v6 && (v6 = strcmp(__s1, "0179"), (_DWORD)v6) && (v6 = strcmp(__s1, "0213"), (_DWORD)v6) && (v6 = strcmp(__s1, "0214"), (_DWORD)v6) && (v6 = strcmp(__s1, "0217"), (_DWORD)v6) ) { v7 = strcmp(__s1, "0028"); if ( (_DWORD)v7 ) { v8 = strcmp(__s1, "0023"); if ( (_DWORD)v8 ) { v9 = strcmp(__s1, "0168"); if ( (_DWORD)v9 ) { v10 = strcmp(__s1, "0172"); if ( !(_DWORD)v10 || (v10 = strcmp(__s1, "0095"), !(_DWORD)v10) || (v10 = strcmp(__s1, "0099"), !(_DWORD)v10) || (v10 = strcmp(__s1, "0126"), !(_DWORD)v10) || (v10 = strcmp(__s1, "0176"), !(_DWORD)v10) || (v10 = strcmp(__s1, "0177"), !(_DWORD)v10) || (v10 = strcmp(__s1, "0072"), !(_DWORD)v10) ) { v11 = GameManager::sharedState(v10); if ( *(_QWORD *)(v11 + 544) ) { v12 = GameManager::sharedState(v11); PlayLayer::updateGameSettings(*(_QWORD *)(v12 + 544)); } } } else { *(_BYTE *)(cocos2d::CCDirector::sharedDirector(v9) + 405) = a3; } } else { v27 = GameManager::sharedState(v8); GameVariable = GameManager::getGameVariable(v27, "0023"); sub_1001F9630(GameVariable); } } else { v21 = GameManager::sharedState(v7); v22 = GameManager::sharedState(v21); GameManager::getGameVariable(v22, "0028"); *(_BYTE *)(v21 + 1100) = v23; v24 = GameManager::sharedState(v23); v25 = GameManager::getGameVariable(v24, "0028"); nullsub_83(v26 ^ 1u, v25); } } else { v18 = GameManager::sharedState(v6); if ( *(_QWORD *)(v18 + 544) ) { v19 = GameManager::sharedState(v18); PlayLayer::updateDebugDrawSettings(*(_QWORD *)(v19 + 544)); } } return; } v20 = *(_QWORD *)(a1 + 1096); if ( !v20 ) return; v14 = *(void (**)(void))(*(_QWORD *)v20 + 1592LL); } LABEL_26: v14(); return; } v15 = *(_QWORD *)(a1 + 1096); if ( v15 ) GJBaseGameLayer::toggleAudioVisualizer(v15, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source