; ; GJSmartTemplate::getPrefabWithID from 0x1402b3490 to 0x1402b354a (186 bytes) ; ; 5 xrefs: ; > EditorUI::createPrefab @ 0x140117ccc ; > BrowseSmartKeyLayer::onButton @ 0x14045beff ; > BrowseSmartKeyLayer::onButton @ 0x14045bf90 ; > BrowseSmartKeyLayer::updateChanceValues @ 0x14045c40f ; > @ 0x1406d23a8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_10], rbx ; +0x0, 0x1402b3490 mov [rsp+arg_18], rbp ; +0x5, 0x1402b3495 push rsi ; +0xa, 0x1402b349a push rdi ; +0xb, 0x1402b349b push r14 ; +0xc, 0x1402b349c sub rsp, 30h ; +0xe, 0x1402b349e mov rax, cs:__security_cookie ; +0x12, 0x1402b34a2 xor rax, rsp ; +0x19, 0x1402b34a9 mov [rsp+48h+var_20], rax ; +0x1c, 0x1402b34ac mov r14d, r8d ; +0x21, 0x1402b34b1 mov rbp, rdx ; +0x24, 0x1402b34b4 mov [rsp+48h+var_28], rdx ; +0x27, 0x1402b34b7 test r8d, r8d ; +0x2c, 0x1402b34bc jle short loc_1402B3513 ; +0x2f, 0x1402b34bf mov rcx, [rcx+38h] ; +0x31, 0x1402b34c1 call 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 &) ; +0x35, 0x1402b34c5 mov rdi, rax ; +0x3b, 0x1402b34cb test rax, rax ; +0x3e, 0x1402b34ce jz short loc_1402B3513 ; +0x41, 0x1402b34d1 mov rcx, rax ; +0x43, 0x1402b34d3 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46, 0x1402b34d6 test eax, eax ; +0x4c, 0x1402b34dc jz short loc_1402B3513 ; +0x4e, 0x1402b34de xor ebx, ebx ; +0x50, 0x1402b34e0 mov rcx, rdi ; +0x52, 0x1402b34e2 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x1402b34e5 test eax, eax ; +0x5b, 0x1402b34eb jz short loc_1402B3513 ; +0x5d, 0x1402b34ed nop ; +0x5f, 0x1402b34ef mov edx, ebx ; +0x60, 0x1402b34f0 mov rcx, rdi ; +0x62, 0x1402b34f2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x65, 0x1402b34f5 mov rsi, rax ; +0x6b, 0x1402b34fb cmp [rax+78h], r14d ; +0x6e, 0x1402b34fe jz short loc_1402B353D ; +0x72, 0x1402b3502 inc ebx ; +0x74, 0x1402b3504 mov rcx, rdi ; +0x76, 0x1402b3506 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x79, 0x1402b3509 cmp ebx, eax ; +0x7f, 0x1402b350f jb short loc_1402B34F0 ; +0x81, 0x1402b3511 mov rcx, rbp ; +0x83, 0x1402b3513 call sub_14003A830 ; +0x86, 0x1402b3516 xor eax, eax ; +0x8b, 0x1402b351b mov rcx, [rsp+48h+var_20] ; +0x8d, 0x1402b351d xor rcx, rsp; StackCookie ; +0x92, 0x1402b3522 call __security_check_cookie ; +0x95, 0x1402b3525 mov rbx, [rsp+48h+arg_10] ; +0x9a, 0x1402b352a mov rbp, [rsp+48h+arg_18] ; +0x9f, 0x1402b352f add rsp, 30h ; +0xa4, 0x1402b3534 pop r14 ; +0xa8, 0x1402b3538 pop rdi ; +0xaa, 0x1402b353a pop rsi ; +0xab, 0x1402b353b retn ; +0xac, 0x1402b353c mov rcx, rbp ; +0xad, 0x1402b353d call sub_14003A830 ; +0xb0, 0x1402b3540 mov rax, rsi ; +0xb5, 0x1402b3545 jmp short loc_1402B351D ; +0xb8, 0x1402b3548