{"type": "func", "start": 4602952, "end": 4603210, "name": "DrawGridLayer::init", "pseudocode": "// \n// DrawGridLayer::init from 0x463c48 to 0x463d4a (258 bytes)\n// \n// 1 xrefs:\n// > DrawGridLayer::create @ 0x463e1a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:54 +0000\n// \n\ncocos2d::CCArray *__fastcall DrawGridLayer::init(DrawGridLayer *this, cocos2d::CCNode *a2, LevelEditorLayer *a3)\n{\n  cocos2d::CCArray *v6; // r0\n  cocos2d::CCArray *v7; // r7\n  cocos2d::CCObject *v8; // r0\n  cocos2d::CCArray *v9; // r0\n  cocos2d::CCObject *v10; // r0\n  cocos2d::CCArray *v11; // r0\n  cocos2d::CCObject *v12; // r0\n  char *v13; // r0\n  cocos2d::CCPoint *v14; // r8\n  void *v15; // r5\n  cocos2d::CCPoint *v16; // r6\n  char *v17; // r0\n  cocos2d::CCPoint *v18; // r8\n  void *v19; // r5\n  cocos2d::CCPoint *v20; // r6\n  char *v21; // r0\n  cocos2d::CCPoint *v22; // r8\n  void *v23; // r5\n  cocos2d::CCPoint *v24; // r6\n\n  v6 = (cocos2d::CCArray *)cocos2d::CCLayer::init(this);\n  v7 = v6;\n  if ( v6 )\n  {\n    *((_DWORD *)this + 97) = a2;\n    *((_DWORD *)this + 98) = 0;\n    *((_DWORD *)this + 93) = a3;\n    v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);\n    *((_DWORD *)this + 99) = v8;\n    v9 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v8);\n    v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9);\n    *((_DWORD *)this + 100) = v10;\n    v11 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v10);\n    v12 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11);\n    *((_DWORD *)this + 101) = v12;\n    cocos2d::CCObject::retain(v12);\n    *((_DWORD *)this + 107) = 1136768455;\n    *((_DWORD *)this + 105) = 1132144891;\n    *((_DWORD *)this + 108) = 1139408901;\n    *((_DWORD *)this + 106) = 1134283329;\n    *((_DWORD *)this + 104) = 1134283329;\n    *((_DWORD *)this + 109) = 1141899267;\n    v13 = (char *)operator new[](0x2580u);\n    v14 = (cocos2d::CCPoint *)(v13 + 9600);\n    v15 = v13;\n    v16 = (cocos2d::CCPoint *)v13;\n    do\n    {\n      cocos2d::CCPoint::CCPoint(v16);\n      v16 = (cocos2d::CCPoint *)((char *)v16 + 8);\n    }\n    while ( v16 != v14 );\n    *((_DWORD *)this + 79) = v15;\n    memset(v15, 0, 0x2580u);\n    v17 = (char *)operator new[](0x2580u);\n    v18 = (cocos2d::CCPoint *)(v17 + 9600);\n    v19 = v17;\n    v20 = (cocos2d::CCPoint *)v17;\n    do\n    {\n      cocos2d::CCPoint::CCPoint(v20);\n      v20 = (cocos2d::CCPoint *)((char *)v20 + 8);\n    }\n    while ( v20 != v18 );\n    *((_DWORD *)this + 80) = v19;\n    memset(v19, 0, 0x2580u);\n    v21 = (char *)operator new[](0x2580u);\n    v22 = (cocos2d::CCPoint *)(v21 + 9600);\n    v23 = v21;\n    v24 = (cocos2d::CCPoint *)v21;\n    do\n    {\n      cocos2d::CCPoint::CCPoint(v24);\n      v24 = (cocos2d::CCPoint *)((char *)v24 + 8);\n    }\n    while ( v24 != v22 );\n    *((_DWORD *)this + 81) = v23;\n    memset(v23, 0, 0x2580u);\n  }\n  return v7;\n}", "assembly": "; \n; DrawGridLayer::init from 0x463c48 to 0x463d4a (258 bytes)\n; \n; 1 xrefs:\n; > DrawGridLayer::create @ 0x463e1a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:54 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x463c48\nMOV             R4, R0                                                 ; +0x4, 0x463c4c\nMOV             R6, R1                                                 ; +0x6, 0x463c4e\nMOV             R5, R2                                                 ; +0x8, 0x463c50\nBL              _ZN7cocos2d7CCLayer4initEv; cocos2d::CCLayer::init(void) ; +0xa, 0x463c52\nMOV             R7, R0                                                 ; +0xe, 0x463c56\nCMP             R0, #0                                                 ; +0x10, 0x463c58\nBEQ             loc_463D44                                             ; +0x12, 0x463c5a\nMOVS            R3, #0                                                 ; +0x14, 0x463c5c\nSTR.W           R6, [R4,#0x184]                                        ; +0x16, 0x463c5e\nSTR.W           R3, [R4,#0x188]                                        ; +0x1a, 0x463c62\nSTR.W           R5, [R4,#0x174]                                        ; +0x1e, 0x463c66\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x22, 0x463c6a\nSTR.W           R0, [R4,#0x18C]                                        ; +0x26, 0x463c6e\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x2a, 0x463c72\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x2e, 0x463c76\nSTR.W           R0, [R4,#0x190]                                        ; +0x32, 0x463c7a\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x36, 0x463c7e\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x3a, 0x463c82\nSTR.W           R0, [R4,#0x194]                                        ; +0x3e, 0x463c86\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x42, 0x463c8a\nLDR             R2, =0x43C1B5C7                                        ; +0x46, 0x463c8e\nLDR             R3, =0x437B28FB                                        ; +0x48, 0x463c90\nMOV.W           R0, #0x2580; unsigned int                              ; +0x4a, 0x463c92\nSTR.W           R2, [R4,#0x1AC]                                        ; +0x4e, 0x463c96\nLDR             R2, =0x43EA0005                                        ; +0x52, 0x463c9a\nSTR.W           R3, [R4,#0x1A4]                                        ; +0x54, 0x463c9c\nLDR             R3, =0x439BCA41                                        ; +0x58, 0x463ca0\nSTR.W           R2, [R4,#0x1B0]                                        ; +0x5a, 0x463ca2\nLDR             R2, =0x44100003                                        ; +0x5e, 0x463ca6\nSTR.W           R3, [R4,#0x1A8]                                        ; +0x60, 0x463ca8\nSTR.W           R3, [R4,#0x1A0]                                        ; +0x64, 0x463cac\nSTR.W           R2, [R4,#0x1B4]                                        ; +0x68, 0x463cb0\nBL              _Znaj; operator new[](uint)                            ; +0x6c, 0x463cb4\nADD.W           R8, R0, #0x2580                                        ; +0x70, 0x463cb8\nMOV             R5, R0                                                 ; +0x74, 0x463cbc\nMOV             R6, R0                                                 ; +0x76, 0x463cbe\nMOV             R0, R6; this                                           ; +0x78, 0x463cc0\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x7a, 0x463cc2\nADDS            R6, #8                                                 ; +0x7e, 0x463cc6\nCMP             R6, R8                                                 ; +0x80, 0x463cc8\nBNE             loc_463CC0                                             ; +0x82, 0x463cca\nSTR.W           R5, [R4,#0x13C]                                        ; +0x84, 0x463ccc\nMOV             R0, R5; void *                                         ; +0x88, 0x463cd0\nMOVS            R1, #0; int                                            ; +0x8a, 0x463cd2\nMOV.W           R2, #0x2580; size_t                                    ; +0x8c, 0x463cd4\nBLX             memset                                                 ; +0x90, 0x463cd8\nMOV.W           R0, #0x2580; unsigned int                              ; +0x94, 0x463cdc\nBL              _Znaj; operator new[](uint)                            ; +0x98, 0x463ce0\nADD.W           R8, R0, #0x2580                                        ; +0x9c, 0x463ce4\nMOV             R5, R0                                                 ; +0xa0, 0x463ce8\nMOV             R6, R0                                                 ; +0xa2, 0x463cea\nMOV             R0, R6; this                                           ; +0xa4, 0x463cec\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xa6, 0x463cee\nADDS            R6, #8                                                 ; +0xaa, 0x463cf2\nCMP             R6, R8                                                 ; +0xac, 0x463cf4\nBNE             loc_463CEC                                             ; +0xae, 0x463cf6\nSTR.W           R5, [R4,#0x140]                                        ; +0xb0, 0x463cf8\nMOV             R0, R5; void *                                         ; +0xb4, 0x463cfc\nMOVS            R1, #0; int                                            ; +0xb6, 0x463cfe\nMOV.W           R2, #0x2580; size_t                                    ; +0xb8, 0x463d00\nBLX             memset                                                 ; +0xbc, 0x463d04\nMOV.W           R0, #0x2580; unsigned int                              ; +0xc0, 0x463d08\nBL              _Znaj; operator new[](uint)                            ; +0xc4, 0x463d0c\nADD.W           R8, R0, #0x2580                                        ; +0xc8, 0x463d10\nMOV             R5, R0                                                 ; +0xcc, 0x463d14\nMOV             R6, R0                                                 ; +0xce, 0x463d16\nMOV             R0, R6; this                                           ; +0xd0, 0x463d18\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xd2, 0x463d1a\nADDS            R6, #8                                                 ; +0xd6, 0x463d1e\nCMP             R6, R8                                                 ; +0xd8, 0x463d20\nBNE             loc_463D18                                             ; +0xda, 0x463d22\nSTR.W           R5, [R4,#0x144]                                        ; +0xdc, 0x463d24\nMOV             R0, R5; void *                                         ; +0xe0, 0x463d28\nMOVS            R1, #0; int                                            ; +0xe2, 0x463d2a\nMOV.W           R2, #0x2580; size_t                                    ; +0xe4, 0x463d2c\nBLX             memset                                                 ; +0xe8, 0x463d30\nB               loc_463D44                                             ; +0xec, 0x463d34\nB               loc_463D38                                             ; +0xee, 0x463d36\nMOV             R0, R5; void *                                         ; +0xf0, 0x463d38\nBL              _ZdaPv; operator delete[](void *)                      ; +0xf2, 0x463d3a\nBL              __cxa_end_cleanup                                      ; +0xf6, 0x463d3e\nB               loc_463D38                                             ; +0xfa, 0x463d42\nMOV             R0, R7                                                 ; +0xfc, 0x463d44\nPOP.W           {R4-R8,PC}                                             ; +0xfe, 0x463d46", "xrefs": ["DrawGridLayer::create @ 0x463e1a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}