{"type": "func", "start": 4296246352, "end": 4296246834, "name": "GJBaseGameLayer::triggerRotateCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerRotateCommand from 0x100138450 to 0x100138632 (482 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x1001b9b73\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 GJBaseGameLayer::triggerRotateCommand(GJBaseGameLayer *a1, EnhancedTriggerObject *a2)\n{\n  __m128 v3; // xmm0\n  int m_centerGroupID; // esi\n  __int64 *Object; // r15\n  __int64 *v6; // r12\n  PlayerObject *m_player1; // r13\n  GameObject *v8; // rax\n  GameObject *v9; // [rsp+0h] [rbp-40h]\n  GameObject *v10; // [rsp+8h] [rbp-38h]\n  float v11; // [rsp+10h] [rbp-30h]\n  GameObject *v12; // [rsp+10h] [rbp-30h]\n\n  v3.f32[0] = (float)((float)a2->m_times360 * 360.0) + a2->m_rotationDegrees;\n  if ( a2->m_isDynamicMode && a2->m_duration != 0.0 && (a2->m_useMoveTarget || a2->m_isDirectionFollowSnap360) )\n  {\n    GJBaseGameLayer::triggerDynamicRotateCommand(a1, a2);\n    return;\n  }\n  if ( a2->m_useMoveTarget || a2->m_isDirectionFollowSnap360 )\n  {\n    v11 = (float)((float)a2->m_times360 * 360.0) + a2->m_rotationDegrees;\n    m_centerGroupID = a2->m_centerGroupID;\n    if ( !m_centerGroupID )\n      m_centerGroupID = a2->m_targetGroupID;\n    Object = (__int64 *)GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);\n    v6 = (__int64 *)GJBaseGameLayer::tryGetObject(a1, a2->m_targetGroupID);\n    v3 = (__m128)LODWORD(v11);\n    if ( a2->m_targetPlayer1 )\n      goto LABEL_11;\n    if ( a2->m_targetPlayer2 )\n    {\n      if ( !a1->m_gameState.m_isDualMode )\n      {\nLABEL_11:\n        m_player1 = a1->m_player1;\n        goto LABEL_16;\n      }\n      m_player1 = a1->m_player2;\n    }\n    else\n    {\n      v3 = (__m128)LODWORD(v11);\n      m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, a2->m_rotationTargetID);\n    }\nLABEL_16:\n    if ( Object != nullptr && m_player1 != nullptr && v6 != nullptr )\n    {\n      v12 = GJBaseGameLayer::tryGetObject(a1, a2->m_minXID);\n      v9 = GJBaseGameLayer::tryGetObject(a1, a2->m_minYID);\n      v10 = GJBaseGameLayer::tryGetObject(a1, a2->m_maxXID);\n      v8 = GJBaseGameLayer::tryGetObject(a1, a2->m_maxYID);\n      v3.f32[0] = sub_1001381B0(\n                    (__int64)a2,\n                    Object,\n                    v6,\n                    (__int64 *)m_player1,\n                    (__int64)v12,\n                    (__int64)v9,\n                    v3,\n                    (__int64)v10,\n                    (__int64)v8);\n    }\n  }\n  GJEffectManager::createRotateCommand(\n    a1->m_effectManager,\n    v3.f32[0],\n    a2->m_duration,\n    a2->m_targetGroupID,\n    a2->m_centerGroupID,\n    a2->m_easingType,\n    a2->m_easingRate,\n    a2->m_lockObjectRotation,\n    0,\n    0,\n    a2->m_uniqueID,\n    a2->m_controlID);\n}", "assembly": "; \n; GJBaseGameLayer::triggerRotateCommand from 0x100138450 to 0x100138632 (482 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x1001b9b73\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    rbp                                                            ; +0x0, 0x100138450\nmov     rbp, rsp                                                       ; +0x1, 0x100138451\npush    r15                                                            ; +0x4, 0x100138454\npush    r14                                                            ; +0x6, 0x100138456\npush    r13                                                            ; +0x8, 0x100138458\npush    r12                                                            ; +0xa, 0x10013845a\npush    rbx                                                            ; +0xc, 0x10013845c\nsub     rsp, 18h                                                       ; +0xd, 0x10013845d\nmov     rbx, rsi                                                       ; +0x11, 0x100138461\ncvtsi2ss xmm0, dword ptr [rsi+60Ch]                                    ; +0x14, 0x100138464\nmov     r14, rdi                                                       ; +0x1c, 0x10013846c\nmulss   xmm0, cs:flt_100815070                                         ; +0x1f, 0x10013846f\naddss   xmm0, dword ptr [rsi+608h]                                     ; +0x27, 0x100138477\ncmp     byte ptr [rsi+600h], 1                                         ; +0x2f, 0x10013847f\njnz     short loc_1001384C5                                            ; +0x36, 0x100138486\nmovss   xmm2, dword ptr [rbx+5ACh]                                     ; +0x38, 0x100138488\nxorps   xmm1, xmm1                                                     ; +0x40, 0x100138490\nucomiss xmm2, xmm1                                                     ; +0x43, 0x100138493\njnz     short loc_10013849A                                            ; +0x46, 0x100138496\njnp     short loc_1001384C5                                            ; +0x48, 0x100138498\ncmp     byte ptr [rbx+5E4h], 0                                         ; +0x4a, 0x10013849a\njnz     short loc_1001384AC                                            ; +0x51, 0x1001384a1\ncmp     byte ptr [rbx+5F5h], 1                                         ; +0x53, 0x1001384a3\njnz     short loc_1001384C5                                            ; +0x5a, 0x1001384aa\nmov     rdi, r14                                                       ; +0x5c, 0x1001384ac\nmov     rsi, rbx                                                       ; +0x5f, 0x1001384af\nadd     rsp, 18h                                                       ; +0x62, 0x1001384b2\npop     rbx                                                            ; +0x66, 0x1001384b6\npop     r12                                                            ; +0x67, 0x1001384b7\npop     r13                                                            ; +0x69, 0x1001384b9\npop     r14                                                            ; +0x6b, 0x1001384bb\npop     r15                                                            ; +0x6d, 0x1001384bd\npop     rbp                                                            ; +0x6f, 0x1001384bf\njmp     GJBaseGameLayer__triggerDynamicRotateCommand                   ; +0x70, 0x1001384c0\ncmp     byte ptr [rbx+5E4h], 0                                         ; +0x75, 0x1001384c5\njnz     short loc_1001384DB                                            ; +0x7c, 0x1001384cc\ncmp     byte ptr [rbx+5F5h], 1                                         ; +0x7e, 0x1001384ce\njnz     loc_1001385D4                                                  ; +0x85, 0x1001384d5\nmovss   dword ptr [rbp+var_30], xmm0                                   ; +0x8b, 0x1001384db\nmov     esi, [rbx+5BCh]                                                ; +0x90, 0x1001384e0\ntest    esi, esi                                                       ; +0x96, 0x1001384e6\njnz     short loc_1001384F0                                            ; +0x98, 0x1001384e8\nmov     esi, [rbx+5B8h]                                                ; +0x9a, 0x1001384ea\nmov     rdi, r14                                                       ; +0xa0, 0x1001384f0\ncall    GJBaseGameLayer__tryGetObject                                  ; +0xa3, 0x1001384f3\nmov     r15, rax                                                       ; +0xa8, 0x1001384f8\nmov     esi, [rbx+5B8h]                                                ; +0xab, 0x1001384fb\nmov     rdi, r14                                                       ; +0xb1, 0x100138501\ncall    GJBaseGameLayer__tryGetObject                                  ; +0xb4, 0x100138504\nmov     r12, rax                                                       ; +0xb9, 0x100138509\ncmp     byte ptr [rbx+694h], 0                                         ; +0xbc, 0x10013850c\nmovss   xmm0, dword ptr [rbp+var_30]                                   ; +0xc3, 0x100138513\njz      short loc_100138523                                            ; +0xc8, 0x100138518\nmov     r13, [r14+0CA0h]                                               ; +0xca, 0x10013851a\njmp     short loc_100138555                                            ; +0xd1, 0x100138521\ncmp     byte ptr [rbx+695h], 1                                         ; +0xd3, 0x100138523\njnz     short loc_10013853F                                            ; +0xda, 0x10013852a\ncmp     byte ptr [r14+3F2h], 0                                         ; +0xdc, 0x10013852c\njz      short loc_10013851A                                            ; +0xe4, 0x100138534\nmov     r13, [r14+0CA8h]                                               ; +0xe6, 0x100138536\njmp     short loc_100138555                                            ; +0xed, 0x10013853d\nmov     esi, [rbx+614h]                                                ; +0xef, 0x10013853f\nmov     rdi, r14                                                       ; +0xf5, 0x100138545\ncall    GJBaseGameLayer__tryGetObject                                  ; +0xf8, 0x100138548\nmovss   xmm0, dword ptr [rbp+var_30]                                   ; +0xfd, 0x10013854d\nmov     r13, rax                                                       ; +0x102, 0x100138552\ntest    r15, r15                                                       ; +0x105, 0x100138555\nsetnz   al                                                             ; +0x108, 0x100138558\ntest    r13, r13                                                       ; +0x10b, 0x10013855b\nsetnz   cl                                                             ; +0x10e, 0x10013855e\nand     cl, al                                                         ; +0x111, 0x100138561\ntest    r12, r12                                                       ; +0x113, 0x100138563\nsetnz   al                                                             ; +0x116, 0x100138566\nand     al, cl                                                         ; +0x119, 0x100138569\ncmp     al, 1                                                          ; +0x11b, 0x10013856b\njnz     short loc_1001385D4                                            ; +0x11d, 0x10013856d\nmov     esi, [rbx+72Ch]                                                ; +0x11f, 0x10013856f\nmov     rdi, r14                                                       ; +0x125, 0x100138575\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x128, 0x100138578\nmov     [rbp+var_30], rax                                              ; +0x12d, 0x10013857d\nmov     esi, [rbx+730h]                                                ; +0x131, 0x100138581\nmov     rdi, r14                                                       ; +0x137, 0x100138587\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x13a, 0x10013858a\nmov     [rbp+var_40], rax                                              ; +0x13f, 0x10013858f\nmov     esi, [rbx+734h]                                                ; +0x143, 0x100138593\nmov     rdi, r14                                                       ; +0x149, 0x100138599\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x14c, 0x10013859c\nmov     [rbp+var_38], rax                                              ; +0x151, 0x1001385a1\nmov     esi, [rbx+738h]                                                ; +0x155, 0x1001385a5\nmov     rdi, r14                                                       ; +0x15b, 0x1001385ab\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x15e, 0x1001385ae\nmov     rdi, rbx                                                       ; +0x163, 0x1001385b3\nmov     rsi, r15                                                       ; +0x166, 0x1001385b6\nmov     rdx, r12                                                       ; +0x169, 0x1001385b9\nmov     rcx, r13                                                       ; +0x16c, 0x1001385bc\nmov     r8, [rbp+var_30]                                               ; +0x16f, 0x1001385bf\nmov     r9, [rbp+var_40]                                               ; +0x173, 0x1001385c3\npush    rax                                                            ; +0x177, 0x1001385c7\npush    [rbp+var_38]                                                   ; +0x178, 0x1001385c8\ncall    sub_1001381B0                                                  ; +0x17b, 0x1001385cb\nadd     rsp, 10h                                                       ; +0x180, 0x1001385d0\nmov     rdi, [r14+850h]                                                ; +0x184, 0x1001385d4\nmovss   xmm1, dword ptr [rbx+5ACh]                                     ; +0x18b, 0x1001385db\nmov     esi, [rbx+5B8h]                                                ; +0x193, 0x1001385e3\nmov     edx, [rbx+5BCh]                                                ; +0x199, 0x1001385e9\nmov     ecx, [rbx+5D8h]                                                ; +0x19f, 0x1001385ef\nmovss   xmm2, dword ptr [rbx+5DCh]                                     ; +0x1a5, 0x1001385f5\nmovzx   r8d, byte ptr [rbx+610h]                                       ; +0x1ad, 0x1001385fd\nmov     eax, [rbx+394h]                                                ; +0x1b5, 0x100138605\nmov     r10d, [rbx+688h]                                               ; +0x1bb, 0x10013860b\nsub     rsp, 8                                                         ; +0x1c2, 0x100138612\nxor     r9d, r9d                                                       ; +0x1c6, 0x100138616\npush    r10                                                            ; +0x1c9, 0x100138619\npush    rax                                                            ; +0x1cb, 0x10013861b\npush    0                                                              ; +0x1cc, 0x10013861c\ncall    GJEffectManager__createRotateCommand                           ; +0x1ce, 0x10013861e\nadd     rsp, 38h                                                       ; +0x1d3, 0x100138623\npop     rbx                                                            ; +0x1d7, 0x100138627\npop     r12                                                            ; +0x1d8, 0x100138628\npop     r13                                                            ; +0x1da, 0x10013862a\npop     r14                                                            ; +0x1dc, 0x10013862c\npop     r15                                                            ; +0x1de, 0x10013862e\npop     rbp                                                            ; +0x1e0, 0x100138630\nretn                                                                   ; +0x1e1, 0x100138631", "xrefs": ["EffectGameObject::triggerObject @ 0x1001b9b73"], "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"}