{"type": "func", "start": 4296049040, "end": 4296049221, "name": "GJBaseGameLayer::playAnimationCommand", "pseudocode": "// \n// GJBaseGameLayer::playAnimationCommand from 0x100108190 to 0x100108245 (181 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x10019a06f\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 12:21:32 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::playAnimationCommand(__int64 a1, unsigned int a2, int a3)\n{\n  __int64 v3; // r15\n  __int64 v4; // r14\n  unsigned int v5; // r15d\n  _DWORD *v6; // rax\n\n  if ( a3 > 0 )\n  {\n    v3 = 9999;\n    if ( (unsigned int)a3 < 0x270F )\n      v3 = (unsigned int)a3;\n    v4 = *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v3);\n    if ( !v4 )\n    {\n      v4 = sub_1007FE900(a1);\n      cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3592), v4, v3);\n      *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v3) = v4;\n    }\n    if ( (unsigned int)sub_1007FEF90(v4) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = (_DWORD *)sub_1007FEFE0(v4, v5);\n        if ( v6[312] == 2 )\n          AnimatedGameObject::playAnimation(v6, a2);\n        else\n          (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v6 + 1520LL))(v6);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_1007FEF90(v4) );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playAnimationCommand from 0x100108190 to 0x100108245 (181 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x10019a06f\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 12:21:32 +0000\n; \ntest    edx, edx                                                       ; +0x0, 0x100108190\njle     locret_100108244                                               ; +0x2, 0x100108192\npush    rbp                                                            ; +0x8, 0x100108198\nmov     rbp, rsp                                                       ; +0x9, 0x100108199\npush    r15                                                            ; +0xc, 0x10010819c\npush    r14                                                            ; +0xe, 0x10010819e\npush    r12                                                            ; +0x10, 0x1001081a0\npush    rbx                                                            ; +0x12, 0x1001081a2\nmov     ebx, esi                                                       ; +0x13, 0x1001081a3\ncmp     edx, 270Fh                                                     ; +0x15, 0x1001081a5\nmov     r15d, 270Fh                                                    ; +0x1b, 0x1001081ab\ncmovb   r15d, edx                                                      ; +0x21, 0x1001081b1\nmov     rax, [rdi+0E20h]                                               ; +0x25, 0x1001081b5\nmov     r14, [rax+r15*8]                                               ; +0x2c, 0x1001081bc\ntest    r14, r14                                                       ; +0x30, 0x1001081c0\njnz     short loc_1001081EF                                            ; +0x33, 0x1001081c3\nmov     r12, rdi                                                       ; +0x35, 0x1001081c5\ncall    sub_1007FE900                                                  ; +0x38, 0x1001081c8\nmov     r14, rax                                                       ; +0x3d, 0x1001081cd\nmov     rdi, [r12+0E08h]                                               ; +0x40, 0x1001081d0\nmov     rsi, rax                                                       ; +0x48, 0x1001081d8\nmov     rdx, r15                                                       ; +0x4b, 0x1001081db\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x4e, 0x1001081de\nmov     rax, [r12+0E20h]                                               ; +0x53, 0x1001081e3\nmov     [rax+r15*8], r14                                               ; +0x5b, 0x1001081eb\nmov     rdi, r14                                                       ; +0x5f, 0x1001081ef\ncall    sub_1007FEF90                                                  ; +0x62, 0x1001081f2\ntest    eax, eax                                                       ; +0x67, 0x1001081f7\njz      short loc_10010823C                                            ; +0x69, 0x1001081f9\nxor     r15d, r15d                                                     ; +0x6b, 0x1001081fb\njmp     short loc_10010821C                                            ; +0x6e, 0x1001081fe\nmov     rcx, [rax]                                                     ; +0x70, 0x100108200\nmov     rdi, rax                                                       ; +0x73, 0x100108203\ncall    qword ptr [rcx+5F0h]                                           ; +0x76, 0x100108206\ninc     r15d                                                           ; +0x7c, 0x10010820c\nmov     rdi, r14                                                       ; +0x7f, 0x10010820f\ncall    sub_1007FEF90                                                  ; +0x82, 0x100108212\ncmp     r15d, eax                                                      ; +0x87, 0x100108217\njnb     short loc_10010823C                                            ; +0x8a, 0x10010821a\nmov     rdi, r14                                                       ; +0x8c, 0x10010821c\nmov     esi, r15d                                                      ; +0x8f, 0x10010821f\ncall    sub_1007FEFE0                                                  ; +0x92, 0x100108222\ncmp     dword ptr [rax+4E0h], 2                                        ; +0x97, 0x100108227\njnz     short loc_100108200                                            ; +0x9e, 0x10010822e\nmov     rdi, rax                                                       ; +0xa0, 0x100108230\nmov     esi, ebx                                                       ; +0xa3, 0x100108233\ncall    AnimatedGameObject__playAnimation                              ; +0xa5, 0x100108235\njmp     short loc_10010820C                                            ; +0xaa, 0x10010823a\npop     rbx                                                            ; +0xac, 0x10010823c\npop     r12                                                            ; +0xad, 0x10010823d\npop     r14                                                            ; +0xaf, 0x10010823f\npop     r15                                                            ; +0xb1, 0x100108241\npop     rbp                                                            ; +0xb3, 0x100108243\nretn                                                                   ; +0xb4, 0x100108244", "xrefs": ["EffectGameObject::triggerObject @ 0x10019a06f"], "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"}