{"type": "func", "start": 4806892, "end": 4807044, "name": "DemonFilterSelectLayer::create", "pseudocode": "// \n// DemonFilterSelectLayer::create from 0x4958ec to 0x495984 (152 bytes)\n// \n// 1 xrefs:\n// > LevelSearchLayer::onSpecialDemon @ 0x49598c\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:49:41 +0000\n// \n\nFLAlertLayer *__fastcall DemonFilterSelectLayer::create(DemonFilterSelectLayer *this)\n{\n  FLAlertLayer *v1; // r4\n  int v2; // r3\n  FLAlertLayer *v3; // r0\n\n  v1 = (FLAlertLayer *)operator new(0x218u);\n  FLAlertLayer::FLAlertLayer(v1);\n  *(_DWORD *)v1 = &off_C97448;\n  *((_DWORD *)v1 + 66) = &off_C976F0;\n  *((_DWORD *)v1 + 67) = &off_C97728;\n  *((_DWORD *)v1 + 68) = &off_C97734;\n  *((_DWORD *)v1 + 69) = &off_C97744;\n  *((_DWORD *)v1 + 70) = &off_C97758;\n  *((_DWORD *)v1 + 79) = &off_C97770;\n  *((_DWORD *)v1 + 83) = &off_C977B0;\n  *((_DWORD *)v1 + 110) = &off_C977C0;\n  *((_DWORD *)v1 + 130) = 0;\n  *((_DWORD *)v1 + 131) = 0;\n  *((_DWORD *)v1 + 132) = 0;\n  *((_DWORD *)v1 + 133) = 0;\n  if ( DemonFilterSelectLayer::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 **)(FLAlertLayer *))(v2 + 8))(v3);\n  }\n  return v1;\n}", "assembly": "; \n; DemonFilterSelectLayer::create from 0x4958ec to 0x495984 (152 bytes)\n; \n; 1 xrefs:\n; > LevelSearchLayer::onSpecialDemon @ 0x49598c\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:49:41 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x4958ec\nMOV.W           R0, #0x218; unsigned int                               ; +0x2, 0x4958ee\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x4958f2\nMOV             R4, R0                                                 ; +0xa, 0x4958f6\nBL              _ZN12FLAlertLayerC2Ev; FLAlertLayer::FLAlertLayer(void) ; +0xc, 0x4958f8\nLDR             R3, =(_ZTV22DemonFilterSelectLayer_ptr - 0x495904)     ; +0x10, 0x4958fc\nMOV             R0, R4; this                                           ; +0x12, 0x4958fe\nADD             R3, PC; _ZTV22DemonFilterSelectLayer_ptr               ; +0x14, 0x495900\nLDR             R3, [R3]; `vtable for'DemonFilterSelectLayer ...       ; +0x16, 0x495902\nADD.W           R2, R3, #8                                             ; +0x18, 0x495904\nSTR             R2, [R4]                                               ; +0x1c, 0x495908\nADD.W           R2, R3, #0x2B0                                         ; +0x1e, 0x49590a\nSTR.W           R2, [R4,#0x108]                                        ; +0x22, 0x49590e\nADD.W           R2, R3, #0x2E8                                         ; +0x26, 0x495912\nSTR.W           R2, [R4,#0x10C]                                        ; +0x2a, 0x495916\nADD.W           R2, R3, #0x2F4                                         ; +0x2e, 0x49591a\nSTR.W           R2, [R4,#0x110]                                        ; +0x32, 0x49591e\nADD.W           R2, R3, #0x304                                         ; +0x36, 0x495922\nSTR.W           R2, [R4,#0x114]                                        ; +0x3a, 0x495926\nADD.W           R2, R3, #0x318                                         ; +0x3e, 0x49592a\nSTR.W           R2, [R4,#0x118]                                        ; +0x42, 0x49592e\nADD.W           R2, R3, #0x330                                         ; +0x46, 0x495932\nSTR.W           R2, [R4,#0x13C]                                        ; +0x4a, 0x495936\nADD.W           R2, R3, #0x370                                         ; +0x4e, 0x49593a\nADD.W           R3, R3, #0x380                                         ; +0x52, 0x49593e\nSTR.W           R2, [R4,#0x14C]                                        ; +0x56, 0x495942\nSTR.W           R3, [R4,#0x1B8]                                        ; +0x5a, 0x495946\nMOVS            R3, #0                                                 ; +0x5e, 0x49594a\nSTR.W           R3, [R4,#0x208]                                        ; +0x60, 0x49594c\nSTR.W           R3, [R4,#0x20C]                                        ; +0x64, 0x495950\nSTR.W           R3, [R4,#0x210]                                        ; +0x68, 0x495954\nSTR.W           R3, [R4,#0x214]                                        ; +0x6c, 0x495958\nBL              _ZN22DemonFilterSelectLayer4initEv; DemonFilterSelectLayer::init(void) ; +0x70, 0x49595c\nMOV             R5, R0                                                 ; +0x74, 0x495960\nCBZ             R0, loc_495976                                         ; +0x76, 0x495962\nMOV             R0, R4; this                                           ; +0x78, 0x495964\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x7a, 0x495966\nB               loc_495980                                             ; +0x7e, 0x49596a\nMOV             R0, R4; void *                                         ; +0x80, 0x49596c\nBL              _ZdlPv; operator delete(void *)                        ; +0x82, 0x49596e\nBL              __cxa_end_cleanup                                      ; +0x86, 0x495972\nLDR             R3, [R4]                                               ; +0x8a, 0x495976\nMOV             R0, R4                                                 ; +0x8c, 0x495978\nMOV             R4, R5                                                 ; +0x8e, 0x49597a\nLDR             R3, [R3,#8]                                            ; +0x90, 0x49597c\nBLX             R3                                                     ; +0x92, 0x49597e\nMOV             R0, R4                                                 ; +0x94, 0x495980\nPOP             {R3-R5,PC}                                             ; +0x96, 0x495982", "xrefs": ["LevelSearchLayer::onSpecialDemon @ 0x49598c"], "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"}