{"type": "func", "start": 6442694592, "end": 6442694765, "name": "cocos2d::CCShuffleTiles::getDelta", "pseudocode": "// \n// cocos2d::CCShuffleTiles::getDelta from 0x18003b7c0 to 0x18003b86d (173 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bafd8\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:37 +0000\n// \n\nfloat *__fastcall cocos2d::CCShuffleTiles::getDelta(__int64 a1, float *a2, float *a3)\n{\n  float v6; // xmm0_4\n  __int64 v7; // r8\n  unsigned int v8; // r9d\n  float v9; // xmm1_4\n  float v11; // [rsp+30h] [rbp+8h] BYREF\n  float v12; // [rsp+34h] [rbp+Ch]\n\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v11);\n  v6 = *(float *)(a1 + 100);\n  v7 = *(_QWORD *)(a1 + 112);\n  v8 = (int)(float)((float)(v6 * *a3) + a3[1]);\n  v11 = (float)(int)(*(_DWORD *)(v7 + 4LL * v8) / (unsigned int)(int)v6);\n  v9 = v11 - *a3;\n  v12 = (float)(int)(*(_DWORD *)(v7 + 4LL * v8) % (unsigned int)(int)v6);\n  kmVec2Fill(a2, (float)(int)v9, (float)(int)(float)(v12 - a3[1]));\n  return a2;\n}", "assembly": "; \n; cocos2d::CCShuffleTiles::getDelta from 0x18003b7c0 to 0x18003b86d (173 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bafd8\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:37 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18003b7c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003b7c5\npush    rdi                                                            ; +0xa, 0x18003b7ca\nsub     rsp, 20h                                                       ; +0xb, 0x18003b7cb\nmov     rdi, rcx                                                       ; +0xf, 0x18003b7cf\nmov     rbx, r8                                                        ; +0x12, 0x18003b7d2\nlea     rcx, [rsp+28h+arg_0]; this                                     ; +0x15, 0x18003b7d5\nmov     rsi, rdx                                                       ; +0x1a, 0x18003b7da\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x1d, 0x18003b7dd\nmovss   xmm0, dword ptr [rdi+64h]                                      ; +0x22, 0x18003b7e2\nxor     edx, edx                                                       ; +0x27, 0x18003b7e7\nmov     r8, [rdi+70h]                                                  ; +0x29, 0x18003b7e9\nxorps   xmm1, xmm1                                                     ; +0x2d, 0x18003b7ed\ncvttss2si r10d, xmm0                                                   ; +0x30, 0x18003b7f0\nmulss   xmm0, dword ptr [rbx]                                          ; +0x35, 0x18003b7f5\naddss   xmm0, dword ptr [rbx+4]                                        ; +0x39, 0x18003b7f9\ncvttss2si r9, xmm0                                                     ; +0x3e, 0x18003b7fe\nxorps   xmm0, xmm0                                                     ; +0x43, 0x18003b803\nmov     r9d, r9d                                                       ; +0x46, 0x18003b806\nmov     eax, [r8+r9*4]                                                 ; +0x49, 0x18003b809\ndiv     r10d                                                           ; +0x4d, 0x18003b80d\nxor     edx, edx                                                       ; +0x50, 0x18003b810\nmov     ecx, eax                                                       ; +0x52, 0x18003b812\ncvtsi2ss xmm1, rcx                                                     ; +0x54, 0x18003b814\nmovss   [rsp+28h+arg_0], xmm1                                          ; +0x59, 0x18003b819\nmov     eax, [r8+r9*4]                                                 ; +0x5f, 0x18003b81f\nsubss   xmm1, dword ptr [rbx]                                          ; +0x63, 0x18003b823\ndiv     r10d                                                           ; +0x67, 0x18003b827\nmov     ecx, edx                                                       ; +0x6a, 0x18003b82a\ncvtsi2ss xmm0, rcx                                                     ; +0x6c, 0x18003b82c\nmov     rcx, rsi                                                       ; +0x71, 0x18003b831\nmovss   [rsp+28h+arg_4], xmm0                                          ; +0x74, 0x18003b834\nsubss   xmm0, dword ptr [rbx+4]                                        ; +0x7a, 0x18003b83a\ncvttss2si eax, xmm0                                                    ; +0x7f, 0x18003b83f\nmovd    xmm2, eax                                                      ; +0x83, 0x18003b843\ncvttss2si eax, xmm1                                                    ; +0x87, 0x18003b847\ncvtdq2ps xmm2, xmm2                                                    ; +0x8b, 0x18003b84b\nmovd    xmm1, eax                                                      ; +0x8e, 0x18003b84e\ncvtdq2ps xmm1, xmm1                                                    ; +0x92, 0x18003b852\ncall    kmVec2Fill                                                     ; +0x95, 0x18003b855\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9a, 0x18003b85a\nmov     rax, rsi                                                       ; +0x9f, 0x18003b85f\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa2, 0x18003b862\nadd     rsp, 20h                                                       ; +0xa7, 0x18003b867\npop     rdi                                                            ; +0xab, 0x18003b86b\nretn                                                                   ; +0xac, 0x18003b86c", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bafd8"], "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"}