{"type": "func", "start": 6442699680, "end": 6442699919, "name": "cocos2d::CCTurnOffTiles::update", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::update from 0x18003cba0 to 0x18003cc8f (239 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea660\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b10b0\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\nvoid __fastcall cocos2d::CCTurnOffTiles::update(cocos2d::CCTurnOffTiles *this, float a2)\n{\n  int v2; // eax\n  __int64 v3; // rdi\n  unsigned int v5; // esi\n  cocos2d::CCTurnOffTiles *v6; // rcx\n  const struct cocos2d::_ccQuad3 *v7; // r8\n  struct cocos2d::CCPoint v8; // [rsp+20h] [rbp-48h] BYREF\n  _OWORD v9[3]; // [rsp+28h] [rbp-40h] BYREF\n\n  v2 = *((_DWORD *)this + 27);\n  v3 = 0;\n  v5 = (int)(float)((float)v2 * a2);\n  if ( v2 )\n  {\n    do\n    {\n      kmVec2Fill(\n        (float *)&v8,\n        (float)(int)(float)((float)*(int *)(*((_QWORD *)this + 14) + 4 * v3) / *((float *)this + 25)),\n        (float)(int)(*(_DWORD *)(*((_QWORD *)this + 14) + 4 * v3) % (unsigned int)(int)*((float *)this + 25)));\n      v6 = this;\n      if ( (unsigned int)v3 >= v5 )\n      {\n        v7 = (const struct cocos2d::_ccQuad3 *)cocos2d::CCTiledGrid3DAction::originalTile(\n                                                 (__int64)this,\n                                                 v9,\n                                                 (float *)&v8);\n        v6 = this;\n      }\n      else\n      {\n        v7 = (const struct cocos2d::_ccQuad3 *)v9;\n        memset(v9, 0, sizeof(v9));\n      }\n      cocos2d::CCTiledGrid3DAction::setTile(v6, &v8, v7);\n      v3 = (unsigned int)(v3 + 1);\n    }\n    while ( (unsigned int)v3 < *((_DWORD *)this + 27) );\n  }\n}", "assembly": "; \n; cocos2d::CCTurnOffTiles::update from 0x18003cba0 to 0x18003cc8f (239 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea660\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b10b0\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18003cba0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003cba5\npush    rdi                                                            ; +0xa, 0x18003cbaa\nsub     rsp, 60h                                                       ; +0xb, 0x18003cbab\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x18003cbaf\nxor     rax, rsp                                                       ; +0x16, 0x18003cbb6\nmov     [rsp+68h+var_10], rax                                          ; +0x19, 0x18003cbb9\nmov     eax, [rcx+6Ch]                                                 ; +0x1e, 0x18003cbbe\nxorps   xmm0, xmm0                                                     ; +0x21, 0x18003cbc1\nxor     edi, edi                                                       ; +0x24, 0x18003cbc4\nmov     rbx, rcx                                                       ; +0x26, 0x18003cbc6\ncvtsi2ss xmm0, rax                                                     ; +0x29, 0x18003cbc9\nmulss   xmm0, xmm1                                                     ; +0x2e, 0x18003cbce\ncvttss2si rsi, xmm0                                                    ; +0x32, 0x18003cbd2\ntest    eax, eax                                                       ; +0x37, 0x18003cbd7\njz      loc_18003CC6F                                                  ; +0x39, 0x18003cbd9\nnop                                                                    ; +0x3f, 0x18003cbdf\ncvttss2si rcx, dword ptr [rbx+64h]                                     ; +0x40, 0x18003cbe0\nmov     rax, [rbx+70h]                                                 ; +0x46, 0x18003cbe6\nxor     edx, edx                                                       ; +0x4a, 0x18003cbea\nmov     r8d, [rax+rdi*4]                                               ; +0x4c, 0x18003cbec\nmov     eax, r8d                                                       ; +0x50, 0x18003cbf0\nxorps   xmm0, xmm0                                                     ; +0x53, 0x18003cbf3\nxorps   xmm2, xmm2                                                     ; +0x56, 0x18003cbf6\ndiv     ecx                                                            ; +0x59, 0x18003cbf9\ncvtsi2ss xmm0, r8                                                      ; +0x5b, 0x18003cbfb\nmov     ecx, edx                                                       ; +0x60, 0x18003cc00\nxorps   xmm1, xmm1                                                     ; +0x62, 0x18003cc02\ncvtsi2ss xmm2, rcx                                                     ; +0x65, 0x18003cc05\ndivss   xmm0, dword ptr [rbx+64h]                                      ; +0x6a, 0x18003cc0a\ncvttss2si rcx, xmm0                                                    ; +0x6f, 0x18003cc0f\nmov     ecx, ecx                                                       ; +0x74, 0x18003cc14\ncvtsi2ss xmm1, rcx                                                     ; +0x76, 0x18003cc16\nlea     rcx, [rsp+68h+var_48]                                          ; +0x7b, 0x18003cc1b\ncall    kmVec2Fill                                                     ; +0x80, 0x18003cc20\nmov     rcx, rbx                                                       ; +0x85, 0x18003cc25\ncmp     edi, esi                                                       ; +0x88, 0x18003cc28\njnb     short loc_18003CC45                                            ; +0x8a, 0x18003cc2a\nxorps   xmm0, xmm0                                                     ; +0x8c, 0x18003cc2c\nlea     r8, [rsp+68h+var_40]                                           ; +0x8f, 0x18003cc2f\nmovups  [rsp+68h+var_40], xmm0                                         ; +0x94, 0x18003cc34\nmovups  [rsp+68h+var_30], xmm0                                         ; +0x99, 0x18003cc39\nmovups  [rsp+68h+var_20], xmm0                                         ; +0x9e, 0x18003cc3e\njmp     short loc_18003CC5A                                            ; +0xa3, 0x18003cc43\nlea     r8, [rsp+68h+var_48]                                           ; +0xa5, 0x18003cc45\nlea     rdx, [rsp+68h+var_40]                                          ; +0xaa, 0x18003cc4a\ncall    ?originalTile@CCTiledGrid3DAction@cocos2d@@QEAA?AU_ccQuad3@2@AEBVCCPoint@2@@Z; cocos2d::CCTiledGrid3DAction::originalTile(cocos2d::CCPoint const &) ; +0xaf, 0x18003cc4f\nmov     r8, rax; struct cocos2d::_ccQuad3 *                            ; +0xb4, 0x18003cc54\nmov     rcx, rbx; this                                                 ; +0xb7, 0x18003cc57\nlea     rdx, [rsp+68h+var_48]; struct cocos2d::CCPoint *               ; +0xba, 0x18003cc5a\ncall    ?setTile@CCTiledGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccQuad3@2@@Z; cocos2d::CCTiledGrid3DAction::setTile(cocos2d::CCPoint const &,cocos2d::_ccQuad3 const &) ; +0xbf, 0x18003cc5f\ninc     edi                                                            ; +0xc4, 0x18003cc64\ncmp     edi, [rbx+6Ch]                                                 ; +0xc6, 0x18003cc66\njb      loc_18003CBE0                                                  ; +0xc9, 0x18003cc69\nmov     rcx, [rsp+68h+var_10]                                          ; +0xcf, 0x18003cc6f\nxor     rcx, rsp; StackCookie                                          ; +0xd4, 0x18003cc74\ncall    __security_check_cookie                                        ; +0xd7, 0x18003cc77\nmov     rbx, [rsp+68h+arg_8]                                           ; +0xdc, 0x18003cc7c\nmov     rsi, [rsp+68h+arg_10]                                          ; +0xe1, 0x18003cc81\nadd     rsp, 60h                                                       ; +0xe9, 0x18003cc89\npop     rdi                                                            ; +0xed, 0x18003cc8d\nretn                                                                   ; +0xee, 0x18003cc8e", "xrefs": ["<???> @ 0x1800ea660", "<???> @ 0x1801438a8", "<???> @ 0x1801b10b0"], "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"}