{"type": "func", "start": 6442596240, "end": 6442596366, "name": "cocos2d::CCGrid3D::reuse", "pseudocode": "// \n// cocos2d::CCGrid3D::reuse from 0x180023790 to 0x18002380e (126 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e7280\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af064\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::CCGrid3D::reuse(cocos2d::CCGrid3D *this)\n{\n  unsigned __int64 v2; // rax\n  float v3; // xmm2_4\n\n  if ( this->m_nReuseGrid > 0 )\n  {\n    v2 = 0;\n    v3 = (float)((float)(this->m_sGridSize.height + 1.0) * (float)(this->m_sGridSize.width + 1.0)) * 12.0;\n    if ( v3 >= 9.223372e18 )\n    {\n      v3 = v3 - 9.223372e18;\n      if ( v3 < 9.223372e18 )\n        v2 = 0x8000000000000000uLL;\n    }\n    memcpy(*((void **)this + 17), *((const void **)this + 16), v2 + (unsigned int)(int)v3);\n    --this->m_nReuseGrid;\n  }\n}", "assembly": "; \n; cocos2d::CCGrid3D::reuse from 0x180023790 to 0x18002380e (126 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e7280\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af064\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, 0x180023790\nsub     rsp, 20h                                                       ; +0x2, 0x180023792\ncmp     dword ptr [rcx+3Ch], 0                                         ; +0x6, 0x180023796\nmov     rbx, rcx                                                       ; +0xa, 0x18002379a\njle     short loc_180023808                                            ; +0xd, 0x18002379d\nmovss   xmm2, dword ptr [rcx+44h]                                      ; +0xf, 0x18002379f\nxor     eax, eax                                                       ; +0x14, 0x1800237a4\naddss   xmm2, cs:flt_1800E61A8                                         ; +0x16, 0x1800237a6\nmovss   xmm1, dword ptr [rcx+40h]                                      ; +0x1e, 0x1800237ae\naddss   xmm1, cs:flt_1800E61A8                                         ; +0x23, 0x1800237b3\nmovss   xmm0, cs:dword_1800E731C                                       ; +0x2b, 0x1800237bb\nmulss   xmm2, xmm1                                                     ; +0x33, 0x1800237c3\nmulss   xmm2, cs:dword_1800E7318                                       ; +0x37, 0x1800237c7\ncomiss  xmm2, xmm0                                                     ; +0x3f, 0x1800237cf\njb      short loc_1800237EA                                            ; +0x42, 0x1800237d2\nsubss   xmm2, xmm0                                                     ; +0x44, 0x1800237d4\ncomiss  xmm2, xmm0                                                     ; +0x48, 0x1800237d8\njnb     short loc_1800237EA                                            ; +0x4b, 0x1800237db\nmov     rcx, 8000000000000000h                                         ; +0x4d, 0x1800237dd\nmov     rax, rcx                                                       ; +0x57, 0x1800237e7\nmov     rdx, [rbx+80h]; Src                                            ; +0x5a, 0x1800237ea\nmov     rcx, [rbx+88h]; void *                                         ; +0x61, 0x1800237f1\ncvttss2si r8, xmm2                                                     ; +0x68, 0x1800237f8\nadd     r8, rax; Size                                                  ; +0x6d, 0x1800237fd\ncall    memcpy                                                         ; +0x70, 0x180023800\ndec     dword ptr [rbx+3Ch]                                            ; +0x75, 0x180023805\nadd     rsp, 20h                                                       ; +0x78, 0x180023808\npop     rbx                                                            ; +0x7c, 0x18002380c\nretn                                                                   ; +0x7d, 0x18002380d", "xrefs": ["<???> @ 0x1800e7280", "<???> @ 0x1801438a8", "<???> @ 0x1801af064"], "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"}