{"type": "func", "start": 3971568, "end": 3971664, "name": "GJMapPack::parsePackLevels", "pseudocode": "// \n// GJMapPack::parsePackLevels from 0x3c99f0 to 0x3c9a50 (96 bytes)\n// \n// 1 xrefs:\n// > GJMapPack::create @ 0x3c9d32\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\nvoid __fastcall GJMapPack::parsePackLevels(int a1, char **a2)\n{\n  cocos2d::CCObject *v3; // r0\n  char v5; // [sp+8h] [bp-Ch] BYREF\n\n  v3 = *(cocos2d::CCObject **)(a1 + 264);\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  sub_776584((int)&v5, *a2);\n  *(_DWORD *)(a1 + 264) = sub_3BE530((cocos2d::CCArray *)&v5, \",\");\n  sub_774008(&v5);\n  cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 264));\n}", "assembly": "; \n; GJMapPack::parsePackLevels from 0x3c99f0 to 0x3c9a50 (96 bytes)\n; \n; 1 xrefs:\n; > GJMapPack::create @ 0x3c9d32\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3C99F8)                ; +0x0, 0x3c99f0\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3c99f2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3c99f4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3c99f6\nMOV             R6, R0                                                 ; +0x8, 0x3c99f8\nLDR.W           R0, [R0,#0x108]; this                                  ; +0xa, 0x3c99fa\nLDR             R2, [R3]                                               ; +0xe, 0x3c99fe\nSUB             SP, SP, #0x14                                          ; +0x10, 0x3c9a00\nMOV             R7, R1                                                 ; +0x12, 0x3c9a02\nMOV             R4, R3                                                 ; +0x14, 0x3c9a04\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x16, 0x3c9a06\nCBZ             R0, loc_3C9A0E                                         ; +0x18, 0x3c9a08\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x1a, 0x3c9a0a\nADD             R5, SP, #0x14+var_C                                    ; +0x1e, 0x3c9a0e\nLDR             R1, [R7]; char *                                       ; +0x20, 0x3c9a10\nADD             R2, SP, #0x14+var_10                                   ; +0x22, 0x3c9a12\nMOV             R0, R5; int                                            ; +0x24, 0x3c9a14\nBL              sub_776584                                             ; +0x26, 0x3c9a16\nLDR             R1, =(asc_948B9B - 0x3C9A22); \",\"                      ; +0x2a, 0x3c9a1a\nMOV             R0, R5                                                 ; +0x2c, 0x3c9a1c\nADD             R1, PC; \",\"                                            ; +0x2e, 0x3c9a1e\nBL              sub_3BE530                                             ; +0x30, 0x3c9a20\nSTR.W           R0, [R6,#0x108]                                        ; +0x34, 0x3c9a24\nMOV             R0, R5                                                 ; +0x38, 0x3c9a28\nBL              sub_774008                                             ; +0x3a, 0x3c9a2a\nLDR.W           R0, [R6,#0x108]; this                                  ; +0x3e, 0x3c9a2e\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x42, 0x3c9a32\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x46, 0x3c9a36\nLDR             R3, [R4]                                               ; +0x48, 0x3c9a38\nCMP             R2, R3                                                 ; +0x4a, 0x3c9a3a\nBEQ             loc_3C9A4C                                             ; +0x4c, 0x3c9a3c\nBLX             __stack_chk_fail                                       ; +0x4e, 0x3c9a3e\nMOV             R0, R5                                                 ; +0x52, 0x3c9a42\nBL              sub_774008                                             ; +0x54, 0x3c9a44\nBL              __cxa_end_cleanup                                      ; +0x58, 0x3c9a48\nADD             SP, SP, #0x14                                          ; +0x5c, 0x3c9a4c\nPOP             {R4-R7,PC}                                             ; +0x5e, 0x3c9a4e", "xrefs": ["GJMapPack::create @ 0x3c9d32"], "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"}