{"type": "func", "start": 5373279824, "end": 5373280878, "name": "BrowseSmartKeyLayer::onButton", "pseudocode": "// \n// BrowseSmartKeyLayer::onButton from 0x14045be50 to 0x14045c26e (1054 bytes)\n// \n// 5 xrefs:\n// > BrowseSmartKeyLayer::init @ 0x14045ba8a\n// > BrowseSmartKeyLayer::init @ 0x14045bb37\n// > BrowseSmartKeyLayer::init @ 0x14045bbe4\n// > BrowseSmartKeyLayer::init @ 0x14045bc91\n// > <???> @ 0x1406dabe0\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\n// Hidden C++ exception states: #wind=3\nvoid BrowseSmartKeyLayer::onButton(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)\n{\n  BrowseSmartKeyLayer *v2; // rdi\n  int v3; // eax\n  int v4; // eax\n  int v5; // eax\n  cocos2d::CCArray *AllSelectedBlocks; // r14\n  unsigned int v7; // esi\n  __int64 p_m_prefabKey; // r15\n  struct cocos2d::CCObject *v9; // rdi\n  __int64 v10; // rbx\n  int v11; // eax\n  struct cocos2d::CCObject *PrefabWithID; // rax\n  cocos2d::CCArray *v13; // r15\n  unsigned int v14; // r14d\n  __int64 v15; // r12\n  struct cocos2d::CCObject *v16; // rdi\n  __int64 v17; // rbx\n  int v18; // eax\n  struct cocos2d::CCObject *v19; // rax\n  unsigned int v20; // esi\n  cocos2d::CCArray *v21; // r12\n  unsigned int v22; // esi\n  struct cocos2d::CCObject *v23; // r15\n  _BYTE *v24; // rbx\n  __int64 v25; // r13\n  int v26; // r14d\n  cocos2d::CCArray *v27; // rax\n  cocos2d::CCArray *v28; // rdi\n  unsigned int v29; // ebx\n  cocos2d::CCArray *v30; // r15\n  unsigned int v31; // r14d\n  __int64 v32; // rdx\n  __int64 v33; // r8\n  __int64 v34; // r12\n  struct cocos2d::CCObject *v35; // rdi\n  __int64 v36; // rbx\n  int v37; // eax\n  BrowseSmartKeyLayer_vtbl *v38; // rbx\n  cocos2d::CCNode *v39; // rax\n  char v40[16]; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v41; // [rsp+40h] [rbp-38h]\n  __int64 v42; // [rsp+48h] [rbp-30h]\n  __int128 v43; // [rsp+50h] [rbp-28h] BYREF\n  __int64 v44; // [rsp+60h] [rbp-18h]\n  __int64 v45; // [rsp+68h] [rbp-10h]\n  unsigned int i; // [rsp+C8h] [rbp+50h]\n\n  v2 = a1;\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1;\n  if ( v3 )\n  {\n    v4 = v3 - 1;\n    if ( v4 )\n    {\n      v5 = v4 - 1;\n      if ( v5 )\n      {\n        if ( v5 != 1 )\n          return;\n        AllSelectedBlocks = BrowseSmartKeyLayer::getAllSelectedBlocks(v2);\n        v7 = 0;\n        if ( cocos2d::CCArray::count(AllSelectedBlocks) )\n        {\n          p_m_prefabKey = (__int64)&v2->m_prefabKey;\n          do\n          {\n            v9 = cocos2d::CCArray::objectAtIndex(AllSelectedBlocks, v7);\n            v10 = sub_14003BDB0((__int64)&v43, p_m_prefabKey);\n            v11 = v9->getTag(v9);\n            v2 = a1;\n            PrefabWithID = GJSmartTemplate::getPrefabWithID((__int64)a1->m_template, v10, v11);\n            if ( PrefabWithID )\n              PrefabWithID[2].m_nLuaID += 10;\n            ++v7;\n          }\n          while ( v7 < cocos2d::CCArray::count(AllSelectedBlocks) );\n        }\n      }\n      else\n      {\n        v13 = BrowseSmartKeyLayer::getAllSelectedBlocks(v2);\n        v14 = 0;\n        if ( cocos2d::CCArray::count(v13) )\n        {\n          v15 = (__int64)&v2->m_prefabKey;\n          do\n          {\n            v16 = cocos2d::CCArray::objectAtIndex(v13, v14);\n            v17 = sub_14003BDB0((__int64)&v43, v15);\n            v18 = v16->getTag(v16);\n            v2 = a1;\n            v19 = GJSmartTemplate::getPrefabWithID((__int64)a1->m_template, v17, v18);\n            if ( v19 )\n              v19[2].m_nLuaID = 0;\n            ++v14;\n          }\n          while ( v14 < cocos2d::CCArray::count(v13) );\n        }\n      }\n    }\n    else\n    {\n      v20 = 0;\n      for ( i = 0; i < cocos2d::CCArray::count(v2->m_pages); v20 = i )\n      {\n        v21 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(v2->m_pages, v20);\n        v22 = 0;\n        while ( v22 < cocos2d::CCArray::count(v21) )\n        {\n          v23 = cocos2d::CCArray::objectAtIndex(v21, v22);\n          v24 = (_BYTE *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v23->__vftable[13].copyWithZone)(v23);\n          if ( v24[368] )\n          {\n            v25 = sub_14003BDB0((__int64)&v43, (__int64)&v2->m_prefabKey);\n            v26 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)v24 + 56LL))(v24);\n            if ( v26 > 0 )\n            {\n              v27 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v2->m_template->m_prefabArrays, v25);\n              v28 = v27;\n              if ( v27 )\n              {\n                if ( cocos2d::CCArray::count(v27) )\n                {\n                  v29 = 0;\n                  if ( cocos2d::CCArray::count(v28) )\n                  {\n                    while ( cocos2d::CCArray::objectAtIndex(v28, v29)[2].m_uID != v26 )\n                    {\n                      if ( ++v29 >= cocos2d::CCArray::count(v28) )\n                        goto LABEL_28;\n                    }\n                    cocos2d::CCArray::removeObjectAtIndex(v28, v29, 1);\n                  }\n                }\n              }\nLABEL_28:\n              v2 = a1;\n            }\n            sub_14003A830(v25);\n            v23->__vftable[7].~CCObject(v23);\n            cocos2d::CCArray::removeObjectAtIndex(v21, v22, 1);\n          }\n          else\n          {\n            ++v22;\n          }\n        }\n        ++i;\n      }\n    }\n    BrowseSmartKeyLayer::updateChanceValues(v2);\n  }\n  else\n  {\n    v30 = BrowseSmartKeyLayer::getAllSelectedBlocks(v2);\n    if ( cocos2d::CCArray::count(v30) )\n    {\n      v31 = 0;\n      if ( cocos2d::CCArray::count(v30) )\n      {\n        v34 = (__int64)&v2->m_prefabKey;\n        do\n        {\n          v35 = cocos2d::CCArray::objectAtIndex(v30, v31);\n          v36 = sub_14003BDB0((__int64)&v43, v34);\n          v37 = v35->getTag(v35);\n          v2 = a1;\n          BrowseSmartTemplateLayer::createPrefab((__int64)a1, v36, v37);\n          ++v31;\n        }\n        while ( v31 < cocos2d::CCArray::count(v30) );\n      }\n      v43 = 0;\n      v44 = 0;\n      v45 = 15;\n      LOBYTE(v43) = 0;\n      v41 = 15;\n      v42 = 15;\n      strcpy(v40, \"Added to editor\");\n      v38 = v2->BrowseSmartTemplateLayer::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      v39 = TextAlertPopup::create((__int64)v40, v32, v33, 150, (__int64)&v43);\n      v38->addChild_0(v2, v39, 100);\n    }\n  }\n}", "assembly": "; \n; BrowseSmartKeyLayer::onButton from 0x14045be50 to 0x14045c26e (1054 bytes)\n; \n; 5 xrefs:\n; > BrowseSmartKeyLayer::init @ 0x14045ba8a\n; > BrowseSmartKeyLayer::init @ 0x14045bb37\n; > BrowseSmartKeyLayer::init @ 0x14045bbe4\n; > BrowseSmartKeyLayer::init @ 0x14045bc91\n; > <???> @ 0x1406dabe0\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-40h+arg_0], rcx                                           ; +0x0, 0x14045be50\npush    rbp                                                            ; +0x5, 0x14045be55\npush    rbx                                                            ; +0x6, 0x14045be56\npush    rsi                                                            ; +0x7, 0x14045be57\npush    rdi                                                            ; +0x8, 0x14045be58\npush    r12                                                            ; +0x9, 0x14045be59\npush    r13                                                            ; +0xb, 0x14045be5b\npush    r14                                                            ; +0xd, 0x14045be5d\npush    r15                                                            ; +0xf, 0x14045be5f\nmov     rbp, rsp                                                       ; +0x11, 0x14045be61\nsub     rsp, 78h                                                       ; +0x14, 0x14045be64\nmov     rdi, rcx                                                       ; +0x18, 0x14045be68\nmov     rax, [rdx]                                                     ; +0x1b, 0x14045be6b\nmov     rcx, rdx                                                       ; +0x1e, 0x14045be6e\ncall    qword ptr [rax+38h]                                            ; +0x21, 0x14045be71\nsub     eax, 1                                                         ; +0x24, 0x14045be74\njz      loc_14045C134                                                  ; +0x27, 0x14045be77\nsub     eax, 1                                                         ; +0x2d, 0x14045be7d\njz      loc_14045BFBB                                                  ; +0x30, 0x14045be80\nsub     eax, 1                                                         ; +0x36, 0x14045be86\njz      loc_14045BF29                                                  ; +0x39, 0x14045be89\ncmp     eax, 1                                                         ; +0x3f, 0x14045be8f\njnz     loc_14045C25D                                                  ; +0x42, 0x14045be92\nmov     rcx, rdi                                                       ; +0x48, 0x14045be98\ncall    BrowseSmartKeyLayer__getAllSelectedBlocks                      ; +0x4b, 0x14045be9b\nmov     r14, rax                                                       ; +0x50, 0x14045bea0\nxor     esi, esi                                                       ; +0x53, 0x14045bea3\nmov     rcx, rax                                                       ; +0x55, 0x14045bea5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x58, 0x14045bea8\ntest    eax, eax                                                       ; +0x5e, 0x14045beae\njz      short loc_14045BF1C                                            ; +0x60, 0x14045beb0\nlea     r15, [rdi+2A8h]                                                ; +0x62, 0x14045beb2\nnop     dword ptr [rax+00000000h]                                      ; +0x69, 0x14045beb9\nmov     edx, esi                                                       ; +0x70, 0x14045bec0\nmov     rcx, r14                                                       ; +0x72, 0x14045bec2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x14045bec5\nmov     rdi, rax                                                       ; +0x7b, 0x14045becb\nlea     rax, [rbp+var_28]                                              ; +0x7e, 0x14045bece\nmov     [rbp+arg_8], rax                                               ; +0x82, 0x14045bed2\nmov     rdx, r15                                                       ; +0x86, 0x14045bed6\nlea     rcx, [rbp+var_28]                                              ; +0x89, 0x14045bed9\ncall    sub_14003BDB0                                                  ; +0x8d, 0x14045bedd\nmov     rbx, rax                                                       ; +0x92, 0x14045bee2\nmov     rdx, [rdi]                                                     ; +0x95, 0x14045bee5\nmov     rcx, rdi                                                       ; +0x98, 0x14045bee8\ncall    qword ptr [rdx+38h]                                            ; +0x9b, 0x14045beeb\nmov     r8d, eax                                                       ; +0x9e, 0x14045beee\nmov     rdx, rbx                                                       ; +0xa1, 0x14045bef1\nmov     rdi, [rbp+arg_0]                                               ; +0xa4, 0x14045bef4\nmov     rcx, [rdi+278h]                                                ; +0xa8, 0x14045bef8\ncall    GJSmartTemplate__getPrefabWithID                               ; +0xaf, 0x14045beff\ntest    rax, rax                                                       ; +0xb4, 0x14045bf04\njz      short loc_14045BF0D                                            ; +0xb7, 0x14045bf07\nadd     dword ptr [rax+7Ch], 0Ah                                       ; +0xb9, 0x14045bf09\ninc     esi                                                            ; +0xbd, 0x14045bf0d\nmov     rcx, r14                                                       ; +0xbf, 0x14045bf0f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc2, 0x14045bf12\ncmp     esi, eax                                                       ; +0xc8, 0x14045bf18\njb      short loc_14045BEC0                                            ; +0xca, 0x14045bf1a\nmov     rcx, rdi                                                       ; +0xcc, 0x14045bf1c\ncall    BrowseSmartKeyLayer__updateChanceValues                        ; +0xcf, 0x14045bf1f\njmp     loc_14045C25D                                                  ; +0xd4, 0x14045bf24\nmov     rcx, rdi                                                       ; +0xd9, 0x14045bf29\ncall    BrowseSmartKeyLayer__getAllSelectedBlocks                      ; +0xdc, 0x14045bf2c\nmov     r15, rax                                                       ; +0xe1, 0x14045bf31\nxor     esi, esi                                                       ; +0xe4, 0x14045bf34\nmov     r14d, esi                                                      ; +0xe6, 0x14045bf36\nmov     rcx, rax                                                       ; +0xe9, 0x14045bf39\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xec, 0x14045bf3c\ntest    eax, eax                                                       ; +0xf2, 0x14045bf42\njz      short loc_14045BFAE                                            ; +0xf4, 0x14045bf44\nlea     r12, [rdi+2A8h]                                                ; +0xf6, 0x14045bf46\nnop     dword ptr [rax]                                                ; +0xfd, 0x14045bf4d\nmov     edx, r14d                                                      ; +0x100, 0x14045bf50\nmov     rcx, r15                                                       ; +0x103, 0x14045bf53\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x106, 0x14045bf56\nmov     rdi, rax                                                       ; +0x10c, 0x14045bf5c\nlea     rax, [rbp+var_28]                                              ; +0x10f, 0x14045bf5f\nmov     [rbp+arg_8], rax                                               ; +0x113, 0x14045bf63\nmov     rdx, r12                                                       ; +0x117, 0x14045bf67\nlea     rcx, [rbp+var_28]                                              ; +0x11a, 0x14045bf6a\ncall    sub_14003BDB0                                                  ; +0x11e, 0x14045bf6e\nmov     rbx, rax                                                       ; +0x123, 0x14045bf73\nmov     rdx, [rdi]                                                     ; +0x126, 0x14045bf76\nmov     rcx, rdi                                                       ; +0x129, 0x14045bf79\ncall    qword ptr [rdx+38h]                                            ; +0x12c, 0x14045bf7c\nmov     r8d, eax                                                       ; +0x12f, 0x14045bf7f\nmov     rdx, rbx                                                       ; +0x132, 0x14045bf82\nmov     rdi, [rbp+arg_0]                                               ; +0x135, 0x14045bf85\nmov     rcx, [rdi+278h]                                                ; +0x139, 0x14045bf89\ncall    GJSmartTemplate__getPrefabWithID                               ; +0x140, 0x14045bf90\ntest    rax, rax                                                       ; +0x145, 0x14045bf95\njz      short loc_14045BF9D                                            ; +0x148, 0x14045bf98\nmov     [rax+7Ch], esi                                                 ; +0x14a, 0x14045bf9a\ninc     r14d                                                           ; +0x14d, 0x14045bf9d\nmov     rcx, r15                                                       ; +0x150, 0x14045bfa0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x153, 0x14045bfa3\ncmp     r14d, eax                                                      ; +0x159, 0x14045bfa9\njb      short loc_14045BF50                                            ; +0x15c, 0x14045bfac\nmov     rcx, rdi                                                       ; +0x15e, 0x14045bfae\ncall    BrowseSmartKeyLayer__updateChanceValues                        ; +0x161, 0x14045bfb1\njmp     loc_14045C25D                                                  ; +0x166, 0x14045bfb6\nxor     ebx, ebx                                                       ; +0x16b, 0x14045bfbb\nmov     esi, ebx                                                       ; +0x16d, 0x14045bfbd\nmov     dword ptr [rbp+arg_8], ebx                                     ; +0x16f, 0x14045bfbf\nmov     rcx, [rdi+280h]                                                ; +0x172, 0x14045bfc2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x179, 0x14045bfc9\ntest    eax, eax                                                       ; +0x17f, 0x14045bfcf\njz      loc_14045C127                                                  ; +0x181, 0x14045bfd1\nnop     word ptr [rax+rax+00000000h]                                   ; +0x187, 0x14045bfd7\nmov     edx, esi                                                       ; +0x190, 0x14045bfe0\nmov     rcx, [rdi+280h]                                                ; +0x192, 0x14045bfe2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x199, 0x14045bfe9\nmov     r12, rax                                                       ; +0x19f, 0x14045bfef\nmov     esi, ebx                                                       ; +0x1a2, 0x14045bff2\nmov     rcx, rax                                                       ; +0x1a4, 0x14045bff4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a7, 0x14045bff7\ntest    eax, eax                                                       ; +0x1ad, 0x14045bffd\njz      loc_14045C10A                                                  ; +0x1af, 0x14045bfff\nmov     edx, esi                                                       ; +0x1b5, 0x14045c005\nmov     rcx, r12                                                       ; +0x1b7, 0x14045c007\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1ba, 0x14045c00a\nmov     r15, rax                                                       ; +0x1c0, 0x14045c010\nmov     rdx, [rax]                                                     ; +0x1c3, 0x14045c013\nmov     rcx, rax                                                       ; +0x1c6, 0x14045c016\ncall    qword ptr [rdx+3A8h]                                           ; +0x1c9, 0x14045c019\nmov     rbx, rax                                                       ; +0x1cf, 0x14045c01f\ncmp     byte ptr [rax+170h], 0                                         ; +0x1d2, 0x14045c022\njz      loc_14045C0F5                                                  ; +0x1d9, 0x14045c029\nlea     rax, [rbp+var_28]                                              ; +0x1df, 0x14045c02f\nmov     [rbp+arg_10], rax                                              ; +0x1e3, 0x14045c033\nlea     rdx, [rdi+2A8h]                                                ; +0x1e7, 0x14045c037\nlea     rcx, [rbp+var_28]                                              ; +0x1ee, 0x14045c03e\ncall    sub_14003BDB0                                                  ; +0x1f2, 0x14045c042\nmov     r13, rax                                                       ; +0x1f7, 0x14045c047\nmov     [rbp+arg_18], rax                                              ; +0x1fa, 0x14045c04a\nmov     rdx, [rbx]                                                     ; +0x1fe, 0x14045c04e\nmov     rcx, rbx                                                       ; +0x201, 0x14045c051\ncall    qword ptr [rdx+38h]                                            ; +0x204, 0x14045c054\nmov     r14d, eax                                                      ; +0x207, 0x14045c057\nmov     rcx, [rdi+278h]                                                ; +0x20a, 0x14045c05a\ntest    eax, eax                                                       ; +0x211, 0x14045c061\njle     short loc_14045C0D1                                            ; +0x213, 0x14045c063\nmov     rdx, r13                                                       ; +0x215, 0x14045c065\nmov     rcx, [rcx+38h]                                                 ; +0x218, 0x14045c068\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x21c, 0x14045c06c\nmov     rdi, rax                                                       ; +0x222, 0x14045c072\ntest    rax, rax                                                       ; +0x225, 0x14045c075\njz      short loc_14045C0CD                                            ; +0x228, 0x14045c078\nmov     rcx, rax                                                       ; +0x22a, 0x14045c07a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22d, 0x14045c07d\ntest    eax, eax                                                       ; +0x233, 0x14045c083\njz      short loc_14045C0CD                                            ; +0x235, 0x14045c085\nxor     ebx, ebx                                                       ; +0x237, 0x14045c087\nmov     rcx, rdi                                                       ; +0x239, 0x14045c089\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x23c, 0x14045c08c\ntest    eax, eax                                                       ; +0x242, 0x14045c092\njz      short loc_14045C0CD                                            ; +0x244, 0x14045c094\nnop     word ptr [rax+rax+00000000h]                                   ; +0x246, 0x14045c096\nmov     edx, ebx                                                       ; +0x250, 0x14045c0a0\nmov     rcx, rdi                                                       ; +0x252, 0x14045c0a2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x255, 0x14045c0a5\nmov     rcx, rdi                                                       ; +0x25b, 0x14045c0ab\ncmp     [rax+78h], r14d                                                ; +0x25e, 0x14045c0ae\njz      short loc_14045C0C2                                            ; +0x262, 0x14045c0b2\ninc     ebx                                                            ; +0x264, 0x14045c0b4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x266, 0x14045c0b6\ncmp     ebx, eax                                                       ; +0x26c, 0x14045c0bc\njb      short loc_14045C0A0                                            ; +0x26e, 0x14045c0be\njmp     short loc_14045C0CD                                            ; +0x270, 0x14045c0c0\nmov     r8b, 1                                                         ; +0x272, 0x14045c0c2\nmov     edx, ebx                                                       ; +0x275, 0x14045c0c5\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x277, 0x14045c0c7\nmov     rdi, [rbp+arg_0]                                               ; +0x27d, 0x14045c0cd\nmov     rcx, r13                                                       ; +0x281, 0x14045c0d1\ncall    sub_14003A830                                                  ; +0x284, 0x14045c0d4\nmov     rax, [r15]                                                     ; +0x289, 0x14045c0d9\nmov     rcx, r15                                                       ; +0x28c, 0x14045c0dc\ncall    qword ptr [rax+200h]                                           ; +0x28f, 0x14045c0df\nmov     r8b, 1                                                         ; +0x295, 0x14045c0e5\nmov     edx, esi                                                       ; +0x298, 0x14045c0e8\nmov     rcx, r12                                                       ; +0x29a, 0x14045c0ea\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x29d, 0x14045c0ed\njmp     short loc_14045C0F7                                            ; +0x2a3, 0x14045c0f3\ninc     esi                                                            ; +0x2a5, 0x14045c0f5\nmov     rcx, r12                                                       ; +0x2a7, 0x14045c0f7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2aa, 0x14045c0fa\ncmp     esi, eax                                                       ; +0x2b0, 0x14045c100\njb      loc_14045C005                                                  ; +0x2b2, 0x14045c102\nxor     ebx, ebx                                                       ; +0x2b8, 0x14045c108\nmov     esi, dword ptr [rbp+arg_8]                                     ; +0x2ba, 0x14045c10a\ninc     esi                                                            ; +0x2bd, 0x14045c10d\nmov     dword ptr [rbp+arg_8], esi                                     ; +0x2bf, 0x14045c10f\nmov     rcx, [rdi+280h]                                                ; +0x2c2, 0x14045c112\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2c9, 0x14045c119\ncmp     esi, eax                                                       ; +0x2cf, 0x14045c11f\njb      loc_14045BFE0                                                  ; +0x2d1, 0x14045c121\nmov     rcx, rdi                                                       ; +0x2d7, 0x14045c127\ncall    BrowseSmartKeyLayer__updateChanceValues                        ; +0x2da, 0x14045c12a\njmp     loc_14045C25D                                                  ; +0x2df, 0x14045c12f\nmov     rcx, rdi                                                       ; +0x2e4, 0x14045c134\ncall    BrowseSmartKeyLayer__getAllSelectedBlocks                      ; +0x2e7, 0x14045c137\nmov     r15, rax                                                       ; +0x2ec, 0x14045c13c\nmov     rcx, rax                                                       ; +0x2ef, 0x14045c13f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f2, 0x14045c142\ntest    eax, eax                                                       ; +0x2f8, 0x14045c148\njz      loc_14045C25D                                                  ; +0x2fa, 0x14045c14a\nxor     esi, esi                                                       ; +0x300, 0x14045c150\nmov     r14d, esi                                                      ; +0x302, 0x14045c152\nmov     rcx, r15                                                       ; +0x305, 0x14045c155\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x308, 0x14045c158\ntest    eax, eax                                                       ; +0x30e, 0x14045c15e\njz      short loc_14045C1C2                                            ; +0x310, 0x14045c160\nlea     r12, [rdi+2A8h]                                                ; +0x312, 0x14045c162\nnop     dword ptr [rax+00000000h]                                      ; +0x319, 0x14045c169\nmov     edx, r14d                                                      ; +0x320, 0x14045c170\nmov     rcx, r15                                                       ; +0x323, 0x14045c173\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x326, 0x14045c176\nmov     rdi, rax                                                       ; +0x32c, 0x14045c17c\nlea     rax, [rbp+var_28]                                              ; +0x32f, 0x14045c17f\nmov     [rbp+arg_8], rax                                               ; +0x333, 0x14045c183\nmov     rdx, r12                                                       ; +0x337, 0x14045c187\nlea     rcx, [rbp+var_28]                                              ; +0x33a, 0x14045c18a\ncall    sub_14003BDB0                                                  ; +0x33e, 0x14045c18e\nmov     rbx, rax                                                       ; +0x343, 0x14045c193\nmov     rdx, [rdi]                                                     ; +0x346, 0x14045c196\nmov     rcx, rdi                                                       ; +0x349, 0x14045c199\ncall    qword ptr [rdx+38h]                                            ; +0x34c, 0x14045c19c\nmov     r8d, eax                                                       ; +0x34f, 0x14045c19f\nmov     rdx, rbx                                                       ; +0x352, 0x14045c1a2\nmov     rdi, [rbp+arg_0]                                               ; +0x355, 0x14045c1a5\nmov     rcx, rdi                                                       ; +0x359, 0x14045c1a9\ncall    BrowseSmartTemplateLayer__createPrefab                         ; +0x35c, 0x14045c1ac\ninc     r14d                                                           ; +0x361, 0x14045c1b1\nmov     rcx, r15                                                       ; +0x364, 0x14045c1b4\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x367, 0x14045c1b7\ncmp     r14d, eax                                                      ; +0x36d, 0x14045c1bd\njb      short loc_14045C170                                            ; +0x370, 0x14045c1c0\nlea     rax, [rbp+var_28]                                              ; +0x372, 0x14045c1c2\nmov     [rbp+arg_8], rax                                               ; +0x376, 0x14045c1c6\nxorps   xmm0, xmm0                                                     ; +0x37a, 0x14045c1ca\nmovups  [rbp+var_28], xmm0                                             ; +0x37d, 0x14045c1cd\nmov     [rbp+var_18], rsi                                              ; +0x381, 0x14045c1d1\nmov     [rbp+var_10], 0Fh                                              ; +0x385, 0x14045c1d5\nmov     byte ptr [rbp+var_28], 0                                       ; +0x38d, 0x14045c1dd\nmov     [rbp+var_38], 0Fh                                              ; +0x391, 0x14045c1e1\nmov     [rbp+var_30], 0Fh                                              ; +0x399, 0x14045c1e9\nmovsd   xmm0, cs:qword_1405F4EC0                                       ; +0x3a1, 0x14045c1f1\nmovsd   qword ptr [rbp+var_48], xmm0                                   ; +0x3a9, 0x14045c1f9\nmov     eax, cs:dword_1405F4EC8                                        ; +0x3ae, 0x14045c1fe\nmov     dword ptr [rbp+var_48+8], eax                                  ; +0x3b4, 0x14045c204\nmovzx   eax, cs:word_1405F4ECC                                         ; +0x3b7, 0x14045c207\nmov     word ptr [rbp+var_48+0Ch], ax                                  ; +0x3be, 0x14045c20e\nmovzx   eax, cs:byte_1405F4ECE                                         ; +0x3c2, 0x14045c212\nmov     [rbp+var_48+0Eh], al                                           ; +0x3c9, 0x14045c219\nmov     [rbp+var_48+0Fh], 0                                            ; +0x3cc, 0x14045c21c\nmov     rbx, [rdi]                                                     ; +0x3d0, 0x14045c220\nlea     rax, [rbp+var_28]                                              ; +0x3d3, 0x14045c223\nmov     [rsp+78h+var_58], rax                                          ; +0x3d7, 0x14045c227\nmov     r9d, 96h                                                       ; +0x3dc, 0x14045c22c\nmovss   xmm2, cs:dword_140622B38                                       ; +0x3e2, 0x14045c232\nmovss   xmm1, cs:dword_140622B08                                       ; +0x3ea, 0x14045c23a\nlea     rcx, [rbp+var_48]                                              ; +0x3f2, 0x14045c242\ncall    TextAlertPopup__create                                         ; +0x3f6, 0x14045c246\nmov     rdx, rax                                                       ; +0x3fb, 0x14045c24b\nmov     r8d, 64h ; 'd'                                                 ; +0x3fe, 0x14045c24e\nmov     rcx, rdi                                                       ; +0x404, 0x14045c254\ncall    qword ptr [rbx+1B8h]                                           ; +0x407, 0x14045c257\nadd     rsp, 78h                                                       ; +0x40d, 0x14045c25d\npop     r15                                                            ; +0x411, 0x14045c261\npop     r14                                                            ; +0x413, 0x14045c263\npop     r13                                                            ; +0x415, 0x14045c265\npop     r12                                                            ; +0x417, 0x14045c267\npop     rdi                                                            ; +0x419, 0x14045c269\npop     rsi                                                            ; +0x41a, 0x14045c26a\npop     rbx                                                            ; +0x41b, 0x14045c26b\npop     rbp                                                            ; +0x41c, 0x14045c26c\nretn                                                                   ; +0x41d, 0x14045c26d", "xrefs": ["BrowseSmartKeyLayer::init @ 0x14045ba8a", "BrowseSmartKeyLayer::init @ 0x14045bb37", "BrowseSmartKeyLayer::init @ 0x14045bbe4", "BrowseSmartKeyLayer::init @ 0x14045bc91", "<???> @ 0x1406dabe0"], "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"}