{"type": "func", "start": 6442692720, "end": 6442692897, "name": "cocos2d::CCShuffleTiles::getDelta", "pseudocode": "// \n// cocos2d::CCShuffleTiles::getDelta from 0x18003b070 to 0x18003b121 (177 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0eac\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\nstruct cocos2d::CCSize *__fastcall cocos2d::CCShuffleTiles::getDelta(\n        cocos2d::CCShuffleTiles *this,\n        struct cocos2d::CCSize *a2,\n        float *a3)\n{\n  float v6; // xmm3_4\n  unsigned int v7; // r8d\n  __int64 v8; // r9\n  __int64 v9; // r10\n  cocos2d::CCSize v11; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCSize::CCSize(&v11);\n  v6 = *a3;\n  v7 = (int)*((float *)this + 25);\n  v8 = *((_QWORD *)this + 14);\n  v9 = (unsigned int)(int)(float)((float)(*a3 * *((float *)this + 25)) + a3[1]);\n  v11.width = (float)(int)(*(_DWORD *)(v8 + 4 * v9) / v7);\n  v11.height = (float)(int)(*(_DWORD *)(v8 + 4 * v9) % v7);\n  kmVec2Fill((float *)a2, (float)(int)(float)(v11.width - v6), (float)(int)(float)(v11.height - a3[1]));\n  return a2;\n}", "assembly": "; \n; cocos2d::CCShuffleTiles::getDelta from 0x18003b070 to 0x18003b121 (177 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0eac\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, 0x18003b070\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003b075\npush    rdi                                                            ; +0xa, 0x18003b07a\nsub     rsp, 20h                                                       ; +0xb, 0x18003b07b\nmov     rdi, rcx                                                       ; +0xf, 0x18003b07f\nmov     rbx, r8                                                        ; +0x12, 0x18003b082\nlea     rcx, [rsp+28h+arg_0]; this                                     ; +0x15, 0x18003b085\nmov     rsi, rdx                                                       ; +0x1a, 0x18003b08a\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x1d, 0x18003b08d\nmovss   xmm3, dword ptr [rbx]                                          ; +0x22, 0x18003b092\nxor     edx, edx                                                       ; +0x26, 0x18003b096\ncvttss2si r8d, dword ptr [rdi+64h]                                     ; +0x28, 0x18003b098\nmov     r9, [rdi+70h]                                                  ; +0x2e, 0x18003b09e\nmovaps  xmm0, xmm3                                                     ; +0x32, 0x18003b0a2\nxorps   xmm1, xmm1                                                     ; +0x35, 0x18003b0a5\nmulss   xmm0, dword ptr [rdi+64h]                                      ; +0x38, 0x18003b0a8\naddss   xmm0, dword ptr [rbx+4]                                        ; +0x3d, 0x18003b0ad\ncvttss2si r10, xmm0                                                    ; +0x42, 0x18003b0b2\nxorps   xmm0, xmm0                                                     ; +0x47, 0x18003b0b7\nmov     r10d, r10d                                                     ; +0x4a, 0x18003b0ba\nmov     eax, [r9+r10*4]                                                ; +0x4d, 0x18003b0bd\ndiv     r8d                                                            ; +0x51, 0x18003b0c1\nxor     edx, edx                                                       ; +0x54, 0x18003b0c4\nmov     ecx, eax                                                       ; +0x56, 0x18003b0c6\ncvtsi2ss xmm1, rcx                                                     ; +0x58, 0x18003b0c8\nmovss   [rsp+28h+arg_0], xmm1                                          ; +0x5d, 0x18003b0cd\nsubss   xmm1, xmm3                                                     ; +0x63, 0x18003b0d3\nmov     eax, [r9+r10*4]                                                ; +0x67, 0x18003b0d7\ndiv     r8d                                                            ; +0x6b, 0x18003b0db\nmov     ecx, edx                                                       ; +0x6e, 0x18003b0de\ncvtsi2ss xmm0, rcx                                                     ; +0x70, 0x18003b0e0\nmov     rcx, rsi                                                       ; +0x75, 0x18003b0e5\nmovss   [rsp+28h+arg_4], xmm0                                          ; +0x78, 0x18003b0e8\nsubss   xmm0, dword ptr [rbx+4]                                        ; +0x7e, 0x18003b0ee\ncvttss2si eax, xmm0                                                    ; +0x83, 0x18003b0f3\nmovd    xmm2, eax                                                      ; +0x87, 0x18003b0f7\ncvttss2si eax, xmm1                                                    ; +0x8b, 0x18003b0fb\ncvtdq2ps xmm2, xmm2                                                    ; +0x8f, 0x18003b0ff\nmovd    xmm1, eax                                                      ; +0x92, 0x18003b102\ncvtdq2ps xmm1, xmm1                                                    ; +0x96, 0x18003b106\ncall    kmVec2Fill                                                     ; +0x99, 0x18003b109\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9e, 0x18003b10e\nmov     rax, rsi                                                       ; +0xa3, 0x18003b113\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa6, 0x18003b116\nadd     rsp, 20h                                                       ; +0xab, 0x18003b11b\npop     rdi                                                            ; +0xaf, 0x18003b11f\nretn                                                                   ; +0xb0, 0x18003b120", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b0eac"], "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"}