{"type": "func", "start": 3045112, "end": 3045198, "name": "CCSpritePart::updateDisplayFrame", "pseudocode": "// \n// CCSpritePart::updateDisplayFrame from 0x2e76f8 to 0x2e774e (86 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::changeTextureOfID @ 0x2e77a2\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 CCSpritePart::updateDisplayFrame(int a1, const char **a2, int a3)\n{\n  int (__fastcall *v5)(int, cocos2d::CCSpriteFrame *); // r5\n  cocos2d::CCSpriteFrameCache *v6; // r0\n  cocos2d::CCSpriteFrame *v7; // r0\n  _DWORD v9[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v9[0] = a1;\n  v9[1] = a2;\n  v9[2] = a3;\n  sub_775C20(v9, a2);\n  CCSpritePart::frameChanged(a1, (int)v9);\n  sub_774008(v9);\n  v5 = *(int (__fastcall **)(int, cocos2d::CCSpriteFrame *))(*(_DWORD *)a1 + 572);\n  v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, *a2);\n  return v5(a1, v7);\n}", "assembly": "; \n; CCSpritePart::updateDisplayFrame from 0x2e76f8 to 0x2e774e (86 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::changeTextureOfID @ 0x2e77a2\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x2e76f8\nMOV             R6, R0                                                 ; +0x2, 0x2e76fa\nLDR             R4, =(__stack_chk_guard_ptr - 0x2E7708)                ; +0x4, 0x2e76fc\nMOV             R0, SP                                                 ; +0x6, 0x2e76fe\nMOV             R7, R1                                                 ; +0x8, 0x2e7700\nMOV             R5, SP                                                 ; +0xa, 0x2e7702\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x2e7704\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x2e7706\nLDR             R3, [R4]                                               ; +0x10, 0x2e7708\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x12, 0x2e770a\nBL              sub_775C20                                             ; +0x14, 0x2e770c\nMOV             R0, R6                                                 ; +0x18, 0x2e7710\nMOV             R1, SP                                                 ; +0x1a, 0x2e7712\nBL              _ZN12CCSpritePart12frameChangedESs; CCSpritePart::frameChanged(std::string) ; +0x1c, 0x2e7714\nMOV             R0, SP                                                 ; +0x20, 0x2e7718\nBL              sub_774008                                             ; +0x22, 0x2e771a\nLDR             R3, [R6]                                               ; +0x26, 0x2e771e\nLDR.W           R5, [R3,#0x23C]                                        ; +0x28, 0x2e7720\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x2c, 0x2e7724\nLDR             R1, [R7]; char *                                       ; +0x30, 0x2e7728\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x32, 0x2e772a\nMOV             R1, R0                                                 ; +0x36, 0x2e772e\nMOV             R0, R6                                                 ; +0x38, 0x2e7730\nBLX             R5                                                     ; +0x3a, 0x2e7732\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x3c, 0x2e7734\nLDR             R3, [R4]                                               ; +0x3e, 0x2e7736\nCMP             R2, R3                                                 ; +0x40, 0x2e7738\nBEQ             loc_2E774A                                             ; +0x42, 0x2e773a\nBLX             __stack_chk_fail                                       ; +0x44, 0x2e773c\nMOV             R0, R5                                                 ; +0x48, 0x2e7740\nBL              sub_774008                                             ; +0x4a, 0x2e7742\nBL              __cxa_end_cleanup                                      ; +0x4e, 0x2e7746\nADD             SP, SP, #0xC                                           ; +0x52, 0x2e774a\nPOP             {R4-R7,PC}                                             ; +0x54, 0x2e774c", "xrefs": ["CCPartAnimSprite::changeTextureOfID @ 0x2e77a2"], "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"}