{"type": "func", "start": 5371512752, "end": 5371513025, "name": "GameManager::addCustomAnimationFrame", "pseudocode": "// \n// GameManager::addCustomAnimationFrame from 0x1402ac7b0 to 0x1402ac8c1 (273 bytes)\n// \n// 2 xrefs:\n// > GameManager::setupGameAnimations @ 0x1402a9c46\n// > <???> @ 0x14091db34\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:20 +0000\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::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 384), 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::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 392), 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_14003D310(a4);\n  sub_14003D310(a5);\n}", "assembly": "; \n; GameManager::addCustomAnimationFrame from 0x1402ac7b0 to 0x1402ac8c1 (273 bytes)\n; \n; 2 xrefs:\n; > GameManager::setupGameAnimations @ 0x1402a9c46\n; > <???> @ 0x14091db34\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:20 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402ac7b0\npush    rbp                                                            ; +0x5, 0x1402ac7b5\npush    rsi                                                            ; +0x6, 0x1402ac7b6\npush    rdi                                                            ; +0x7, 0x1402ac7b7\nsub     rsp, 40h                                                       ; +0x8, 0x1402ac7b8\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1402ac7bc\nxor     rax, rsp                                                       ; +0x13, 0x1402ac7c3\nmov     [rsp+58h+var_28], rax                                          ; +0x16, 0x1402ac7c6\nmov     rdi, r9                                                        ; +0x1b, 0x1402ac7cb\nmov     rbp, rcx                                                       ; +0x1e, 0x1402ac7ce\nmov     [rsp+58h+var_38], r9                                           ; +0x21, 0x1402ac7d1\nmov     rbx, [rsp+58h+arg_20]                                          ; +0x26, 0x1402ac7d6\nmov     [rsp+58h+var_30], rbx                                          ; +0x2e, 0x1402ac7de\ncmp     qword ptr [r9+10h], 0                                          ; +0x33, 0x1402ac7e3\njz      short loc_1402AC83C                                            ; +0x38, 0x1402ac7e8\nmov     edx, 62Fh                                                      ; +0x3a, 0x1402ac7ea\nmov     rcx, [rcx+180h]                                                ; +0x3f, 0x1402ac7ef\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x46, 0x1402ac7f6\nmov     rsi, rax                                                       ; +0x4c, 0x1402ac7fc\nmov     rcx, rax                                                       ; +0x4f, 0x1402ac7ff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x1402ac802\nmov     rcx, rdi                                                       ; +0x58, 0x1402ac808\ncmp     eax, 4                                                         ; +0x5b, 0x1402ac80b\njb      short loc_1402AC82A                                            ; +0x5e, 0x1402ac80e\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, 0x1402ac810\nmov     rdx, rax                                                       ; +0x66, 0x1402ac816\nmov     r8d, 3                                                         ; +0x69, 0x1402ac819\nmov     rcx, rsi                                                       ; +0x6f, 0x1402ac81f\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x72, 0x1402ac822\njmp     short loc_1402AC83C                                            ; +0x78, 0x1402ac828\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, 0x1402ac82a\nmov     rdx, rax                                                       ; +0x80, 0x1402ac830\nmov     rcx, rsi                                                       ; +0x83, 0x1402ac833\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x86, 0x1402ac836\ncmp     qword ptr [rbx+10h], 0                                         ; +0x8c, 0x1402ac83c\njz      short loc_1402AC896                                            ; +0x91, 0x1402ac841\nmov     edx, 62Fh                                                      ; +0x93, 0x1402ac843\nmov     rcx, [rbp+188h]                                                ; +0x98, 0x1402ac848\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x9f, 0x1402ac84f\nmov     rsi, rax                                                       ; +0xa5, 0x1402ac855\nmov     rcx, rax                                                       ; +0xa8, 0x1402ac858\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xab, 0x1402ac85b\nmov     rcx, rbx                                                       ; +0xb1, 0x1402ac861\ncmp     eax, 4                                                         ; +0xb4, 0x1402ac864\njb      short loc_1402AC883                                            ; +0xb7, 0x1402ac867\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, 0x1402ac869\nmov     rdx, rax                                                       ; +0xbf, 0x1402ac86f\nmov     r8d, 3                                                         ; +0xc2, 0x1402ac872\nmov     rcx, rsi                                                       ; +0xc8, 0x1402ac878\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0xcb, 0x1402ac87b\njmp     short loc_1402AC896                                            ; +0xd1, 0x1402ac881\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, 0x1402ac883\nmov     rdx, rax                                                       ; +0xd9, 0x1402ac889\nmov     rcx, rsi                                                       ; +0xdc, 0x1402ac88c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xdf, 0x1402ac88f\nnop                                                                    ; +0xe5, 0x1402ac895\nmov     rcx, rdi                                                       ; +0xe6, 0x1402ac896\ncall    sub_14003D310                                                  ; +0xe9, 0x1402ac899\nnop                                                                    ; +0xee, 0x1402ac89e\nmov     rcx, rbx                                                       ; +0xef, 0x1402ac89f\ncall    sub_14003D310                                                  ; +0xf2, 0x1402ac8a2\nmov     rcx, [rsp+58h+var_28]                                          ; +0xf7, 0x1402ac8a7\nxor     rcx, rsp; StackCookie                                          ; +0xfc, 0x1402ac8ac\ncall    __security_check_cookie                                        ; +0xff, 0x1402ac8af\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x104, 0x1402ac8b4\nadd     rsp, 40h                                                       ; +0x109, 0x1402ac8b9\npop     rdi                                                            ; +0x10d, 0x1402ac8bd\npop     rsi                                                            ; +0x10e, 0x1402ac8be\npop     rbp                                                            ; +0x10f, 0x1402ac8bf\nretn                                                                   ; +0x110, 0x1402ac8c0", "xrefs": ["GameManager::setupGameAnimations @ 0x1402a9c46", "<???> @ 0x14091db34"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}