{"type": "func", "start": 4297157412, "end": 4297157588, "name": "GJObjectDecoder::getDecodedObject", "pseudocode": "// \n// GJObjectDecoder::getDecodedObject from 0x100216b24 to 0x100216bd4 (176 bytes)\n// \n// 2 xrefs:\n// > j_GJObjectDecoder::getDecodedObject @ 0x100216bd4\n// > <???> @ 0x1007c3b40\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\ncocos2d::CCObject *__fastcall GJObjectDecoder::getDecodedObject(GJObjectDecoder *a1, int a2, DS_Dictionary *a3)\n{\n  if ( a2 <= 7 )\n  {\n    if ( a2 <= 5 )\n    {\n      if ( a2 == 4 )\n        return GJGameLevel::createWithCoder(a3);\n      if ( a2 == 5 )\n        return cocos2d::CCObject::createWithCoder(a3);\n      return nullptr;\n    }\n    if ( a2 == 6 )\n      return SongInfoObject::createWithCoder(a3);\n    else\n      return GJChallengeItem::createWithCoder(a3);\n  }\n  else\n  {\n    if ( a2 > 9 )\n    {\n      switch ( a2 )\n      {\n        case 10:\n          return GJSmartTemplate::createWithCoder(a3);\n        case 11:\n          return GJSmartPrefab::createWithCoder(a3);\n        case 12:\n          return GJLevelList::createWithCoder(a3);\n      }\n      return nullptr;\n    }\n    if ( a2 == 8 )\n      return GJRewardItem::createWithCoder(a3);\n    else\n      return GJRewardObject::createWithCoder(a3);\n  }\n}", "assembly": "; \n; GJObjectDecoder::getDecodedObject from 0x100216b24 to 0x100216bd4 (176 bytes)\n; \n; 2 xrefs:\n; > j_GJObjectDecoder::getDecodedObject @ 0x100216bd4\n; > <???> @ 0x1007c3b40\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\nCMP             W1, #7                                                 ; +0x0, 0x100216b24\nB.LE            loc_100216B54                                          ; +0x4, 0x100216b28\nCMP             W1, #9                                                 ; +0x8, 0x100216b2c\nB.LE            loc_100216B8C                                          ; +0xc, 0x100216b30\nCMP             W1, #0xA                                               ; +0x10, 0x100216b34\nB.EQ            loc_100216BB4                                          ; +0x14, 0x100216b38\nCMP             W1, #0xB                                               ; +0x18, 0x100216b3c\nB.EQ            loc_100216BC4                                          ; +0x1c, 0x100216b40\nCMP             W1, #0xC                                               ; +0x20, 0x100216b44\nB.NE            loc_100216BCC                                          ; +0x24, 0x100216b48\nMOV             X0, X2                                                 ; +0x28, 0x100216b4c\nB               GJLevelList__createWithCoder                           ; +0x2c, 0x100216b50\nCMP             W1, #5                                                 ; +0x30, 0x100216b54\nB.GT            loc_100216B74                                          ; +0x34, 0x100216b58\nCMP             W1, #4                                                 ; +0x38, 0x100216b5c\nB.EQ            loc_100216BA4                                          ; +0x3c, 0x100216b60\nCMP             W1, #5                                                 ; +0x40, 0x100216b64\nB.NE            loc_100216BCC                                          ; +0x44, 0x100216b68\nMOV             X0, X2                                                 ; +0x48, 0x100216b6c\nB               cocos2d__CCObject__createWithCoder                     ; +0x4c, 0x100216b70\nCMP             W1, #6                                                 ; +0x50, 0x100216b74\nB.EQ            loc_100216BAC                                          ; +0x54, 0x100216b78\nCMP             W1, #7                                                 ; +0x58, 0x100216b7c\nB.NE            loc_100216BCC                                          ; +0x5c, 0x100216b80\nMOV             X0, X2                                                 ; +0x60, 0x100216b84\nB               GJChallengeItem__createWithCoder                       ; +0x64, 0x100216b88\nCMP             W1, #8                                                 ; +0x68, 0x100216b8c\nB.EQ            loc_100216BBC                                          ; +0x6c, 0x100216b90\nCMP             W1, #9                                                 ; +0x70, 0x100216b94\nB.NE            loc_100216BCC                                          ; +0x74, 0x100216b98\nMOV             X0, X2                                                 ; +0x78, 0x100216b9c\nB               GJRewardObject__createWithCoder                        ; +0x7c, 0x100216ba0\nMOV             X0, X2                                                 ; +0x80, 0x100216ba4\nB               GJGameLevel__createWithCoder                           ; +0x84, 0x100216ba8\nMOV             X0, X2                                                 ; +0x88, 0x100216bac\nB               SongInfoObject__createWithCoder                        ; +0x8c, 0x100216bb0\nMOV             X0, X2                                                 ; +0x90, 0x100216bb4\nB               GJSmartTemplate__createWithCoder                       ; +0x94, 0x100216bb8\nMOV             X0, X2                                                 ; +0x98, 0x100216bbc\nB               GJRewardItem__createWithCoder                          ; +0x9c, 0x100216bc0\nMOV             X0, X2                                                 ; +0xa0, 0x100216bc4\nB               GJSmartPrefab__createWithCoder                         ; +0xa4, 0x100216bc8\nMOV             X0, #0                                                 ; +0xa8, 0x100216bcc\nRET                                                                    ; +0xac, 0x100216bd0", "xrefs": ["j_GJObjectDecoder::getDecodedObject @ 0x100216bd4", "<???> @ 0x1007c3b40"], "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"}