{"type": "func", "start": 4296973320, "end": 4296973412, "name": "GJBaseGameLayer::countCollectedUserCoins", "pseudocode": "// \n// GJBaseGameLayer::countCollectedUserCoins from 0x1001e9c08 to 0x1001e9c64 (92 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::levelComplete @ 0x100119da4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall GJBaseGameLayer::countCollectedUserCoins(GJBaseGameLayer *a1)\n{\n  cocos2d::CCDictionary *m_collectedItems; // x8\n  cocos2d::CCDictElement *m_pElements; // x8\n  int v3; // w19\n  cocos2d::CCDictElement *next; // x20\n\n  m_collectedItems = a1->m_collectedItems;\n  if ( !m_collectedItems )\n    return 0;\n  m_pElements = m_collectedItems->m_pElements;\n  if ( !m_pElements )\n    return 0;\n  v3 = 0;\n  do\n  {\n    next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n    if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))m_pElements->m_pObject->__vftable[22].isEqual)(m_pElements->m_pObject) == 31 )\n      ++v3;\n    m_pElements = next;\n  }\n  while ( next );\n  return v3;\n}", "assembly": "; \n; GJBaseGameLayer::countCollectedUserCoins from 0x1001e9c08 to 0x1001e9c64 (92 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::levelComplete @ 0x100119da4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001e9c08\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001e9c0c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001e9c10\nLDR             X8, [X0,#0x30A8]                                       ; +0xc, 0x1001e9c14\nCBZ             X8, loc_1001E9C50                                      ; +0x10, 0x1001e9c18\nLDR             X8, [X8,#0x38]                                         ; +0x14, 0x1001e9c1c\nCBZ             X8, loc_1001E9C50                                      ; +0x18, 0x1001e9c20\nMOV             W19, #0                                                ; +0x1c, 0x1001e9c24\nLDR             X20, [X8,#0x120]                                       ; +0x20, 0x1001e9c28\nLDR             X0, [X8,#0x108]                                        ; +0x24, 0x1001e9c2c\nLDR             X8, [X0]                                               ; +0x28, 0x1001e9c30\nLDR             X8, [X8,#0x6F8]                                        ; +0x2c, 0x1001e9c34\nBLR             X8                                                     ; +0x30, 0x1001e9c38\nCMP             W0, #0x1F                                              ; +0x34, 0x1001e9c3c\nCINC            W19, W19, EQ                                           ; +0x38, 0x1001e9c40\nMOV             X8, X20                                                ; +0x3c, 0x1001e9c44\nCBNZ            X20, loc_1001E9C28                                     ; +0x40, 0x1001e9c48\nB               loc_1001E9C54                                          ; +0x44, 0x1001e9c4c\nMOV             W19, #0                                                ; +0x48, 0x1001e9c50\nMOV             X0, X19                                                ; +0x4c, 0x1001e9c54\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x1001e9c58\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x1001e9c5c\nRET                                                                    ; +0x58, 0x1001e9c60", "xrefs": ["PlayLayer::levelComplete @ 0x100119da4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}