{"type": "func", "start": 6442476096, "end": 6442476278, "name": "cocos2d::CCAffineTransformRotate", "pseudocode": "// \n// cocos2d::CCAffineTransformRotate from 0x180006240 to 0x1800062f6 (182 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad8ac\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\ncocos2d *__fastcall cocos2d::CCAffineTransformRotate(\n        cocos2d *this,\n        struct cocos2d::CCAffineTransform *retstr,\n        const struct cocos2d::CCAffineTransform *a3,\n        float a4)\n{\n  float v4; // xmm2_4\n  float v7; // xmm7_4\n  float v8; // xmm0_4\n  float c; // xmm6_4\n  float a; // xmm5_4\n  float b; // xmm3_4\n  float d; // xmm4_4\n  float v13; // xmm2_4\n\n  v7 = sinf(v4);\n  v8 = cosf(v4);\n  c = retstr->c;\n  a = retstr->a;\n  b = retstr->b;\n  d = retstr->d;\n  v13 = retstr->a * v8;\n  *((_DWORD *)this + 4) = LODWORD(retstr->tx);\n  *((_DWORD *)this + 5) = LODWORD(retstr->ty);\n  *(float *)this = v13 + (float)(c * v7);\n  *((float *)this + 2) = (float)(c * v8) - (float)(a * v7);\n  *((float *)this + 1) = (float)(d * v7) + (float)(b * v8);\n  *((float *)this + 3) = (float)(d * v8) - (float)(b * v7);\n  return this;\n}", "assembly": "; \n; cocos2d::CCAffineTransformRotate from 0x180006240 to 0x1800062f6 (182 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad8ac\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_0], rbx                                               ; +0x0, 0x180006240\npush    rdi                                                            ; +0x5, 0x180006245\nsub     rsp, 40h                                                       ; +0x6, 0x180006246\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xa, 0x18000624a\nmovaps  xmm0, xmm2; X                                                  ; +0xf, 0x18000624f\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x12, 0x180006252\nmovaps  xmm6, xmm2                                                     ; +0x17, 0x180006257\nmov     rbx, rdx                                                       ; +0x1a, 0x18000625a\nmov     rdi, rcx                                                       ; +0x1d, 0x18000625d\ncall    sinf                                                           ; +0x20, 0x180006260\nmovaps  xmm7, xmm0                                                     ; +0x25, 0x180006265\nmovaps  xmm0, xmm6; X                                                  ; +0x28, 0x180006268\ncall    cosf                                                           ; +0x2b, 0x18000626b\nmovss   xmm6, dword ptr [rbx+8]                                        ; +0x30, 0x180006270\nmov     eax, [rbx+10h]                                                 ; +0x35, 0x180006275\nmovaps  xmm1, xmm6                                                     ; +0x38, 0x180006278\nmovss   xmm5, dword ptr [rbx]                                          ; +0x3b, 0x18000627b\nmovss   xmm3, dword ptr [rbx+4]                                        ; +0x3f, 0x18000627f\nmovaps  xmm2, xmm5                                                     ; +0x44, 0x180006284\nmovss   xmm4, dword ptr [rbx+0Ch]                                      ; +0x47, 0x180006287\nmulss   xmm2, xmm0                                                     ; +0x4c, 0x18000628c\nmov     [rdi+10h], eax                                                 ; +0x50, 0x180006290\nmov     eax, [rbx+14h]                                                 ; +0x53, 0x180006293\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x56, 0x180006296\nmulss   xmm1, xmm7                                                     ; +0x5b, 0x18000629b\nmov     [rdi+14h], eax                                                 ; +0x5f, 0x18000629f\nmov     rax, rdi                                                       ; +0x62, 0x1800062a2\nmulss   xmm6, xmm0                                                     ; +0x65, 0x1800062a5\naddss   xmm2, xmm1                                                     ; +0x69, 0x1800062a9\nmulss   xmm5, xmm7                                                     ; +0x6d, 0x1800062ad\nmovaps  xmm1, xmm3                                                     ; +0x71, 0x1800062b1\nmulss   xmm3, xmm7                                                     ; +0x74, 0x1800062b4\nsubss   xmm6, xmm5                                                     ; +0x78, 0x1800062b8\nmulss   xmm1, xmm0                                                     ; +0x7c, 0x1800062bc\nmovss   dword ptr [rdi], xmm2                                          ; +0x80, 0x1800062c0\nmovaps  xmm2, xmm4                                                     ; +0x84, 0x1800062c4\nmulss   xmm2, xmm7                                                     ; +0x87, 0x1800062c7\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x8b, 0x1800062cb\nmulss   xmm4, xmm0                                                     ; +0x90, 0x1800062d0\naddss   xmm2, xmm1                                                     ; +0x94, 0x1800062d4\nmovss   dword ptr [rdi+8], xmm6                                        ; +0x98, 0x1800062d8\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x9d, 0x1800062dd\nsubss   xmm4, xmm3                                                     ; +0xa2, 0x1800062e2\nmovss   dword ptr [rdi+4], xmm2                                        ; +0xa6, 0x1800062e6\nmovss   dword ptr [rdi+0Ch], xmm4                                      ; +0xab, 0x1800062eb\nadd     rsp, 40h                                                       ; +0xb0, 0x1800062f0\npop     rdi                                                            ; +0xb4, 0x1800062f4\nretn                                                                   ; +0xb5, 0x1800062f5", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ad8ac"], "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"}