{"type": "func", "start": 4295752432, "end": 4295753030, "name": "GravityEffectSprite::init", "pseudocode": "// \n// GravityEffectSprite::init from 0x1000bfaf0 to 0x1000bfd46 (598 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::init @ 0x1000ac56f\n// > GravityEffectSprite::create @ 0x1000acce2\n// > <???> @ 0x1008b7df8\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 GravityEffectSprite::init(GravityEffectSprite *a1)\n{\n  cocos2d::CCSpriteBatchNode *v1; // r15\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCDirector *v4; // rax\n  int i; // ebx\n  cocos2d::CCSprite *v6; // r13\n  cocos2d::CCDirector *v7; // rax\n  float v8; // xmm0_4\n  int v9; // eax\n  int v10; // eax\n  int v11; // eax\n  int v12; // eax\n  _BYTE v14[8]; // [rsp+Ch] [rbp-44h] BYREF\n  float v15; // [rsp+14h] [rbp-3Ch]\n  float v16; // [rsp+18h] [rbp-38h]\n  float v17; // [rsp+1Ch] [rbp-34h]\n  float v18; // [rsp+20h] [rbp-30h]\n  bool v19; // [rsp+27h] [rbp-29h]\n\n  v19 = cocos2d::CCSprite::init(a1);\n  if ( v19 )\n  {\n    v1 = cocos2d::CCSpriteBatchNode::create(\"gravityLine_001.png\", 0x16u);\n    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v1->setTag)(v1, 1);\n    ((void (__fastcall *)(GravityEffectSprite *, cocos2d::CCSpriteBatchNode *))a1->addChild)(a1, v1);\n    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v1->setBlendFunc)(v1, 0x100000302LL);\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v15 = sub_1004849C0(v2);\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v18 = (float)(480.0 * v15) / sub_100484DA0(v3);\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v16 = (float)(sub_100484DA0(v4) + -60.0) / 22.0;\n    for ( i = 0; i != 22; ++i )\n    {\n      v6 = cocos2d::CCSprite::create_1(\"gravityLine_001.png\");\n      ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *))v1->addChild)(v1, v6);\n      v7 = cocos2d::CCDirector::sharedDirector();\n      v8 = sub_100484DA0(v7);\n      v17 = (float)((float)(v8 * -0.5) + 30.0) + (float)((float)i * v16);\n      v17 = (float)((float)((float)rand() * 4.6566129e-10) * v16) + v17;\n      v9 = rand();\n      sub_10028CBE0(\n        v14,\n        v17,\n        (float)((float)((float)((float)v9 * 4.6566129e-10) + (float)((float)v9 * 4.6566129e-10)) + -1.0) * 10.0);\n      ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))v6->setPosition)(v6, v14);\n      v10 = rand();\n      ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleX)(\n        v6,\n        (float)((float)((float)((float)v10 * 4.6566129e-10) * 4.0) + 2.0) * v18);\n      v11 = rand();\n      ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleY)(\n        v6,\n        (float)((float)((float)v11 * 4.6566129e-10) + 2.0) * v15);\n      v12 = rand();\n      ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v6->setOpacity)(\n        v6,\n        (unsigned __int8)(int)(float)((float)((float)((float)v12 * 4.6566129e-10) * 130.0) + 50.0));\n    }\n  }\n  return v19;\n}", "assembly": "; \n; GravityEffectSprite::init from 0x1000bfaf0 to 0x1000bfd46 (598 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::init @ 0x1000ac56f\n; > GravityEffectSprite::create @ 0x1000acce2\n; > <???> @ 0x1008b7df8\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, 0x1000bfaf0\nmov     rbp, rsp                                                       ; +0x1, 0x1000bfaf1\npush    r15                                                            ; +0x4, 0x1000bfaf4\npush    r14                                                            ; +0x6, 0x1000bfaf6\npush    r13                                                            ; +0x8, 0x1000bfaf8\npush    r12                                                            ; +0xa, 0x1000bfafa\npush    rbx                                                            ; +0xc, 0x1000bfafc\nsub     rsp, 28h                                                       ; +0xd, 0x1000bfafd\nmov     r12, rdi                                                       ; +0x11, 0x1000bfb01\ncall    cocos2d__CCSprite__init                                        ; +0x14, 0x1000bfb04\nmov     [rbp+var_29], al                                               ; +0x19, 0x1000bfb09\ntest    al, al                                                         ; +0x1c, 0x1000bfb0c\njz      loc_1000BFD33                                                  ; +0x1e, 0x1000bfb0e\nlea     r14, aGravityline001; \"gravityLine_001.png\"                    ; +0x24, 0x1000bfb14\nmov     rdi, r14                                                       ; +0x2b, 0x1000bfb1b\nmov     esi, 16h                                                       ; +0x2e, 0x1000bfb1e\ncall    cocos2d__CCSpriteBatchNode__create                             ; +0x33, 0x1000bfb23\nmov     r15, rax                                                       ; +0x38, 0x1000bfb28\nmov     rax, [rax]                                                     ; +0x3b, 0x1000bfb2b\nmov     rdi, r15                                                       ; +0x3e, 0x1000bfb2e\nmov     esi, 1                                                         ; +0x41, 0x1000bfb31\ncall    qword ptr [rax+48h]                                            ; +0x46, 0x1000bfb36\nmov     rax, [r12]                                                     ; +0x49, 0x1000bfb39\nmov     rdi, r12                                                       ; +0x4d, 0x1000bfb3d\nmov     rsi, r15                                                       ; +0x50, 0x1000bfb40\ncall    qword ptr [rax+1B8h]                                           ; +0x53, 0x1000bfb43\nmov     rax, [r15]                                                     ; +0x59, 0x1000bfb49\nmov     rsi, 100000302h                                                ; +0x5c, 0x1000bfb4c\nmov     rdi, r15                                                       ; +0x66, 0x1000bfb56\ncall    qword ptr [rax+380h]                                           ; +0x69, 0x1000bfb59\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x6f, 0x1000bfb5f\nmov     rdi, rax                                                       ; +0x74, 0x1000bfb64\ncall    sub_1004849C0                                                  ; +0x77, 0x1000bfb67\nmovss   xmm1, cs:dword_100815D10                                       ; +0x7c, 0x1000bfb6c\nmovss   [rbp+var_3C], xmm0                                             ; +0x84, 0x1000bfb74\nmulss   xmm1, xmm0                                                     ; +0x89, 0x1000bfb79\nmovss   [rbp+var_30], xmm1                                             ; +0x8d, 0x1000bfb7d\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x92, 0x1000bfb82\nmov     rdi, rax                                                       ; +0x97, 0x1000bfb87\ncall    sub_100484DA0                                                  ; +0x9a, 0x1000bfb8a\nmovss   xmm1, [rbp+var_30]                                             ; +0x9f, 0x1000bfb8f\ndivss   xmm1, xmm0                                                     ; +0xa4, 0x1000bfb94\nmovss   [rbp+var_30], xmm1                                             ; +0xa8, 0x1000bfb98\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xad, 0x1000bfb9d\nmov     rdi, rax                                                       ; +0xb2, 0x1000bfba2\ncall    sub_100484DA0                                                  ; +0xb5, 0x1000bfba5\naddss   xmm0, cs:dword_100815030                                       ; +0xba, 0x1000bfbaa\ndivss   xmm0, cs:dword_100815D78                                       ; +0xc2, 0x1000bfbb2\nmovss   [rbp+var_38], xmm0                                             ; +0xca, 0x1000bfbba\nxor     ebx, ebx                                                       ; +0xcf, 0x1000bfbbf\nlea     r12, [rbp+var_44]                                              ; +0xd1, 0x1000bfbc1\nnop     word ptr [rax+rax+00000000h]                                   ; +0xd5, 0x1000bfbc5\nmov     rdi, r14                                                       ; +0xe0, 0x1000bfbd0\ncall    cocos2d__CCSprite__create_1                                    ; +0xe3, 0x1000bfbd3\nmov     r13, rax                                                       ; +0xe8, 0x1000bfbd8\nmov     rax, [r15]                                                     ; +0xeb, 0x1000bfbdb\nmov     rdi, r15                                                       ; +0xee, 0x1000bfbde\nmov     rsi, r13                                                       ; +0xf1, 0x1000bfbe1\ncall    qword ptr [rax+1B8h]                                           ; +0xf4, 0x1000bfbe4\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xfa, 0x1000bfbea\nmov     rdi, rax                                                       ; +0xff, 0x1000bfbef\ncall    sub_100484DA0                                                  ; +0x102, 0x1000bfbf2\nxorps   xmm1, xmm1                                                     ; +0x107, 0x1000bfbf7\ncvtsi2ss xmm1, ebx                                                     ; +0x10a, 0x1000bfbfa\nmulss   xmm0, cs:dword_100815248                                       ; +0x10e, 0x1000bfbfe\naddss   xmm0, cs:dword_100814FD0                                       ; +0x116, 0x1000bfc06\nmulss   xmm1, [rbp+var_38]                                             ; +0x11e, 0x1000bfc0e\naddss   xmm0, xmm1                                                     ; +0x123, 0x1000bfc13\nmovss   [rbp+var_34], xmm0                                             ; +0x127, 0x1000bfc17\ncall    _rand                                                          ; +0x12c, 0x1000bfc1c\nxorps   xmm1, xmm1                                                     ; +0x131, 0x1000bfc21\ncvtsi2ss xmm1, eax                                                     ; +0x134, 0x1000bfc24\nmovss   xmm0, cs:dword_100815710                                       ; +0x138, 0x1000bfc28\nmulss   xmm1, xmm0                                                     ; +0x140, 0x1000bfc30\nmulss   xmm1, [rbp+var_38]                                             ; +0x144, 0x1000bfc34\naddss   xmm1, [rbp+var_34]                                             ; +0x149, 0x1000bfc39\nmovss   [rbp+var_34], xmm1                                             ; +0x14e, 0x1000bfc3e\ncall    _rand                                                          ; +0x153, 0x1000bfc43\nxorps   xmm1, xmm1                                                     ; +0x158, 0x1000bfc48\ncvtsi2ss xmm1, eax                                                     ; +0x15b, 0x1000bfc4b\nmulss   xmm1, cs:dword_100815710                                       ; +0x15f, 0x1000bfc4f\naddss   xmm1, xmm1                                                     ; +0x167, 0x1000bfc57\naddss   xmm1, cs:dword_100815094                                       ; +0x16b, 0x1000bfc5b\nmulss   xmm1, cs:dword_100814FEC                                       ; +0x173, 0x1000bfc63\nmov     rdi, r12                                                       ; +0x17b, 0x1000bfc6b\nmovss   xmm0, [rbp+var_34]                                             ; +0x17e, 0x1000bfc6e\ncall    sub_10028CBE0                                                  ; +0x183, 0x1000bfc73\nmov     rax, [r13+0]                                                   ; +0x188, 0x1000bfc78\nmov     rdi, r13                                                       ; +0x18c, 0x1000bfc7c\nmov     rsi, r12                                                       ; +0x18f, 0x1000bfc7f\ncall    qword ptr [rax+0B8h]                                           ; +0x192, 0x1000bfc82\ncall    _rand                                                          ; +0x198, 0x1000bfc88\nxorps   xmm0, xmm0                                                     ; +0x19d, 0x1000bfc8d\ncvtsi2ss xmm0, eax                                                     ; +0x1a0, 0x1000bfc90\nmulss   xmm0, cs:dword_100815710                                       ; +0x1a4, 0x1000bfc94\nmulss   xmm0, cs:dword_10081505C                                       ; +0x1ac, 0x1000bfc9c\nmovss   xmm1, cs:width                                                 ; +0x1b4, 0x1000bfca4\naddss   xmm0, xmm1                                                     ; +0x1bc, 0x1000bfcac\nmulss   xmm0, [rbp+var_30]                                             ; +0x1c0, 0x1000bfcb0\nmov     rax, [r13+0]                                                   ; +0x1c5, 0x1000bfcb5\nmov     rdi, r13                                                       ; +0x1c9, 0x1000bfcb9\ncall    qword ptr [rax+80h]                                            ; +0x1cc, 0x1000bfcbc\ncall    _rand                                                          ; +0x1d2, 0x1000bfcc2\nxorps   xmm0, xmm0                                                     ; +0x1d7, 0x1000bfcc7\ncvtsi2ss xmm0, eax                                                     ; +0x1da, 0x1000bfcca\nmulss   xmm0, cs:dword_100815710                                       ; +0x1de, 0x1000bfcce\naddss   xmm0, cs:width                                                 ; +0x1e6, 0x1000bfcd6\nmulss   xmm0, [rbp+var_3C]                                             ; +0x1ee, 0x1000bfcde\nmov     rax, [r13+0]                                                   ; +0x1f3, 0x1000bfce3\nmov     rdi, r13                                                       ; +0x1f7, 0x1000bfce7\ncall    qword ptr [rax+90h]                                            ; +0x1fa, 0x1000bfcea\ncall    _rand                                                          ; +0x200, 0x1000bfcf0\nxorps   xmm0, xmm0                                                     ; +0x205, 0x1000bfcf5\ncvtsi2ss xmm0, eax                                                     ; +0x208, 0x1000bfcf8\nmulss   xmm0, cs:dword_100815710                                       ; +0x20c, 0x1000bfcfc\nmulss   xmm0, cs:dword_100815730                                       ; +0x214, 0x1000bfd04\naddss   xmm0, cs:dword_100814FDC                                       ; +0x21c, 0x1000bfd0c\ncvttss2si eax, xmm0                                                    ; +0x224, 0x1000bfd14\nmov     rcx, [r13+0]                                                   ; +0x228, 0x1000bfd18\nmovzx   esi, al                                                        ; +0x22c, 0x1000bfd1c\nmov     rdi, r13                                                       ; +0x22f, 0x1000bfd1f\ncall    qword ptr [rcx+380h]                                           ; +0x232, 0x1000bfd22\ninc     ebx                                                            ; +0x238, 0x1000bfd28\ncmp     ebx, 16h                                                       ; +0x23a, 0x1000bfd2a\njnz     loc_1000BFBD0                                                  ; +0x23d, 0x1000bfd2d\nmovzx   eax, [rbp+var_29]                                              ; +0x243, 0x1000bfd33\nadd     rsp, 28h                                                       ; +0x247, 0x1000bfd37\npop     rbx                                                            ; +0x24b, 0x1000bfd3b\npop     r12                                                            ; +0x24c, 0x1000bfd3c\npop     r13                                                            ; +0x24e, 0x1000bfd3e\npop     r14                                                            ; +0x250, 0x1000bfd40\npop     r15                                                            ; +0x252, 0x1000bfd42\npop     rbp                                                            ; +0x254, 0x1000bfd44\nretn                                                                   ; +0x255, 0x1000bfd45", "xrefs": ["PlayLayer::init @ 0x1000ac56f", "GravityEffectSprite::create @ 0x1000acce2", "<???> @ 0x1008b7df8"], "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"}