{"type": "func", "start": 4298484864, "end": 4298485188, "name": "GJItemIcon::darkenStoreItem", "pseudocode": "// \n// GJItemIcon::darkenStoreItem from 0x10035ac80 to 0x10035adc4 (324 bytes)\n// \n// 11 xrefs:\n// > GJPathPage::init @ 0x1002eadd9\n// > GJGarageLayer::setupSpecialPage @ 0x100356df1\n// > GJGarageLayer::getItems @ 0x100357158\n// > GJItemIcon::darkenStoreItem_1 @ 0x100357971\n// > GJItemIcon::darkenStoreItem_1 @ 0x10035797c\n// > GJItemIcon::darkenStoreItem_1 @ 0x100357987\n// > GJItemIcon::darkenStoreItem_1 @ 0x100357992\n// > GJItemIcon::darkenStoreItem_1 @ 0x10035799d\n// > GJItemIcon::darkenStoreItem_1 @ 0x1003579a8\n// > GJItemIcon::changeToLockedState @ 0x1003579e8\n// > ShardsPage::init @ 0x1004c0e87\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:28:53 +0000\n// \n\n__int64 __fastcall GJItemIcon::darkenStoreItem(__int64 a1, unsigned int a2)\n{\n  char v2; // r15\n  __int64 v3; // rbx\n  __int64 result; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rdi\n  __int64 v7; // rbx\n  unsigned int v8; // r14d\n  __int64 v9; // rax\n\n  v2 = *(_BYTE *)(a1 + 620);\n  v3 = *(_QWORD *)(a1 + 600);\n  (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v3 + 960LL))(v3, &unk_100A083D0);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 912LL))(v3, 120);\n  if ( v2 == 1 )\n  {\n    *(_BYTE *)(v3 + 660) = 0;\n    SimplePlayer::updateColors(v3);\n    result = SimplePlayer::hideSecondary(v3);\n    v5 = *(_QWORD *)(v3 + 640);\n    if ( v5 )\n    {\n      GJRobotSprite::updateColor01(v5, a2);\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v3 + 640) + 912LL))(*(_QWORD *)(v3 + 640), 190);\n      result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 640) + 1256LL))(*(_QWORD *)(v3 + 640));\n    }\n    v6 = *(_QWORD *)(v3 + 648);\n    if ( v6 )\n    {\n      GJRobotSprite::updateColor01(v6, a2);\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v3 + 648) + 912LL))(*(_QWORD *)(v3 + 648), 190);\n      return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 648) + 1256LL))(*(_QWORD *)(v3 + 648));\n    }\n  }\n  else\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);\n    if ( result )\n    {\n      v7 = result;\n      result = sub_1007FEF90(result);\n      if ( (_DWORD)result )\n      {\n        v8 = 0;\n        do\n        {\n          v9 = sub_1007FEFE0(v7, v8);\n          (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, 0);\n          ++v8;\n          result = sub_1007FEF90(v7);\n        }\n        while ( v8 < (unsigned int)result );\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJItemIcon::darkenStoreItem from 0x10035ac80 to 0x10035adc4 (324 bytes)\n; \n; 11 xrefs:\n; > GJPathPage::init @ 0x1002eadd9\n; > GJGarageLayer::setupSpecialPage @ 0x100356df1\n; > GJGarageLayer::getItems @ 0x100357158\n; > GJItemIcon::darkenStoreItem_1 @ 0x100357971\n; > GJItemIcon::darkenStoreItem_1 @ 0x10035797c\n; > GJItemIcon::darkenStoreItem_1 @ 0x100357987\n; > GJItemIcon::darkenStoreItem_1 @ 0x100357992\n; > GJItemIcon::darkenStoreItem_1 @ 0x10035799d\n; > GJItemIcon::darkenStoreItem_1 @ 0x1003579a8\n; > GJItemIcon::changeToLockedState @ 0x1003579e8\n; > ShardsPage::init @ 0x1004c0e87\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:28:53 +0000\n; \npush    rbp                                                            ; +0x0, 0x10035ac80\nmov     rbp, rsp                                                       ; +0x1, 0x10035ac81\npush    r15                                                            ; +0x4, 0x10035ac84\npush    r14                                                            ; +0x6, 0x10035ac86\npush    rbx                                                            ; +0x8, 0x10035ac88\npush    rax                                                            ; +0x9, 0x10035ac89\nmov     r14d, esi                                                      ; +0xa, 0x10035ac8a\nmovzx   r15d, byte ptr [rdi+26Ch]                                      ; +0xd, 0x10035ac8d\nmov     rbx, [rdi+258h]                                                ; +0x15, 0x10035ac95\nmov     rax, [rbx]                                                     ; +0x1c, 0x10035ac9c\nlea     rsi, unk_100A083D0                                             ; +0x1f, 0x10035ac9f\nmov     rdi, rbx                                                       ; +0x26, 0x10035aca6\ncall    qword ptr [rax+3C0h]                                           ; +0x29, 0x10035aca9\nmov     rax, [rbx]                                                     ; +0x2f, 0x10035acaf\nmov     rdi, rbx                                                       ; +0x32, 0x10035acb2\nmov     esi, 78h ; 'x'                                                 ; +0x35, 0x10035acb5\ncall    qword ptr [rax+390h]                                           ; +0x3a, 0x10035acba\ncmp     r15b, 1                                                        ; +0x40, 0x10035acc0\njnz     loc_10035AD61                                                  ; +0x44, 0x10035acc4\nmov     byte ptr [rbx+294h], 0                                         ; +0x4a, 0x10035acca\nmov     rdi, rbx                                                       ; +0x51, 0x10035acd1\ncall    SimplePlayer__updateColors                                     ; +0x54, 0x10035acd4\nmov     rdi, rbx                                                       ; +0x59, 0x10035acd9\ncall    SimplePlayer__hideSecondary                                    ; +0x5c, 0x10035acdc\nmov     rdi, [rbx+280h]                                                ; +0x61, 0x10035ace1\ntest    rdi, rdi                                                       ; +0x68, 0x10035ace8\njz      short loc_10035AD1A                                            ; +0x6b, 0x10035aceb\nmov     esi, r14d                                                      ; +0x6d, 0x10035aced\ncall    GJRobotSprite__updateColor01                                   ; +0x70, 0x10035acf0\nmov     rdi, [rbx+280h]                                                ; +0x75, 0x10035acf5\nmov     rax, [rdi]                                                     ; +0x7c, 0x10035acfc\nmov     esi, 0BEh                                                      ; +0x7f, 0x10035acff\ncall    qword ptr [rax+390h]                                           ; +0x84, 0x10035ad04\nmov     rdi, [rbx+280h]                                                ; +0x8a, 0x10035ad0a\nmov     rax, [rdi]                                                     ; +0x91, 0x10035ad11\ncall    qword ptr [rax+4E8h]                                           ; +0x94, 0x10035ad14\nmov     rdi, [rbx+288h]                                                ; +0x9a, 0x10035ad1a\ntest    rdi, rdi                                                       ; +0xa1, 0x10035ad21\njz      loc_10035ADB9                                                  ; +0xa4, 0x10035ad24\nmov     esi, r14d                                                      ; +0xaa, 0x10035ad2a\ncall    GJRobotSprite__updateColor01                                   ; +0xad, 0x10035ad2d\nmov     rdi, [rbx+288h]                                                ; +0xb2, 0x10035ad32\nmov     rax, [rdi]                                                     ; +0xb9, 0x10035ad39\nmov     esi, 0BEh                                                      ; +0xbc, 0x10035ad3c\ncall    qword ptr [rax+390h]                                           ; +0xc1, 0x10035ad41\nmov     rdi, [rbx+288h]                                                ; +0xc7, 0x10035ad47\nmov     rax, [rdi]                                                     ; +0xce, 0x10035ad4e\nadd     rsp, 8                                                         ; +0xd1, 0x10035ad51\npop     rbx                                                            ; +0xd5, 0x10035ad55\npop     r14                                                            ; +0xd6, 0x10035ad56\npop     r15                                                            ; +0xd8, 0x10035ad58\npop     rbp                                                            ; +0xda, 0x10035ad5a\njmp     qword ptr [rax+4E8h]                                           ; +0xdb, 0x10035ad5b\nmov     rax, [rbx]                                                     ; +0xe1, 0x10035ad61\nmov     rdi, rbx                                                       ; +0xe4, 0x10035ad64\ncall    qword ptr [rax+1E8h]                                           ; +0xe7, 0x10035ad67\ntest    rax, rax                                                       ; +0xed, 0x10035ad6d\njz      short loc_10035ADB9                                            ; +0xf0, 0x10035ad70\nmov     rbx, rax                                                       ; +0xf2, 0x10035ad72\nmov     rdi, rax                                                       ; +0xf5, 0x10035ad75\ncall    sub_1007FEF90                                                  ; +0xf8, 0x10035ad78\ntest    eax, eax                                                       ; +0xfd, 0x10035ad7d\njz      short loc_10035ADB9                                            ; +0xff, 0x10035ad7f\nxor     r14d, r14d                                                     ; +0x101, 0x10035ad81\nnop     word ptr [rax+rax+00000000h]                                   ; +0x104, 0x10035ad84\nmov     rdi, rbx                                                       ; +0x110, 0x10035ad90\nmov     esi, r14d                                                      ; +0x113, 0x10035ad93\ncall    sub_1007FEFE0                                                  ; +0x116, 0x10035ad96\nmov     rcx, [rax]                                                     ; +0x11b, 0x10035ad9b\nmov     rdi, rax                                                       ; +0x11e, 0x10035ad9e\nxor     esi, esi                                                       ; +0x121, 0x10035ada1\ncall    qword ptr [rcx+158h]                                           ; +0x123, 0x10035ada3\ninc     r14d                                                           ; +0x129, 0x10035ada9\nmov     rdi, rbx                                                       ; +0x12c, 0x10035adac\ncall    sub_1007FEF90                                                  ; +0x12f, 0x10035adaf\ncmp     r14d, eax                                                      ; +0x134, 0x10035adb4\njb      short loc_10035AD90                                            ; +0x137, 0x10035adb7\nadd     rsp, 8                                                         ; +0x139, 0x10035adb9\npop     rbx                                                            ; +0x13d, 0x10035adbd\npop     r14                                                            ; +0x13e, 0x10035adbe\npop     r15                                                            ; +0x140, 0x10035adc0\npop     rbp                                                            ; +0x142, 0x10035adc2\nretn                                                                   ; +0x143, 0x10035adc3", "xrefs": ["GJPathPage::init @ 0x1002eadd9", "GJGarageLayer::setupSpecialPage @ 0x100356df1", "GJGarageLayer::getItems @ 0x100357158", "GJItemIcon::darkenStoreItem_1 @ 0x100357971", "GJItemIcon::darkenStoreItem_1 @ 0x10035797c", "GJItemIcon::darkenStoreItem_1 @ 0x100357987", "GJItemIcon::darkenStoreItem_1 @ 0x100357992", "GJItemIcon::darkenStoreItem_1 @ 0x10035799d", "GJItemIcon::darkenStoreItem_1 @ 0x1003579a8", "GJItemIcon::changeToLockedState @ 0x1003579e8", "ShardsPage::init @ 0x1004c0e87"], "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"}