{"type": "func", "start": 6442503584, "end": 6442503735, "name": "cocos2d::CCPoint::rotateByAngle", "pseudocode": "// \n// cocos2d::CCPoint::rotateByAngle from 0x18000cda0 to 0x18000ce37 (151 bytes)\n// \n// 3 xrefs:\n// > cocos2d::ccpRotateByAngle @ 0x1800978d2\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7ec4\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:20 +0000\n// \n\nfloat *__fastcall cocos2d::CCPoint::rotateByAngle(float *a1, float *a2, float *a3, float a4)\n{\n  float v7; // xmm7_4\n  float v8; // xmm0_4\n  float v10; // xmm6_4\n  float v11; // xmm1_4\n  float v12; // xmm5_4\n\n  v7 = cosf(a4);\n  v8 = sinf(a4);\n  v10 = *a1 - *a3;\n  v11 = a1[1] - a3[1];\n  v12 = (float)((float)(v11 * v7) + (float)(v10 * v8)) + a3[1];\n  *a2 = (float)((float)(v10 * v7) - (float)(v11 * v8)) + *a3;\n  a2[1] = v12;\n  return a2;\n}", "assembly": "; \n; cocos2d::CCPoint::rotateByAngle from 0x18000cda0 to 0x18000ce37 (151 bytes)\n; \n; 3 xrefs:\n; > cocos2d::ccpRotateByAngle @ 0x1800978d2\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7ec4\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:20 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000cda0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000cda5\npush    rdi                                                            ; +0xa, 0x18000cdaa\nsub     rsp, 40h                                                       ; +0xb, 0x18000cdab\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xf, 0x18000cdaf\nmovaps  xmm0, xmm3; X                                                  ; +0x14, 0x18000cdb4\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x17, 0x18000cdb7\nmovaps  xmm6, xmm3                                                     ; +0x1c, 0x18000cdbc\nmov     rdi, r8                                                        ; +0x1f, 0x18000cdbf\nmov     rsi, rdx                                                       ; +0x22, 0x18000cdc2\nmov     rbx, rcx                                                       ; +0x25, 0x18000cdc5\ncall    cosf                                                           ; +0x28, 0x18000cdc8\nmovaps  xmm7, xmm0                                                     ; +0x2d, 0x18000cdcd\nmovaps  xmm0, xmm6; X                                                  ; +0x30, 0x18000cdd0\ncall    sinf                                                           ; +0x33, 0x18000cdd3\nmovss   xmm6, dword ptr [rbx]                                          ; +0x38, 0x18000cdd8\nmov     rax, rsi                                                       ; +0x3c, 0x18000cddc\nmovss   xmm5, dword ptr [rbx+4]                                        ; +0x3f, 0x18000cddf\nsubss   xmm5, dword ptr [rdi+4]                                        ; +0x44, 0x18000cde4\nsubss   xmm6, dword ptr [rdi]                                          ; +0x49, 0x18000cde9\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x4d, 0x18000cded\nmovaps  xmm1, xmm5                                                     ; +0x52, 0x18000cdf2\nmulss   xmm5, xmm7                                                     ; +0x55, 0x18000cdf5\nmovaps  xmm2, xmm6                                                     ; +0x59, 0x18000cdf9\nmulss   xmm1, xmm0                                                     ; +0x5c, 0x18000cdfc\nmulss   xmm2, xmm7                                                     ; +0x60, 0x18000ce00\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x64, 0x18000ce04\nmulss   xmm6, xmm0                                                     ; +0x69, 0x18000ce09\nsubss   xmm2, xmm1                                                     ; +0x6d, 0x18000ce0d\naddss   xmm5, xmm6                                                     ; +0x71, 0x18000ce11\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x75, 0x18000ce15\naddss   xmm2, dword ptr [rdi]                                          ; +0x7a, 0x18000ce1a\naddss   xmm5, dword ptr [rdi+4]                                        ; +0x7e, 0x18000ce1e\nmovss   dword ptr [rsi], xmm2                                          ; +0x83, 0x18000ce23\nmovss   dword ptr [rsi+4], xmm5                                        ; +0x87, 0x18000ce27\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x8c, 0x18000ce2c\nadd     rsp, 40h                                                       ; +0x91, 0x18000ce31\npop     rdi                                                            ; +0x95, 0x18000ce35\nretn                                                                   ; +0x96, 0x18000ce36", "xrefs": ["cocos2d::ccpRotateByAngle @ 0x1800978d2", "<???> @ 0x18014cf68", "<???> @ 0x1801b7ec4"], "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"}