{"type": "func", "start": 6442673056, "end": 6442673332, "name": "cocos2d::CCRotateTo::startWithTarget", "pseudocode": "// \n// cocos2d::CCRotateTo::startWithTarget from 0x1800363a0 to 0x1800364b4 (276 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e95a8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b08d0\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\nvoid __fastcall cocos2d::CCRotateTo::startWithTarget(cocos2d::CCRotateTo *this, struct cocos2d::CCNode *a2)\n{\n  float v4; // xmm0_4\n  float v5; // xmm1_4\n  float v6; // xmm0_4\n  float v7; // xmm0_4\n  float v8; // xmm0_4\n  float v9; // xmm1_4\n  float v10; // xmm0_4\n  float v11; // xmm0_4\n\n  cocos2d::CCAction::startWithTarget(this, a2);\n  this->m_elapsed = 0.0;\n  this->m_bFirstTick = 1;\n  v4 = ((float (__fastcall *)(struct cocos2d::CCNode *))a2->getRotationX)(a2);\n  if ( v4 <= 0.0 )\n    v5 = -360.0;\n  else\n    v5 = 360.0;\n  v6 = fmodf(v4, v5);\n  *((float *)this + 25) = v6;\n  v7 = *((float *)this + 24) - v6;\n  *((float *)this + 26) = v7;\n  if ( v7 > 180.0 )\n  {\n    v7 = v7 - 360.0;\n    *((float *)this + 26) = v7;\n  }\n  if ( v7 < -180.0 )\n    *((float *)this + 26) = v7 + 360.0;\n  v8 = ((float (__fastcall *)(cocos2d::CCNode *))this->m_pTarget->getRotationY)(this->m_pTarget);\n  if ( v8 <= 0.0 )\n    v9 = -360.0;\n  else\n    v9 = 360.0;\n  v10 = fmodf(v8, v9);\n  *((float *)this + 28) = v10;\n  v11 = *((float *)this + 27) - v10;\n  *((float *)this + 29) = v11;\n  if ( v11 > 180.0 )\n  {\n    v11 = v11 - 360.0;\n    *((float *)this + 29) = v11;\n  }\n  if ( v11 < -180.0 )\n    *((float *)this + 29) = v11 + 360.0;\n}", "assembly": "; \n; cocos2d::CCRotateTo::startWithTarget from 0x1800363a0 to 0x1800364b4 (276 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e95a8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b08d0\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, 0x1800363a0\npush    rdi                                                            ; +0x5, 0x1800363a5\nsub     rsp, 50h                                                       ; +0x6, 0x1800363a6\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xa, 0x1800363aa\nmov     rbx, rdx                                                       ; +0xf, 0x1800363af\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x12, 0x1800363b2\nmov     rdi, rcx                                                       ; +0x17, 0x1800363b7\nmovaps  [rsp+58h+var_38], xmm10                                        ; +0x1a, 0x1800363ba\ncall    ?startWithTarget@CCAction@cocos2d@@UEAAXPEAVCCNode@2@@Z; cocos2d::CCAction::startWithTarget(cocos2d::CCNode *) ; +0x20, 0x1800363c0\nmov     dword ptr [rdi+58h], 0                                         ; +0x25, 0x1800363c5\nmov     rcx, rbx                                                       ; +0x2c, 0x1800363cc\nmov     byte ptr [rdi+5Ch], 1                                          ; +0x2f, 0x1800363cf\nmov     rax, [rbx]                                                     ; +0x33, 0x1800363d3\ncall    qword ptr [rax+168h]                                           ; +0x36, 0x1800363d6\nmovss   xmm6, cs:dword_1800EA034                                       ; +0x3c, 0x1800363dc\nxorps   xmm10, xmm10                                                   ; +0x44, 0x1800363e4\ncomiss  xmm0, xmm10                                                    ; +0x48, 0x1800363e8\njbe     short loc_1800363F3                                            ; +0x4c, 0x1800363ec\nmovaps  xmm1, xmm6                                                     ; +0x4e, 0x1800363ee\njmp     short loc_1800363FB                                            ; +0x51, 0x1800363f1\nmovss   xmm1, cs:flt_1800EA03C; Y                                      ; +0x53, 0x1800363f3\ncall    fmodf                                                          ; +0x5b, 0x1800363fb\nmovss   dword ptr [rdi+64h], xmm0                                      ; +0x60, 0x180036400\nmovaps  xmm1, xmm0                                                     ; +0x65, 0x180036405\nmovss   xmm0, dword ptr [rdi+60h]                                      ; +0x68, 0x180036408\nsubss   xmm0, xmm1                                                     ; +0x6d, 0x18003640d\ncomiss  xmm0, cs:dword_1800EA030                                       ; +0x71, 0x180036411\nmovss   dword ptr [rdi+68h], xmm0                                      ; +0x78, 0x180036418\njbe     short loc_180036428                                            ; +0x7d, 0x18003641d\nsubss   xmm0, xmm6                                                     ; +0x7f, 0x18003641f\nmovss   dword ptr [rdi+68h], xmm0                                      ; +0x83, 0x180036423\nmovss   xmm7, cs:flt_1800EA038                                         ; +0x88, 0x180036428\ncomiss  xmm7, xmm0                                                     ; +0x90, 0x180036430\njbe     short loc_18003643E                                            ; +0x93, 0x180036433\naddss   xmm0, xmm6                                                     ; +0x95, 0x180036435\nmovss   dword ptr [rdi+68h], xmm0                                      ; +0x99, 0x180036439\nmov     rcx, [rdi+40h]                                                 ; +0x9e, 0x18003643e\nmov     rax, [rcx]                                                     ; +0xa2, 0x180036442\ncall    qword ptr [rax+178h]                                           ; +0xa5, 0x180036445\ncomiss  xmm0, xmm10                                                    ; +0xab, 0x18003644b\njbe     short loc_180036456                                            ; +0xaf, 0x18003644f\nmovaps  xmm1, xmm6                                                     ; +0xb1, 0x180036451\njmp     short loc_18003645E                                            ; +0xb4, 0x180036454\nmovss   xmm1, cs:flt_1800EA03C; Y                                      ; +0xb6, 0x180036456\ncall    fmodf                                                          ; +0xbe, 0x18003645e\nmovss   dword ptr [rdi+70h], xmm0                                      ; +0xc3, 0x180036463\nmovaps  xmm1, xmm0                                                     ; +0xc8, 0x180036468\nmovss   xmm0, dword ptr [rdi+6Ch]                                      ; +0xcb, 0x18003646b\nsubss   xmm0, xmm1                                                     ; +0xd0, 0x180036470\ncomiss  xmm0, cs:dword_1800EA030                                       ; +0xd4, 0x180036474\nmovss   dword ptr [rdi+74h], xmm0                                      ; +0xdb, 0x18003647b\njbe     short loc_18003648B                                            ; +0xe0, 0x180036480\nsubss   xmm0, xmm6                                                     ; +0xe2, 0x180036482\nmovss   dword ptr [rdi+74h], xmm0                                      ; +0xe6, 0x180036486\ncomiss  xmm7, xmm0                                                     ; +0xeb, 0x18003648b\njbe     short loc_180036499                                            ; +0xee, 0x18003648e\naddss   xmm0, xmm6                                                     ; +0xf0, 0x180036490\nmovss   dword ptr [rdi+74h], xmm0                                      ; +0xf4, 0x180036494\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xf9, 0x180036499\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xfe, 0x18003649e\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x103, 0x1800364a3\nmovaps  xmm10, [rsp+58h+var_38]                                        ; +0x108, 0x1800364a8\nadd     rsp, 50h                                                       ; +0x10e, 0x1800364ae\npop     rdi                                                            ; +0x112, 0x1800364b2\nretn                                                                   ; +0x113, 0x1800364b3", "xrefs": ["<???> @ 0x1800e95a8", "<???> @ 0x1801438a8", "<???> @ 0x1801b08d0"], "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"}