{"type": "func", "start": 4297483360, "end": 4297483652, "name": "GameManager::addCustomAnimationFrame", "pseudocode": "// \n// GameManager::addCustomAnimationFrame from 0x100266460 to 0x100266584 (292 bytes)\n// \n// 2 xrefs:\n// > GameManager::setupGameAnimations @ 0x100260389\n// > GameManager::addDuplicateLastFrame @ 0x1002667c0\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 a1,\n        intptr_t 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  cocos2d::CCObject *v11; // r15\n  unsigned int v12; // r12d\n  __int64 v13; // rax\n  cocos2d::CCObject *v14; // r15\n  unsigned int v15; // r12d\n  __int64 v16; // rax\n\n  v8 = *a4;\n  if ( (v8 & 1) != 0 )\n  {\n    a2 = (int)a2;\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\n  {\n    a2 = (int)a2;\n    if ( !(v8 >> 1) )\n      goto LABEL_3;\n  }\n  v14 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 352), a2);\n  v15 = sub_100720070(v14);\n  v16 = sub_1007AB360(a4);\n  if ( v15 >= a3 )\n    sub_1007201F0(v14, v16, a3 - 1);\n  else\n    sub_10071FCD0(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(*(cocos2d::CCDictionary **)(a1 + 360), a2);\n  v12 = sub_100720070(v11);\n  v13 = sub_1007AB360(a5);\n  if ( v12 >= a3 )\n    return sub_1007201F0(v11, v13, a3 - 1);\n  else\n    return sub_10071FCD0(v11, v13);\n}", "assembly": "; \n; GameManager::addCustomAnimationFrame from 0x100266460 to 0x100266584 (292 bytes)\n; \n; 2 xrefs:\n; > GameManager::setupGameAnimations @ 0x100260389\n; > GameManager::addDuplicateLastFrame @ 0x1002667c0\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\npush    rbp                                                            ; +0x0, 0x100266460\nmov     rbp, rsp                                                       ; +0x1, 0x100266461\npush    r15                                                            ; +0x4, 0x100266464\npush    r14                                                            ; +0x6, 0x100266466\npush    r13                                                            ; +0x8, 0x100266468\npush    r12                                                            ; +0xa, 0x10026646a\npush    rbx                                                            ; +0xc, 0x10026646c\nsub     rsp, 18h                                                       ; +0xd, 0x10026646d\nmov     r14, r8                                                        ; +0x11, 0x100266471\nmov     r13, rcx                                                       ; +0x14, 0x100266474\nmov     ebx, edx                                                       ; +0x17, 0x100266477\nmovzx   eax, byte ptr [rcx]                                            ; +0x19, 0x100266479\ntest    al, 1                                                          ; +0x1c, 0x10026647c\njnz     short loc_1002664E1                                            ; +0x1e, 0x10026647e\nshr     eax, 1                                                         ; +0x20, 0x100266480\nmovsxd  rsi, esi                                                       ; +0x22, 0x100266482\ntest    rax, rax                                                       ; +0x25, 0x100266485\njnz     short loc_1002664ED                                            ; +0x28, 0x100266488\nmovzx   eax, byte ptr [r14]                                            ; +0x2a, 0x10026648a\ntest    al, 1                                                          ; +0x2e, 0x10026648e\njnz     loc_100266568                                                  ; +0x30, 0x100266490\nshr     eax, 1                                                         ; +0x36, 0x100266496\ntest    rax, rax                                                       ; +0x38, 0x100266498\njz      loc_100266575                                                  ; +0x3b, 0x10026649b\nmov     rdi, [rdi+168h]                                                ; +0x41, 0x1002664a1\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x48, 0x1002664a8\nmov     r15, rax                                                       ; +0x4d, 0x1002664ad\nmov     rdi, rax                                                       ; +0x50, 0x1002664b0\ncall    sub_100720070                                                  ; +0x53, 0x1002664b3\nmov     r12d, eax                                                      ; +0x58, 0x1002664b8\nmov     rdi, r14                                                       ; +0x5b, 0x1002664bb\ncall    sub_1007AB360                                                  ; +0x5e, 0x1002664be\ncmp     r12d, ebx                                                      ; +0x63, 0x1002664c3\njnb     short loc_100266529                                            ; +0x66, 0x1002664c6\nmov     rdi, r15                                                       ; +0x68, 0x1002664c8\nmov     rsi, rax                                                       ; +0x6b, 0x1002664cb\nadd     rsp, 18h                                                       ; +0x6e, 0x1002664ce\npop     rbx                                                            ; +0x72, 0x1002664d2\npop     r12                                                            ; +0x73, 0x1002664d3\npop     r13                                                            ; +0x75, 0x1002664d5\npop     r14                                                            ; +0x77, 0x1002664d7\npop     r15                                                            ; +0x79, 0x1002664d9\npop     rbp                                                            ; +0x7b, 0x1002664db\njmp     sub_10071FCD0                                                  ; +0x7c, 0x1002664dc\nmov     rax, [r13+8]                                                   ; +0x81, 0x1002664e1\nmovsxd  rsi, esi                                                       ; +0x85, 0x1002664e5\ntest    rax, rax                                                       ; +0x88, 0x1002664e8\njz      short loc_10026648A                                            ; +0x8b, 0x1002664eb\nmov     [rbp+var_38], rdi                                              ; +0x8d, 0x1002664ed\nmov     rdi, [rdi+160h]                                                ; +0x91, 0x1002664f1\nmov     [rbp+var_30], rsi                                              ; +0x98, 0x1002664f8\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x9c, 0x1002664fc\nmov     r15, rax                                                       ; +0xa1, 0x100266501\nmov     rdi, rax                                                       ; +0xa4, 0x100266504\ncall    sub_100720070                                                  ; +0xa7, 0x100266507\nmov     r12d, eax                                                      ; +0xac, 0x10026650c\nmov     rdi, r13                                                       ; +0xaf, 0x10026650f\ncall    sub_1007AB360                                                  ; +0xb2, 0x100266512\ncmp     r12d, ebx                                                      ; +0xb7, 0x100266517\njnb     short loc_100266546                                            ; +0xba, 0x10026651a\nmov     rdi, r15                                                       ; +0xbc, 0x10026651c\nmov     rsi, rax                                                       ; +0xbf, 0x10026651f\ncall    sub_10071FCD0                                                  ; +0xc2, 0x100266522\njmp     short loc_100266554                                            ; +0xc7, 0x100266527\ndec     ebx                                                            ; +0xc9, 0x100266529\nmov     rdi, r15                                                       ; +0xcb, 0x10026652b\nmov     rsi, rax                                                       ; +0xce, 0x10026652e\nmov     edx, ebx                                                       ; +0xd1, 0x100266531\nadd     rsp, 18h                                                       ; +0xd3, 0x100266533\npop     rbx                                                            ; +0xd7, 0x100266537\npop     r12                                                            ; +0xd8, 0x100266538\npop     r13                                                            ; +0xda, 0x10026653a\npop     r14                                                            ; +0xdc, 0x10026653c\npop     r15                                                            ; +0xde, 0x10026653e\npop     rbp                                                            ; +0xe0, 0x100266540\njmp     sub_1007201F0                                                  ; +0xe1, 0x100266541\nlea     edx, [rbx-1]                                                   ; +0xe6, 0x100266546\nmov     rdi, r15                                                       ; +0xe9, 0x100266549\nmov     rsi, rax                                                       ; +0xec, 0x10026654c\ncall    sub_1007201F0                                                  ; +0xef, 0x10026654f\nmov     rdi, [rbp+var_38]                                              ; +0xf4, 0x100266554\nmov     rsi, [rbp+var_30]                                              ; +0xf8, 0x100266558\nmovzx   eax, byte ptr [r14]                                            ; +0xfc, 0x10026655c\ntest    al, 1                                                          ; +0x100, 0x100266560\njz      loc_100266496                                                  ; +0x102, 0x100266562\nmov     rax, [r14+8]                                                   ; +0x108, 0x100266568\ntest    rax, rax                                                       ; +0x10c, 0x10026656c\njnz     loc_1002664A1                                                  ; +0x10f, 0x10026656f\nadd     rsp, 18h                                                       ; +0x115, 0x100266575\npop     rbx                                                            ; +0x119, 0x100266579\npop     r12                                                            ; +0x11a, 0x10026657a\npop     r13                                                            ; +0x11c, 0x10026657c\npop     r14                                                            ; +0x11e, 0x10026657e\npop     r15                                                            ; +0x120, 0x100266580\npop     rbp                                                            ; +0x122, 0x100266582\nretn                                                                   ; +0x123, 0x100266583", "xrefs": ["GameManager::setupGameAnimations @ 0x100260389", "GameManager::addDuplicateLastFrame @ 0x1002667c0"], "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"}