{"type": "func", "start": 4086988, "end": 4087078, "name": "CCLightFlash::create", "pseudocode": "// \n// CCLightFlash::create from 0x3e5ccc to 0x3e5d26 (90 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::showCompleteEffect @ 0x40345a\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:47:04 +0000\n// \n\ncocos2d::CCNode *__fastcall CCLightFlash::create(CCLightFlash *this)\n{\n  cocos2d::CCNode *v1; // r4\n  int v2; // r3\n  int *v3; // r0\n\n  v1 = (cocos2d::CCNode *)operator new(0x11Cu);\n  cocos2d::CCNode::CCNode(v1);\n  *(_DWORD *)v1 = &off_C8A258;\n  *((_DWORD *)v1 + 66) = 0;\n  *((_DWORD *)v1 + 67) = 0;\n  *((_BYTE *)v1 + 272) = 0;\n  *((_DWORD *)v1 + 69) = 0;\n  *((_DWORD *)v1 + 70) = 0;\n  if ( CCLightFlash::init(v1) )\n  {\n    cocos2d::CCObject::autorelease(v1);\n  }\n  else\n  {\n    v2 = *(_DWORD *)v1;\n    v3 = (int *)v1;\n    v1 = nullptr;\n    (*(void (__fastcall **)(int *))(v2 + 8))(v3);\n  }\n  return v1;\n}", "assembly": "; \n; CCLightFlash::create from 0x3e5ccc to 0x3e5d26 (90 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::showCompleteEffect @ 0x40345a\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:47:04 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3e5ccc\nMOV.W           R0, #0x11C; unsigned int                               ; +0x2, 0x3e5cce\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x3e5cd2\nMOV             R4, R0                                                 ; +0xa, 0x3e5cd6\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0xc, 0x3e5cd8\nLDR             R3, =(_ZTV12CCLightFlash_ptr - 0x3E5CE4)               ; +0x10, 0x3e5cdc\nMOV             R0, R4; this                                           ; +0x12, 0x3e5cde\nADD             R3, PC; _ZTV12CCLightFlash_ptr                         ; +0x14, 0x3e5ce0\nLDR             R3, [R3]; `vtable for'CCLightFlash ...                 ; +0x16, 0x3e5ce2\nADDS            R3, #8                                                 ; +0x18, 0x3e5ce4\nSTR             R3, [R4]                                               ; +0x1a, 0x3e5ce6\nMOVS            R3, #0                                                 ; +0x1c, 0x3e5ce8\nSTR.W           R3, [R4,#0x108]                                        ; +0x1e, 0x3e5cea\nSTR.W           R3, [R4,#0x10C]                                        ; +0x22, 0x3e5cee\nSTRB.W          R3, [R4,#0x110]                                        ; +0x26, 0x3e5cf2\nSTR.W           R3, [R4,#0x114]                                        ; +0x2a, 0x3e5cf6\nSTR.W           R3, [R4,#0x118]                                        ; +0x2e, 0x3e5cfa\nBL              _ZN12CCLightFlash4initEv; CCLightFlash::init(void)     ; +0x32, 0x3e5cfe\nMOV             R5, R0                                                 ; +0x36, 0x3e5d02\nCBZ             R0, loc_3E5D18                                         ; +0x38, 0x3e5d04\nMOV             R0, R4; this                                           ; +0x3a, 0x3e5d06\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x3c, 0x3e5d08\nB               loc_3E5D22                                             ; +0x40, 0x3e5d0c\nMOV             R0, R4; void *                                         ; +0x42, 0x3e5d0e\nBL              _ZdlPv; operator delete(void *)                        ; +0x44, 0x3e5d10\nBL              __cxa_end_cleanup                                      ; +0x48, 0x3e5d14\nLDR             R3, [R4]                                               ; +0x4c, 0x3e5d18\nMOV             R0, R4                                                 ; +0x4e, 0x3e5d1a\nMOV             R4, R5                                                 ; +0x50, 0x3e5d1c\nLDR             R3, [R3,#8]                                            ; +0x52, 0x3e5d1e\nBLX             R3                                                     ; +0x54, 0x3e5d20\nMOV             R0, R4                                                 ; +0x56, 0x3e5d22\nPOP             {R3-R5,PC}                                             ; +0x58, 0x3e5d24", "xrefs": ["PlayLayer::showCompleteEffect @ 0x40345a"], "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"}