{"type": "func", "start": 8540944, "end": 8541092, "name": "GJObjectDecoder::sharedDecoder", "pseudocode": "// \n// GJObjectDecoder::sharedDecoder from 0x825310 to 0x8253a4 (148 bytes)\n// \n// 3 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x5be0c8\n// > GameManager::dataLoaded @ 0x5fa8c0\n// > <???> @ 0xc7470\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\nGJObjectDecoder *GJObjectDecoder::sharedDecoder()\n{\n  GJObjectDecoder *result; // x0\n  GJObjectDecoder *v1; // x20\n\n  result = (GJObjectDecoder *)qword_1242B70;\n  if ( !qword_1242B70 )\n  {\n    v1 = (GJObjectDecoder *)operator new(0x148u);\n    memset(v1, 0, sizeof(GJObjectDecoder));\n    cocos2d::CCNode::CCNode(v1);\n    qword_1242B70 = (__int64)v1;\n    v1->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJObjectDecoder_vtbl *)&off_1188AF0;\n    v1->ObjectDecoderDelegate::__vftable = (ObjectDecoderDelegate_vtbl *)&off_1188E78;\n    GJObjectDecoder::init(v1);\n    return (GJObjectDecoder *)qword_1242B70;\n  }\n  return result;\n}", "assembly": "; \n; GJObjectDecoder::sharedDecoder from 0x825310 to 0x8253a4 (148 bytes)\n; \n; 3 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x5be0c8\n; > GameManager::dataLoaded @ 0x5fa8c0\n; > <???> @ 0xc7470\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             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x825310\nMOV             X29, SP                                                ; +0x4, 0x825314\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x825318\nADRP            X19, #stru_1242B38@PAGE                                ; +0xc, 0x82531c\nADD             X0, X19, #stru_1242B38@PAGEOFF                         ; +0x10, 0x825320\nLDR             X0, [X0,#(qword_1242B70 - 0x1242B38)]                  ; +0x14, 0x825324\nCBZ             X0, loc_825338                                         ; +0x18, 0x825328\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0x82532c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x20, 0x825330\nRET                                                                    ; +0x24, 0x825334\nMOV             X0, #0x148; unsigned __int64                           ; +0x28, 0x825338\nBL              _Znwm; operator new(ulong)                             ; +0x2c, 0x82533c\nMOV             X20, X0                                                ; +0x30, 0x825340\nMOV             W1, #0; int                                            ; +0x34, 0x825344\nMOV             X2, #0x148; size_t                                     ; +0x38, 0x825348\nBL              .memset                                                ; +0x3c, 0x82534c\nMOV             X0, X20; this                                          ; +0x40, 0x825350\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x44, 0x825354\nADRP            X1, #_ZTV15GJObjectDecoder_ptr@PAGE                    ; +0x48, 0x825358\nADD             X19, X19, #stru_1242B38@PAGEOFF                        ; +0x4c, 0x82535c\nMOV             X0, X20; this                                          ; +0x50, 0x825360\nLDR             X1, [X1,#_ZTV15GJObjectDecoder_ptr@PAGEOFF]; `vtable for'GJObjectDecoder ... ; +0x54, 0x825364\nSTR             X20, [X19,#(qword_1242B70 - 0x1242B38)]                ; +0x58, 0x825368\nADD             X2, X1, #0x10                                          ; +0x5c, 0x82536c\nADD             X1, X1, #0x398                                         ; +0x60, 0x825370\nSTR             X2, [X20]                                              ; +0x64, 0x825374\nSTR             X1, [X20,#0x140]                                       ; +0x68, 0x825378\nBL              _ZN15GJObjectDecoder4initEv; GJObjectDecoder::init(void) ; +0x6c, 0x82537c\nLDR             X0, [X19,#(qword_1242B70 - 0x1242B38)]                 ; +0x70, 0x825380\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x825384\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x825388\nRET                                                                    ; +0x7c, 0x82538c\nMOV             X19, X0                                                ; +0x80, 0x825390\nMOV             X0, X20; p                                             ; +0x84, 0x825394\nBL              _ZdlPv; operator delete(void *)                        ; +0x88, 0x825398\nMOV             X0, X19                                                ; +0x8c, 0x82539c\nBL              _Unwind_Resume                                         ; +0x90, 0x8253a0", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x5be0c8", "GameManager::dataLoaded @ 0x5fa8c0", "<???> @ 0xc7470"], "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"}