{"type": "func", "start": 5370442512, "end": 5370442918, "name": "EnhancedGameObject::updateRotateAction", "pseudocode": "// \n// EnhancedGameObject::updateRotateAction from 0x1401a7310 to 0x1401a74a6 (406 bytes)\n// \n// 6 xrefs:\n// > EditorPauseLayer::togglePreviewAnim @ 0x1400dd2be\n// > LevelEditorLayer::updateVisibility @ 0x1402d92dd\n// > PlayLayer::updateVisibility @ 0x1403afdc8\n// > <???> @ 0x1406797b4\n// > <???> @ 0x1406797c4\n// > <???> @ 0x1406cc0e4\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 EnhancedGameObject::updateRotateAction(EnhancedGameObject *a1, float a2)\n{\n  cocos2d::CCArray *v3; // rax\n  cocos2d::ccArray *data; // rsi\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rsi\n  cocos2d::CCObject **i; // rbp\n  cocos2d::CCObject *v8; // rdi\n  cocos2d::CCObject_vtbl *v9; // rbx\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  __int64 v11; // rax\n  unsigned int *v12; // rsi\n  __int64 v13; // rax\n  __int64 **v14; // rsi\n  __int64 **j; // rbp\n  __int64 *v16; // rdi\n  __int64 v17; // rbx\n  cocos2d::CCSprite *m_glowSprite; // rcx\n  __int64 v19; // rax\n  unsigned int *v20; // rsi\n  __int64 v21; // rax\n  __int64 **v22; // rsi\n  __int64 **k; // rbp\n  __int64 *v24; // rdi\n  __int64 v25; // rbx\n\n  if ( !a1->m_disableRotation )\n  {\n    a1->m_rotationAnimationSpeed = a2 + a1->m_rotationAnimationSpeed;\n    if ( a1 )\n    {\n      v3 = a1->getChildren(a1);\n      if ( v3 )\n      {\n        data = v3->data;\n        num = data->num;\n        if ( (_DWORD)num )\n        {\n          arr = data->arr;\n          for ( i = &arr[num - 1]; arr <= i; ++arr )\n          {\n            v8 = *arr;\n            if ( !*arr )\n              break;\n            v9 = v8->__vftable;\n            v8->getTag(*arr);\n            v9[4].canEncode(v8);\n          }\n        }\n      }\n    }\n    m_colorSprite = a1->m_colorSprite;\n    if ( !a1->m_colorSpriteLocked )\n    {\n      if ( m_colorSprite )\n      {\n        v11 = (__int64)m_colorSprite->getChildren(m_colorSprite);\n        if ( v11 )\n        {\n          v12 = *(unsigned int **)(v11 + 56);\n          v13 = *v12;\n          if ( (_DWORD)v13 )\n          {\n            v14 = *((__int64 ***)v12 + 2);\n            for ( j = &v14[v13 - 1]; v14 <= j; ++v14 )\n            {\n              v16 = *v14;\n              if ( !*v14 )\n                break;\n              v17 = *v16;\n              (*(void (__fastcall **)(__int64 *))(*v16 + 56))(*v14);\n              (*(void (__fastcall **)(__int64 *))(v17 + 336))(v16);\n            }\n          }\n        }\n      }\n    }\n    m_glowSprite = a1->m_glowSprite;\n    if ( m_glowSprite )\n    {\n      v19 = (__int64)m_glowSprite->getChildren(m_glowSprite);\n      if ( v19 )\n      {\n        v20 = *(unsigned int **)(v19 + 56);\n        v21 = *v20;\n        if ( (_DWORD)v21 )\n        {\n          v22 = *((__int64 ***)v20 + 2);\n          for ( k = &v22[v21 - 1]; v22 <= k; ++v22 )\n          {\n            v24 = *v22;\n            if ( !*v22 )\n              break;\n            v25 = *v24;\n            (*(void (__fastcall **)(__int64 *))(*v24 + 56))(*v22);\n            (*(void (__fastcall **)(__int64 *))(v25 + 336))(v24);\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateRotateAction from 0x1401a7310 to 0x1401a74a6 (406 bytes)\n; \n; 6 xrefs:\n; > EditorPauseLayer::togglePreviewAnim @ 0x1400dd2be\n; > LevelEditorLayer::updateVisibility @ 0x1402d92dd\n; > PlayLayer::updateVisibility @ 0x1403afdc8\n; > <???> @ 0x1406797b4\n; > <???> @ 0x1406797c4\n; > <???> @ 0x1406cc0e4\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\npush    r14                                                            ; +0x0, 0x1401a7310\nsub     rsp, 30h                                                       ; +0x2, 0x1401a7312\ncmp     byte ptr [rcx+57Ch], 0                                         ; +0x6, 0x1401a7316\nmov     r14, rcx                                                       ; +0xd, 0x1401a731d\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x10, 0x1401a7320\nmovaps  xmm6, xmm1                                                     ; +0x15, 0x1401a7325\njnz     loc_1401A749A                                                  ; +0x18, 0x1401a7328\nmov     [rsp+38h+arg_0], rbx                                           ; +0x1e, 0x1401a732e\nmov     [rsp+38h+arg_8], rbp                                           ; +0x23, 0x1401a7333\nmov     [rsp+38h+arg_10], rsi                                          ; +0x28, 0x1401a7338\nmov     [rsp+38h+arg_18], rdi                                          ; +0x2d, 0x1401a733d\naddss   xmm6, dword ptr [rcx+58Ch]                                     ; +0x32, 0x1401a7342\nmovss   dword ptr [rcx+58Ch], xmm6                                     ; +0x3a, 0x1401a734a\nmulss   xmm6, dword ptr [rcx+588h]                                     ; +0x42, 0x1401a7352\ntest    rcx, rcx                                                       ; +0x4a, 0x1401a735a\njz      short loc_1401A73B6                                            ; +0x4d, 0x1401a735d\nmov     rax, [rcx]                                                     ; +0x4f, 0x1401a735f\ncall    qword ptr [rax+1D0h]                                           ; +0x52, 0x1401a7362\ntest    rax, rax                                                       ; +0x58, 0x1401a7368\njz      short loc_1401A73B6                                            ; +0x5b, 0x1401a736b\nmov     rsi, [rax+38h]                                                 ; +0x5d, 0x1401a736d\nmov     eax, [rsi]                                                     ; +0x61, 0x1401a7371\ntest    eax, eax                                                       ; +0x63, 0x1401a7373\njz      short loc_1401A73B6                                            ; +0x65, 0x1401a7375\nmov     rsi, [rsi+10h]                                                 ; +0x67, 0x1401a7377\nlea     rbp, [rax-1]                                                   ; +0x6b, 0x1401a737b\nlea     rbp, [rsi+rbp*8]                                               ; +0x6f, 0x1401a737f\ncmp     rsi, rbp                                                       ; +0x73, 0x1401a7383\nja      short loc_1401A73B6                                            ; +0x76, 0x1401a7386\nmov     rdi, [rsi]                                                     ; +0x78, 0x1401a7388\ntest    rdi, rdi                                                       ; +0x7b, 0x1401a738b\njz      short loc_1401A73B6                                            ; +0x7e, 0x1401a738e\nmov     rbx, [rdi]                                                     ; +0x80, 0x1401a7390\nmov     rcx, rdi                                                       ; +0x83, 0x1401a7393\ncall    qword ptr [rbx+38h]                                            ; +0x86, 0x1401a7396\nmov     rcx, rdi                                                       ; +0x89, 0x1401a7399\nmovd    xmm1, eax                                                      ; +0x8c, 0x1401a739c\ncvtdq2ps xmm1, xmm1                                                    ; +0x90, 0x1401a73a0\naddss   xmm1, xmm6                                                     ; +0x93, 0x1401a73a3\ncall    qword ptr [rbx+150h]                                           ; +0x97, 0x1401a73a7\nadd     rsi, 8                                                         ; +0x9d, 0x1401a73ad\ncmp     rsi, rbp                                                       ; +0xa1, 0x1401a73b1\njbe     short loc_1401A7388                                            ; +0xa4, 0x1401a73b4\ncmp     byte ptr [r14+36Ah], 0                                         ; +0xa6, 0x1401a73b6\nmov     rcx, [r14+380h]                                                ; +0xae, 0x1401a73be\njnz     short loc_1401A7423                                            ; +0xb5, 0x1401a73c5\ntest    rcx, rcx                                                       ; +0xb7, 0x1401a73c7\njz      short loc_1401A7423                                            ; +0xba, 0x1401a73ca\nmov     rax, [rcx]                                                     ; +0xbc, 0x1401a73cc\ncall    qword ptr [rax+1D0h]                                           ; +0xbf, 0x1401a73cf\ntest    rax, rax                                                       ; +0xc5, 0x1401a73d5\njz      short loc_1401A7423                                            ; +0xc8, 0x1401a73d8\nmov     rsi, [rax+38h]                                                 ; +0xca, 0x1401a73da\nmov     eax, [rsi]                                                     ; +0xce, 0x1401a73de\ntest    eax, eax                                                       ; +0xd0, 0x1401a73e0\njz      short loc_1401A7423                                            ; +0xd2, 0x1401a73e2\nmov     rsi, [rsi+10h]                                                 ; +0xd4, 0x1401a73e4\nlea     rbp, [rax-1]                                                   ; +0xd8, 0x1401a73e8\nlea     rbp, [rsi+rbp*8]                                               ; +0xdc, 0x1401a73ec\ncmp     rsi, rbp                                                       ; +0xe0, 0x1401a73f0\nja      short loc_1401A7423                                            ; +0xe3, 0x1401a73f3\nmov     rdi, [rsi]                                                     ; +0xe5, 0x1401a73f5\ntest    rdi, rdi                                                       ; +0xe8, 0x1401a73f8\njz      short loc_1401A7423                                            ; +0xeb, 0x1401a73fb\nmov     rbx, [rdi]                                                     ; +0xed, 0x1401a73fd\nmov     rcx, rdi                                                       ; +0xf0, 0x1401a7400\ncall    qword ptr [rbx+38h]                                            ; +0xf3, 0x1401a7403\nmov     rcx, rdi                                                       ; +0xf6, 0x1401a7406\nmovd    xmm1, eax                                                      ; +0xf9, 0x1401a7409\ncvtdq2ps xmm1, xmm1                                                    ; +0xfd, 0x1401a740d\naddss   xmm1, xmm6                                                     ; +0x100, 0x1401a7410\ncall    qword ptr [rbx+150h]                                           ; +0x104, 0x1401a7414\nadd     rsi, 8                                                         ; +0x10a, 0x1401a741a\ncmp     rsi, rbp                                                       ; +0x10e, 0x1401a741e\njbe     short loc_1401A73F5                                            ; +0x111, 0x1401a7421\nmov     rcx, [r14+2F0h]                                                ; +0x113, 0x1401a7423\ntest    rcx, rcx                                                       ; +0x11a, 0x1401a742a\njz      short loc_1401A7486                                            ; +0x11d, 0x1401a742d\nmov     rax, [rcx]                                                     ; +0x11f, 0x1401a742f\ncall    qword ptr [rax+1D0h]                                           ; +0x122, 0x1401a7432\ntest    rax, rax                                                       ; +0x128, 0x1401a7438\njz      short loc_1401A7486                                            ; +0x12b, 0x1401a743b\nmov     rsi, [rax+38h]                                                 ; +0x12d, 0x1401a743d\nmov     eax, [rsi]                                                     ; +0x131, 0x1401a7441\ntest    eax, eax                                                       ; +0x133, 0x1401a7443\njz      short loc_1401A7486                                            ; +0x135, 0x1401a7445\nmov     rsi, [rsi+10h]                                                 ; +0x137, 0x1401a7447\nlea     rbp, [rax-1]                                                   ; +0x13b, 0x1401a744b\nlea     rbp, [rsi+rbp*8]                                               ; +0x13f, 0x1401a744f\ncmp     rsi, rbp                                                       ; +0x143, 0x1401a7453\nja      short loc_1401A7486                                            ; +0x146, 0x1401a7456\nmov     rdi, [rsi]                                                     ; +0x148, 0x1401a7458\ntest    rdi, rdi                                                       ; +0x14b, 0x1401a745b\njz      short loc_1401A7486                                            ; +0x14e, 0x1401a745e\nmov     rbx, [rdi]                                                     ; +0x150, 0x1401a7460\nmov     rcx, rdi                                                       ; +0x153, 0x1401a7463\ncall    qword ptr [rbx+38h]                                            ; +0x156, 0x1401a7466\nmov     rcx, rdi                                                       ; +0x159, 0x1401a7469\nmovd    xmm1, eax                                                      ; +0x15c, 0x1401a746c\ncvtdq2ps xmm1, xmm1                                                    ; +0x160, 0x1401a7470\naddss   xmm1, xmm6                                                     ; +0x163, 0x1401a7473\ncall    qword ptr [rbx+150h]                                           ; +0x167, 0x1401a7477\nadd     rsi, 8                                                         ; +0x16d, 0x1401a747d\ncmp     rsi, rbp                                                       ; +0x171, 0x1401a7481\njbe     short loc_1401A7458                                            ; +0x174, 0x1401a7484\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x176, 0x1401a7486\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x17b, 0x1401a748b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x180, 0x1401a7490\nmov     rdi, [rsp+38h+arg_18]                                          ; +0x185, 0x1401a7495\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x18a, 0x1401a749a\nadd     rsp, 30h                                                       ; +0x18f, 0x1401a749f\npop     r14                                                            ; +0x193, 0x1401a74a3\nretn                                                                   ; +0x195, 0x1401a74a5", "xrefs": ["EditorPauseLayer::togglePreviewAnim @ 0x1400dd2be", "LevelEditorLayer::updateVisibility @ 0x1402d92dd", "PlayLayer::updateVisibility @ 0x1403afdc8", "<???> @ 0x1406797b4", "<???> @ 0x1406797c4", "<???> @ 0x1406cc0e4"], "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"}