{"type": "func", "start": 4299252576, "end": 4299252774, "name": "GJSmartBlockPreview::toggleSelectItem", "pseudocode": "// \n// GJSmartBlockPreview::toggleSelectItem from 0x100416360 to 0x100416426 (198 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartKeyLayer::onPrefabObject @ 0x1004e628e\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:30:11 +0000\n// \n\nvoid __fastcall GJSmartBlockPreview::toggleSelectItem(__int64 a1, unsigned __int8 a2, double a3)\n{\n  __int64 v3; // rax\n  char *v5; // rax\n  __int64 v6; // r14\n  float v7[12]; // [rsp-30h] [rbp-30h] BYREF\n\n  if ( *(_BYTE *)(a1 + 360) != a2 )\n  {\n    *(_BYTE *)(a1 + 360) = a2;\n    v3 = *(_QWORD *)(a1 + 352);\n    if ( !v3 )\n    {\n      v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)\"GJ_select_001.png\", a3);\n      *(_QWORD *)(a1 + 352) = v5;\n      (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 456LL))(a1, v5);\n      (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 352) + 160LL))(*(_QWORD *)(a1 + 352), 2.8);\n      v6 = *(_QWORD *)(a1 + 352);\n      sub_100278250(v7, 45.0, 45.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, v7);\n      v3 = *(_QWORD *)(a1 + 352);\n    }\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, a2);\n  }\n}", "assembly": "; \n; GJSmartBlockPreview::toggleSelectItem from 0x100416360 to 0x100416426 (198 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartKeyLayer::onPrefabObject @ 0x1004e628e\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:30:11 +0000\n; \ncmp     [rdi+168h], sil                                                ; +0x0, 0x100416360\njz      locret_100416425                                               ; +0x7, 0x100416367\npush    rbp                                                            ; +0xd, 0x10041636d\nmov     rbp, rsp                                                       ; +0xe, 0x10041636e\npush    r15                                                            ; +0x11, 0x100416371\npush    r14                                                            ; +0x13, 0x100416373\npush    r12                                                            ; +0x15, 0x100416375\npush    rbx                                                            ; +0x17, 0x100416377\nsub     rsp, 10h                                                       ; +0x18, 0x100416378\nmov     [rdi+168h], sil                                                ; +0x1c, 0x10041637c\nmov     rax, [rdi+160h]                                                ; +0x23, 0x100416383\ntest    rax, rax                                                       ; +0x2a, 0x10041638a\njnz     short loc_100416409                                            ; +0x2d, 0x10041638d\nlea     rax, aGjSelect001Png; \"GJ_select_001.png\"                      ; +0x2f, 0x10041638f\nmov     rbx, rdi                                                       ; +0x36, 0x100416396\nmov     rdi, rax                                                       ; +0x39, 0x100416399\nmov     r12d, esi                                                      ; +0x3c, 0x10041639c\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x3f, 0x10041639f\nmov     [rbx+160h], rax                                                ; +0x44, 0x1004163a4\nmov     rcx, [rbx]                                                     ; +0x4b, 0x1004163ab\nmov     rdi, rbx                                                       ; +0x4e, 0x1004163ae\nmov     rsi, rax                                                       ; +0x51, 0x1004163b1\ncall    qword ptr [rcx+1C8h]                                           ; +0x54, 0x1004163b4\nmov     rdi, [rbx+160h]                                                ; +0x5a, 0x1004163ba\nmov     rax, [rdi]                                                     ; +0x61, 0x1004163c1\nmovss   xmm0, cs:dword_100A09A7C                                       ; +0x64, 0x1004163c4\ncall    qword ptr [rax+0A0h]                                           ; +0x6c, 0x1004163cc\nmov     r14, [rbx+160h]                                                ; +0x72, 0x1004163d2\nlea     r15, [rbp-28h]                                                 ; +0x79, 0x1004163d9\nmovss   xmm0, cs:dword_100A039A4                                       ; +0x7d, 0x1004163dd\nmov     rdi, r15                                                       ; +0x85, 0x1004163e5\nmovaps  xmm1, xmm0                                                     ; +0x88, 0x1004163e8\ncall    sub_100278250                                                  ; +0x8b, 0x1004163eb\nmov     rax, [r14]                                                     ; +0x90, 0x1004163f0\nmov     rdi, r14                                                       ; +0x93, 0x1004163f3\nmov     rsi, r15                                                       ; +0x96, 0x1004163f6\ncall    qword ptr [rax+0B8h]                                           ; +0x99, 0x1004163f9\nmov     esi, r12d                                                      ; +0x9f, 0x1004163ff\nmov     rax, [rbx+160h]                                                ; +0xa2, 0x100416402\nmov     rcx, [rax]                                                     ; +0xa9, 0x100416409\nmovzx   esi, sil                                                       ; +0xac, 0x10041640c\nmov     rdi, rax                                                       ; +0xb0, 0x100416410\ncall    qword ptr [rcx+158h]                                           ; +0xb3, 0x100416413\nadd     rsp, 10h                                                       ; +0xb9, 0x100416419\npop     rbx                                                            ; +0xbd, 0x10041641d\npop     r12                                                            ; +0xbe, 0x10041641e\npop     r14                                                            ; +0xc0, 0x100416420\npop     r15                                                            ; +0xc2, 0x100416422\npop     rbp                                                            ; +0xc4, 0x100416424\nretn                                                                   ; +0xc5, 0x100416425", "xrefs": ["BrowseSmartKeyLayer::onPrefabObject @ 0x1004e628e"], "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"}