{"type": "func", "start": 6442693296, "end": 6442693576, "name": "cocos2d::CCShuffleTiles::placeTile", "pseudocode": "// \n// cocos2d::CCShuffleTiles::placeTile from 0x18003b2b0 to 0x18003b3c8 (280 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0ef4\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::CCShuffleTiles::placeTile(\n        cocos2d::CCShuffleTiles *this,\n        struct cocos2d::CCPoint *a2,\n        struct cocos2d::Tile *a3)\n{\n  __int64 v6; // rax\n  float v7; // xmm3_4\n  float v8; // xmm2_4\n  float v9[2]; // [rsp+20h] [rbp-58h] BYREF\n  __int128 v10; // [rsp+28h] [rbp-50h] BYREF\n  float v11; // [rsp+38h] [rbp-40h]\n  float v12; // [rsp+40h] [rbp-38h]\n  float v13; // [rsp+44h] [rbp-34h]\n  float v14; // [rsp+4Ch] [rbp-2Ch]\n  float v15; // [rsp+50h] [rbp-28h]\n\n  cocos2d::CCTiledGrid3DAction::originalTile((__int64)this, &v10, (float *)a2);\n  v6 = ((__int64 (__fastcall *)(cocos2d::CCNode *))this->m_pTarget->getGrid)(this->m_pTarget);\n  cocos2d::cc_timeval::operator=(v9, (_DWORD *)(v6 + 80));\n  v7 = (float)(int)(float)(v9[0] * *(float *)a3);\n  v8 = (float)(int)(float)(v9[1] * *((float *)a3 + 1));\n  *(float *)&v10 = *(float *)&v10 + v7;\n  *((float *)&v10 + 3) = *((float *)&v10 + 3) + v7;\n  *((float *)&v10 + 1) = *((float *)&v10 + 1) + v8;\n  v12 = v12 + v7;\n  v11 = v11 + v8;\n  v14 = v14 + v7;\n  v13 = v13 + v8;\n  v15 = v15 + v8;\n  cocos2d::CCTiledGrid3DAction::setTile(this, a2, (const struct cocos2d::_ccQuad3 *)&v10);\n}", "assembly": "; \n; cocos2d::CCShuffleTiles::placeTile from 0x18003b2b0 to 0x18003b3c8 (280 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0ef4\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    rbx                                                            ; +0x0, 0x18003b2b0\npush    rsi                                                            ; +0x2, 0x18003b2b2\npush    rdi                                                            ; +0x3, 0x18003b2b3\nsub     rsp, 60h                                                       ; +0x4, 0x18003b2b4\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x18003b2b8\nxor     rax, rsp                                                       ; +0xf, 0x18003b2bf\nmov     [rsp+78h+var_20], rax                                          ; +0x12, 0x18003b2c2\nmov     rbx, r8                                                        ; +0x17, 0x18003b2c7\nmov     rsi, rdx                                                       ; +0x1a, 0x18003b2ca\nmov     r8, rdx                                                        ; +0x1d, 0x18003b2cd\nmov     rdi, rcx                                                       ; +0x20, 0x18003b2d0\nlea     rdx, [rsp+78h+var_50]                                          ; +0x23, 0x18003b2d3\ncall    ?originalTile@CCTiledGrid3DAction@cocos2d@@QEAA?AU_ccQuad3@2@AEBVCCPoint@2@@Z; cocos2d::CCTiledGrid3DAction::originalTile(cocos2d::CCPoint const &) ; +0x28, 0x18003b2d8\nmov     rcx, [rdi+40h]                                                 ; +0x2d, 0x18003b2dd\nmov     rax, [rcx]                                                     ; +0x31, 0x18003b2e1\ncall    qword ptr [rax+248h]                                           ; +0x34, 0x18003b2e4\nlea     rcx, [rsp+78h+var_58]                                          ; +0x3a, 0x18003b2ea\nlea     rdx, [rax+50h]                                                 ; +0x3f, 0x18003b2ef\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x43, 0x18003b2f3\nmovss   xmm1, [rsp+78h+var_50]                                         ; +0x48, 0x18003b2f8\nlea     r8, [rsp+78h+var_50]; struct cocos2d::_ccQuad3 *               ; +0x4e, 0x18003b2fe\nmovss   xmm0, [rsp+78h+var_58]                                         ; +0x53, 0x18003b303\nmov     rdx, rsi; struct cocos2d::CCPoint *                            ; +0x59, 0x18003b309\nmulss   xmm0, dword ptr [rbx]                                          ; +0x5c, 0x18003b30c\nmov     rcx, rdi; this                                                 ; +0x60, 0x18003b310\ncvttss2si eax, xmm0                                                    ; +0x63, 0x18003b313\nmovss   xmm0, [rsp+78h+var_54]                                         ; +0x67, 0x18003b317\nmulss   xmm0, dword ptr [rbx+4]                                        ; +0x6d, 0x18003b31d\nmovd    xmm3, eax                                                      ; +0x72, 0x18003b322\ncvttss2si eax, xmm0                                                    ; +0x76, 0x18003b326\nmovss   xmm0, [rsp+78h+var_44]                                         ; +0x7a, 0x18003b32a\ncvtdq2ps xmm3, xmm3                                                    ; +0x80, 0x18003b330\nmovd    xmm2, eax                                                      ; +0x83, 0x18003b333\naddss   xmm1, xmm3                                                     ; +0x87, 0x18003b337\naddss   xmm0, xmm3                                                     ; +0x8b, 0x18003b33b\ncvtdq2ps xmm2, xmm2                                                    ; +0x8f, 0x18003b33f\nmovss   [rsp+78h+var_50], xmm1                                         ; +0x92, 0x18003b342\nmovss   xmm1, [rsp+78h+var_4C]                                         ; +0x98, 0x18003b348\naddss   xmm1, xmm2                                                     ; +0x9e, 0x18003b34e\nmovss   [rsp+78h+var_44], xmm0                                         ; +0xa2, 0x18003b352\nmovss   xmm0, [rsp+78h+var_38]                                         ; +0xa8, 0x18003b358\naddss   xmm0, xmm3                                                     ; +0xae, 0x18003b35e\nmovss   [rsp+78h+var_4C], xmm1                                         ; +0xb2, 0x18003b362\nmovss   xmm1, [rsp+78h+var_40]                                         ; +0xb8, 0x18003b368\naddss   xmm1, xmm2                                                     ; +0xbe, 0x18003b36e\nmovss   [rsp+78h+var_38], xmm0                                         ; +0xc2, 0x18003b372\nmovss   xmm0, [rsp+78h+var_2C]                                         ; +0xc8, 0x18003b378\naddss   xmm0, xmm3                                                     ; +0xce, 0x18003b37e\nmovss   [rsp+78h+var_40], xmm1                                         ; +0xd2, 0x18003b382\nmovss   xmm1, [rsp+78h+var_34]                                         ; +0xd8, 0x18003b388\naddss   xmm1, xmm2                                                     ; +0xde, 0x18003b38e\nmovss   [rsp+78h+var_2C], xmm0                                         ; +0xe2, 0x18003b392\nmovss   [rsp+78h+var_34], xmm1                                         ; +0xe8, 0x18003b398\nmovss   xmm1, [rsp+78h+var_28]                                         ; +0xee, 0x18003b39e\naddss   xmm1, xmm2                                                     ; +0xf4, 0x18003b3a4\nmovss   [rsp+78h+var_28], xmm1                                         ; +0xf8, 0x18003b3a8\ncall    ?setTile@CCTiledGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccQuad3@2@@Z; cocos2d::CCTiledGrid3DAction::setTile(cocos2d::CCPoint const &,cocos2d::_ccQuad3 const &) ; +0xfe, 0x18003b3ae\nmov     rcx, [rsp+78h+var_20]                                          ; +0x103, 0x18003b3b3\nxor     rcx, rsp; StackCookie                                          ; +0x108, 0x18003b3b8\ncall    __security_check_cookie                                        ; +0x10b, 0x18003b3bb\nadd     rsp, 60h                                                       ; +0x110, 0x18003b3c0\npop     rdi                                                            ; +0x114, 0x18003b3c4\npop     rsi                                                            ; +0x115, 0x18003b3c5\npop     rbx                                                            ; +0x116, 0x18003b3c6\nretn                                                                   ; +0x117, 0x18003b3c7", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0ef4"], "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"}