{"type": "func", "start": 4298964708, "end": 4298964792, "name": "GameStatsManager::hasUserCoin", "pseudocode": "// \n// GameStatsManager::hasUserCoin from 0x1003cfee4 to 0x1003cff38 (84 bytes)\n// \n// 9 xrefs:\n// > LevelInfoLayer::updateLabelValues @ 0x10002d3e8\n// > sub_1000BD74C @ 0x1000bdaac\n// > LevelCell::loadCustomLevelCell @ 0x100134ff4\n// > PauseLayer::customSetup @ 0x1001bedc4\n// > GJBaseGameLayer::hasUniqueCoin @ 0x100284ee4\n// > GJBaseGameLayer::processItems @ 0x1002856f8\n// > EndLevelLayer::customSetup @ 0x100393300\n// > sub_1003CFD70 @ 0x1003cfde4\n// > GameStatsManager::dataLoaded @ 0x1003ddce4\n// \n// This function is hookable on this platform (idp: arm, 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:04:10 +0000\n// \n\nbool __fastcall GameStatsManager::hasUserCoin(__int64 a1, char *a2)\n{\n  __int64 v2; // x19\n  __int64 v3; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  v2 = *(_QWORD *)(a1 + 616);\n  sub_100009900(__p, a2);\n  v3 = cocos2d::CCDictionary::objectForKey(v2, __p);\n  if ( v6 < 0 )\n    operator delete(__p[0]);\n  return v3 != 0;\n}", "assembly": "; \n; GameStatsManager::hasUserCoin from 0x1003cfee4 to 0x1003cff38 (84 bytes)\n; \n; 9 xrefs:\n; > LevelInfoLayer::updateLabelValues @ 0x10002d3e8\n; > sub_1000BD74C @ 0x1000bdaac\n; > LevelCell::loadCustomLevelCell @ 0x100134ff4\n; > PauseLayer::customSetup @ 0x1001bedc4\n; > GJBaseGameLayer::hasUniqueCoin @ 0x100284ee4\n; > GJBaseGameLayer::processItems @ 0x1002856f8\n; > EndLevelLayer::customSetup @ 0x100393300\n; > sub_1003CFD70 @ 0x1003cfde4\n; > GameStatsManager::dataLoaded @ 0x1003ddce4\n; \n; This function is hookable on this platform (idp: arm, 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:04:10 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003cfee4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003cfee8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003cfeec\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003cfef0\nLDR             X19, [X0,#0x268]                                       ; +0x10, 0x1003cfef4\nADD             X0, SP, #0x30+__p; int                                 ; +0x14, 0x1003cfef8\nBL              sub_100009900                                          ; +0x18, 0x1003cfefc\nADD             X1, SP, #0x30+__p                                      ; +0x1c, 0x1003cff00\nMOV             X0, X19                                                ; +0x20, 0x1003cff04\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x24, 0x1003cff08\nMOV             X19, X0                                                ; +0x28, 0x1003cff0c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x2c, 0x1003cff10\nTBZ             W8, #0x1F, loc_1003CFF20                               ; +0x30, 0x1003cff14\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x34, 0x1003cff18\nBL              __ZdlPv; operator delete(void *)                       ; +0x38, 0x1003cff1c\nCMP             X19, #0                                                ; +0x3c, 0x1003cff20\nCSET            W0, NE                                                 ; +0x40, 0x1003cff24\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x44, 0x1003cff28\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x48, 0x1003cff2c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x4c, 0x1003cff30\nRET                                                                    ; +0x50, 0x1003cff34", "xrefs": ["LevelInfoLayer::updateLabelValues @ 0x10002d3e8", "sub_1000BD74C @ 0x1000bdaac", "LevelCell::loadCustomLevelCell @ 0x100134ff4", "PauseLayer::customSetup @ 0x1001bedc4", "GJBaseGameLayer::hasUniqueCoin @ 0x100284ee4", "GJBaseGameLayer::processItems @ 0x1002856f8", "EndLevelLayer::customSetup @ 0x100393300", "sub_1003CFD70 @ 0x1003cfde4", "GameStatsManager::dataLoaded @ 0x1003ddce4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}