{"type": "func", "start": 4296188384, "end": 4296188565, "name": "GJBaseGameLayer::playAnimationCommand", "pseudocode": "// \n// GJBaseGameLayer::playAnimationCommand from 0x10012a1e0 to 0x10012a295 (181 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x1001b99ff\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJBaseGameLayer::playAnimationCommand(GJBaseGameLayer *a1, int a2, int a3)\n{\n  intptr_t v3; // r15\n  cocos2d::CCArray *v4; // r14\n  unsigned int v5; // r15d\n  __int64 v6; // rax\n\n  if ( a3 > 0 )\n  {\n    v3 = 9999;\n    if ( (unsigned int)a3 < 0x270F )\n      v3 = (unsigned int)a3;\n    v4 = a1->m_groups.__begin_[v3];\n    if ( !v4 )\n    {\n      v4 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2);\n      cocos2d::CCDictionary::setObject(a1->m_groupDict, v4, v3);\n      a1->m_groups.__begin_[v3] = v4;\n    }\n    if ( (unsigned int)sub_100720070(v4) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007200C0(v4, v5);\n        if ( *(_DWORD *)(v6 + 1248) == 2 )\n          AnimatedGameObject::playAnimation((AnimatedGameObject *)v6, a2);\n        else\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1504LL))(v6);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_100720070(v4) );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playAnimationCommand from 0x10012a1e0 to 0x10012a295 (181 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x1001b99ff\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\ntest    edx, edx                                                       ; +0x0, 0x10012a1e0\njle     locret_10012A294                                               ; +0x2, 0x10012a1e2\npush    rbp                                                            ; +0x8, 0x10012a1e8\nmov     rbp, rsp                                                       ; +0x9, 0x10012a1e9\npush    r15                                                            ; +0xc, 0x10012a1ec\npush    r14                                                            ; +0xe, 0x10012a1ee\npush    r12                                                            ; +0x10, 0x10012a1f0\npush    rbx                                                            ; +0x12, 0x10012a1f2\nmov     ebx, esi                                                       ; +0x13, 0x10012a1f3\ncmp     edx, 270Fh                                                     ; +0x15, 0x10012a1f5\nmov     r15d, 270Fh                                                    ; +0x1b, 0x10012a1fb\ncmovb   r15d, edx                                                      ; +0x21, 0x10012a201\nmov     rax, [rdi+0E00h]                                               ; +0x25, 0x10012a205\nmov     r14, [rax+r15*8]                                               ; +0x2c, 0x10012a20c\ntest    r14, r14                                                       ; +0x30, 0x10012a210\njnz     short loc_10012A23F                                            ; +0x33, 0x10012a213\nmov     r12, rdi                                                       ; +0x35, 0x10012a215\ncall    sub_10071F9E0                                                  ; +0x38, 0x10012a218\nmov     r14, rax                                                       ; +0x3d, 0x10012a21d\nmov     rdi, [r12+0DE8h]                                               ; +0x40, 0x10012a220\nmov     rsi, rax                                                       ; +0x48, 0x10012a228\nmov     rdx, r15                                                       ; +0x4b, 0x10012a22b\ncall    cocos2d__CCDictionary__setObject                               ; +0x4e, 0x10012a22e\nmov     rax, [r12+0E00h]                                               ; +0x53, 0x10012a233\nmov     [rax+r15*8], r14                                               ; +0x5b, 0x10012a23b\nmov     rdi, r14                                                       ; +0x5f, 0x10012a23f\ncall    sub_100720070                                                  ; +0x62, 0x10012a242\ntest    eax, eax                                                       ; +0x67, 0x10012a247\njz      short loc_10012A28C                                            ; +0x69, 0x10012a249\nxor     r15d, r15d                                                     ; +0x6b, 0x10012a24b\njmp     short loc_10012A26C                                            ; +0x6e, 0x10012a24e\nmov     rcx, [rax]                                                     ; +0x70, 0x10012a250\nmov     rdi, rax                                                       ; +0x73, 0x10012a253\ncall    qword ptr [rcx+5E0h]                                           ; +0x76, 0x10012a256\ninc     r15d                                                           ; +0x7c, 0x10012a25c\nmov     rdi, r14                                                       ; +0x7f, 0x10012a25f\ncall    sub_100720070                                                  ; +0x82, 0x10012a262\ncmp     r15d, eax                                                      ; +0x87, 0x10012a267\njnb     short loc_10012A28C                                            ; +0x8a, 0x10012a26a\nmov     rdi, r14                                                       ; +0x8c, 0x10012a26c\nmov     esi, r15d                                                      ; +0x8f, 0x10012a26f\ncall    sub_1007200C0                                                  ; +0x92, 0x10012a272\ncmp     dword ptr [rax+4E0h], 2                                        ; +0x97, 0x10012a277\njnz     short loc_10012A250                                            ; +0x9e, 0x10012a27e\nmov     rdi, rax                                                       ; +0xa0, 0x10012a280\nmov     esi, ebx                                                       ; +0xa3, 0x10012a283\ncall    AnimatedGameObject__playAnimation                              ; +0xa5, 0x10012a285\njmp     short loc_10012A25C                                            ; +0xaa, 0x10012a28a\npop     rbx                                                            ; +0xac, 0x10012a28c\npop     r12                                                            ; +0xad, 0x10012a28d\npop     r14                                                            ; +0xaf, 0x10012a28f\npop     r15                                                            ; +0xb1, 0x10012a291\npop     rbp                                                            ; +0xb3, 0x10012a293\nretn                                                                   ; +0xb4, 0x10012a294", "xrefs": ["EffectGameObject::triggerObject @ 0x1001b99ff"], "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"}