{"type": "func", "start": 4086400, "end": 4086620, "name": "AnimatedGameObject::displayFrameChanged", "pseudocode": "// \n// AnimatedGameObject::displayFrameChanged from 0x3e5a80 to 0x3e5b5c (220 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'AnimatedGameObject::displayFrameChanged @ 0x3e5b6c\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\nint __fastcall AnimatedGameObject::displayFrameChanged(int a1, CCSpritePlus *this, char **a3)\n{\n  CCSpritePlus *Follower; // r8\n  int i; // r2\n  int v6; // r9\n  void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5\n  cocos2d::CCSpriteFrameCache *v8; // r0\n  cocos2d::CCSpriteFrame *v9; // r0\n  char *v11; // [sp+8h] [bp-14h] BYREF\n  int v12; // [sp+Ch] [bp-10h] BYREF\n  char *v13; // [sp+10h] [bp-Ch] BYREF\n\n  Follower = CCSpritePlus::getFollower(this);\n  sub_776584((int)&v11, *a3);\n  sub_776584((int)&v12, \"_001.png\");\n  sub_776584((int)&v13, \"_glow_001.png\");\n  for ( i = 0; ; i = *((_DWORD *)v13 - 3) + v6 )\n  {\n    v6 = sub_774834(&v11, &v12, i);\n    if ( v6 == -1 )\n      break;\n    sub_776454(&v11, v6, *(_DWORD *)(v12 - 12), &v13);\n  }\n  sub_774008(&v13);\n  sub_774008(&v12);\n  sub_776584((int)&v13, v11);\n  sub_774008(&v11);\n  setDisplayFrame = Follower->setDisplayFrame;\n  v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v13);\n  setDisplayFrame(Follower, v9);\n  return sub_774008(&v13);\n}", "assembly": "; \n; AnimatedGameObject::displayFrameChanged from 0x3e5a80 to 0x3e5b5c (220 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'AnimatedGameObject::displayFrameChanged @ 0x3e5b6c\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.W          {R4-R9,LR}                                             ; +0x0, 0x3e5a80\nSUB             SP, SP, #0x1C                                          ; +0x4, 0x3e5a84\nLDR             R6, =(__stack_chk_guard_ptr - 0x3E5A92)                ; +0x6, 0x3e5a86\nMOV             R0, R1; this                                           ; +0x8, 0x3e5a88\nMOV             R7, R2                                                 ; +0xa, 0x3e5a8a\nADD             R4, SP, #0x1C+var_C                                    ; +0xc, 0x3e5a8c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3e5a8e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x3e5a90\nADD             R5, SP, #0x1C+var_14                                   ; +0x12, 0x3e5a92\nLDR             R3, [R6]                                               ; +0x14, 0x3e5a94\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x16, 0x3e5a96\nBL              _ZN12CCSpritePlus11getFollowerEv; CCSpritePlus::getFollower(void) ; +0x18, 0x3e5a98\nLDR             R1, [R7]; char *                                       ; +0x1c, 0x3e5a9c\nMOV             R2, R4                                                 ; +0x1e, 0x3e5a9e\nADD             R7, SP, #0x1C+var_10                                   ; +0x20, 0x3e5aa0\nMOV             R8, R0                                                 ; +0x22, 0x3e5aa2\nMOV             R0, R5; int                                            ; +0x24, 0x3e5aa4\nBL              sub_776584                                             ; +0x26, 0x3e5aa6\nLDR             R1, =(a001Png - 0x3E5AB4); \"_001.png\"                  ; +0x2a, 0x3e5aaa\nMOV             R0, R7; int                                            ; +0x2c, 0x3e5aac\nMOV             R2, R4                                                 ; +0x2e, 0x3e5aae\nADD             R1, PC; \"_001.png\"                                     ; +0x30, 0x3e5ab0\nBL              sub_776584                                             ; +0x32, 0x3e5ab2\nLDR             R1, =(aGlow001Png - 0x3E5AC0); \"_glow_001.png\"         ; +0x36, 0x3e5ab6\nMOV             R0, R4; int                                            ; +0x38, 0x3e5ab8\nADD             R2, SP, #0x1C+var_18                                   ; +0x3a, 0x3e5aba\nADD             R1, PC; \"_glow_001.png\"                                ; +0x3c, 0x3e5abc\nBL              sub_776584                                             ; +0x3e, 0x3e5abe\nMOVS            R2, #0                                                 ; +0x42, 0x3e5ac2\nMOV             R0, R5                                                 ; +0x44, 0x3e5ac4\nMOV             R1, R7                                                 ; +0x46, 0x3e5ac6\nBL              sub_774834                                             ; +0x48, 0x3e5ac8\nCMP.W           R0, #0xFFFFFFFF                                        ; +0x4c, 0x3e5acc\nMOV             R9, R0                                                 ; +0x50, 0x3e5ad0\nBEQ             loc_3E5AEE                                             ; +0x52, 0x3e5ad2\nLDR             R3, [SP,#0x1C+var_10]                                  ; +0x54, 0x3e5ad4\nMOV             R0, R5                                                 ; +0x56, 0x3e5ad6\nMOV             R1, R9                                                 ; +0x58, 0x3e5ad8\nLDR.W           R2, [R3,#-0xC]                                         ; +0x5a, 0x3e5ada\nMOV             R3, R4                                                 ; +0x5e, 0x3e5ade\nBL              sub_776454                                             ; +0x60, 0x3e5ae0\nLDR             R3, [SP,#0x1C+var_C]                                   ; +0x64, 0x3e5ae4\nLDR.W           R2, [R3,#-0xC]                                         ; +0x66, 0x3e5ae6\nADD             R2, R9                                                 ; +0x6a, 0x3e5aea\nB               loc_3E5AC4                                             ; +0x6c, 0x3e5aec\nMOV             R0, R4                                                 ; +0x6e, 0x3e5aee\nBL              sub_774008                                             ; +0x70, 0x3e5af0\nMOV             R0, R7                                                 ; +0x74, 0x3e5af4\nBL              sub_774008                                             ; +0x76, 0x3e5af6\nMOV             R0, R4; int                                            ; +0x7a, 0x3e5afa\nLDR             R1, [SP,#0x1C+var_14]; char *                          ; +0x7c, 0x3e5afc\nMOV             R2, R7                                                 ; +0x7e, 0x3e5afe\nBL              sub_776584                                             ; +0x80, 0x3e5b00\nB               loc_3E5B18                                             ; +0x84, 0x3e5b04\nMOV             R0, R4                                                 ; +0x86, 0x3e5b06\nBL              sub_774008                                             ; +0x88, 0x3e5b08\nB               loc_3E5B0E                                             ; +0x8c, 0x3e5b0c\nMOV             R0, R7                                                 ; +0x8e, 0x3e5b0e\nBL              sub_774008                                             ; +0x90, 0x3e5b10\nB               loc_3E5B48                                             ; +0x94, 0x3e5b14\nB               loc_3E5B48                                             ; +0x96, 0x3e5b16\nMOV             R0, R5                                                 ; +0x98, 0x3e5b18\nBL              sub_774008                                             ; +0x9a, 0x3e5b1a\nLDR.W           R3, [R8]                                               ; +0x9e, 0x3e5b1e\nLDR.W           R5, [R3,#0x23C]                                        ; +0xa2, 0x3e5b22\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0xa6, 0x3e5b26\nLDR             R1, [SP,#0x1C+var_C]; char *                           ; +0xaa, 0x3e5b2a\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0xac, 0x3e5b2c\nMOV             R1, R0                                                 ; +0xb0, 0x3e5b30\nMOV             R0, R8                                                 ; +0xb2, 0x3e5b32\nBLX             R5                                                     ; +0xb4, 0x3e5b34\nMOV             R0, R4                                                 ; +0xb6, 0x3e5b36\nBL              sub_774008                                             ; +0xb8, 0x3e5b38\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xbc, 0x3e5b3c\nLDR             R3, [R6]                                               ; +0xbe, 0x3e5b3e\nCMP             R2, R3                                                 ; +0xc0, 0x3e5b40\nBEQ             loc_3E5B56                                             ; +0xc2, 0x3e5b42\nBLX             __stack_chk_fail                                       ; +0xc4, 0x3e5b44\nMOV             R0, R5                                                 ; +0xc8, 0x3e5b48\nBL              sub_774008                                             ; +0xca, 0x3e5b4a\nBL              __cxa_end_cleanup                                      ; +0xce, 0x3e5b4e\nMOV             R0, R4                                                 ; +0xd2, 0x3e5b52\nB               loc_3E5B4A                                             ; +0xd4, 0x3e5b54\nADD             SP, SP, #0x1C                                          ; +0xd6, 0x3e5b56\nPOP.W           {R4-R9,PC}                                             ; +0xd8, 0x3e5b58", "xrefs": ["`non-virtual thunk to'AnimatedGameObject::displayFrameChanged @ 0x3e5b6c"], "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"}