{"type": "func", "start": 4298438024, "end": 4298438300, "name": "GameManager::addCustomAnimationFrame", "pseudocode": "// \n// GameManager::addCustomAnimationFrame from 0x10034f588 to 0x10034f69c (276 bytes)\n// \n// 1 xrefs:\n// > GameManager::setupGameAnimations @ 0x10034ae2c\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\n__int64 __fastcall GameManager::addCustomAnimationFrame(\n        __int64 result,\n        int a2,\n        unsigned int a3,\n        __int64 a4,\n        __int64 a5)\n{\n  __int64 v9; // x22\n  __int64 v10; // x8\n  cocos2d::CCObject *v11; // x24\n  unsigned int v12; // w25\n  cocos2d::CCObject *v13; // x21\n  unsigned int v14; // w22\n\n  v9 = result;\n  v10 = *(char *)(a4 + 23);\n  if ( v10 < 0 )\n    v10 = *(_QWORD *)(a4 + 8);\n  if ( v10 )\n  {\n    v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(result + 352), a2);\n    v12 = sub_10024A36C((__int64)v11);\n    sub_100268E48((__int128 *)a4);\n    if ( v12 >= a3 )\n      result = sub_10024A428((__int64)v11);\n    else\n      result = sub_10024A2D0((__int64)v11);\n  }\n  if ( (*(char *)(a5 + 23) & 0x8000000000000000LL) != 0 )\n  {\n    if ( !*(_QWORD *)(a5 + 8) )\n      return result;\n  }\n  else if ( !*(_BYTE *)(a5 + 23) )\n  {\n    return result;\n  }\n  v13 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v9 + 360), a2);\n  v14 = sub_10024A36C((__int64)v13);\n  sub_100268E48((__int128 *)a5);\n  if ( v14 >= a3 )\n    return sub_10024A428((__int64)v13);\n  else\n    return sub_10024A2D0((__int64)v13);\n}", "assembly": "; \n; GameManager::addCustomAnimationFrame from 0x10034f588 to 0x10034f69c (276 bytes)\n; \n; 1 xrefs:\n; > GameManager::setupGameAnimations @ 0x10034ae2c\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\nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x10034f588\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x10034f58c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x10034f590\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x10034f594\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x10034f598\nADD             X29, SP, #0x40                                         ; +0x14, 0x10034f59c\nMOV             X20, X4                                                ; +0x18, 0x10034f5a0\nMOV             X23, X3                                                ; +0x1c, 0x10034f5a4\nMOV             X19, X2                                                ; +0x20, 0x10034f5a8\nMOV             X21, X1                                                ; +0x24, 0x10034f5ac\nMOV             X22, X0                                                ; +0x28, 0x10034f5b0\nLDRSB           X8, [X3,#0x17]                                         ; +0x2c, 0x10034f5b4\nTBZ             X8, #0x3F, loc_10034F5C0 ; '?'                         ; +0x30, 0x10034f5b8\nLDR             X8, [X23,#8]                                           ; +0x34, 0x10034f5bc\nCBZ             X8, loc_10034F608                                      ; +0x38, 0x10034f5c0\nLDR             X0, [X22,#0x160]                                       ; +0x3c, 0x10034f5c4\nSXTW            X1, W21                                                ; +0x40, 0x10034f5c8\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x44, 0x10034f5cc\nMOV             X24, X0                                                ; +0x48, 0x10034f5d0\nBL              sub_10024A36C                                          ; +0x4c, 0x10034f5d4\nMOV             X25, X0                                                ; +0x50, 0x10034f5d8\nMOV             X0, X23                                                ; +0x54, 0x10034f5dc\nBL              sub_100268E48                                          ; +0x58, 0x10034f5e0\nMOV             X1, X0                                                 ; +0x5c, 0x10034f5e4\nCMP             W25, W19                                               ; +0x60, 0x10034f5e8\nB.CS            loc_10034F5FC                                          ; +0x64, 0x10034f5ec\nMOV             X0, X24                                                ; +0x68, 0x10034f5f0\nBL              sub_10024A2D0                                          ; +0x6c, 0x10034f5f4\nB               loc_10034F608                                          ; +0x70, 0x10034f5f8\nSUB             W2, W19, #1                                            ; +0x74, 0x10034f5fc\nMOV             X0, X24                                                ; +0x78, 0x10034f600\nBL              sub_10024A428                                          ; +0x7c, 0x10034f604\nLDRSB           X8, [X20,#0x17]                                        ; +0x80, 0x10034f608\nTBNZ            X8, #0x3F, loc_10034F65C ; '?'                         ; +0x84, 0x10034f60c\nCBZ             X8, loc_10034F664                                      ; +0x88, 0x10034f610\nLDR             X0, [X22,#0x168]                                       ; +0x8c, 0x10034f614\nSXTW            X1, W21                                                ; +0x90, 0x10034f618\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x94, 0x10034f61c\nMOV             X21, X0                                                ; +0x98, 0x10034f620\nBL              sub_10024A36C                                          ; +0x9c, 0x10034f624\nMOV             X22, X0                                                ; +0xa0, 0x10034f628\nMOV             X0, X20                                                ; +0xa4, 0x10034f62c\nBL              sub_100268E48                                          ; +0xa8, 0x10034f630\nMOV             X1, X0                                                 ; +0xac, 0x10034f634\nCMP             W22, W19                                               ; +0xb0, 0x10034f638\nB.CS            loc_10034F67C                                          ; +0xb4, 0x10034f63c\nMOV             X0, X21                                                ; +0xb8, 0x10034f640\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xbc, 0x10034f644\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xc0, 0x10034f648\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xc4, 0x10034f64c\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xc8, 0x10034f650\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0xcc, 0x10034f654\nB               sub_10024A2D0                                          ; +0xd0, 0x10034f658\nLDR             X8, [X20,#8]                                           ; +0xd4, 0x10034f65c\nCBNZ            X8, loc_10034F614                                      ; +0xd8, 0x10034f660\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xdc, 0x10034f664\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xe0, 0x10034f668\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xe4, 0x10034f66c\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xe8, 0x10034f670\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0xec, 0x10034f674\nRET                                                                    ; +0xf0, 0x10034f678\nSUB             W2, W19, #1                                            ; +0xf4, 0x10034f67c\nMOV             X0, X21                                                ; +0xf8, 0x10034f680\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xfc, 0x10034f684\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x100, 0x10034f688\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x104, 0x10034f68c\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x108, 0x10034f690\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x10c, 0x10034f694\nB               sub_10024A428                                          ; +0x110, 0x10034f698", "xrefs": ["GameManager::setupGameAnimations @ 0x10034ae2c"], "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"}