{"type": "func", "start": 4297393312, "end": 4297393604, "name": "GameManager::addCustomAnimationFrame", "pseudocode": "// \n// GameManager::addCustomAnimationFrame from 0x1002504a0 to 0x1002505c4 (292 bytes)\n// \n// 2 xrefs:\n// > GameManager::setupGameAnimations @ 0x10024a319\n// > GameManager::addDuplicateLastFrame @ 0x100250800\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 12:27:24 +0000\n// \n\n__int64 __fastcall GameManager::addCustomAnimationFrame(\n        __int64 a1,\n        __int64 a2,\n        unsigned int a3,\n        unsigned __int8 *a4,\n        unsigned __int8 *a5)\n{\n  unsigned int v8; // eax\n  unsigned int v9; // eax\n  __int64 result; // rax\n  __int64 v11; // r15\n  unsigned int v12; // r12d\n  __int64 v13; // rax\n  __int64 v14; // r15\n  unsigned int v15; // r12d\n  __int64 v16; // rax\n\n  v8 = *a4;\n  if ( (v8 & 1) != 0 )\n  {\n    if ( !*((_QWORD *)a4 + 1) )\n    {\nLABEL_3:\n      v9 = *a5;\n      if ( (v9 & 1) == 0 )\n        goto LABEL_4;\nLABEL_13:\n      result = *((_QWORD *)a5 + 1);\n      if ( !result )\n        return result;\n      goto LABEL_5;\n    }\n  }\n  else if ( !(v8 >> 1) )\n  {\n    goto LABEL_3;\n  }\n  v14 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 376));\n  v15 = sub_1007FEF90(v14);\n  v16 = sub_10088E600(a4);\n  if ( v15 >= a3 )\n    sub_1007FF110(v14, v16, a3 - 1);\n  else\n    sub_1007FEBF0(v14, v16);\n  v9 = *a5;\n  if ( (v9 & 1) != 0 )\n    goto LABEL_13;\nLABEL_4:\n  result = v9 >> 1;\n  if ( !result )\n    return result;\nLABEL_5:\n  v11 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 384));\n  v12 = sub_1007FEF90(v11);\n  v13 = sub_10088E600(a5);\n  if ( v12 >= a3 )\n    return sub_1007FF110(v11, v13, a3 - 1);\n  else\n    return sub_1007FEBF0(v11, v13);\n}", "assembly": "; \n; GameManager::addCustomAnimationFrame from 0x1002504a0 to 0x1002505c4 (292 bytes)\n; \n; 2 xrefs:\n; > GameManager::setupGameAnimations @ 0x10024a319\n; > GameManager::addDuplicateLastFrame @ 0x100250800\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 12:27:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002504a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002504a1\npush    r15                                                            ; +0x4, 0x1002504a4\npush    r14                                                            ; +0x6, 0x1002504a6\npush    r13                                                            ; +0x8, 0x1002504a8\npush    r12                                                            ; +0xa, 0x1002504aa\npush    rbx                                                            ; +0xc, 0x1002504ac\nsub     rsp, 18h                                                       ; +0xd, 0x1002504ad\nmov     r14, r8                                                        ; +0x11, 0x1002504b1\nmov     r13, rcx                                                       ; +0x14, 0x1002504b4\nmov     ebx, edx                                                       ; +0x17, 0x1002504b7\nmovzx   eax, byte ptr [rcx]                                            ; +0x19, 0x1002504b9\ntest    al, 1                                                          ; +0x1c, 0x1002504bc\njnz     short loc_100250521                                            ; +0x1e, 0x1002504be\nshr     eax, 1                                                         ; +0x20, 0x1002504c0\nmovsxd  rsi, esi                                                       ; +0x22, 0x1002504c2\ntest    rax, rax                                                       ; +0x25, 0x1002504c5\njnz     short loc_10025052D                                            ; +0x28, 0x1002504c8\nmovzx   eax, byte ptr [r14]                                            ; +0x2a, 0x1002504ca\ntest    al, 1                                                          ; +0x2e, 0x1002504ce\njnz     loc_1002505A8                                                  ; +0x30, 0x1002504d0\nshr     eax, 1                                                         ; +0x36, 0x1002504d6\ntest    rax, rax                                                       ; +0x38, 0x1002504d8\njz      loc_1002505B5                                                  ; +0x3b, 0x1002504db\nmov     rdi, [rdi+180h]                                                ; +0x41, 0x1002504e1\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x48, 0x1002504e8\nmov     r15, rax                                                       ; +0x4d, 0x1002504ed\nmov     rdi, rax                                                       ; +0x50, 0x1002504f0\ncall    sub_1007FEF90                                                  ; +0x53, 0x1002504f3\nmov     r12d, eax                                                      ; +0x58, 0x1002504f8\nmov     rdi, r14                                                       ; +0x5b, 0x1002504fb\ncall    sub_10088E600                                                  ; +0x5e, 0x1002504fe\ncmp     r12d, ebx                                                      ; +0x63, 0x100250503\njnb     short loc_100250569                                            ; +0x66, 0x100250506\nmov     rdi, r15                                                       ; +0x68, 0x100250508\nmov     rsi, rax                                                       ; +0x6b, 0x10025050b\nadd     rsp, 18h                                                       ; +0x6e, 0x10025050e\npop     rbx                                                            ; +0x72, 0x100250512\npop     r12                                                            ; +0x73, 0x100250513\npop     r13                                                            ; +0x75, 0x100250515\npop     r14                                                            ; +0x77, 0x100250517\npop     r15                                                            ; +0x79, 0x100250519\npop     rbp                                                            ; +0x7b, 0x10025051b\njmp     sub_1007FEBF0                                                  ; +0x7c, 0x10025051c\nmov     rax, [r13+8]                                                   ; +0x81, 0x100250521\nmovsxd  rsi, esi                                                       ; +0x85, 0x100250525\ntest    rax, rax                                                       ; +0x88, 0x100250528\njz      short loc_1002504CA                                            ; +0x8b, 0x10025052b\nmov     [rbp+var_38], rdi                                              ; +0x8d, 0x10025052d\nmov     rdi, [rdi+178h]                                                ; +0x91, 0x100250531\nmov     [rbp+var_30], rsi                                              ; +0x98, 0x100250538\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x9c, 0x10025053c\nmov     r15, rax                                                       ; +0xa1, 0x100250541\nmov     rdi, rax                                                       ; +0xa4, 0x100250544\ncall    sub_1007FEF90                                                  ; +0xa7, 0x100250547\nmov     r12d, eax                                                      ; +0xac, 0x10025054c\nmov     rdi, r13                                                       ; +0xaf, 0x10025054f\ncall    sub_10088E600                                                  ; +0xb2, 0x100250552\ncmp     r12d, ebx                                                      ; +0xb7, 0x100250557\njnb     short loc_100250586                                            ; +0xba, 0x10025055a\nmov     rdi, r15                                                       ; +0xbc, 0x10025055c\nmov     rsi, rax                                                       ; +0xbf, 0x10025055f\ncall    sub_1007FEBF0                                                  ; +0xc2, 0x100250562\njmp     short loc_100250594                                            ; +0xc7, 0x100250567\ndec     ebx                                                            ; +0xc9, 0x100250569\nmov     rdi, r15                                                       ; +0xcb, 0x10025056b\nmov     rsi, rax                                                       ; +0xce, 0x10025056e\nmov     edx, ebx                                                       ; +0xd1, 0x100250571\nadd     rsp, 18h                                                       ; +0xd3, 0x100250573\npop     rbx                                                            ; +0xd7, 0x100250577\npop     r12                                                            ; +0xd8, 0x100250578\npop     r13                                                            ; +0xda, 0x10025057a\npop     r14                                                            ; +0xdc, 0x10025057c\npop     r15                                                            ; +0xde, 0x10025057e\npop     rbp                                                            ; +0xe0, 0x100250580\njmp     sub_1007FF110                                                  ; +0xe1, 0x100250581\nlea     edx, [rbx-1]                                                   ; +0xe6, 0x100250586\nmov     rdi, r15                                                       ; +0xe9, 0x100250589\nmov     rsi, rax                                                       ; +0xec, 0x10025058c\ncall    sub_1007FF110                                                  ; +0xef, 0x10025058f\nmov     rdi, [rbp+var_38]                                              ; +0xf4, 0x100250594\nmov     rsi, [rbp+var_30]                                              ; +0xf8, 0x100250598\nmovzx   eax, byte ptr [r14]                                            ; +0xfc, 0x10025059c\ntest    al, 1                                                          ; +0x100, 0x1002505a0\njz      loc_1002504D6                                                  ; +0x102, 0x1002505a2\nmov     rax, [r14+8]                                                   ; +0x108, 0x1002505a8\ntest    rax, rax                                                       ; +0x10c, 0x1002505ac\njnz     loc_1002504E1                                                  ; +0x10f, 0x1002505af\nadd     rsp, 18h                                                       ; +0x115, 0x1002505b5\npop     rbx                                                            ; +0x119, 0x1002505b9\npop     r12                                                            ; +0x11a, 0x1002505ba\npop     r13                                                            ; +0x11c, 0x1002505bc\npop     r14                                                            ; +0x11e, 0x1002505be\npop     r15                                                            ; +0x120, 0x1002505c0\npop     rbp                                                            ; +0x122, 0x1002505c2\nretn                                                                   ; +0x123, 0x1002505c3", "xrefs": ["GameManager::setupGameAnimations @ 0x10024a319", "GameManager::addDuplicateLastFrame @ 0x100250800"], "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"}