{"type": "func", "start": 6442503552, "end": 6442503703, "name": "cocos2d::CCPoint::rotateByAngle", "pseudocode": "// \n// cocos2d::CCPoint::rotateByAngle from 0x18000cd80 to 0x18000ce17 (151 bytes)\n// \n// 3 xrefs:\n// > cocos2d::ccpRotateByAngle @ 0x180094172\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ade70\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\nconst struct cocos2d::CCPoint *__fastcall cocos2d::CCPoint::rotateByAngle(\n        cocos2d::CCPoint *this,\n        const struct cocos2d::CCPoint *a2,\n        float a3,\n        float a4)\n{\n  float *v4; // r8\n  float *v5; // rdi\n  float v8; // xmm7_4\n  float v9; // xmm0_4\n  float v11; // xmm6_4\n  float v12; // xmm1_4\n  float v13; // xmm5_4\n\n  v5 = v4;\n  v8 = cosf(a4);\n  v9 = sinf(a4);\n  v11 = this->x - *v5;\n  v12 = this->y - v5[1];\n  v13 = (float)((float)(v12 * v8) + (float)(v11 * v9)) + v5[1];\n  a2->x = (float)((float)(v11 * v8) - (float)(v12 * v9)) + *v5;\n  a2->y = v13;\n  return a2;\n}", "assembly": "; \n; cocos2d::CCPoint::rotateByAngle from 0x18000cd80 to 0x18000ce17 (151 bytes)\n; \n; 3 xrefs:\n; > cocos2d::ccpRotateByAngle @ 0x180094172\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ade70\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, 0x18000cd80\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000cd85\npush    rdi                                                            ; +0xa, 0x18000cd8a\nsub     rsp, 40h                                                       ; +0xb, 0x18000cd8b\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xf, 0x18000cd8f\nmovaps  xmm0, xmm3; X                                                  ; +0x14, 0x18000cd94\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x17, 0x18000cd97\nmovaps  xmm6, xmm3                                                     ; +0x1c, 0x18000cd9c\nmov     rdi, r8                                                        ; +0x1f, 0x18000cd9f\nmov     rsi, rdx                                                       ; +0x22, 0x18000cda2\nmov     rbx, rcx                                                       ; +0x25, 0x18000cda5\ncall    cosf                                                           ; +0x28, 0x18000cda8\nmovaps  xmm7, xmm0                                                     ; +0x2d, 0x18000cdad\nmovaps  xmm0, xmm6; X                                                  ; +0x30, 0x18000cdb0\ncall    sinf                                                           ; +0x33, 0x18000cdb3\nmovss   xmm6, dword ptr [rbx]                                          ; +0x38, 0x18000cdb8\nmov     rax, rsi                                                       ; +0x3c, 0x18000cdbc\nmovss   xmm5, dword ptr [rbx+4]                                        ; +0x3f, 0x18000cdbf\nsubss   xmm5, dword ptr [rdi+4]                                        ; +0x44, 0x18000cdc4\nsubss   xmm6, dword ptr [rdi]                                          ; +0x49, 0x18000cdc9\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x4d, 0x18000cdcd\nmovaps  xmm1, xmm5                                                     ; +0x52, 0x18000cdd2\nmulss   xmm5, xmm7                                                     ; +0x55, 0x18000cdd5\nmovaps  xmm2, xmm6                                                     ; +0x59, 0x18000cdd9\nmulss   xmm1, xmm0                                                     ; +0x5c, 0x18000cddc\nmulss   xmm2, xmm7                                                     ; +0x60, 0x18000cde0\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x64, 0x18000cde4\nmulss   xmm6, xmm0                                                     ; +0x69, 0x18000cde9\nsubss   xmm2, xmm1                                                     ; +0x6d, 0x18000cded\naddss   xmm5, xmm6                                                     ; +0x71, 0x18000cdf1\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x75, 0x18000cdf5\naddss   xmm2, dword ptr [rdi]                                          ; +0x7a, 0x18000cdfa\naddss   xmm5, dword ptr [rdi+4]                                        ; +0x7e, 0x18000cdfe\nmovss   dword ptr [rsi], xmm2                                          ; +0x83, 0x18000ce03\nmovss   dword ptr [rsi+4], xmm5                                        ; +0x87, 0x18000ce07\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x8c, 0x18000ce0c\nadd     rsp, 40h                                                       ; +0x91, 0x18000ce11\npop     rdi                                                            ; +0x95, 0x18000ce15\nretn                                                                   ; +0x96, 0x18000ce16", "xrefs": ["cocos2d::ccpRotateByAngle @ 0x180094172", "<???> @ 0x1801438a8", "<???> @ 0x1801ade70"], "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"}