{"type": "func", "start": 5374064096, "end": 5374064898, "name": "GravityEffectSprite::init", "pseudocode": "// \n// GravityEffectSprite::init from 0x14051b5e0 to 0x14051b902 (802 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::init @ 0x140503e50\n// > <???> @ 0x1407d6030\n// > <???> @ 0x14092aef0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:33:35 +0000\n// \n\nbool __fastcall GravityEffectSprite::init(cocos2d::CCSprite *a1)\n{\n  bool result; // al\n  struct cocos2d::CCSpriteBatchNode *v3; // rsi\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  __int64 v6; // rcx\n  cocos2d::CCDirector *v7; // rax\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  int v10; // ebp\n  float v11; // xmm8_4\n  struct cocos2d::CCSprite *v12; // rdi\n  float v13; // xmm7_4\n  __int64 v14; // rcx\n  cocos2d::CCDirector *v15; // rax\n  float v16; // xmm6_4\n  int v17; // eax\n  __int64 v18; // rbx\n  __int64 v19; // rbx\n  __int64 v20; // rbx\n  int v21; // eax\n  __int64 v22; // [rsp+D8h] [rbp+10h] BYREF\n\n  result = cocos2d::CCSprite::init(a1);\n  if ( result )\n  {\n    v3 = cocos2d::CCSpriteBatchNode::create(\"gravityLine_001.png\", 0x16u);\n    (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 1);\n    (*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a1 + 464LL))(a1, v3);\n    v22 = 0x100000302LL;\n    (**((void (__fastcall ***)(__int64, __int64))v3 + 40))((__int64)v3 + 320, 0x100000302LL);\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n    cocos2d::CCDirector::getContentScaleFactor(v5);\n    v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);\n    cocos2d::CCDirector::getScreenRight(v7);\n    v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n    v10 = 0;\n    v11 = (float)(cocos2d::CCDirector::getScreenRight(v9) - 60.0) / 22.0;\n    do\n    {\n      v12 = cocos2d::CCSprite::create(\"gravityLine_001.png\");\n      (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, struct cocos2d::CCSprite *))(*(_QWORD *)v3 + 464LL))(\n        v3,\n        v12);\n      v13 = (float)rand();\n      v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);\n      v16 = (float)(30.0 - (float)(cocos2d::CCDirector::getScreenRight(v15) * 0.5)) + (float)((float)v10 * v11);\n      v17 = rand();\n      cocos2d::CCPoint::CCPoint(\n        (cocos2d::CCPoint *)&v22,\n        (float)((float)((float)v17 / 32767.0) * v11) + v16,\n        (float)((float)((float)(v13 / 32767.0) + (float)(v13 / 32767.0)) - 1.0) * 10.0);\n      (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v12 + 184LL))(v12, &v22);\n      v18 = *(_QWORD *)v12;\n      rand();\n      (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v18 + 120))(v12);\n      v19 = *(_QWORD *)v12;\n      rand();\n      (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v19 + 136))(v12);\n      v20 = *((_QWORD *)v12 + 40);\n      v21 = rand();\n      (*(void (__fastcall **)(__int64, _QWORD))(v20 + 40))(\n        (__int64)v12 + 320,\n        (unsigned int)(int)(float)((float)((float)((float)v21 / 32767.0) * 130.0) + 50.0));\n      ++v10;\n    }\n    while ( v10 < 22 );\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GravityEffectSprite::init from 0x14051b5e0 to 0x14051b902 (802 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::init @ 0x140503e50\n; > <???> @ 0x1407d6030\n; > <???> @ 0x14092aef0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:33:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x14051b5e0\nsub     rsp, 0C0h                                                      ; +0x2, 0x14051b5e2\nmov     rbx, rcx                                                       ; +0x9, 0x14051b5e9\ncall    cs:__imp_?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0xc, 0x14051b5ec\ntest    al, al                                                         ; +0x12, 0x14051b5f2\njnz     short loc_14051B5FF                                            ; +0x14, 0x14051b5f4\nadd     rsp, 0C0h                                                      ; +0x16, 0x14051b5f6\npop     rbx                                                            ; +0x1d, 0x14051b5fd\nretn                                                                   ; +0x1e, 0x14051b5fe\nmov     [rsp+0C8h+arg_0], rbp                                          ; +0x1f, 0x14051b5ff\nlea     rcx, aGravityline001; \"gravityLine_001.png\"                    ; +0x27, 0x14051b607\nmov     [rsp+0C8h+arg_10], rsi                                         ; +0x2e, 0x14051b60e\nmov     edx, 16h                                                       ; +0x36, 0x14051b616\nmov     [rsp+0C8h+arg_18], rdi                                         ; +0x3b, 0x14051b61b\nmovaps  [rsp+0C8h+var_18], xmm6                                        ; +0x43, 0x14051b623\nmovaps  [rsp+0C8h+var_28], xmm7                                        ; +0x4b, 0x14051b62b\nmovaps  [rsp+0C8h+var_38], xmm8                                        ; +0x53, 0x14051b633\nmovaps  [rsp+0C8h+var_48], xmm9                                        ; +0x5c, 0x14051b63c\nmovaps  [rsp+0C8h+var_58], xmm10                                       ; +0x65, 0x14051b645\nmovaps  [rsp+0C8h+var_68], xmm11                                       ; +0x6b, 0x14051b64b\nmovaps  [rsp+0C8h+var_78], xmm12                                       ; +0x71, 0x14051b651\nmovaps  [rsp+0C8h+var_88], xmm13                                       ; +0x77, 0x14051b657\nmovaps  [rsp+0C8h+var_98], xmm14                                       ; +0x7d, 0x14051b65d\nmovaps  [rsp+0C8h+var_A8], xmm15                                       ; +0x83, 0x14051b663\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBDI@Z; cocos2d::CCSpriteBatchNode::create(char const *,uint) ; +0x89, 0x14051b669\nmov     edx, 1                                                         ; +0x8f, 0x14051b66f\nmov     rsi, rax                                                       ; +0x94, 0x14051b674\nmov     rcx, [rax]                                                     ; +0x97, 0x14051b677\nmov     r8, [rcx+40h]                                                  ; +0x9a, 0x14051b67a\nmov     rcx, rax                                                       ; +0x9e, 0x14051b67e\ncall    r8                                                             ; +0xa1, 0x14051b681\nmov     rcx, [rbx]                                                     ; +0xa4, 0x14051b684\nmov     rdx, rsi                                                       ; +0xa7, 0x14051b687\nmov     r8, [rcx+1D0h]                                                 ; +0xaa, 0x14051b68a\nmov     rcx, rbx                                                       ; +0xb1, 0x14051b691\ncall    r8                                                             ; +0xb4, 0x14051b694\nlea     rcx, [rsi+140h]                                                ; +0xb7, 0x14051b697\nmov     dword ptr [rsp+0C8h+arg_8], 302h                               ; +0xbe, 0x14051b69e\nmov     rax, [rcx]                                                     ; +0xc9, 0x14051b6a9\nmov     dword ptr [rsp+0C8h+arg_8+4], 1                                ; +0xcc, 0x14051b6ac\nmov     rdx, [rsp+0C8h+arg_8]                                          ; +0xd7, 0x14051b6b7\ncall    qword ptr [rax]                                                ; +0xdf, 0x14051b6bf\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe1, 0x14051b6c1\nmov     rcx, rax                                                       ; +0xe7, 0x14051b6c7\ncall    cs:?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0xea, 0x14051b6ca\nmovaps  xmm9, xmm0                                                     ; +0xf0, 0x14051b6d0\nmovaps  xmm11, xmm0                                                    ; +0xf4, 0x14051b6d4\nmulss   xmm9, cs:dword_140835A50                                       ; +0xf8, 0x14051b6d8\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x101, 0x14051b6e1\nmov     rcx, rax                                                       ; +0x107, 0x14051b6e7\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x10a, 0x14051b6ea\ndivss   xmm9, xmm0                                                     ; +0x110, 0x14051b6f0\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x115, 0x14051b6f5\nmov     rcx, rax                                                       ; +0x11b, 0x14051b6fb\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x11e, 0x14051b6fe\nmovss   xmm10, cs:dword_140835BDC                                      ; +0x124, 0x14051b704\nxor     ebp, ebp                                                       ; +0x12d, 0x14051b70d\nmovss   xmm13, cs:dword_140834F20                                      ; +0x12f, 0x14051b70f\nmovaps  xmm8, xmm0                                                     ; +0x138, 0x14051b718\nsubss   xmm8, cs:dword_1408356E4                                       ; +0x13c, 0x14051b71c\nmovss   xmm14, cs:dword_140835624                                      ; +0x145, 0x14051b725\nmovss   xmm15, cs:flt_140835080                                        ; +0x14e, 0x14051b72e\nmovss   xmm12, cs:width                                                ; +0x157, 0x14051b737\ndivss   xmm8, cs:dword_1408355D0                                       ; +0x160, 0x14051b740\nnop     dword ptr [rax+00000000h]                                      ; +0x169, 0x14051b749\nlea     rcx, aGravityline001; \"gravityLine_001.png\"                    ; +0x170, 0x14051b750\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x177, 0x14051b757\nmov     rcx, [rsi]                                                     ; +0x17d, 0x14051b75d\nmov     rdx, rax                                                       ; +0x180, 0x14051b760\nmov     rdi, rax                                                       ; +0x183, 0x14051b763\nmov     r8, [rcx+1D0h]                                                 ; +0x186, 0x14051b766\nmov     rcx, rsi                                                       ; +0x18d, 0x14051b76d\ncall    r8                                                             ; +0x190, 0x14051b770\ncall    cs:rand                                                        ; +0x193, 0x14051b773\nmovd    xmm7, eax                                                      ; +0x199, 0x14051b779\ncvtdq2ps xmm7, xmm7                                                    ; +0x19d, 0x14051b77d\ndivss   xmm7, xmm10                                                    ; +0x1a0, 0x14051b780\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1a5, 0x14051b785\nmov     rcx, rax                                                       ; +0x1ab, 0x14051b78b\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x1ae, 0x14051b78e\naddss   xmm7, xmm7                                                     ; +0x1b4, 0x14051b794\nmovd    xmm1, ebp                                                      ; +0x1b8, 0x14051b798\ncvtdq2ps xmm1, xmm1                                                    ; +0x1bc, 0x14051b79c\nmulss   xmm0, xmm13                                                    ; +0x1bf, 0x14051b79f\nmovaps  xmm6, xmm14                                                    ; +0x1c4, 0x14051b7a4\nsubss   xmm7, xmm15                                                    ; +0x1c8, 0x14051b7a8\nmulss   xmm1, xmm8                                                     ; +0x1cd, 0x14051b7ad\nsubss   xmm6, xmm0                                                     ; +0x1d2, 0x14051b7b2\nmulss   xmm7, cs:flt_1408354EC                                         ; +0x1d6, 0x14051b7b6\naddss   xmm6, xmm1                                                     ; +0x1de, 0x14051b7be\ncall    cs:rand                                                        ; +0x1e2, 0x14051b7c2\nmovaps  xmm2, xmm7                                                     ; +0x1e8, 0x14051b7c8\nlea     rcx, [rsp+0C8h+arg_8]                                          ; +0x1eb, 0x14051b7cb\nmovd    xmm1, eax                                                      ; +0x1f3, 0x14051b7d3\ncvtdq2ps xmm1, xmm1                                                    ; +0x1f7, 0x14051b7d7\ndivss   xmm1, xmm10                                                    ; +0x1fa, 0x14051b7da\nmulss   xmm1, xmm8                                                     ; +0x1ff, 0x14051b7df\naddss   xmm1, xmm6                                                     ; +0x204, 0x14051b7e4\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x208, 0x14051b7e8\nmov     rax, [rdi]                                                     ; +0x20e, 0x14051b7ee\nlea     rdx, [rsp+0C8h+arg_8]                                          ; +0x211, 0x14051b7f1\nmov     rcx, rdi                                                       ; +0x219, 0x14051b7f9\ncall    qword ptr [rax+0B8h]                                           ; +0x21c, 0x14051b7fc\nmov     rbx, [rdi]                                                     ; +0x222, 0x14051b802\ncall    cs:rand                                                        ; +0x225, 0x14051b805\nmov     rcx, rdi                                                       ; +0x22b, 0x14051b80b\nmovd    xmm1, eax                                                      ; +0x22e, 0x14051b80e\ncvtdq2ps xmm1, xmm1                                                    ; +0x232, 0x14051b812\ndivss   xmm1, xmm10                                                    ; +0x235, 0x14051b815\nmulss   xmm1, cs:dword_140835450                                       ; +0x23a, 0x14051b81a\naddss   xmm1, xmm12                                                    ; +0x242, 0x14051b822\nmulss   xmm1, xmm9                                                     ; +0x247, 0x14051b827\ncall    qword ptr [rbx+78h]                                            ; +0x24c, 0x14051b82c\nmov     rbx, [rdi]                                                     ; +0x24f, 0x14051b82f\ncall    cs:rand                                                        ; +0x252, 0x14051b832\nmov     rcx, rdi                                                       ; +0x258, 0x14051b838\nmovd    xmm1, eax                                                      ; +0x25b, 0x14051b83b\ncvtdq2ps xmm1, xmm1                                                    ; +0x25f, 0x14051b83f\ndivss   xmm1, xmm10                                                    ; +0x262, 0x14051b842\naddss   xmm1, xmm12                                                    ; +0x267, 0x14051b847\nmulss   xmm1, xmm11                                                    ; +0x26c, 0x14051b84c\ncall    qword ptr [rbx+88h]                                            ; +0x271, 0x14051b851\nmov     rbx, [rdi+140h]                                                ; +0x277, 0x14051b857\ncall    cs:rand                                                        ; +0x27e, 0x14051b85e\nlea     rcx, [rdi+140h]                                                ; +0x284, 0x14051b864\nmovd    xmm0, eax                                                      ; +0x28b, 0x14051b86b\ncvtdq2ps xmm0, xmm0                                                    ; +0x28f, 0x14051b86f\ndivss   xmm0, xmm10                                                    ; +0x292, 0x14051b872\nmulss   xmm0, cs:dword_140835818                                       ; +0x297, 0x14051b877\naddss   xmm0, cs:dword_1408356B0                                       ; +0x29f, 0x14051b87f\ncvttss2si edx, xmm0                                                    ; +0x2a7, 0x14051b887\ncall    qword ptr [rbx+28h]                                            ; +0x2ab, 0x14051b88b\ninc     ebp                                                            ; +0x2ae, 0x14051b88e\ncmp     ebp, 16h                                                       ; +0x2b0, 0x14051b890\njl      loc_14051B750                                                  ; +0x2b3, 0x14051b893\nmovaps  xmm15, [rsp+0C8h+var_A8]                                       ; +0x2b9, 0x14051b899\nmov     al, 1                                                          ; +0x2bf, 0x14051b89f\nmovaps  xmm14, [rsp+0C8h+var_98]                                       ; +0x2c1, 0x14051b8a1\nmovaps  xmm13, [rsp+0C8h+var_88]                                       ; +0x2c7, 0x14051b8a7\nmovaps  xmm12, [rsp+0C8h+var_78]                                       ; +0x2cd, 0x14051b8ad\nmovaps  xmm11, [rsp+0C8h+var_68]                                       ; +0x2d3, 0x14051b8b3\nmovaps  xmm10, [rsp+0C8h+var_58]                                       ; +0x2d9, 0x14051b8b9\nmovaps  xmm9, [rsp+0C8h+var_48]                                        ; +0x2df, 0x14051b8bf\nmovaps  xmm8, [rsp+0C8h+var_38]                                        ; +0x2e8, 0x14051b8c8\nmovaps  xmm7, [rsp+0C8h+var_28]                                        ; +0x2f1, 0x14051b8d1\nmovaps  xmm6, [rsp+0C8h+var_18]                                        ; +0x2f9, 0x14051b8d9\nmov     rdi, [rsp+0C8h+arg_18]                                         ; +0x301, 0x14051b8e1\nmov     rsi, [rsp+0C8h+arg_10]                                         ; +0x309, 0x14051b8e9\nmov     rbp, [rsp+0C8h+arg_0]                                          ; +0x311, 0x14051b8f1\nadd     rsp, 0C0h                                                      ; +0x319, 0x14051b8f9\npop     rbx                                                            ; +0x320, 0x14051b900\nretn                                                                   ; +0x321, 0x14051b901", "xrefs": ["PlayLayer::init @ 0x140503e50", "<???> @ 0x1407d6030", "<???> @ 0x14092aef0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}