{"type": "func", "start": 4302456992, "end": 4302457105, "name": "GJObjectDecoder::getDecodedObject", "pseudocode": "// \n// GJObjectDecoder::getDecodedObject from 0x1007248a0 to 0x100724911 (113 bytes)\n// \n// 2 xrefs:\n// > sub_100724940 @ 0x100724945\n// > <???> @ 0x10098a848\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  cocos2d::CCObject *result; // rax\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 0x1007248a0 to 0x100724911 (113 bytes)\n; \n; 2 xrefs:\n; > sub_100724940 @ 0x100724945\n; > <???> @ 0x10098a848\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\npush    rbp                                                            ; +0x0, 0x1007248a0\nmov     rbp, rsp                                                       ; +0x1, 0x1007248a1\nadd     esi, 0FFFFFFFCh; switch 9 cases                                ; +0x4, 0x1007248a4\ncmp     esi, 8                                                         ; +0x7, 0x1007248a7\nja      short def_1007248BA; jumptable 00000001007248BA default case   ; +0xa, 0x1007248aa\nlea     rax, jpt_1007248BA                                             ; +0xc, 0x1007248ac\nmovsxd  rcx, (jpt_1007248BA - 100724914h)[rax+rsi*4]                   ; +0x13, 0x1007248b3\nadd     rcx, rax                                                       ; +0x17, 0x1007248b7\njmp     rcx; switch jump                                               ; +0x1a, 0x1007248ba\nmov     rdi, rdx; jumptable 00000001007248BA case 4                    ; +0x1c, 0x1007248bc\npop     rbp                                                            ; +0x1f, 0x1007248bf\njmp     GJGameLevel__createWithCoder                                   ; +0x20, 0x1007248c0\nmov     rdi, rdx; jumptable 00000001007248BA case 8                    ; +0x25, 0x1007248c5\npop     rbp                                                            ; +0x28, 0x1007248c8\njmp     GJRewardItem__createWithCoder                                  ; +0x29, 0x1007248c9\nmov     rdi, rdx; jumptable 00000001007248BA case 6                    ; +0x2e, 0x1007248ce\npop     rbp                                                            ; +0x31, 0x1007248d1\njmp     SongInfoObject__createWithCoder                                ; +0x32, 0x1007248d2\nmov     rdi, rdx; jumptable 00000001007248BA case 7                    ; +0x37, 0x1007248d7\npop     rbp                                                            ; +0x3a, 0x1007248da\njmp     GJChallengeItem__createWithCoder                               ; +0x3b, 0x1007248db\nmov     rdi, rdx; jumptable 00000001007248BA case 11                   ; +0x40, 0x1007248e0\npop     rbp                                                            ; +0x43, 0x1007248e3\njmp     GJSmartPrefab__createWithCoder                                 ; +0x44, 0x1007248e4\nmov     rdi, rdx; jumptable 00000001007248BA case 5                    ; +0x49, 0x1007248e9\npop     rbp                                                            ; +0x4c, 0x1007248ec\njmp     cocos2d__CCObject__createWithCoder                             ; +0x4d, 0x1007248ed\nmov     rdi, rdx; jumptable 00000001007248BA case 9                    ; +0x52, 0x1007248f2\npop     rbp                                                            ; +0x55, 0x1007248f5\njmp     GJRewardObject__createWithCoder                                ; +0x56, 0x1007248f6\nmov     rdi, rdx; jumptable 00000001007248BA case 10                   ; +0x5b, 0x1007248fb\npop     rbp                                                            ; +0x5e, 0x1007248fe\njmp     GJSmartTemplate__createWithCoder                               ; +0x5f, 0x1007248ff\nmov     rdi, rdx; jumptable 00000001007248BA case 12                   ; +0x64, 0x100724904\npop     rbp                                                            ; +0x67, 0x100724907\njmp     GJLevelList__createWithCoder                                   ; +0x68, 0x100724908\nxor     eax, eax; jumptable 00000001007248BA default case              ; +0x6d, 0x10072490d\npop     rbp                                                            ; +0x6f, 0x10072490f\nretn                                                                   ; +0x70, 0x100724910", "xrefs": ["sub_100724940 @ 0x100724945", "<???> @ 0x10098a848"], "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"}