{"type": "func", "start": 5371217456, "end": 5371217553, "name": "GJGameLevel::getCoinKey", "pseudocode": "// \n// GJGameLevel::getCoinKey from 0x140264630 to 0x140264691 (97 bytes)\n// \n// 19 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x14014b55e\n// > EndLevelLayer::customSetup @ 0x1402054ac\n// > EndLevelLayer::customSetup @ 0x140205515\n// > EndLevelLayer::customSetup @ 0x140205571\n// > GameLevelManager::updateLevelRewards @ 0x14021dfb3\n// > GameLevelManager::getLevelLeaderboard @ 0x140238b98\n// > GameLevelManager::getLevelLeaderboard @ 0x140238be7\n// > GJGameLevel::getCoinKey_1 @ 0x14026461e\n// > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14a0\n// > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14c9\n// > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14f7\n// > GJBaseGameLayer::processItems @ 0x14031d89f\n// > GJBaseGameLayer::processItems @ 0x14031dac3\n// > GJBaseGameLayer::hasUniqueCoin @ 0x14031dcf2\n// > LevelAreaInnerLayer::init @ 0x1403dffb3\n// > LevelInfoLayer::updateLabelValues @ 0x140425d03\n// > LevelPage::updateDynamicPage @ 0x140444516\n// > PauseLayer::customSetup @ 0x1404d83d5\n// > <???> @ 0x14091c874\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:49 +0000\n// \n\nconst char *__fastcall GJGameLevel::getCoinKey(__int64 a1, unsigned int a2, int a3)\n{\n  __int64 v4; // r8\n  __int64 v5; // rdx\n  cocos2d::CCString *v6; // rax\n  bool v8; // zf\n  const char *v9; // rcx\n  cocos2d::CCString *v10; // rax\n\n  v4 = a2;\n  v5 = (unsigned int)(*(_DWORD *)(a1 + 328) - *(_DWORD *)(a1 + 332));\n  if ( a3 <= 0 )\n  {\n    v8 = *(_BYTE *)(a1 + 721) == 0;\n    v9 = \"%i_%i_g\";\n    if ( v8 )\n      v9 = \"%i_%i\";\n    v10 = cocos2d::CCString::createWithFormat(v9, v5, v4);\n    return cocos2d::CCString::getCString(v10);\n  }\n  else\n  {\n    v6 = cocos2d::CCString::createWithFormat(\"%i_%i_%i\", v5, v4, a3);\n    return cocos2d::CCString::getCString(v6);\n  }\n}", "assembly": "; \n; GJGameLevel::getCoinKey from 0x140264630 to 0x140264691 (97 bytes)\n; \n; 19 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x14014b55e\n; > EndLevelLayer::customSetup @ 0x1402054ac\n; > EndLevelLayer::customSetup @ 0x140205515\n; > EndLevelLayer::customSetup @ 0x140205571\n; > GameLevelManager::updateLevelRewards @ 0x14021dfb3\n; > GameLevelManager::getLevelLeaderboard @ 0x140238b98\n; > GameLevelManager::getLevelLeaderboard @ 0x140238be7\n; > GJGameLevel::getCoinKey_1 @ 0x14026461e\n; > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14a0\n; > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14c9\n; > GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14f7\n; > GJBaseGameLayer::processItems @ 0x14031d89f\n; > GJBaseGameLayer::processItems @ 0x14031dac3\n; > GJBaseGameLayer::hasUniqueCoin @ 0x14031dcf2\n; > LevelAreaInnerLayer::init @ 0x1403dffb3\n; > LevelInfoLayer::updateLabelValues @ 0x140425d03\n; > LevelPage::updateDynamicPage @ 0x140444516\n; > PauseLayer::customSetup @ 0x1404d83d5\n; > <???> @ 0x14091c874\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:49 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x140264630\nmov     r9d, r8d                                                       ; +0x4, 0x140264634\nmov     r8d, edx                                                       ; +0x7, 0x140264637\nmov     edx, [rcx+148h]                                                ; +0xa, 0x14026463a\nsub     edx, [rcx+14Ch]                                                ; +0x10, 0x140264640\ntest    r9d, r9d                                                       ; +0x16, 0x140264646\njle     short loc_140264666                                            ; +0x19, 0x140264649\nlea     rcx, aIII_0; \"%i_%i_%i\"                                        ; +0x1b, 0x14026464b\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x22, 0x140264652\nmov     rcx, rax                                                       ; +0x28, 0x140264658\nadd     rsp, 28h                                                       ; +0x2b, 0x14026465b\njmp     cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2f, 0x14026465f\ncmp     byte ptr [rcx+2D1h], 0                                         ; +0x36, 0x140264666\nlea     rcx, aIIG; \"%i_%i_g\"                                           ; +0x3d, 0x14026466d\njnz     short loc_14026467D                                            ; +0x44, 0x140264674\nlea     rcx, aII_2; \"%i_%i\"                                            ; +0x46, 0x140264676\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x4d, 0x14026467d\nmov     rcx, rax                                                       ; +0x53, 0x140264683\nadd     rsp, 28h                                                       ; +0x56, 0x140264686\njmp     cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x5a, 0x14026468a", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x14014b55e", "EndLevelLayer::customSetup @ 0x1402054ac", "EndLevelLayer::customSetup @ 0x140205515", "EndLevelLayer::customSetup @ 0x140205571", "GameLevelManager::updateLevelRewards @ 0x14021dfb3", "GameLevelManager::getLevelLeaderboard @ 0x140238b98", "GameLevelManager::getLevelLeaderboard @ 0x140238be7", "GJGameLevel::getCoinKey_1 @ 0x14026461e", "GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14a0", "GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14c9", "GameStatsManager::getCollectedCoinsForLevel @ 0x1402e14f7", "GJBaseGameLayer::processItems @ 0x14031d89f", "GJBaseGameLayer::processItems @ 0x14031dac3", "GJBaseGameLayer::hasUniqueCoin @ 0x14031dcf2", "LevelAreaInnerLayer::init @ 0x1403dffb3", "LevelInfoLayer::updateLabelValues @ 0x140425d03", "LevelPage::updateDynamicPage @ 0x140444516", "PauseLayer::customSetup @ 0x1404d83d5", "<???> @ 0x14091c874"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}