{"type": "func", "start": 5373281392, "end": 5373281605, "name": "BrowseSmartKeyLayer::onPrefabObject", "pseudocode": "// \n// BrowseSmartKeyLayer::onPrefabObject from 0x14045c470 to 0x14045c545 (213 bytes)\n// \n// 4 xrefs:\n// > BrowseSmartKeyLayer::init @ 0x14045b905\n// > <???> @ 0x1406a3dcc\n// > <???> @ 0x1406a3ddc\n// > <???> @ 0x1406dac1c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid BrowseSmartKeyLayer::onPrefabObject(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rax\n  __int64 *v3; // rdi\n  char v4; // cl\n  bool v5; // si\n  bool v6; // zf\n  struct cocos2d::CCSprite *v7; // rax\n  __int64 v8; // r8\n  float v9; // xmm0_4\n  __int64 v10; // rbx\n  __int64 v11; // rax\n\n  v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);\n  v3 = (__int64 *)v2;\n  v4 = *(_BYTE *)(v2 + 368);\n  v5 = v4 == 0;\n  if ( (v4 == 0) != v4 )\n  {\n    v6 = *(_QWORD *)(v2 + 360) == 0;\n    *(_BYTE *)(v2 + 368) = v5;\n    if ( v6 )\n    {\n      v7 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_select_001.png\");\n      v8 = *v3;\n      v3[45] = (__int64)v7;\n      (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(v8 + 448))(v3, v7);\n      v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v3[45] + 160LL))(v3[45]);\n      v10 = *(_QWORD *)v3[45];\n      cocos2d::CCPoint::CCPoint(v9, 45.0);\n      (*(void (__fastcall **)(__int64, __int64))(v10 + 184))(v3[45], v11);\n    }\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3[45] + 320LL))(v3[45], v5);\n  }\n}", "assembly": "; \n; BrowseSmartKeyLayer::onPrefabObject from 0x14045c470 to 0x14045c545 (213 bytes)\n; \n; 4 xrefs:\n; > BrowseSmartKeyLayer::init @ 0x14045b905\n; > <???> @ 0x1406a3dcc\n; > <???> @ 0x1406a3ddc\n; > <???> @ 0x1406dac1c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x14045c470\npush    rdi                                                            ; +0x5, 0x14045c475\nsub     rsp, 20h                                                       ; +0x6, 0x14045c476\nmov     rax, [rdx]                                                     ; +0xa, 0x14045c47a\nmov     rcx, rdx                                                       ; +0xd, 0x14045c47d\ncall    qword ptr [rax+3A8h]                                           ; +0x10, 0x14045c480\nmov     rdi, rax                                                       ; +0x16, 0x14045c486\nmovzx   ecx, byte ptr [rax+170h]                                       ; +0x19, 0x14045c489\ntest    cl, cl                                                         ; +0x20, 0x14045c490\nsetz    sil                                                            ; +0x22, 0x14045c492\ncmp     sil, cl                                                        ; +0x26, 0x14045c496\njz      loc_14045C53A                                                  ; +0x29, 0x14045c499\ncmp     qword ptr [rax+168h], 0                                        ; +0x2f, 0x14045c49f\nmov     [rax+170h], sil                                                ; +0x37, 0x14045c4a7\njnz     short loc_14045C526                                            ; +0x3e, 0x14045c4ae\nlea     rcx, aGjSelect001Png; \"GJ_select_001.png\"                      ; +0x40, 0x14045c4b0\nmov     [rsp+28h+arg_0], rbx                                           ; +0x47, 0x14045c4b7\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x4c, 0x14045c4bc\nmov     r8, [rdi]                                                      ; +0x52, 0x14045c4c2\nmov     rcx, rdi                                                       ; +0x55, 0x14045c4c5\nmov     rdx, rax                                                       ; +0x58, 0x14045c4c8\nmov     [rdi+168h], rax                                                ; +0x5b, 0x14045c4cb\ncall    qword ptr [r8+1C0h]                                            ; +0x62, 0x14045c4d2\nmov     rcx, [rdi+168h]                                                ; +0x69, 0x14045c4d9\nmovss   xmm1, cs:dword_140622F08                                       ; +0x70, 0x14045c4e0\nmov     rax, [rcx]                                                     ; +0x78, 0x14045c4e8\ncall    qword ptr [rax+0A0h]                                           ; +0x7b, 0x14045c4eb\nmov     rax, [rdi+168h]                                                ; +0x81, 0x14045c4f1\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x88, 0x14045c4f8\nmovss   xmm1, cs:dword_1406231D0                                       ; +0x8d, 0x14045c4fd\nmovaps  xmm2, xmm1                                                     ; +0x95, 0x14045c505\nmov     rbx, [rax]                                                     ; +0x98, 0x14045c508\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9b, 0x14045c50b\nmov     rcx, [rdi+168h]                                                ; +0xa1, 0x14045c511\nmov     rdx, rax                                                       ; +0xa8, 0x14045c518\ncall    qword ptr [rbx+0B8h]                                           ; +0xab, 0x14045c51b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb1, 0x14045c521\nmov     rcx, [rdi+168h]                                                ; +0xb6, 0x14045c526\nmovzx   edx, sil                                                       ; +0xbd, 0x14045c52d\nmov     rax, [rcx]                                                     ; +0xc1, 0x14045c531\ncall    qword ptr [rax+140h]                                           ; +0xc4, 0x14045c534\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xca, 0x14045c53a\nadd     rsp, 20h                                                       ; +0xcf, 0x14045c53f\npop     rdi                                                            ; +0xd3, 0x14045c543\nretn                                                                   ; +0xd4, 0x14045c544", "xrefs": ["BrowseSmartKeyLayer::init @ 0x14045b905", "<???> @ 0x1406a3dcc", "<???> @ 0x1406a3ddc", "<???> @ 0x1406dac1c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}