; ; BrowseSmartTemplateLayer::createPrefab from 0x1004e5170 to 0x1004e51fc (140 bytes) ; ; 2 xrefs: ; > BrowseSmartTemplateLayer::onTemplateObject @ 0x1004e4ce0 ; > BrowseSmartKeyLayer::createTemplateObjects @ 0x1004e63ea ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:31:19 +0000 ; push rbp ; +0x0, 0x1004e5170 mov rbp, rsp ; +0x1, 0x1004e5171 push r15 ; +0x4, 0x1004e5174 push r14 ; +0x6, 0x1004e5176 push r12 ; +0x8, 0x1004e5178 push rbx ; +0xa, 0x1004e517a sub rsp, 20h ; +0xb, 0x1004e517b mov ebx, edx ; +0xf, 0x1004e517f mov r12, rsi ; +0x11, 0x1004e5181 mov r15, rdi ; +0x14, 0x1004e5184 call GameManager__sharedState ; +0x17, 0x1004e5187 mov rax, [rax+228h] ; +0x1c, 0x1004e518c mov r14, [rax+37A8h] ; +0x23, 0x1004e5193 mov r15, [r15+298h] ; +0x2a, 0x1004e519a test byte ptr [r12], 1 ; +0x31, 0x1004e51a1 jnz short loc_1004E51BC ; +0x36, 0x1004e51a6 mov rax, [r12+10h] ; +0x38, 0x1004e51a8 mov [rbp+__p], rax ; +0x3d, 0x1004e51ad movups xmm0, xmmword ptr [r12] ; +0x41, 0x1004e51b1 movaps [rbp+var_40], xmm0 ; +0x46, 0x1004e51b6 jmp short loc_1004E51CF ; +0x4a, 0x1004e51ba mov rdx, [r12+8] ; +0x4c, 0x1004e51bc mov rsi, [r12+10h] ; +0x51, 0x1004e51c1 lea rdi, [rbp+var_40] ; +0x56, 0x1004e51c6 call sub_10001AD30 ; +0x5a, 0x1004e51ca lea rdx, [rbp+var_40] ; +0x5f, 0x1004e51cf mov rdi, r14 ; +0x63, 0x1004e51d3 mov rsi, r15 ; +0x66, 0x1004e51d6 mov ecx, ebx ; +0x69, 0x1004e51d9 call EditorUI__createPrefab ; +0x6b, 0x1004e51db test byte ptr [rbp+var_40], 1 ; +0x70, 0x1004e51e0 jz short loc_1004E51EF ; +0x74, 0x1004e51e4 mov rdi, [rbp+__p]; __p ; +0x76, 0x1004e51e6 call __ZdlPv; operator delete(void *) ; +0x7a, 0x1004e51ea add rsp, 20h ; +0x7f, 0x1004e51ef pop rbx ; +0x83, 0x1004e51f3 pop r12 ; +0x84, 0x1004e51f4 pop r14 ; +0x86, 0x1004e51f6 pop r15 ; +0x88, 0x1004e51f8 pop rbp ; +0x8a, 0x1004e51fa retn ; +0x8b, 0x1004e51fb