{"type": "func", "start": 5201468, "end": 5201668, "name": "AnimatedGameObject::playAnimation", "pseudocode": "// \n// AnimatedGameObject::playAnimation from 0x4f5e3c to 0x4f5f04 (200 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::loadActiveSaveObjects @ 0x4020d2\n// > GJBaseGameLayer::playAnimationCommand @ 0x590904\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:16 +0000\n// \n\nint __fastcall AnimatedGameObject::playAnimation(AnimatedGameObject *this, AnimatedGameObject *a2)\n{\n  int v4; // r3\n  int v5; // r2\n  float v6; // s16\n  int v7; // r7\n  int *v8; // r4\n  int v9; // r7\n  unsigned __int8 v11[4]; // [sp+0h] [bp-2Ch] BYREF\n  int v12; // [sp+4h] [bp-28h]\n  int v13[3]; // [sp+Ch] [bp-20h] BYREF\n  int v14[3]; // [sp+18h] [bp-14h] BYREF\n\n  AnimatedGameObject::animationForID((AnimatedGameObject *)v11, (int)a2, *((_DWORD *)this + 223));\n  if ( (v11[0] & 1) != 0 )\n    v4 = v12;\n  else\n    v4 = (int)v11[0] >> 1;\n  if ( v4 )\n  {\n    *((_DWORD *)this + 327) = a2;\n    std::string::operator=((unsigned __int8 *)this + 1292, v11);\n    *((_BYTE *)this + 1289) = 1;\n    if ( *((_BYTE *)this + 657)\n      && (v6 = COERCE_FLOAT(AnimatedGameObject::getTweenTime(a2, *((_DWORD *)this + 223), v5)), v6 > 0.0) )\n    {\n      v7 = *((_DWORD *)this + 319);\n      v8 = v13;\n      std::string::basic_string(v13, (int)v11);\n      CCAnimatedSprite::tweenToAnimation(v7, (int)v13, (cocos2d::CCDelayTime *)LODWORD(v6));\n    }\n    else\n    {\n      v9 = *((_DWORD *)this + 319);\n      v8 = v14;\n      std::string::basic_string(v14, (int)v11);\n      CCAnimatedSprite::runAnimationForced(v9, (int)v14);\n    }\n    std::string::~string((int)v8);\n  }\n  return std::string::~string((int)v11);\n}", "assembly": "; \n; AnimatedGameObject::playAnimation from 0x4f5e3c to 0x4f5f04 (200 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::loadActiveSaveObjects @ 0x4020d2\n; > GJBaseGameLayer::playAnimationCommand @ 0x590904\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:16 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x4f5e3c\nMOV             R4, R0                                                 ; +0x2, 0x4f5e3e\nVPUSH           {D8}                                                   ; +0x4, 0x4f5e40\nMOV             R7, R1                                                 ; +0x8, 0x4f5e44\nLDR             R6, =(__stack_chk_guard_ptr - 0x4F5E4C)                ; +0xa, 0x4f5e46\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x4f5e48\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x4f5e4a\nSUB             SP, SP, #0x2C                                          ; +0x10, 0x4f5e4c\nLDR.W           R2, [R4,#0x37C]; int                                   ; +0x12, 0x4f5e4e\nLDR             R3, [R6]                                               ; +0x16, 0x4f5e52\nMOV             R0, SP; this                                           ; +0x18, 0x4f5e54\nMOV             R5, SP                                                 ; +0x1a, 0x4f5e56\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x1c, 0x4f5e58\nBL              _ZN18AnimatedGameObject14animationForIDEii; AnimatedGameObject::animationForID(int,int) ; +0x1e, 0x4f5e5a\nLDRB.W          R3, [SP,#0x2C+var_2C]                                  ; +0x22, 0x4f5e5e\nLSLS            R2, R3, #0x1F                                          ; +0x26, 0x4f5e62\nITE PL                                                                 ; +0x28, 0x4f5e64\nASRPL           R3, R3, #1                                             ; +0x2a, 0x4f5e66\nLDRMI           R3, [SP,#0x2C+var_28]                                  ; +0x2c, 0x4f5e68\nCBZ             R3, loc_4F5ED6                                         ; +0x2e, 0x4f5e6a\nSTR.W           R7, [R4,#0x51C]                                        ; +0x30, 0x4f5e6c\nADDW            R0, R4, #0x50C                                         ; +0x34, 0x4f5e70\nMOV             R1, SP                                                 ; +0x38, 0x4f5e74\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x3a, 0x4f5e76\nMOVS            R3, #1                                                 ; +0x3e, 0x4f5e7a\nSTRB.W          R3, [R4,#0x509]                                        ; +0x40, 0x4f5e7c\nLDRB.W          R3, [R4,#0x291]                                        ; +0x44, 0x4f5e80\nCBZ             R3, loc_4F5EBA                                         ; +0x48, 0x4f5e84\nMOV             R0, R7; this                                           ; +0x4a, 0x4f5e86\nLDR.W           R1, [R4,#0x37C]; int                                   ; +0x4c, 0x4f5e88\nBL              _ZN18AnimatedGameObject12getTweenTimeEii; AnimatedGameObject::getTweenTime(int,int) ; +0x50, 0x4f5e8c\nVMOV            S16, R0                                                ; +0x54, 0x4f5e90\nVCMPE.F32       S16, #0.0                                              ; +0x58, 0x4f5e94\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x4f5e98\nBLE             loc_4F5EBA                                             ; +0x60, 0x4f5e9c\nLDR.W           R7, [R4,#0x4FC]                                        ; +0x62, 0x4f5e9e\nADD             R4, SP, #0x2C+var_20                                   ; +0x66, 0x4f5ea2\nMOV             R1, SP                                                 ; +0x68, 0x4f5ea4\nMOV             R0, R4                                                 ; +0x6a, 0x4f5ea6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x6c, 0x4f5ea8\nMOV             R0, R7                                                 ; +0x70, 0x4f5eac\nMOV             R1, R4                                                 ; +0x72, 0x4f5eae\nVMOV            R2, S16                                                ; +0x74, 0x4f5eb0\nBL              _ZN16CCAnimatedSprite16tweenToAnimationENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEf; CCAnimatedSprite::tweenToAnimation(std::string,float) ; +0x78, 0x4f5eb4\nB               loc_4F5ED0                                             ; +0x7c, 0x4f5eb8\nLDR.W           R7, [R4,#0x4FC]                                        ; +0x7e, 0x4f5eba\nADD             R4, SP, #0x2C+var_14                                   ; +0x82, 0x4f5ebe\nMOV             R1, R5                                                 ; +0x84, 0x4f5ec0\nMOV             R0, R4                                                 ; +0x86, 0x4f5ec2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x88, 0x4f5ec4\nMOV             R0, R7                                                 ; +0x8c, 0x4f5ec8\nMOV             R1, R4                                                 ; +0x8e, 0x4f5eca\nBL              _ZN16CCAnimatedSprite18runAnimationForcedENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCAnimatedSprite::runAnimationForced(std::string) ; +0x90, 0x4f5ecc\nMOV             R0, R4                                                 ; +0x94, 0x4f5ed0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x96, 0x4f5ed2\nMOV             R0, R5                                                 ; +0x9a, 0x4f5ed6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9c, 0x4f5ed8\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xa0, 0x4f5edc\nLDR             R3, [R6]                                               ; +0xa2, 0x4f5ede\nCMP             R2, R3                                                 ; +0xa4, 0x4f5ee0\nBEQ             loc_4F5EFC                                             ; +0xa6, 0x4f5ee2\nBLX             __stack_chk_fail                                       ; +0xa8, 0x4f5ee4\nB               loc_4F5EEA                                             ; +0xac, 0x4f5ee8\nMOV             R0, R4                                                 ; +0xae, 0x4f5eea\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb0, 0x4f5eec\nB               loc_4F5EF2                                             ; +0xb4, 0x4f5ef0\nMOV             R0, R5                                                 ; +0xb6, 0x4f5ef2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb8, 0x4f5ef4\nBL              __cxa_end_cleanup                                      ; +0xbc, 0x4f5ef8\nADD             SP, SP, #0x2C ; ','                                    ; +0xc0, 0x4f5efc\nVPOP            {D8}                                                   ; +0xc2, 0x4f5efe\nPOP             {R4-R7,PC}                                             ; +0xc6, 0x4f5f02", "xrefs": ["PlayLayer::loadActiveSaveObjects @ 0x4020d2", "GJBaseGameLayer::playAnimationCommand @ 0x590904"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}