{"type": "func", "start": 4296636096, "end": 4296636213, "name": "AnimatedGameObject::updateChildSpriteColor", "pseudocode": "// \n// AnimatedGameObject::updateChildSpriteColor from 0x1001976c0 to 0x100197735 (117 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::updateVisibility @ 0x1000852f0\n// > LevelEditorLayer::updateVisibility @ 0x1000bdfaf\n// > LevelEditorLayer::updateVisibility @ 0x1000be52d\n// > LevelEditorLayer::updateObjectColors @ 0x1000beb92\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:25:56 +0000\n// \n\n__int64 __fastcall AnimatedGameObject::updateChildSpriteColor(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rdi\n  __int64 v4; // rbx\n  unsigned int v5; // r14d\n  __int64 v6; // rax\n  __int16 v7; // [rsp+0h] [rbp-1Ch] BYREF\n  char v8; // [rsp+2h] [rbp-1Ah]\n  char v9; // [rsp+3h] [rbp-19h]\n\n  v9 = HIBYTE(result);\n  v7 = a2;\n  v8 = BYTE2(a2);\n  v3 = *(_QWORD *)(a1 + 1472);\n  if ( v3 )\n  {\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);\n    result = sub_1007FEF90(v4);\n    if ( (_DWORD)result )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007FEFE0(v4, v5);\n        (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v7);\n        ++v5;\n        result = sub_1007FEF90(v4);\n      }\n      while ( v5 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::updateChildSpriteColor from 0x1001976c0 to 0x100197735 (117 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::updateVisibility @ 0x1000852f0\n; > LevelEditorLayer::updateVisibility @ 0x1000bdfaf\n; > LevelEditorLayer::updateVisibility @ 0x1000be52d\n; > LevelEditorLayer::updateObjectColors @ 0x1000beb92\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:25:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001976c0\nmov     rbp, rsp                                                       ; +0x1, 0x1001976c1\npush    r15                                                            ; +0x4, 0x1001976c4\npush    r14                                                            ; +0x6, 0x1001976c6\npush    rbx                                                            ; +0x8, 0x1001976c8\npush    rax                                                            ; +0x9, 0x1001976c9\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1001976ca\nshr     esi, 10h                                                       ; +0xe, 0x1001976ce\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1001976d1\nmov     rdi, [rdi+5C0h]                                                ; +0x15, 0x1001976d5\ntest    rdi, rdi                                                       ; +0x1c, 0x1001976dc\njz      short loc_10019772A                                            ; +0x1f, 0x1001976df\nmov     rax, [rdi]                                                     ; +0x21, 0x1001976e1\ncall    qword ptr [rax+1E8h]                                           ; +0x24, 0x1001976e4\nmov     rbx, rax                                                       ; +0x2a, 0x1001976ea\nmov     rdi, rax                                                       ; +0x2d, 0x1001976ed\ncall    sub_1007FEF90                                                  ; +0x30, 0x1001976f0\ntest    eax, eax                                                       ; +0x35, 0x1001976f5\njz      short loc_10019772A                                            ; +0x37, 0x1001976f7\nxor     r14d, r14d                                                     ; +0x39, 0x1001976f9\nlea     r15, [rbp+var_1C]                                              ; +0x3c, 0x1001976fc\nmov     rdi, rbx                                                       ; +0x40, 0x100197700\nmov     esi, r14d                                                      ; +0x43, 0x100197703\ncall    sub_1007FEFE0                                                  ; +0x46, 0x100197706\nmov     rcx, [rax]                                                     ; +0x4b, 0x10019770b\nmov     rdi, rax                                                       ; +0x4e, 0x10019770e\nmov     rsi, r15                                                       ; +0x51, 0x100197711\ncall    qword ptr [rcx+3C0h]                                           ; +0x54, 0x100197714\ninc     r14d                                                           ; +0x5a, 0x10019771a\nmov     rdi, rbx                                                       ; +0x5d, 0x10019771d\ncall    sub_1007FEF90                                                  ; +0x60, 0x100197720\ncmp     r14d, eax                                                      ; +0x65, 0x100197725\njb      short loc_100197700                                            ; +0x68, 0x100197728\nadd     rsp, 8                                                         ; +0x6a, 0x10019772a\npop     rbx                                                            ; +0x6e, 0x10019772e\npop     r14                                                            ; +0x6f, 0x10019772f\npop     r15                                                            ; +0x71, 0x100197731\npop     rbp                                                            ; +0x73, 0x100197733\nretn                                                                   ; +0x74, 0x100197734", "xrefs": ["PlayLayer::updateVisibility @ 0x1000852f0", "LevelEditorLayer::updateVisibility @ 0x1000bdfaf", "LevelEditorLayer::updateVisibility @ 0x1000be52d", "LevelEditorLayer::updateObjectColors @ 0x1000beb92"], "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"}