{"type": "func", "start": 6442597600, "end": 6442597726, "name": "cocos2d::CCGrid3D::reuse", "pseudocode": "// \n// cocos2d::CCGrid3D::reuse from 0x180023ce0 to 0x180023d5e (126 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ed2e0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9148\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:21:29 +0000\n// \n\nvoid __fastcall cocos2d::CCGrid3D::reuse(cocos2d::CCGrid3D *this)\n{\n  unsigned __int64 v2; // rax\n  float v3; // xmm2_4\n\n  if ( *((int *)this + 15) > 0 )\n  {\n    v2 = 0;\n    v3 = (float)((float)(*((float *)this + 17) + 1.0) * (float)(*((float *)this + 16) + 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    --*((_DWORD *)this + 15);\n  }\n}", "assembly": "; \n; cocos2d::CCGrid3D::reuse from 0x180023ce0 to 0x180023d5e (126 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ed2e0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9148\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:21:29 +0000\n; \npush    rbx                                                            ; +0x0, 0x180023ce0\nsub     rsp, 20h                                                       ; +0x2, 0x180023ce2\ncmp     dword ptr [rcx+3Ch], 0                                         ; +0x6, 0x180023ce6\nmov     rbx, rcx                                                       ; +0xa, 0x180023cea\njle     short loc_180023D58                                            ; +0xd, 0x180023ced\nmovss   xmm2, dword ptr [rcx+44h]                                      ; +0xf, 0x180023cef\nxor     eax, eax                                                       ; +0x14, 0x180023cf4\naddss   xmm2, cs:flt_1800EC208                                         ; +0x16, 0x180023cf6\nmovss   xmm1, dword ptr [rcx+40h]                                      ; +0x1e, 0x180023cfe\naddss   xmm1, cs:flt_1800EC208                                         ; +0x23, 0x180023d03\nmovss   xmm0, cs:dword_1800ED37C                                       ; +0x2b, 0x180023d0b\nmulss   xmm2, xmm1                                                     ; +0x33, 0x180023d13\nmulss   xmm2, cs:dword_1800ED378                                       ; +0x37, 0x180023d17\ncomiss  xmm2, xmm0                                                     ; +0x3f, 0x180023d1f\njb      short loc_180023D3A                                            ; +0x42, 0x180023d22\nsubss   xmm2, xmm0                                                     ; +0x44, 0x180023d24\ncomiss  xmm2, xmm0                                                     ; +0x48, 0x180023d28\njnb     short loc_180023D3A                                            ; +0x4b, 0x180023d2b\nmov     rcx, 8000000000000000h                                         ; +0x4d, 0x180023d2d\nmov     rax, rcx                                                       ; +0x57, 0x180023d37\nmov     rdx, [rbx+80h]; Src                                            ; +0x5a, 0x180023d3a\nmov     rcx, [rbx+88h]; void *                                         ; +0x61, 0x180023d41\ncvttss2si r8, xmm2                                                     ; +0x68, 0x180023d48\nadd     r8, rax; Size                                                  ; +0x6d, 0x180023d4d\ncall    memcpy                                                         ; +0x70, 0x180023d50\ndec     dword ptr [rbx+3Ch]                                            ; +0x75, 0x180023d55\nadd     rsp, 20h                                                       ; +0x78, 0x180023d58\npop     rbx                                                            ; +0x7c, 0x180023d5c\nretn                                                                   ; +0x7d, 0x180023d5d", "xrefs": ["<???> @ 0x1800ed2e0", "<???> @ 0x18014cf68", "<???> @ 0x1801b9148"], "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"}