{"type": "func", "start": 3044040, "end": 3044152, "name": "CCSpritePart::frameChanged", "pseudocode": "// \n// CCSpritePart::frameChanged from 0x2e72c8 to 0x2e7338 (112 bytes)\n// \n// 3 xrefs:\n// > CCPartAnimSprite::transformSprite @ 0x2e73e0\n// > CCPartAnimSprite::tweenSpriteTo @ 0x2e75ae\n// > CCSpritePart::updateDisplayFrame @ 0x2e7714\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::frameChanged(int a1, int a2)\n{\n  void (__fastcall ***v2)(_DWORD, int, _DWORD *); // r8\n  int v5; // r9\n  void (__fastcall *v6)(_DWORD, int, _DWORD *); // r10\n  _DWORD v8[2]; // [sp+0h] [bp-8h] BYREF\n\n  v8[0] = a1;\n  v8[1] = a2;\n  v2 = *(void (__fastcall ****)(_DWORD, int, _DWORD *))(a1 + 524);\n  v5 = a1 + 520;\n  if ( v2 && sub_774DBC(a2, v5) )\n  {\n    v6 = **v2;\n    sub_775C20(v8, a2);\n    v6(v2, a1, v8);\n    sub_774008(v8);\n  }\n  return sub_775D40(v5, a2);\n}", "assembly": "; \n; CCSpritePart::frameChanged from 0x2e72c8 to 0x2e7338 (112 bytes)\n; \n; 3 xrefs:\n; > CCPartAnimSprite::transformSprite @ 0x2e73e0\n; > CCPartAnimSprite::tweenSpriteTo @ 0x2e75ae\n; > CCSpritePart::updateDisplayFrame @ 0x2e7714\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E72D2)                ; +0x0, 0x2e72c8\nPUSH.W          {R0,R1,R4-R10,LR}                                      ; +0x2, 0x2e72ca\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e72ce\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e72d0\nLDR.W           R8, [R0,#0x20C]                                        ; +0xa, 0x2e72d2\nMOV             R7, R0                                                 ; +0xe, 0x2e72d6\nLDR             R2, [R3]                                               ; +0x10, 0x2e72d8\nMOV             R6, R1                                                 ; +0x12, 0x2e72da\nMOV             R5, R3                                                 ; +0x14, 0x2e72dc\nADD.W           R9, R0, #0x208                                         ; +0x16, 0x2e72de\nSTR             R2, [SP,#8+var_4]                                      ; +0x1a, 0x2e72e2\nCMP.W           R8, #0                                                 ; +0x1c, 0x2e72e4\nBEQ             loc_2E7314                                             ; +0x20, 0x2e72e8\nMOV             R0, R1                                                 ; +0x22, 0x2e72ea\nMOV             R1, R9                                                 ; +0x24, 0x2e72ec\nBL              sub_774DBC                                             ; +0x26, 0x2e72ee\nCBZ             R0, loc_2E7314                                         ; +0x2a, 0x2e72f2\nLDR.W           R3, [R8]                                               ; +0x2c, 0x2e72f4\nMOV             R1, R6                                                 ; +0x30, 0x2e72f8\nMOV             R0, SP                                                 ; +0x32, 0x2e72fa\nMOV             R4, SP                                                 ; +0x34, 0x2e72fc\nLDR.W           R10, [R3]                                              ; +0x36, 0x2e72fe\nBL              sub_775C20                                             ; +0x3a, 0x2e7302\nMOV             R0, R8                                                 ; +0x3e, 0x2e7306\nMOV             R1, R7                                                 ; +0x40, 0x2e7308\nMOV             R2, SP                                                 ; +0x42, 0x2e730a\nBLX             R10                                                    ; +0x44, 0x2e730c\nMOV             R0, R4                                                 ; +0x46, 0x2e730e\nBL              sub_774008                                             ; +0x48, 0x2e7310\nMOV             R0, R9                                                 ; +0x4c, 0x2e7314\nMOV             R1, R6                                                 ; +0x4e, 0x2e7316\nBL              sub_775D40                                             ; +0x50, 0x2e7318\nLDR             R2, [SP,#8+var_4]                                      ; +0x54, 0x2e731c\nLDR             R3, [R5]                                               ; +0x56, 0x2e731e\nCMP             R2, R3                                                 ; +0x58, 0x2e7320\nBEQ             loc_2E7332                                             ; +0x5a, 0x2e7322\nBLX             __stack_chk_fail                                       ; +0x5c, 0x2e7324\nMOV             R0, R4                                                 ; +0x60, 0x2e7328\nBL              sub_774008                                             ; +0x62, 0x2e732a\nBL              __cxa_end_cleanup                                      ; +0x66, 0x2e732e\nADD             SP, SP, #8                                             ; +0x6a, 0x2e7332\nPOP.W           {R4-R10,PC}                                            ; +0x6c, 0x2e7334", "xrefs": ["CCPartAnimSprite::transformSprite @ 0x2e73e0", "CCPartAnimSprite::tweenSpriteTo @ 0x2e75ae", "CCSpritePart::updateDisplayFrame @ 0x2e7714"], "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"}