{"type": "func", "start": 5928596, "end": 5928756, "name": "CCLightFlash::create", "pseudocode": "// \n// CCLightFlash::create from 0x5a7694 to 0x5a7734 (160 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::showCompleteEffect @ 0x5ca8b8\n// > <???> @ 0x89250\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\nCCLightFlash *CCLightFlash::create()\n{\n  CCLightFlash *v0; // x19\n\n  v0 = (CCLightFlash *)operator new(0x168u);\n  cocos2d::CCNode::CCNode(v0);\n  v0->m_lightStripArray = nullptr;\n  v0->m_layerColor = nullptr;\n  v0->__vftable = (CCLightFlash_vtbl *)&off_11423D0;\n  v0->m_dontFadeOut = 0;\n  v0->m_mainLayer = nullptr;\n  v0->m_layerColorZOrder = 0;\n  if ( CCLightFlash::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n    return v0;\n  }\n  else\n  {\n    v0->~CCLightFlash_0(v0);\n    return nullptr;\n  }\n}", "assembly": "; \n; CCLightFlash::create from 0x5a7694 to 0x5a7734 (160 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::showCompleteEffect @ 0x5ca8b8\n; > <???> @ 0x89250\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x5a7694\nMOV             X0, #0x168; unsigned __int64                           ; +0x4, 0x5a7698\nMOV             X29, SP                                                ; +0x8, 0x5a769c\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x5a76a0\nBL              _Znwm; operator new(ulong)                             ; +0x10, 0x5a76a4\nMOV             X19, X0                                                ; +0x14, 0x5a76a8\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x18, 0x5a76ac\nADRP            X1, #_ZTV12CCLightFlash_ptr@PAGE                       ; +0x1c, 0x5a76b0\nMOV             X0, X19; this                                          ; +0x20, 0x5a76b4\nLDR             X1, [X1,#_ZTV12CCLightFlash_ptr@PAGEOFF]; `vtable for'CCLightFlash ... ; +0x24, 0x5a76b8\nSTR             XZR, [X19,#0x140]                                      ; +0x28, 0x5a76bc\nADD             X1, X1, #0x10                                          ; +0x2c, 0x5a76c0\nSTR             XZR, [X19,#0x148]                                      ; +0x30, 0x5a76c4\nSTR             X1, [X19]                                              ; +0x34, 0x5a76c8\nSTRB            WZR, [X19,#0x150]                                      ; +0x38, 0x5a76cc\nSTR             XZR, [X19,#0x158]                                      ; +0x3c, 0x5a76d0\nSTR             WZR, [X19,#0x160]                                      ; +0x40, 0x5a76d4\nBL              _ZN12CCLightFlash4initEv; CCLightFlash::init(void)     ; +0x44, 0x5a76d8\nUXTB            W0, W0                                                 ; +0x48, 0x5a76dc\nCBZ             W0, loc_5A76FC                                         ; +0x4c, 0x5a76e0\nMOV             X0, X19; this                                          ; +0x50, 0x5a76e4\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x54, 0x5a76e8\nMOV             X0, X19                                                ; +0x58, 0x5a76ec\nLDP             X19, X20, [SP,#var_s10]                                ; +0x5c, 0x5a76f0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x60, 0x5a76f4\nRET                                                                    ; +0x64, 0x5a76f8\nLDR             X1, [X19]                                              ; +0x68, 0x5a76fc\nMOV             X0, X19                                                ; +0x6c, 0x5a7700\nMOV             X19, #0                                                ; +0x70, 0x5a7704\nLDR             X1, [X1,#0x10]                                         ; +0x74, 0x5a7708\nBLR             X1                                                     ; +0x78, 0x5a770c\nMOV             X0, X19                                                ; +0x7c, 0x5a7710\nLDP             X19, X20, [SP,#var_s10]                                ; +0x80, 0x5a7714\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x84, 0x5a7718\nRET                                                                    ; +0x88, 0x5a771c\nMOV             X20, X0                                                ; +0x8c, 0x5a7720\nMOV             X0, X19; p                                             ; +0x90, 0x5a7724\nBL              _ZdlPv; operator delete(void *)                        ; +0x94, 0x5a7728\nMOV             X0, X20                                                ; +0x98, 0x5a772c\nBL              _Unwind_Resume                                         ; +0x9c, 0x5a7730", "xrefs": ["PlayLayer::showCompleteEffect @ 0x5ca8b8", "<???> @ 0x89250"], "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"}