{"type": "func", "start": 4297799140, "end": 4297799316, "name": "GJObjectDecoder::getDecodedObject", "pseudocode": "// \n// GJObjectDecoder::getDecodedObject from 0x1002b35e4 to 0x1002b3694 (176 bytes)\n// \n// 2 xrefs:\n// > j_GJObjectDecoder::getDecodedObject @ 0x1002b3694\n// > <???> @ 0x10091c050\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:02:21 +0000\n// \n\nchar *__fastcall GJObjectDecoder::getDecodedObject(__int64 a1, int a2, __int64 a3)\n{\n  if ( a2 <= 7 )\n  {\n    if ( a2 <= 5 )\n    {\n      if ( a2 == 4 )\n        return (char *)GJGameLevel::createWithCoder(a3);\n      if ( a2 == 5 )\n        return (char *)cocos2d::CCObject::createWithCoder();\n      return nullptr;\n    }\n    if ( a2 == 6 )\n      return SongInfoObject::createWithCoder(a3);\n    else\n      return (char *)GJChallengeItem::createWithCoder(a3);\n  }\n  else\n  {\n    if ( a2 > 9 )\n    {\n      switch ( a2 )\n      {\n        case 10:\n          return (char *)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 (char *)GJRewardItem::createWithCoder(a3);\n    else\n      return (char *)GJRewardObject::createWithCoder(a3);\n  }\n}", "assembly": "; \n; GJObjectDecoder::getDecodedObject from 0x1002b35e4 to 0x1002b3694 (176 bytes)\n; \n; 2 xrefs:\n; > j_GJObjectDecoder::getDecodedObject @ 0x1002b3694\n; > <???> @ 0x10091c050\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:02:21 +0000\n; \nCMP             W1, #7                                                 ; +0x0, 0x1002b35e4\nB.LE            loc_1002B3614                                          ; +0x4, 0x1002b35e8\nCMP             W1, #9                                                 ; +0x8, 0x1002b35ec\nB.LE            loc_1002B364C                                          ; +0xc, 0x1002b35f0\nCMP             W1, #0xA                                               ; +0x10, 0x1002b35f4\nB.EQ            loc_1002B3674                                          ; +0x14, 0x1002b35f8\nCMP             W1, #0xB                                               ; +0x18, 0x1002b35fc\nB.EQ            loc_1002B3684                                          ; +0x1c, 0x1002b3600\nCMP             W1, #0xC                                               ; +0x20, 0x1002b3604\nB.NE            loc_1002B368C                                          ; +0x24, 0x1002b3608\nMOV             X0, X2                                                 ; +0x28, 0x1002b360c\nB               GJLevelList__createWithCoder                           ; +0x2c, 0x1002b3610\nCMP             W1, #5                                                 ; +0x30, 0x1002b3614\nB.GT            loc_1002B3634                                          ; +0x34, 0x1002b3618\nCMP             W1, #4                                                 ; +0x38, 0x1002b361c\nB.EQ            loc_1002B3664                                          ; +0x3c, 0x1002b3620\nCMP             W1, #5                                                 ; +0x40, 0x1002b3624\nB.NE            loc_1002B368C                                          ; +0x44, 0x1002b3628\nMOV             X0, X2                                                 ; +0x48, 0x1002b362c\nB               cocos2d__CCObject__createWithCoder                     ; +0x4c, 0x1002b3630\nCMP             W1, #6                                                 ; +0x50, 0x1002b3634\nB.EQ            loc_1002B366C                                          ; +0x54, 0x1002b3638\nCMP             W1, #7                                                 ; +0x58, 0x1002b363c\nB.NE            loc_1002B368C                                          ; +0x5c, 0x1002b3640\nMOV             X0, X2                                                 ; +0x60, 0x1002b3644\nB               GJChallengeItem__createWithCoder                       ; +0x64, 0x1002b3648\nCMP             W1, #8                                                 ; +0x68, 0x1002b364c\nB.EQ            loc_1002B367C                                          ; +0x6c, 0x1002b3650\nCMP             W1, #9                                                 ; +0x70, 0x1002b3654\nB.NE            loc_1002B368C                                          ; +0x74, 0x1002b3658\nMOV             X0, X2                                                 ; +0x78, 0x1002b365c\nB               GJRewardObject__createWithCoder                        ; +0x7c, 0x1002b3660\nMOV             X0, X2                                                 ; +0x80, 0x1002b3664\nB               GJGameLevel__createWithCoder                           ; +0x84, 0x1002b3668\nMOV             X0, X2                                                 ; +0x88, 0x1002b366c\nB               SongInfoObject__createWithCoder                        ; +0x8c, 0x1002b3670\nMOV             X0, X2                                                 ; +0x90, 0x1002b3674\nB               GJSmartTemplate__createWithCoder                       ; +0x94, 0x1002b3678\nMOV             X0, X2                                                 ; +0x98, 0x1002b367c\nB               GJRewardItem__createWithCoder                          ; +0x9c, 0x1002b3680\nMOV             X0, X2                                                 ; +0xa0, 0x1002b3684\nB               GJSmartPrefab__createWithCoder                         ; +0xa4, 0x1002b3688\nMOV             X0, #0                                                 ; +0xa8, 0x1002b368c\nRET                                                                    ; +0xac, 0x1002b3690", "xrefs": ["j_GJObjectDecoder::getDecodedObject @ 0x1002b3694", "<???> @ 0x10091c050"], "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"}