{"type": "func", "start": 6113256, "end": 6113416, "name": "EditorOptionsLayer::create", "pseudocode": "// \n// EditorOptionsLayer::create from 0x5d47e8 to 0x5d4888 (160 bytes)\n// \n// 0 xrefs:\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:54:07 +0000\n// \n\nGJOptionsLayer *__fastcall EditorOptionsLayer::create(EditorOptionsLayer *this)\n{\n  GJOptionsLayer *v1; // r4\n  int v2; // r3\n  GJOptionsLayer *v3; // r0\n\n  v1 = (GJOptionsLayer *)operator new(0x31Cu);\n  GJOptionsLayer::GJOptionsLayer(v1);\n  *(_DWORD *)v1 = &off_CB7990;\n  *((_DWORD *)v1 + 66) = &off_CB7C94;\n  *((_DWORD *)v1 + 67) = &off_CB7CCC;\n  *((_DWORD *)v1 + 68) = &off_CB7CD8;\n  *((_DWORD *)v1 + 69) = &off_CB7CE8;\n  *((_DWORD *)v1 + 70) = &off_CB7CFC;\n  *((_DWORD *)v1 + 79) = &off_CB7D14;\n  *((_DWORD *)v1 + 83) = &off_CB7D54;\n  *((_DWORD *)v1 + 110) = &off_CB7D64;\n  *((_DWORD *)v1 + 130) = &off_CB7D88;\n  *((_DWORD *)v1 + 131) = &off_CB7D94;\n  *((_DWORD *)v1 + 195) = 0;\n  *((_DWORD *)v1 + 196) = 0;\n  if ( EditorOptionsLayer::init(v1) )\n  {\n    cocos2d::CCObject::autorelease(v1);\n  }\n  else\n  {\n    v2 = *(_DWORD *)v1;\n    v3 = v1;\n    v1 = nullptr;\n    (*(void (__fastcall **)(GJOptionsLayer *))(v2 + 8))(v3);\n  }\n  return v1;\n}", "assembly": "; \n; EditorOptionsLayer::create from 0x5d47e8 to 0x5d4888 (160 bytes)\n; \n; 0 xrefs:\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:54:07 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x5d47e8\nMOV.W           R0, #0x31C; unsigned int                               ; +0x2, 0x5d47ea\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x5d47ee\nMOV             R4, R0                                                 ; +0xa, 0x5d47f2\nBL              _ZN14GJOptionsLayerC2Ev; GJOptionsLayer::GJOptionsLayer(void) ; +0xc, 0x5d47f4\nLDR             R3, =(_ZTV18EditorOptionsLayer_ptr - 0x5D4800)         ; +0x10, 0x5d47f8\nMOV             R0, R4; this                                           ; +0x12, 0x5d47fa\nADD             R3, PC; _ZTV18EditorOptionsLayer_ptr                   ; +0x14, 0x5d47fc\nLDR             R3, [R3]; `vtable for'EditorOptionsLayer ...           ; +0x16, 0x5d47fe\nADD.W           R2, R3, #8                                             ; +0x18, 0x5d4800\nSTR             R2, [R4]                                               ; +0x1c, 0x5d4804\nADD.W           R2, R3, #0x30C                                         ; +0x1e, 0x5d4806\nSTR.W           R2, [R4,#0x108]                                        ; +0x22, 0x5d480a\nADD.W           R2, R3, #0x344                                         ; +0x26, 0x5d480e\nSTR.W           R2, [R4,#0x10C]                                        ; +0x2a, 0x5d4812\nADD.W           R2, R3, #0x350                                         ; +0x2e, 0x5d4816\nSTR.W           R2, [R4,#0x110]                                        ; +0x32, 0x5d481a\nADD.W           R2, R3, #0x360                                         ; +0x36, 0x5d481e\nSTR.W           R2, [R4,#0x114]                                        ; +0x3a, 0x5d4822\nADD.W           R2, R3, #0x374                                         ; +0x3e, 0x5d4826\nSTR.W           R2, [R4,#0x118]                                        ; +0x42, 0x5d482a\nADD.W           R2, R3, #0x38C                                         ; +0x46, 0x5d482e\nSTR.W           R2, [R4,#0x13C]                                        ; +0x4a, 0x5d4832\nADD.W           R2, R3, #0x3CC                                         ; +0x4e, 0x5d4836\nSTR.W           R2, [R4,#0x14C]                                        ; +0x52, 0x5d483a\nADD.W           R2, R3, #0x3DC                                         ; +0x56, 0x5d483e\nSTR.W           R2, [R4,#0x1B8]                                        ; +0x5a, 0x5d4842\nADD.W           R2, R3, #0x400                                         ; +0x5e, 0x5d4846\nADDW            R3, R3, #0x40C                                         ; +0x62, 0x5d484a\nSTR.W           R2, [R4,#0x208]                                        ; +0x66, 0x5d484e\nSTR.W           R3, [R4,#0x20C]                                        ; +0x6a, 0x5d4852\nMOVS            R3, #0                                                 ; +0x6e, 0x5d4856\nSTR.W           R3, [R4,#0x30C]                                        ; +0x70, 0x5d4858\nSTR.W           R3, [R4,#0x310]                                        ; +0x74, 0x5d485c\nBL              _ZN18EditorOptionsLayer4initEv; EditorOptionsLayer::init(void) ; +0x78, 0x5d4860\nMOV             R5, R0                                                 ; +0x7c, 0x5d4864\nCBZ             R0, loc_5D487A                                         ; +0x7e, 0x5d4866\nMOV             R0, R4; this                                           ; +0x80, 0x5d4868\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x82, 0x5d486a\nB               loc_5D4884                                             ; +0x86, 0x5d486e\nMOV             R0, R4; void *                                         ; +0x88, 0x5d4870\nBL              _ZdlPv; operator delete(void *)                        ; +0x8a, 0x5d4872\nBL              __cxa_end_cleanup                                      ; +0x8e, 0x5d4876\nLDR             R3, [R4]                                               ; +0x92, 0x5d487a\nMOV             R0, R4                                                 ; +0x94, 0x5d487c\nMOV             R4, R5                                                 ; +0x96, 0x5d487e\nLDR             R3, [R3,#8]                                            ; +0x98, 0x5d4880\nBLX             R3                                                     ; +0x9a, 0x5d4882\nMOV             R0, R4                                                 ; +0x9c, 0x5d4884\nPOP             {R3-R5,PC}                                             ; +0x9e, 0x5d4886", "xrefs": [], "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"}