{"type": "func", "start": 4301973664, "end": 4301973781, "name": "GJRobotSprite::updateGlowColor", "pseudocode": "// \n// GJRobotSprite::updateGlowColor from 0x1006ae8a0 to 0x1006ae915 (117 bytes)\n// \n// 6 xrefs:\n// > SimplePlayer::updateColors @ 0x100357e27\n// > SimplePlayer::updateColors @ 0x100357e89\n// > PlayerObject::createRobot @ 0x1003e9391\n// > PlayerObject::createSpider @ 0x1003e972c\n// > PlayerObject::updateGlowColor @ 0x1004071e8\n// > PlayerObject::updateGlowColor @ 0x100407203\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:35:23 +0000\n// \n\n__int64 __fastcall GJRobotSprite::updateGlowColor(__int64 a1, int a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rbx\n  __int64 result; // rax\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(v2);\n  v7 = a2;\n  v8 = BYTE2(a2);\n  v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 488LL))(*(_QWORD *)(a1 + 744));\n  result = sub_1007FEF90(v3);\n  if ( (_DWORD)result )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1007FEFE0(v3, v5);\n      (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v7);\n      ++v5;\n      result = sub_1007FEF90(v3);\n    }\n    while ( v5 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJRobotSprite::updateGlowColor from 0x1006ae8a0 to 0x1006ae915 (117 bytes)\n; \n; 6 xrefs:\n; > SimplePlayer::updateColors @ 0x100357e27\n; > SimplePlayer::updateColors @ 0x100357e89\n; > PlayerObject::createRobot @ 0x1003e9391\n; > PlayerObject::createSpider @ 0x1003e972c\n; > PlayerObject::updateGlowColor @ 0x1004071e8\n; > PlayerObject::updateGlowColor @ 0x100407203\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:35:23 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006ae8a0\nmov     rbp, rsp                                                       ; +0x1, 0x1006ae8a1\npush    r15                                                            ; +0x4, 0x1006ae8a4\npush    r14                                                            ; +0x6, 0x1006ae8a6\npush    rbx                                                            ; +0x8, 0x1006ae8a8\npush    rax                                                            ; +0x9, 0x1006ae8a9\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1006ae8aa\nshr     esi, 10h                                                       ; +0xe, 0x1006ae8ae\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1006ae8b1\nmov     rdi, [rdi+2E8h]                                                ; +0x15, 0x1006ae8b5\nmov     rax, [rdi]                                                     ; +0x1c, 0x1006ae8bc\ncall    qword ptr [rax+1E8h]                                           ; +0x1f, 0x1006ae8bf\nmov     rbx, rax                                                       ; +0x25, 0x1006ae8c5\nmov     rdi, rax                                                       ; +0x28, 0x1006ae8c8\ncall    sub_1007FEF90                                                  ; +0x2b, 0x1006ae8cb\ntest    eax, eax                                                       ; +0x30, 0x1006ae8d0\njz      short loc_1006AE90A                                            ; +0x32, 0x1006ae8d2\nxor     r14d, r14d                                                     ; +0x34, 0x1006ae8d4\nlea     r15, [rbp+var_1C]                                              ; +0x37, 0x1006ae8d7\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x1006ae8db\nmov     rdi, rbx                                                       ; +0x40, 0x1006ae8e0\nmov     esi, r14d                                                      ; +0x43, 0x1006ae8e3\ncall    sub_1007FEFE0                                                  ; +0x46, 0x1006ae8e6\nmov     rcx, [rax]                                                     ; +0x4b, 0x1006ae8eb\nmov     rdi, rax                                                       ; +0x4e, 0x1006ae8ee\nmov     rsi, r15                                                       ; +0x51, 0x1006ae8f1\ncall    qword ptr [rcx+3C0h]                                           ; +0x54, 0x1006ae8f4\ninc     r14d                                                           ; +0x5a, 0x1006ae8fa\nmov     rdi, rbx                                                       ; +0x5d, 0x1006ae8fd\ncall    sub_1007FEF90                                                  ; +0x60, 0x1006ae900\ncmp     r14d, eax                                                      ; +0x65, 0x1006ae905\njb      short loc_1006AE8E0                                            ; +0x68, 0x1006ae908\nadd     rsp, 8                                                         ; +0x6a, 0x1006ae90a\npop     rbx                                                            ; +0x6e, 0x1006ae90e\npop     r14                                                            ; +0x6f, 0x1006ae90f\npop     r15                                                            ; +0x71, 0x1006ae911\npop     rbp                                                            ; +0x73, 0x1006ae913\nretn                                                                   ; +0x74, 0x1006ae914", "xrefs": ["SimplePlayer::updateColors @ 0x100357e27", "SimplePlayer::updateColors @ 0x100357e89", "PlayerObject::createRobot @ 0x1003e9391", "PlayerObject::createSpider @ 0x1003e972c", "PlayerObject::updateGlowColor @ 0x1004071e8", "PlayerObject::updateGlowColor @ 0x100407203"], "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"}