{"type": "func", "start": 5372394768, "end": 5372394894, "name": "GJItemIcon::darkenStoreItem_1", "pseudocode": "// \n// GJItemIcon::darkenStoreItem_1 from 0x140383d10 to 0x140383d8e (126 bytes)\n// \n// 2 xrefs:\n// > GJShopLayer::didPurchaseItem @ 0x1403b2ad6\n// > <???> @ 0x140922a30\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 11:31:06 +0000\n// \n\n__int64 __fastcall GJItemIcon::darkenStoreItem_1(__int64 a1, int a2)\n{\n  int v3; // edx\n  int v4; // edx\n  int v5; // edx\n  int v6; // edx\n  char v7; // cl\n  __int16 v9; // [rsp+38h] [rbp+10h]\n  __int16 v10; // [rsp+40h] [rbp+18h] BYREF\n  char v11; // [rsp+42h] [rbp+1Ah]\n\n  v3 = a2 - 1;\n  if ( !v3 )\n  {\n    v9 = 7690;\n    goto LABEL_12;\n  }\n  v4 = v3 - 1;\n  if ( v4 )\n  {\n    v5 = v4 - 1;\n    if ( v5 )\n    {\n      v6 = v5 - 1;\n      if ( v6 )\n      {\n        if ( v6 != 1 )\n        {\n          v9 = 7740;\nLABEL_12:\n          v7 = 20;\n          goto LABEL_13;\n        }\n        v9 = 12850;\n        v7 = 50;\n      }\n      else\n      {\n        v9 = 7700;\n        v7 = 50;\n      }\n    }\n    else\n    {\n      v9 = 5140;\n      v7 = 40;\n    }\n  }\n  else\n  {\n    v9 = 5665;\n    v7 = 66;\n  }\nLABEL_13:\n  v11 = v7;\n  v10 = v9;\n  return GJItemIcon::darkenStoreItem(a1, &v10);\n}", "assembly": "; \n; GJItemIcon::darkenStoreItem_1 from 0x140383d10 to 0x140383d8e (126 bytes)\n; \n; 2 xrefs:\n; > GJShopLayer::didPurchaseItem @ 0x1403b2ad6\n; > <???> @ 0x140922a30\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 11:31:06 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x140383d10\nmov     r8, rcx                                                        ; +0x4, 0x140383d14\nsub     edx, 1                                                         ; +0x7, 0x140383d17\njz      short loc_140383D65                                            ; +0xa, 0x140383d1a\nsub     edx, 1                                                         ; +0xc, 0x140383d1c\njz      short loc_140383D5A                                            ; +0xf, 0x140383d1f\nsub     edx, 1                                                         ; +0x11, 0x140383d21\njz      short loc_140383D4F                                            ; +0x14, 0x140383d24\nsub     edx, 1                                                         ; +0x16, 0x140383d26\njz      short loc_140383D44                                            ; +0x19, 0x140383d29\ncmp     edx, 1                                                         ; +0x1b, 0x140383d2b\njz      short loc_140383D39                                            ; +0x1e, 0x140383d2e\nmov     [rsp+28h+arg_8], 1E3Ch                                         ; +0x20, 0x140383d30\njmp     short loc_140383D6C                                            ; +0x27, 0x140383d37\nmov     [rsp+28h+arg_8], 3232h                                         ; +0x29, 0x140383d39\nmov     cl, 32h ; '2'                                                  ; +0x30, 0x140383d40\njmp     short loc_140383D6E                                            ; +0x32, 0x140383d42\nmov     [rsp+28h+arg_8], 1E14h                                         ; +0x34, 0x140383d44\nmov     cl, 32h ; '2'                                                  ; +0x3b, 0x140383d4b\njmp     short loc_140383D6E                                            ; +0x3d, 0x140383d4d\nmov     [rsp+28h+arg_8], 1414h                                         ; +0x3f, 0x140383d4f\nmov     cl, 28h ; '('                                                  ; +0x46, 0x140383d56\njmp     short loc_140383D6E                                            ; +0x48, 0x140383d58\nmov     [rsp+28h+arg_8], 1621h                                         ; +0x4a, 0x140383d5a\nmov     cl, 42h ; 'B'                                                  ; +0x51, 0x140383d61\njmp     short loc_140383D6E                                            ; +0x53, 0x140383d63\nmov     [rsp+28h+arg_8], 1E0Ah                                         ; +0x55, 0x140383d65\nmov     cl, 14h                                                        ; +0x5c, 0x140383d6c\nmovzx   eax, [rsp+28h+arg_8]                                           ; +0x5e, 0x140383d6e\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x63, 0x140383d73\nmov     [rsp+28h+arg_12], cl                                           ; +0x68, 0x140383d78\nmov     rcx, r8                                                        ; +0x6c, 0x140383d7c\nmov     [rsp+28h+arg_10], ax                                           ; +0x6f, 0x140383d7f\ncall    GJItemIcon__darkenStoreItem                                    ; +0x74, 0x140383d84\nadd     rsp, 28h                                                       ; +0x79, 0x140383d89\nretn                                                                   ; +0x7d, 0x140383d8d", "xrefs": ["GJShopLayer::didPurchaseItem @ 0x1403b2ad6", "<???> @ 0x140922a30"], "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"}