{"type": "func", "start": 4300227856, "end": 4300228163, "name": "CCLightStrip::init", "pseudocode": "// \n// CCLightStrip::init from 0x100504510 to 0x100504643 (307 bytes)\n// \n// 2 xrefs:\n// > CCLightFlash::playEffect @ 0x100503ef7\n// > CCLightStrip::create @ 0x1005040be\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\nbool __fastcall CCLightStrip::init(CCLightStrip *a1, float a2, float a3, float a4, float a5, float a6)\n{\n  cocos2d::CCDelayTime *v6; // r14\n  cocos2d::CCShow *v7; // r15\n  cocos2d::CCActionTween *v8; // rax\n  cocos2d::CCEaseOut *v9; // r12\n  cocos2d::CCActionTween *v10; // rax\n  cocos2d::CCEaseOut *v11; // rax\n  cocos2d::CCSpawn *v12; // rax\n  cocos2d::CCSequence *v13; // r14\n  cocos2d::CCDirector *v14; // rax\n  cocos2d::CCActionManager *v15; // rax\n\n  a1->m_objectWidth = a2;\n  a1->m_toWidth = a3;\n  a1->m_toHeight = a4;\n  a1->m_duration = a5;\n  a1->m_width = a2;\n  a1->m_height = 1.0;\n  a1->m_opacity = 255.0;\n  ((void (__fastcall *)(CCLightStrip *, _QWORD))a1->setVisible)(a1, 0);\n  v6 = cocos2d::CCDelayTime::create(a6);\n  v7 = cocos2d::CCShow::create();\n  v8 = cocos2d::CCActionTween::create_1(a5, \"height\", a1->m_height, a4);\n  v9 = cocos2d::CCEaseOut::create(v8, 2.0);\n  v10 = cocos2d::CCActionTween::create_1(a5, \"width\", a1->m_width, a1->m_toWidth);\n  v11 = cocos2d::CCEaseOut::create(v10, 2.0);\n  v12 = sub_1003B6B60(v9, v11, 0);\n  v13 = sub_1003B5760(v6, v7, v12, 0);\n  v14 = cocos2d::CCDirector::sharedDirector();\n  v15 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v14->getActionManager)(v14);\n  cocos2d::CCActionManager::addAction(v15, v13, a1, 0);\n  return 1;\n}", "assembly": "; \n; CCLightStrip::init from 0x100504510 to 0x100504643 (307 bytes)\n; \n; 2 xrefs:\n; > CCLightFlash::playEffect @ 0x100503ef7\n; > CCLightStrip::create @ 0x1005040be\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\npush    rbp                                                            ; +0x0, 0x100504510\nmov     rbp, rsp                                                       ; +0x1, 0x100504511\npush    r15                                                            ; +0x4, 0x100504514\npush    r14                                                            ; +0x6, 0x100504516\npush    r12                                                            ; +0x8, 0x100504518\npush    rbx                                                            ; +0xa, 0x10050451a\nsub     rsp, 10h                                                       ; +0xb, 0x10050451b\nmovss   [rbp+var_28], xmm4                                             ; +0xf, 0x10050451f\nmovss   [rbp+var_24], xmm3                                             ; +0x14, 0x100504524\nmovss   [rbp+var_2C], xmm2                                             ; +0x19, 0x100504529\nmov     rbx, rdi                                                       ; +0x1e, 0x10050452e\nmovss   dword ptr [rdi+13Ch], xmm0                                     ; +0x21, 0x100504531\nmovss   dword ptr [rdi+140h], xmm1                                     ; +0x29, 0x100504539\nmovss   dword ptr [rdi+144h], xmm2                                     ; +0x31, 0x100504541\nmovss   dword ptr [rdi+148h], xmm3                                     ; +0x39, 0x100504549\nmovss   dword ptr [rdi+154h], xmm0                                     ; +0x41, 0x100504551\nmov     dword ptr [rdi+158h], 3F800000h                                ; +0x49, 0x100504559\nmov     dword ptr [rdi+150h], 437F0000h                                ; +0x53, 0x100504563\nmov     rax, [rdi]                                                     ; +0x5d, 0x10050456d\nxor     esi, esi                                                       ; +0x60, 0x100504570\ncall    qword ptr [rax+148h]                                           ; +0x62, 0x100504572\nmovss   xmm0, [rbp+var_28]                                             ; +0x68, 0x100504578\ncall    cocos2d__CCDelayTime__create                                   ; +0x6d, 0x10050457d\nmov     r14, rax                                                       ; +0x72, 0x100504582\ncall    cocos2d__CCShow__create                                        ; +0x75, 0x100504585\nmov     r15, rax                                                       ; +0x7a, 0x10050458a\nmovss   xmm1, dword ptr [rbx+158h]                                     ; +0x7d, 0x10050458d\nlea     rdi, aHeight_0; \"height\"                                       ; +0x85, 0x100504595\nmovss   xmm0, [rbp+var_24]                                             ; +0x8c, 0x10050459c\nmovss   xmm2, [rbp+var_2C]                                             ; +0x91, 0x1005045a1\ncall    cocos2d__CCActionTween__create_1                               ; +0x96, 0x1005045a6\nmovss   xmm0, cs:width                                                 ; +0x9b, 0x1005045ab\nmov     rdi, rax                                                       ; +0xa3, 0x1005045b3\ncall    cocos2d__CCEaseOut__create                                     ; +0xa6, 0x1005045b6\nmov     r12, rax                                                       ; +0xab, 0x1005045bb\nmovss   xmm2, dword ptr [rbx+140h]                                     ; +0xae, 0x1005045be\nmovss   xmm1, dword ptr [rbx+154h]                                     ; +0xb6, 0x1005045c6\nlea     rdi, aWidth_0; \"width\"                                         ; +0xbe, 0x1005045ce\nmovss   xmm0, [rbp+var_24]                                             ; +0xc5, 0x1005045d5\ncall    cocos2d__CCActionTween__create_1                               ; +0xca, 0x1005045da\nmov     rdi, rax                                                       ; +0xcf, 0x1005045df\nmovss   xmm0, cs:width                                                 ; +0xd2, 0x1005045e2\ncall    cocos2d__CCEaseOut__create                                     ; +0xda, 0x1005045ea\nmov     rdi, r12                                                       ; +0xdf, 0x1005045ef\nmov     rsi, rax                                                       ; +0xe2, 0x1005045f2\nxor     edx, edx                                                       ; +0xe5, 0x1005045f5\nxor     eax, eax                                                       ; +0xe7, 0x1005045f7\ncall    sub_1003B6B60                                                  ; +0xe9, 0x1005045f9\nmov     rdi, r14                                                       ; +0xee, 0x1005045fe\nmov     rsi, r15                                                       ; +0xf1, 0x100504601\nmov     rdx, rax                                                       ; +0xf4, 0x100504604\nxor     ecx, ecx                                                       ; +0xf7, 0x100504607\nxor     eax, eax                                                       ; +0xf9, 0x100504609\ncall    sub_1003B5760                                                  ; +0xfb, 0x10050460b\nmov     r14, rax                                                       ; +0x100, 0x100504610\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x103, 0x100504613\nmov     rcx, [rax]                                                     ; +0x108, 0x100504618\nmov     rdi, rax                                                       ; +0x10b, 0x10050461b\ncall    qword ptr [rcx+90h]                                            ; +0x10e, 0x10050461e\nmov     rdi, rax                                                       ; +0x114, 0x100504624\nmov     rsi, r14                                                       ; +0x117, 0x100504627\nmov     rdx, rbx                                                       ; +0x11a, 0x10050462a\nxor     ecx, ecx                                                       ; +0x11d, 0x10050462d\ncall    cocos2d__CCActionManager__addAction                            ; +0x11f, 0x10050462f\nmov     al, 1                                                          ; +0x124, 0x100504634\nadd     rsp, 10h                                                       ; +0x126, 0x100504636\npop     rbx                                                            ; +0x12a, 0x10050463a\npop     r12                                                            ; +0x12b, 0x10050463b\npop     r14                                                            ; +0x12d, 0x10050463d\npop     r15                                                            ; +0x12f, 0x10050463f\npop     rbp                                                            ; +0x131, 0x100504641\nretn                                                                   ; +0x132, 0x100504642", "xrefs": ["CCLightFlash::playEffect @ 0x100503ef7", "CCLightStrip::create @ 0x1005040be"], "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"}