{"type": "func", "start": 8540728, "end": 8540844, "name": "GJObjectDecoder::getDecodedObject", "pseudocode": "// \n// GJObjectDecoder::getDecodedObject from 0x825238 to 0x8252ac (116 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'GJObjectDecoder::getDecodedObject @ 0x8252b0\n// > <???> @ 0x6a6c8\n// > <???> @ 0x1188e60\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 *GJObjectDecoder::getDecodedObject(GJObjectDecoder *a1, int a2, DS_Dictionary *a3)\n{\n  cocos2d::CCObject *result; // x0\n\n  switch ( a2 )\n  {\n    case 4:\n      result = GJGameLevel::createWithCoder(a3);\n      break;\n    case 5:\n      result = cocos2d::CCObject::createWithCoder(a3);\n      break;\n    case 6:\n      result = SongInfoObject::createWithCoder(a3);\n      break;\n    case 7:\n      result = GJChallengeItem::createWithCoder(a3);\n      break;\n    case 8:\n      result = GJRewardItem::createWithCoder(a3);\n      break;\n    case 9:\n      result = GJRewardObject::createWithCoder(a3);\n      break;\n    case 10:\n      result = GJSmartTemplate::createWithCoder(a3);\n      break;\n    case 11:\n      result = GJSmartPrefab::createWithCoder(a3);\n      break;\n    case 12:\n      result = GJLevelList::createWithCoder(a3);\n      break;\n    default:\n      result = nullptr;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJObjectDecoder::getDecodedObject from 0x825238 to 0x8252ac (116 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'GJObjectDecoder::getDecodedObject @ 0x8252b0\n; > <???> @ 0x6a6c8\n; > <???> @ 0x1188e60\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\nSUB             W1, W1, #4; switch 9 cases                             ; +0x0, 0x825238\nCMP             W1, #8                                                 ; +0x4, 0x82523c\nB.LS            loc_82524C                                             ; +0x8, 0x825240\nMOV             X0, #0; jumptable 0000000000825260 default case        ; +0xc, 0x825244\nRET                                                                    ; +0x10, 0x825248\nADRL            X3, jpt_825260                                         ; +0x14, 0x82524c\nLDRB            W0, [X3,W1,UXTW]                                       ; +0x1c, 0x825254\nADR             X1, loc_825264; DS_Dictionary *                        ; +0x20, 0x825258\nADD             X0, X1, W0,SXTB#2                                      ; +0x24, 0x82525c\nBR              X0; switch jump                                        ; +0x28, 0x825260\nMOV             X0, X2; jumptable 0000000000825260 case 11             ; +0x2c, 0x825264\nB               _ZN13GJSmartPrefab15createWithCoderEP13DS_Dictionary; GJSmartPrefab::createWithCoder(DS_Dictionary *) ; +0x30, 0x825268\nMOV             X0, X2; jumptable 0000000000825260 case 12             ; +0x34, 0x82526c\nB               _ZN11GJLevelList15createWithCoderEP13DS_Dictionary; GJLevelList::createWithCoder(DS_Dictionary *) ; +0x38, 0x825270\nMOV             X0, X2; jumptable 0000000000825260 case 4              ; +0x3c, 0x825274\nB               _ZN11GJGameLevel15createWithCoderEP13DS_Dictionary; GJGameLevel::createWithCoder(DS_Dictionary *) ; +0x40, 0x825278\nMOV             X0, X2; jumptable 0000000000825260 case 5              ; +0x44, 0x82527c\nB               _ZN7cocos2d8CCObject15createWithCoderEP13DS_Dictionary; cocos2d::CCObject::createWithCoder(DS_Dictionary *) ; +0x48, 0x825280\nMOV             X0, X2; jumptable 0000000000825260 case 6              ; +0x4c, 0x825284\nB               _ZN14SongInfoObject15createWithCoderEP13DS_Dictionary; SongInfoObject::createWithCoder(DS_Dictionary *) ; +0x50, 0x825288\nMOV             X0, X2; jumptable 0000000000825260 case 7              ; +0x54, 0x82528c\nB               _ZN15GJChallengeItem15createWithCoderEP13DS_Dictionary; GJChallengeItem::createWithCoder(DS_Dictionary *) ; +0x58, 0x825290\nMOV             X0, X2; jumptable 0000000000825260 case 8              ; +0x5c, 0x825294\nB               _ZN12GJRewardItem15createWithCoderEP13DS_Dictionary; GJRewardItem::createWithCoder(DS_Dictionary *) ; +0x60, 0x825298\nMOV             X0, X2; jumptable 0000000000825260 case 9              ; +0x64, 0x82529c\nB               _ZN14GJRewardObject15createWithCoderEP13DS_Dictionary; GJRewardObject::createWithCoder(DS_Dictionary *) ; +0x68, 0x8252a0\nMOV             X0, X2; jumptable 0000000000825260 case 10             ; +0x6c, 0x8252a4\nB               _ZN15GJSmartTemplate15createWithCoderEP13DS_Dictionary; GJSmartTemplate::createWithCoder(DS_Dictionary *) ; +0x70, 0x8252a8", "xrefs": ["`non-virtual thunk to'GJObjectDecoder::getDecodedObject @ 0x8252b0", "<???> @ 0x6a6c8", "<???> @ 0x1188e60"], "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"}