{"type": "func", "start": 5370473312, "end": 5370473585, "name": "GameManager::addCustomAnimationFrame", "pseudocode": "// \n// GameManager::addCustomAnimationFrame from 0x1401aeb60 to 0x1401aec71 (273 bytes)\n// \n// 2 xrefs:\n// > GameManager::setupGameAnimations @ 0x1401ac669\n// > <???> @ 0x1406cc1c8\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// Hidden C++ exception states: #wind=2\nvoid __fastcall GameManager::addCustomAnimationFrame(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  cocos2d::CCArray *v7; // rsi\n  struct cocos2d::CCObject *v8; // rax\n  struct cocos2d::CCObject *v9; // rax\n  cocos2d::CCArray *v10; // rsi\n  struct cocos2d::CCObject *v11; // rax\n  struct cocos2d::CCObject *v12; // rax\n\n  if ( *(_QWORD *)(a4 + 16) )\n  {\n    v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 360), 1583);\n    if ( cocos2d::CCArray::count(v7) < 4 )\n    {\n      v9 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a4);\n      cocos2d::CCArray::addObject(v7, v9);\n    }\n    else\n    {\n      v8 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a4);\n      cocos2d::CCArray::insertObject(v7, v8, 3u);\n    }\n  }\n  if ( *(_QWORD *)(a5 + 16) )\n  {\n    v10 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 368), 1583);\n    if ( cocos2d::CCArray::count(v10) < 4 )\n    {\n      v12 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a5);\n      cocos2d::CCArray::addObject(v10, v12);\n    }\n    else\n    {\n      v11 = (struct cocos2d::CCObject *)cocos2d::CCString::create(a5);\n      cocos2d::CCArray::insertObject(v10, v11, 3u);\n    }\n  }\n  sub_14003A830(a4);\n  sub_14003A830(a5);\n}", "assembly": "; \n; GameManager::addCustomAnimationFrame from 0x1401aeb60 to 0x1401aec71 (273 bytes)\n; \n; 2 xrefs:\n; > GameManager::setupGameAnimations @ 0x1401ac669\n; > <???> @ 0x1406cc1c8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401aeb60\npush    rbp                                                            ; +0x5, 0x1401aeb65\npush    rsi                                                            ; +0x6, 0x1401aeb66\npush    rdi                                                            ; +0x7, 0x1401aeb67\nsub     rsp, 40h                                                       ; +0x8, 0x1401aeb68\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1401aeb6c\nxor     rax, rsp                                                       ; +0x13, 0x1401aeb73\nmov     [rsp+58h+var_28], rax                                          ; +0x16, 0x1401aeb76\nmov     rdi, r9                                                        ; +0x1b, 0x1401aeb7b\nmov     rbp, rcx                                                       ; +0x1e, 0x1401aeb7e\nmov     [rsp+58h+var_38], r9                                           ; +0x21, 0x1401aeb81\nmov     rbx, [rsp+58h+arg_20]                                          ; +0x26, 0x1401aeb86\nmov     [rsp+58h+var_30], rbx                                          ; +0x2e, 0x1401aeb8e\ncmp     qword ptr [r9+10h], 0                                          ; +0x33, 0x1401aeb93\njz      short loc_1401AEBEC                                            ; +0x38, 0x1401aeb98\nmov     edx, 62Fh                                                      ; +0x3a, 0x1401aeb9a\nmov     rcx, [rcx+168h]                                                ; +0x3f, 0x1401aeb9f\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x46, 0x1401aeba6\nmov     rsi, rax                                                       ; +0x4c, 0x1401aebac\nmov     rcx, rax                                                       ; +0x4f, 0x1401aebaf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x1401aebb2\nmov     rcx, rdi                                                       ; +0x58, 0x1401aebb8\ncmp     eax, 4                                                         ; +0x5b, 0x1401aebbb\njb      short loc_1401AEBDA                                            ; +0x5e, 0x1401aebbe\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x60, 0x1401aebc0\nmov     rdx, rax                                                       ; +0x66, 0x1401aebc6\nmov     r8d, 3                                                         ; +0x69, 0x1401aebc9\nmov     rcx, rsi                                                       ; +0x6f, 0x1401aebcf\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x72, 0x1401aebd2\njmp     short loc_1401AEBEC                                            ; +0x78, 0x1401aebd8\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x7a, 0x1401aebda\nmov     rdx, rax                                                       ; +0x80, 0x1401aebe0\nmov     rcx, rsi                                                       ; +0x83, 0x1401aebe3\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x86, 0x1401aebe6\ncmp     qword ptr [rbx+10h], 0                                         ; +0x8c, 0x1401aebec\njz      short loc_1401AEC46                                            ; +0x91, 0x1401aebf1\nmov     edx, 62Fh                                                      ; +0x93, 0x1401aebf3\nmov     rcx, [rbp+170h]                                                ; +0x98, 0x1401aebf8\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x9f, 0x1401aebff\nmov     rsi, rax                                                       ; +0xa5, 0x1401aec05\nmov     rcx, rax                                                       ; +0xa8, 0x1401aec08\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xab, 0x1401aec0b\nmov     rcx, rbx                                                       ; +0xb1, 0x1401aec11\ncmp     eax, 4                                                         ; +0xb4, 0x1401aec14\njb      short loc_1401AEC33                                            ; +0xb7, 0x1401aec17\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0xb9, 0x1401aec19\nmov     rdx, rax                                                       ; +0xbf, 0x1401aec1f\nmov     r8d, 3                                                         ; +0xc2, 0x1401aec22\nmov     rcx, rsi                                                       ; +0xc8, 0x1401aec28\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0xcb, 0x1401aec2b\njmp     short loc_1401AEC46                                            ; +0xd1, 0x1401aec31\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0xd3, 0x1401aec33\nmov     rdx, rax                                                       ; +0xd9, 0x1401aec39\nmov     rcx, rsi                                                       ; +0xdc, 0x1401aec3c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xdf, 0x1401aec3f\nnop                                                                    ; +0xe5, 0x1401aec45\nmov     rcx, rdi                                                       ; +0xe6, 0x1401aec46\ncall    sub_14003A830                                                  ; +0xe9, 0x1401aec49\nnop                                                                    ; +0xee, 0x1401aec4e\nmov     rcx, rbx                                                       ; +0xef, 0x1401aec4f\ncall    sub_14003A830                                                  ; +0xf2, 0x1401aec52\nmov     rcx, [rsp+58h+var_28]                                          ; +0xf7, 0x1401aec57\nxor     rcx, rsp; StackCookie                                          ; +0xfc, 0x1401aec5c\ncall    __security_check_cookie                                        ; +0xff, 0x1401aec5f\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x104, 0x1401aec64\nadd     rsp, 40h                                                       ; +0x109, 0x1401aec69\npop     rdi                                                            ; +0x10d, 0x1401aec6d\npop     rsi                                                            ; +0x10e, 0x1401aec6e\npop     rbp                                                            ; +0x10f, 0x1401aec6f\nretn                                                                   ; +0x110, 0x1401aec70", "xrefs": ["GameManager::setupGameAnimations @ 0x1401ac669", "<???> @ 0x1406cc1c8"], "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"}