{"type": "func", "start": 5372395632, "end": 5372395838, "name": "GJItemIcon::changeToLockedState", "pseudocode": "// \n// GJItemIcon::changeToLockedState from 0x140384070 to 0x14038413e (206 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::getItems @ 0x14037f3ce\n// > GJGarageLayer::setupSpecialPage @ 0x14037fafd\n// > GJPathPage::init @ 0x1403943ec\n// > ShardsPage::init @ 0x14062ceb6\n// > <???> @ 0x140922a6c\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::changeToLockedState(_QWORD *a1)\n{\n  struct cocos2d::CCSprite *v2; // rdi\n  __int64 v3; // rcx\n  __int64 v4; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rdx\n  __int64 (__fastcall **v7)(__int64, __int16 *); // rax\n  _BYTE v9[3]; // [rsp+40h] [rbp+8h] BYREF\n  __int16 v10; // [rsp+48h] [rbp+10h] BYREF\n  char v11; // [rsp+4Ah] [rbp+12h]\n\n  memset(v9, 50, sizeof(v9));\n  GJItemIcon::darkenStoreItem((__int64)a1, (__int64)v9);\n  v2 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071C878);\n  (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *, __int64))(*a1 + 456LL))(a1, v2, 10);\n  v3 = a1[75];\n  v4 = *(_QWORD *)v2;\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 200LL))(v3);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v4 + 184))(v2, v5);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v2 + 160LL))(v2);\n  LOBYTE(v6) = -56;\n  (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v2 + 40) + 40LL))((__int64)v2 + 320, v6);\n  v7 = *((__int64 (__fastcall ***)(__int64, __int16 *))v2 + 40);\n  v10 = -20561;\n  v11 = -81;\n  return (*v7)((__int64)v2 + 320, &v10);\n}", "assembly": "; \n; GJItemIcon::changeToLockedState from 0x140384070 to 0x14038413e (206 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::getItems @ 0x14037f3ce\n; > GJGarageLayer::setupSpecialPage @ 0x14037fafd\n; > GJPathPage::init @ 0x1403943ec\n; > ShardsPage::init @ 0x14062ceb6\n; > <???> @ 0x140922a6c\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; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140384070\npush    rdi                                                            ; +0x5, 0x140384075\nsub     rsp, 30h                                                       ; +0x6, 0x140384076\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x14038407a\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xf, 0x14038407f\nmovaps  xmm6, xmm1                                                     ; +0x14, 0x140384084\nmov     [rsp+38h+arg_0], 3232h                                         ; +0x17, 0x140384087\nmov     rbx, rcx                                                       ; +0x1e, 0x14038408e\nmov     [rsp+38h+arg_2], 32h ; '2'                                     ; +0x21, 0x140384091\ncall    GJItemIcon__darkenStoreItem                                    ; +0x26, 0x140384096\nlea     rcx, xmmword_14071C878                                         ; +0x2b, 0x14038409b\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x32, 0x1403840a2\nmov     rdx, [rbx]                                                     ; +0x38, 0x1403840a8\nmov     r8d, 0Ah                                                       ; +0x3b, 0x1403840ab\nmov     rcx, rbx                                                       ; +0x41, 0x1403840b1\nmov     rdi, rax                                                       ; +0x44, 0x1403840b4\nmov     r9, [rdx+1C8h]                                                 ; +0x47, 0x1403840b7\nmov     rdx, rax                                                       ; +0x4e, 0x1403840be\ncall    r9                                                             ; +0x51, 0x1403840c1\nmov     rcx, [rbx+258h]                                                ; +0x54, 0x1403840c4\nmov     rbx, [rdi]                                                     ; +0x5b, 0x1403840cb\nmov     rdx, [rcx]                                                     ; +0x5e, 0x1403840ce\ncall    qword ptr [rdx+0C8h]                                           ; +0x61, 0x1403840d1\nmov     rdx, rax                                                       ; +0x67, 0x1403840d7\nmov     rcx, rdi                                                       ; +0x6a, 0x1403840da\ncall    qword ptr [rbx+0B8h]                                           ; +0x6d, 0x1403840dd\nmulss   xmm6, cs:dword_140834FE8                                       ; +0x73, 0x1403840e3\nmov     rcx, rdi                                                       ; +0x7b, 0x1403840eb\nmov     rax, [rdi]                                                     ; +0x7e, 0x1403840ee\nmovaps  xmm1, xmm6                                                     ; +0x81, 0x1403840f1\ncall    qword ptr [rax+0A0h]                                           ; +0x84, 0x1403840f4\nmov     rax, [rdi+140h]                                                ; +0x8a, 0x1403840fa\nlea     rcx, [rdi+140h]                                                ; +0x91, 0x140384101\nmov     dl, 0C8h                                                       ; +0x98, 0x140384108\ncall    qword ptr [rax+28h]                                            ; +0x9a, 0x14038410a\nmov     rax, [rdi+140h]                                                ; +0x9d, 0x14038410d\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xa4, 0x140384114\nlea     rcx, [rdi+140h]                                                ; +0xa9, 0x140384119\nmov     [rsp+38h+arg_8], 0AFAFh                                        ; +0xb0, 0x140384120\nmov     [rsp+38h+arg_A], 0AFh                                          ; +0xb7, 0x140384127\ncall    qword ptr [rax]                                                ; +0xbc, 0x14038412c\nmov     rbx, [rsp+38h+arg_10]                                          ; +0xbe, 0x14038412e\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc3, 0x140384133\nadd     rsp, 30h                                                       ; +0xc8, 0x140384138\npop     rdi                                                            ; +0xcc, 0x14038413c\nretn                                                                   ; +0xcd, 0x14038413d", "xrefs": ["GJGarageLayer::getItems @ 0x14037f3ce", "GJGarageLayer::setupSpecialPage @ 0x14037fafd", "GJPathPage::init @ 0x1403943ec", "ShardsPage::init @ 0x14062ceb6", "<???> @ 0x140922a6c"], "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"}