; ; EditorUI::addObjectsToSmartTemplate from 0x1401b5860 to 0x1401b6817 (4023 bytes) ; ; 2 xrefs: ; > SetupSmartBlockLayer::onCreateTemplate @ 0x1405ee32f ; > @ 0x14091a228 ; ; 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 11:27:58 +0000 ; test rdx, rdx ; +0x0, 0x1401b5860 jz locret_1401B67FE ; +0x3, 0x1401b5863 mov rax, rsp ; +0x9, 0x1401b5869 mov [rax+20h], rbx ; +0xc, 0x1401b586c push rbp ; +0x10, 0x1401b5870 push rsi ; +0x11, 0x1401b5871 push rdi ; +0x12, 0x1401b5872 push r12 ; +0x13, 0x1401b5873 push r13 ; +0x15, 0x1401b5875 push r14 ; +0x17, 0x1401b5877 push r15 ; +0x19, 0x1401b5879 lea rbp, [rax-298h] ; +0x1b, 0x1401b587b sub rsp, 360h ; +0x22, 0x1401b5882 movaps xmmword ptr [rax-48h], xmm6 ; +0x29, 0x1401b5889 movaps xmmword ptr [rax-58h], xmm7 ; +0x2d, 0x1401b588d movaps xmmword ptr [rax-68h], xmm8 ; +0x31, 0x1401b5891 movaps xmmword ptr [rax-78h], xmm9 ; +0x36, 0x1401b5896 movaps xmmword ptr [rax-88h], xmm10 ; +0x3b, 0x1401b589b movaps xmmword ptr [rax-98h], xmm11 ; +0x43, 0x1401b58a3 movaps xmmword ptr [rax-0A8h], xmm12 ; +0x4b, 0x1401b58ab movaps xmmword ptr [rax-0B8h], xmm13 ; +0x53, 0x1401b58b3 mov rax, cs:__security_cookie ; +0x5b, 0x1401b58bb xor rax, rsp ; +0x62, 0x1401b58c2 mov [rbp+290h+var_B8], rax ; +0x65, 0x1401b58c5 mov r15, r8 ; +0x6c, 0x1401b58cc mov [rbp+290h+var_268], r8 ; +0x6f, 0x1401b58cf mov r14, rdx ; +0x73, 0x1401b58d3 mov [rbp+290h+var_298], rdx ; +0x76, 0x1401b58d6 mov [rbp+290h+var_2C0], rcx ; +0x7a, 0x1401b58da call cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x7e, 0x1401b58de mov [rbp+290h+var_270], rax ; +0x84, 0x1401b58e4 call cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x88, 0x1401b58e8 mov rsi, rax ; +0x8e, 0x1401b58ee mov [rbp+290h+var_250], rax ; +0x91, 0x1401b58f1 xor r12d, r12d ; +0x95, 0x1401b58f5 mov edi, r12d ; +0x98, 0x1401b58f8 mov rcx, r15 ; +0x9b, 0x1401b58fb call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9e, 0x1401b58fe test eax, eax ; +0xa4, 0x1401b5904 jz short loc_1401B597C ; +0xa6, 0x1401b5906 nop dword ptr [rax+rax+00000000h] ; +0xa8, 0x1401b5908 mov edx, edi ; +0xb0, 0x1401b5910 mov rcx, r15 ; +0xb2, 0x1401b5912 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb5, 0x1401b5915 mov rbx, rax ; +0xbb, 0x1401b591b cmp dword ptr [rax+4E8h], 5 ; +0xbe, 0x1401b591e jz short loc_1401B5937 ; +0xc5, 0x1401b5925 mov r8b, 1 ; +0xc7, 0x1401b5927 mov edx, edi ; +0xca, 0x1401b592a mov rcx, r15 ; +0xcc, 0x1401b592c call cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xcf, 0x1401b592f jmp short loc_1401B596F ; +0xd5, 0x1401b5935 mov eax, [rax+40Ch] ; +0xd7, 0x1401b5937 cmp eax, 0B50h ; +0xdd, 0x1401b593d jz short loc_1401B594B ; +0xe2, 0x1401b5942 cmp eax, 0B51h ; +0xe4, 0x1401b5944 jnz short loc_1401B5953 ; +0xe9, 0x1401b5949 mov rcx, rbx ; +0xeb, 0x1401b594b call GameObject__determineSlopeDirection ; +0xee, 0x1401b594e movsxd rax, dword ptr [rbx+370h] ; +0xf3, 0x1401b5953 test eax, eax ; +0xfa, 0x1401b595a jle short loc_1401B596D ; +0xfc, 0x1401b595c mov r8, rax ; +0xfe, 0x1401b595e mov rdx, rbx ; +0x101, 0x1401b5961 mov rcx, rsi ; +0x104, 0x1401b5964 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x107, 0x1401b5967 inc edi ; +0x10d, 0x1401b596d mov rcx, r15 ; +0x10f, 0x1401b596f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x112, 0x1401b5972 cmp edi, eax ; +0x118, 0x1401b5978 jb short loc_1401B5910 ; +0x11a, 0x1401b597a mov ebx, r12d ; +0x11c, 0x1401b597c mov [rbp+290h+var_2E0], ebx ; +0x11f, 0x1401b597f mov rcx, r15 ; +0x122, 0x1401b5982 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x125, 0x1401b5985 test eax, eax ; +0x12b, 0x1401b598b jz loc_1401B6792 ; +0x12d, 0x1401b598d movss xmm11, dword ptr cs:xmmword_140836CC0 ; +0x133, 0x1401b5993 movss xmm10, cs:dword_140835530 ; +0x13c, 0x1401b599c movss xmm13, cs:dword_140835610 ; +0x145, 0x1401b59a5 movss xmm12, cs:dword_140835E0C ; +0x14e, 0x1401b59ae movss xmm9, cs:dword_140835624 ; +0x157, 0x1401b59b7 movss xmm7, cs:dword_14083555C ; +0x160, 0x1401b59c0 nop dword ptr [rax+rax+00000000h] ; +0x168, 0x1401b59c8 mov edx, ebx ; +0x170, 0x1401b59d0 mov rcx, r15 ; +0x172, 0x1401b59d2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x175, 0x1401b59d5 mov rsi, rax ; +0x17b, 0x1401b59db mov [rbp+290h+var_2D8], rax ; +0x17e, 0x1401b59de cmp byte ptr [rax+550h], 0 ; +0x182, 0x1401b59e2 jnz loc_1401B6778 ; +0x189, 0x1401b59e9 mov r14, r12 ; +0x18f, 0x1401b59ef lea rdx, dword_14090A6E8 ; +0x192, 0x1401b59f2 lea rcx, [rbp+290h+var_170] ; +0x199, 0x1401b59f9 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1a0, 0x1401b5a00 mov rdx, rax ; +0x1a6, 0x1401b5a06 mov rcx, rsi ; +0x1a9, 0x1401b5a09 call GJSmartTemplate__smartObjectToType ; +0x1ac, 0x1401b5a0c mov edx, eax ; +0x1b1, 0x1401b5a11 lea rcx, [rbp+290h+var_2D0] ; +0x1b3, 0x1401b5a13 call GJSmartTemplate__offsetForType ; +0x1b7, 0x1401b5a17 mov rax, [rsi] ; +0x1bc, 0x1401b5a1c mov rcx, rsi ; +0x1bf, 0x1401b5a1f call qword ptr [rax+0C8h] ; +0x1c2, 0x1401b5a22 lea r8, [rbp+290h+var_2D0] ; +0x1c8, 0x1401b5a28 lea rdx, [rsp+390h+var_318] ; +0x1cc, 0x1401b5a2c mov rcx, rax ; +0x1d1, 0x1401b5a31 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1d4, 0x1401b5a34 lea rcx, [rbp+290h+var_2A0] ; +0x1da, 0x1401b5a3a call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x1de, 0x1401b5a3e mov [rbp+290h+var_2E4], 1 ; +0x1e4, 0x1401b5a44 movss xmm0, [rbp+290h+var_2D0] ; +0x1eb, 0x1401b5a4b ucomiss xmm0, cs:dword_14090A6E8 ; +0x1f0, 0x1401b5a50 jp short loc_1401B5A72 ; +0x1f7, 0x1401b5a57 jnz short loc_1401B5A72 ; +0x1f9, 0x1401b5a59 movss xmm0, [rbp+290h+var_2CC] ; +0x1fb, 0x1401b5a5b ucomiss xmm0, cs:dword_14090A6EC ; +0x200, 0x1401b5a60 jp short loc_1401B5A72 ; +0x207, 0x1401b5a67 jnz short loc_1401B5A72 ; +0x209, 0x1401b5a69 mov [rsp+390h+var_329], 0 ; +0x20b, 0x1401b5a6b jmp short loc_1401B5ABD ; +0x210, 0x1401b5a70 mov [rsp+390h+var_329], 1 ; +0x212, 0x1401b5a72 mov [rbp+290h+var_2E4], 2 ; +0x217, 0x1401b5a77 lea rdx, [rbp+290h+var_258] ; +0x21e, 0x1401b5a7e lea rcx, [rbp+290h+var_2D0] ; +0x222, 0x1401b5a82 call cs:??GCCPoint@cocos2d@@QEBA?AV01@XZ; cocos2d::CCPoint::operator-(void) ; +0x226, 0x1401b5a86 mov rax, [rsi] ; +0x22c, 0x1401b5a8c mov rcx, rsi ; +0x22f, 0x1401b5a8f call qword ptr [rax+0C8h] ; +0x232, 0x1401b5a92 lea r8, [rbp+290h+var_258] ; +0x238, 0x1401b5a98 lea rdx, [rbp+290h+var_1C8] ; +0x23c, 0x1401b5a9c mov rcx, rax ; +0x243, 0x1401b5aa3 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x246, 0x1401b5aa6 lea rdx, [rbp+290h+var_1C8] ; +0x24c, 0x1401b5aac lea rcx, [rbp+290h+var_2A0] ; +0x253, 0x1401b5ab3 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x257, 0x1401b5ab7 xorps xmm0, xmm0 ; +0x25d, 0x1401b5abd movups [rbp+290h+var_118], xmm0 ; +0x260, 0x1401b5ac0 mov qword ptr [rbp+290h+var_108], r12 ; +0x267, 0x1401b5ac7 mov eax, 0Fh ; +0x26e, 0x1401b5ace mov [rbp+290h+var_2B8], rax ; +0x273, 0x1401b5ad3 mov qword ptr [rbp+290h+var_108+8], rax ; +0x277, 0x1401b5ad7 mov byte ptr [rbp+290h+var_118], 0 ; +0x27e, 0x1401b5ade mov eax, r12d ; +0x285, 0x1401b5ae5 mov [rbp+290h+var_308], eax ; +0x288, 0x1401b5ae8 nop dword ptr [rax+rax+00h] ; +0x28b, 0x1401b5aeb lea rdx, [rsp+390h+var_318] ; +0x290, 0x1401b5af0 lea rcx, [rbp+290h+var_2A0] ; +0x295, 0x1401b5af5 test eax, eax ; +0x299, 0x1401b5af9 cmovnz rdx, rcx ; +0x29b, 0x1401b5afb lea rcx, [rsp+390h+var_320] ; +0x29f, 0x1401b5aff call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2a4, 0x1401b5b04 lea rdx, [rsp+390h+var_320] ; +0x2aa, 0x1401b5b0a lea rcx, [rbp+290h+var_1C0] ; +0x2af, 0x1401b5b0f call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2b6, 0x1401b5b16 mov r8, rax ; +0x2bc, 0x1401b5b1c mov [rsp+390h+Reserved], r15 ; +0x2bf, 0x1401b5b1f mov r9d, 1 ; +0x2c4, 0x1401b5b24 mov rdx, rsi ; +0x2ca, 0x1401b5b2a call EditorUI__getSmartNeighbor ; +0x2cd, 0x1401b5b2d mov rdi, rax ; +0x2d2, 0x1401b5b32 mov [rbp+290h+var_2A8], rax ; +0x2d5, 0x1401b5b35 lea rdx, [rsp+390h+var_320] ; +0x2d9, 0x1401b5b39 lea rcx, [rbp+290h+var_1B8] ; +0x2de, 0x1401b5b3e call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2e5, 0x1401b5b45 mov r8, rax ; +0x2eb, 0x1401b5b4b mov [rsp+390h+Reserved], r15 ; +0x2ee, 0x1401b5b4e mov r9d, 2 ; +0x2f3, 0x1401b5b53 mov rdx, rsi ; +0x2f9, 0x1401b5b59 call EditorUI__getSmartNeighbor ; +0x2fc, 0x1401b5b5c mov rbx, rax ; +0x301, 0x1401b5b61 mov [rbp+290h+var_290], rax ; +0x304, 0x1401b5b64 lea rdx, [rsp+390h+var_320] ; +0x308, 0x1401b5b68 lea rcx, [rbp+290h+var_1B0] ; +0x30d, 0x1401b5b6d call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x314, 0x1401b5b74 mov r8, rax ; +0x31a, 0x1401b5b7a mov [rsp+390h+Reserved], r15 ; +0x31d, 0x1401b5b7d mov r9d, 3 ; +0x322, 0x1401b5b82 mov rdx, rsi ; +0x328, 0x1401b5b88 call EditorUI__getSmartNeighbor ; +0x32b, 0x1401b5b8b mov [rbp+290h+var_288], rax ; +0x330, 0x1401b5b90 lea rdx, [rsp+390h+var_320] ; +0x334, 0x1401b5b94 lea rcx, [rbp+290h+var_1A8] ; +0x339, 0x1401b5b99 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x340, 0x1401b5ba0 mov r8, rax ; +0x346, 0x1401b5ba6 mov [rsp+390h+Reserved], r15 ; +0x349, 0x1401b5ba9 mov r9d, 4 ; +0x34e, 0x1401b5bae mov rdx, rsi ; +0x354, 0x1401b5bb4 call EditorUI__getSmartNeighbor ; +0x357, 0x1401b5bb7 mov [rbp+290h+var_278], rax ; +0x35c, 0x1401b5bbc lea rdx, [rsp+390h+var_320] ; +0x360, 0x1401b5bc0 lea rcx, [rbp+290h+var_1A0] ; +0x365, 0x1401b5bc5 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x36c, 0x1401b5bcc mov r8, rax ; +0x372, 0x1401b5bd2 mov [rsp+390h+Reserved], r15 ; +0x375, 0x1401b5bd5 mov r9d, 5 ; +0x37a, 0x1401b5bda mov rdx, rsi ; +0x380, 0x1401b5be0 call EditorUI__getSmartNeighbor ; +0x383, 0x1401b5be3 mov [rbp+290h+var_260], rax ; +0x388, 0x1401b5be8 lea rdx, [rsp+390h+var_320] ; +0x38c, 0x1401b5bec lea rcx, [rbp+290h+var_198] ; +0x391, 0x1401b5bf1 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x398, 0x1401b5bf8 mov r8, rax ; +0x39e, 0x1401b5bfe mov [rsp+390h+Reserved], r15 ; +0x3a1, 0x1401b5c01 mov r9d, 6 ; +0x3a6, 0x1401b5c06 mov rdx, rsi ; +0x3ac, 0x1401b5c0c call EditorUI__getSmartNeighbor ; +0x3af, 0x1401b5c0f mov [rbp+290h+var_2C8], rax ; +0x3b4, 0x1401b5c14 lea rdx, [rsp+390h+var_320] ; +0x3b8, 0x1401b5c18 lea rcx, [rbp+290h+var_190] ; +0x3bd, 0x1401b5c1d call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3c4, 0x1401b5c24 mov r8, rax ; +0x3ca, 0x1401b5c2a mov [rsp+390h+Reserved], r15 ; +0x3cd, 0x1401b5c2d mov r9d, 7 ; +0x3d2, 0x1401b5c32 mov rdx, rsi ; +0x3d8, 0x1401b5c38 call EditorUI__getSmartNeighbor ; +0x3db, 0x1401b5c3b mov [rbp+290h+var_2B0], rax ; +0x3e0, 0x1401b5c40 lea rdx, [rsp+390h+var_320] ; +0x3e4, 0x1401b5c44 lea rcx, [rbp+290h+var_188] ; +0x3e9, 0x1401b5c49 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3f0, 0x1401b5c50 mov r8, rax ; +0x3f6, 0x1401b5c56 mov [rsp+390h+Reserved], r15 ; +0x3f9, 0x1401b5c59 mov r9d, 8 ; +0x3fe, 0x1401b5c5e mov rdx, rsi ; +0x404, 0x1401b5c64 call EditorUI__getSmartNeighbor ; +0x407, 0x1401b5c67 mov rdx, rax ; +0x40c, 0x1401b5c6c mov [rbp+290h+var_280], rax ; +0x40f, 0x1401b5c6f test rdi, rdi ; +0x413, 0x1401b5c73 setnz r12b ; +0x416, 0x1401b5c76 test rbx, rbx ; +0x41a, 0x1401b5c7a setnz sil ; +0x41d, 0x1401b5c7d mov r8, [rbp+290h+var_288] ; +0x421, 0x1401b5c81 test r8, r8 ; +0x425, 0x1401b5c85 setnz dil ; +0x428, 0x1401b5c88 mov r9, [rbp+290h+var_278] ; +0x42c, 0x1401b5c8c test r9, r9 ; +0x430, 0x1401b5c90 setnz r15b ; +0x433, 0x1401b5c93 mov r10, [rbp+290h+var_260] ; +0x437, 0x1401b5c97 test r10, r10 ; +0x43b, 0x1401b5c9b setnz r13b ; +0x43e, 0x1401b5c9e cmp [rbp+290h+var_2C8], 0 ; +0x442, 0x1401b5ca2 setnz al ; +0x447, 0x1401b5ca7 mov [rbp+290h+var_2F0], eax ; +0x44a, 0x1401b5caa mov rcx, [rbp+290h+var_2B0] ; +0x44d, 0x1401b5cad test rcx, rcx ; +0x451, 0x1401b5cb1 setnz cl ; +0x454, 0x1401b5cb4 mov [rbp+290h+var_2EC], ecx ; +0x457, 0x1401b5cb7 test rdx, rdx ; +0x45a, 0x1401b5cba setnz dl ; +0x45d, 0x1401b5cbd mov [rbp+290h+var_2E8], edx ; +0x460, 0x1401b5cc0 cmp [rbp+290h+var_2A8], 0 ; +0x463, 0x1401b5cc3 mov r11, [rbp+290h+var_2C8] ; +0x468, 0x1401b5cc8 jz short loc_1401B5CEC ; +0x46c, 0x1401b5ccc movzx r12d, r12b ; +0x46e, 0x1401b5cce mov r11, [rbp+290h+var_2A8] ; +0x472, 0x1401b5cd2 cmp byte ptr [r11+550h], 0 ; +0x476, 0x1401b5cd6 mov r11d, 0 ; +0x47e, 0x1401b5cde cmovnz r12d, r11d ; +0x484, 0x1401b5ce4 mov r11, [rbp+290h+var_2C8] ; +0x488, 0x1401b5ce8 test rbx, rbx ; +0x48c, 0x1401b5cec jz short loc_1401B5D04 ; +0x48f, 0x1401b5cef movzx esi, sil ; +0x491, 0x1401b5cf1 cmp byte ptr [rbx+550h], 0 ; +0x495, 0x1401b5cf5 mov ebx, 0 ; +0x49c, 0x1401b5cfc cmovnz esi, ebx ; +0x4a1, 0x1401b5d01 test r8, r8 ; +0x4a4, 0x1401b5d04 jz short loc_1401B5D18 ; +0x4a7, 0x1401b5d07 movzx edi, dil ; +0x4a9, 0x1401b5d09 cmp byte ptr [r8+550h], 0 ; +0x4ad, 0x1401b5d0d cmovnz edi, ebx ; +0x4b5, 0x1401b5d15 test r9, r9 ; +0x4b8, 0x1401b5d18 jz short loc_1401B5D2D ; +0x4bb, 0x1401b5d1b movzx r15d, r15b ; +0x4bd, 0x1401b5d1d cmp byte ptr [r9+550h], 0 ; +0x4c1, 0x1401b5d21 cmovnz r15d, ebx ; +0x4c9, 0x1401b5d29 test r10, r10 ; +0x4cd, 0x1401b5d2d jz short loc_1401B5D42 ; +0x4d0, 0x1401b5d30 movzx r13d, r13b ; +0x4d2, 0x1401b5d32 cmp byte ptr [r10+550h], 0 ; +0x4d6, 0x1401b5d36 cmovnz r13d, ebx ; +0x4de, 0x1401b5d3e test r11, r11 ; +0x4e2, 0x1401b5d42 jz short loc_1401B5D58 ; +0x4e5, 0x1401b5d45 movzx eax, al ; +0x4e7, 0x1401b5d47 cmp byte ptr [r11+550h], 0 ; +0x4ea, 0x1401b5d4a cmovnz eax, ebx ; +0x4f2, 0x1401b5d52 mov [rbp+290h+var_2F0], eax ; +0x4f5, 0x1401b5d55 mov rax, [rbp+290h+var_2B0] ; +0x4f8, 0x1401b5d58 test rax, rax ; +0x4fc, 0x1401b5d5c jz short loc_1401B5D71 ; +0x4ff, 0x1401b5d5f movzx ecx, cl ; +0x501, 0x1401b5d61 cmp byte ptr [rax+550h], 0 ; +0x504, 0x1401b5d64 cmovnz ecx, ebx ; +0x50b, 0x1401b5d6b mov [rbp+290h+var_2EC], ecx ; +0x50e, 0x1401b5d6e mov rax, [rbp+290h+var_280] ; +0x511, 0x1401b5d71 test rax, rax ; +0x515, 0x1401b5d75 jz short loc_1401B5D8A ; +0x518, 0x1401b5d78 movzx edx, dl ; +0x51a, 0x1401b5d7a cmp byte ptr [rax+550h], 0 ; +0x51d, 0x1401b5d7d cmovnz edx, ebx ; +0x524, 0x1401b5d84 mov [rbp+290h+var_2E8], edx ; +0x527, 0x1401b5d87 movss xmm2, [rsp+390h+var_31C] ; +0x52a, 0x1401b5d8a subss xmm2, xmm10 ; +0x530, 0x1401b5d90 movss xmm1, [rsp+390h+var_320] ; +0x535, 0x1401b5d95 subss xmm1, xmm10 ; +0x53b, 0x1401b5d9b movss dword ptr [rsp+390h+Reserved], xmm13 ; +0x540, 0x1401b5da0 movaps xmm3, xmm13 ; +0x547, 0x1401b5da7 lea rcx, [rbp+290h+var_300] ; +0x54b, 0x1401b5dab call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x54f, 0x1401b5daf movss xmm0, [rbp+290h+var_2F4] ; +0x555, 0x1401b5db5 test r12b, r12b ; +0x55a, 0x1401b5dba jnz short loc_1401B5DC9 ; +0x55d, 0x1401b5dbd addss xmm0, xmm10 ; +0x55f, 0x1401b5dbf movss [rbp+290h+var_2F4], xmm0 ; +0x564, 0x1401b5dc4 test sil, sil ; +0x569, 0x1401b5dc9 jnz short loc_1401B5DE7 ; +0x56c, 0x1401b5dcc addss xmm0, xmm10 ; +0x56e, 0x1401b5dce movss [rbp+290h+var_2F4], xmm0 ; +0x573, 0x1401b5dd3 movss xmm0, [rbp+290h+var_2FC] ; +0x578, 0x1401b5dd8 addss xmm0, xmm12 ; +0x57d, 0x1401b5ddd movss [rbp+290h+var_2FC], xmm0 ; +0x582, 0x1401b5de2 movss xmm1, [rbp+290h+var_2F8] ; +0x587, 0x1401b5de7 test dil, dil ; +0x58c, 0x1401b5dec jnz short loc_1401B5E0A ; +0x58f, 0x1401b5def addss xmm1, xmm10 ; +0x591, 0x1401b5df1 movss [rbp+290h+var_2F8], xmm1 ; +0x596, 0x1401b5df6 movss xmm0, [rbp+290h+var_300] ; +0x59b, 0x1401b5dfb addss xmm0, xmm12 ; +0x5a0, 0x1401b5e00 movss [rbp+290h+var_300], xmm0 ; +0x5a5, 0x1401b5e05 test r15b, r15b ; +0x5aa, 0x1401b5e0a jnz short loc_1401B5E19 ; +0x5ad, 0x1401b5e0d addss xmm1, xmm10 ; +0x5af, 0x1401b5e0f movss [rbp+290h+var_2F8], xmm1 ; +0x5b4, 0x1401b5e14 mov rax, [rbp+290h+var_2C0] ; +0x5b9, 0x1401b5e19 mov rbx, [rax+5E8h] ; +0x5bd, 0x1401b5e1d lea rdx, [rbp+290h+var_300] ; +0x5c4, 0x1401b5e24 lea rcx, [rbp+290h+var_168] ; +0x5c8, 0x1401b5e28 call cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x5cf, 0x1401b5e2f mov rdx, rax ; +0x5d5, 0x1401b5e35 mov r8b, 1 ; +0x5d8, 0x1401b5e38 mov rcx, rbx ; +0x5db, 0x1401b5e3b call LevelEditorLayer__objectsInRect ; +0x5de, 0x1401b5e3e test r14, r14 ; +0x5e3, 0x1401b5e43 jnz short loc_1401B5E4D ; +0x5e6, 0x1401b5e46 mov r14, rax ; +0x5e8, 0x1401b5e48 jmp short loc_1401B5E5E ; +0x5eb, 0x1401b5e4b test rax, rax ; +0x5ed, 0x1401b5e4d jz short loc_1401B5E5E ; +0x5f0, 0x1401b5e50 mov rdx, rax ; +0x5f2, 0x1401b5e52 mov rcx, r14 ; +0x5f5, 0x1401b5e55 call cs:?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x5f8, 0x1401b5e58 mov eax, [rbp+290h+var_308] ; +0x5fe, 0x1401b5e5e test eax, eax ; +0x601, 0x1401b5e61 jnz loc_1401B5F93 ; +0x603, 0x1401b5e63 mov [rsp+390h+var_328], r12b ; +0x609, 0x1401b5e69 mov [rsp+390h+var_330], sil ; +0x60e, 0x1401b5e6e mov [rsp+390h+var_32F], dil ; +0x613, 0x1401b5e73 mov [rsp+390h+var_32E], r15b ; +0x618, 0x1401b5e78 mov [rsp+390h+var_32D], r13b ; +0x61d, 0x1401b5e7d movzx eax, byte ptr [rbp+290h+var_2F0] ; +0x622, 0x1401b5e82 mov [rsp+390h+var_32C], al ; +0x626, 0x1401b5e86 movzx eax, byte ptr [rbp+290h+var_2EC] ; +0x62a, 0x1401b5e8a mov [rsp+390h+var_32B], al ; +0x62e, 0x1401b5e8e movzx eax, byte ptr [rbp+290h+var_2E8] ; +0x632, 0x1401b5e92 mov [rsp+390h+var_32A], al ; +0x636, 0x1401b5e96 lea rdx, [rsp+390h+var_320] ; +0x63a, 0x1401b5e9a lea rcx, [rbp+290h+var_180] ; +0x63f, 0x1401b5e9f call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x646, 0x1401b5ea6 mov rdx, rax ; +0x64c, 0x1401b5eac mov rax, [rbp+290h+var_280] ; +0x64f, 0x1401b5eaf mov [rsp+390h+var_340], rax ; +0x653, 0x1401b5eb3 mov rcx, [rbp+290h+var_2B0] ; +0x658, 0x1401b5eb8 mov [rsp+390h+var_348], rcx ; +0x65c, 0x1401b5ebc mov rax, [rbp+290h+var_2C8] ; +0x661, 0x1401b5ec1 mov [rsp+390h+var_350], rax ; +0x665, 0x1401b5ec5 mov rax, [rbp+290h+var_260] ; +0x66a, 0x1401b5eca mov [rsp+390h+var_358], rax ; +0x66e, 0x1401b5ece mov rax, [rbp+290h+var_278] ; +0x673, 0x1401b5ed3 mov [rsp+390h+var_360], rax ; +0x677, 0x1401b5ed7 mov rax, [rbp+290h+var_288] ; +0x67c, 0x1401b5edc mov [rsp+390h+var_368], rax ; +0x680, 0x1401b5ee0 mov rax, [rbp+290h+var_290] ; +0x685, 0x1401b5ee5 mov [rsp+390h+Reserved], rax ; +0x689, 0x1401b5ee9 mov r9, [rbp+290h+var_2A8] ; +0x68e, 0x1401b5eee mov rsi, [rbp+290h+var_2D8] ; +0x692, 0x1401b5ef2 mov r8, rsi ; +0x696, 0x1401b5ef6 lea rcx, [rbp+290h+var_F8] ; +0x699, 0x1401b5ef9 call GJSmartTemplate__keyFromNeighbors ; +0x6a0, 0x1401b5f00 mov rbx, rax ; +0x6a5, 0x1401b5f05 lea rax, [rbp+290h+var_118] ; +0x6a8, 0x1401b5f08 cmp rax, rbx ; +0x6af, 0x1401b5f0f jz short loc_1401B5F82 ; +0x6b2, 0x1401b5f12 mov rax, [rbp+290h+var_2B8] ; +0x6b4, 0x1401b5f14 cmp rax, 0Fh ; +0x6b8, 0x1401b5f18 jbe short loc_1401B5F53 ; +0x6bc, 0x1401b5f1c lea rdx, [rax+1] ; +0x6be, 0x1401b5f1e mov rcx, qword ptr [rbp+290h+var_118] ; +0x6c2, 0x1401b5f22 mov r8, rcx ; +0x6c9, 0x1401b5f29 cmp rdx, 1000h ; +0x6cc, 0x1401b5f2c jb short loc_1401B5F4E ; +0x6d3, 0x1401b5f33 add rdx, 27h ; ''' ; +0x6d5, 0x1401b5f35 mov rcx, [rcx-8]; Block ; +0x6d9, 0x1401b5f39 sub r8, rcx ; +0x6dd, 0x1401b5f3d sub r8, 8 ; +0x6e0, 0x1401b5f40 cmp r8, 1Fh ; +0x6e4, 0x1401b5f44 ja loc_1401B67FF ; +0x6e8, 0x1401b5f48 call j_j_free ; +0x6ee, 0x1401b5f4e movups xmm0, xmmword ptr [rbx] ; +0x6f3, 0x1401b5f53 movups [rbp+290h+var_118], xmm0 ; +0x6f6, 0x1401b5f56 movups xmm1, xmmword ptr [rbx+10h] ; +0x6fd, 0x1401b5f5d movups [rbp+290h+var_108], xmm1 ; +0x701, 0x1401b5f61 xor eax, eax ; +0x708, 0x1401b5f68 mov [rbx+10h], rax ; +0x70a, 0x1401b5f6a mov qword ptr [rbx+18h], 0Fh ; +0x70e, 0x1401b5f6e mov [rbx], al ; +0x716, 0x1401b5f76 psrldq xmm1, 8 ; +0x718, 0x1401b5f78 movq [rbp+290h+var_2B8], xmm1 ; +0x71d, 0x1401b5f7d lea rcx, [rbp+290h+var_F8] ; +0x722, 0x1401b5f82 call sub_14003D310 ; +0x729, 0x1401b5f89 mov eax, [rbp+290h+var_308] ; +0x72e, 0x1401b5f8e jmp short loc_1401B5F9D ; +0x731, 0x1401b5f91 mov rsi, [rbp+290h+var_2D8] ; +0x733, 0x1401b5f93 movzx r12d, [rsp+390h+var_328] ; +0x737, 0x1401b5f97 inc eax ; +0x73d, 0x1401b5f9d mov [rbp+290h+var_308], eax ; +0x73f, 0x1401b5f9f cmp eax, [rbp+290h+var_2E4] ; +0x742, 0x1401b5fa2 mov r15, [rbp+290h+var_268] ; +0x745, 0x1401b5fa5 jl loc_1401B5AF0 ; +0x749, 0x1401b5fa9 movsxd rax, dword ptr [rsi+370h] ; +0x74f, 0x1401b5faf test eax, eax ; +0x756, 0x1401b5fb6 jle loc_1401B603D ; +0x758, 0x1401b5fb8 mov rdx, rax ; +0x75e, 0x1401b5fbe mov rax, [rbp+290h+var_2C0] ; +0x761, 0x1401b5fc1 mov rcx, [rax+5E8h] ; +0x765, 0x1401b5fc5 mov rcx, [rcx+10A0h] ; +0x76c, 0x1401b5fcc call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x773, 0x1401b5fd3 mov rsi, rax ; +0x779, 0x1401b5fd9 xor edi, edi ; +0x77c, 0x1401b5fdc test rax, rax ; +0x77e, 0x1401b5fde jz loc_1401B6463 ; +0x781, 0x1401b5fe1 mov ebx, edi ; +0x787, 0x1401b5fe7 mov rcx, rax ; +0x789, 0x1401b5fe9 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x78c, 0x1401b5fec test eax, eax ; +0x792, 0x1401b5ff2 jz loc_1401B6463 ; +0x794, 0x1401b5ff4 nop word ptr [rax+rax+00h] ; +0x79a, 0x1401b5ffa mov edx, ebx ; +0x7a0, 0x1401b6000 mov rcx, rsi ; +0x7a2, 0x1401b6002 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x7a5, 0x1401b6005 mov rdi, rax ; +0x7ab, 0x1401b600b mov rdx, rax ; +0x7ae, 0x1401b600e mov rcx, r14 ; +0x7b1, 0x1401b6011 call cs:?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x7b4, 0x1401b6014 test al, al ; +0x7ba, 0x1401b601a jnz short loc_1401B602A ; +0x7bc, 0x1401b601c mov rdx, rdi ; +0x7be, 0x1401b601e mov rcx, r14 ; +0x7c1, 0x1401b6021 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x7c4, 0x1401b6024 inc ebx ; +0x7ca, 0x1401b602a mov rcx, rsi ; +0x7cc, 0x1401b602c call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7cf, 0x1401b602f cmp ebx, eax ; +0x7d5, 0x1401b6035 jb short loc_1401B6000 ; +0x7d7, 0x1401b6037 mov rsi, [rbp+290h+var_2D8] ; +0x7d9, 0x1401b6039 xor edi, edi ; +0x7dd, 0x1401b603d test r14, r14 ; +0x7df, 0x1401b603f jz loc_1401B671A ; +0x7e2, 0x1401b6042 mov rcx, r14 ; +0x7e8, 0x1401b6048 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7eb, 0x1401b604b movzx r15d, [rsp+390h+var_330] ; +0x7f1, 0x1401b6051 movzx r13d, [rsp+390h+var_32F] ; +0x7f7, 0x1401b6057 test eax, eax ; +0x7fd, 0x1401b605d jz loc_1401B648B ; +0x7ff, 0x1401b605f mov edx, edi ; +0x805, 0x1401b6065 mov rcx, r14 ; +0x807, 0x1401b6067 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x80a, 0x1401b606a mov rbx, rax ; +0x810, 0x1401b6070 cmp dword ptr [rax+4E8h], 5 ; +0x813, 0x1401b6073 jz loc_1401B646C ; +0x81a, 0x1401b607a mov edx, [rax+39Ch] ; +0x820, 0x1401b6080 mov rcx, [rbp+290h+var_270] ; +0x826, 0x1401b6086 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x82a, 0x1401b608a test rax, rax ; +0x830, 0x1401b6090 jnz loc_1401B646C ; +0x833, 0x1401b6093 mov rcx, [rbx] ; +0x839, 0x1401b6099 mov rdx, [rcx+0C8h] ; +0x83c, 0x1401b609c mov rcx, rbx ; +0x843, 0x1401b60a3 call rdx ; +0x846, 0x1401b60a6 mov rdx, rax ; +0x848, 0x1401b60a8 lea rcx, [rbp+290h+var_310] ; +0x84b, 0x1401b60ab call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x84f, 0x1401b60af lea rdx, [rbp+290h+var_310] ; +0x855, 0x1401b60b5 lea rcx, [rsp+390h+var_318] ; +0x859, 0x1401b60b9 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x85e, 0x1401b60be movaps xmm6, xmm0 ; +0x864, 0x1401b60c4 cmp [rsp+390h+var_329], 0 ; +0x867, 0x1401b60c7 jz short loc_1401B60E0 ; +0x86c, 0x1401b60cc lea rdx, [rbp+290h+var_310] ; +0x86e, 0x1401b60ce lea rcx, [rbp+290h+var_2A0] ; +0x872, 0x1401b60d2 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x876, 0x1401b60d6 minss xmm6, xmm0 ; +0x87c, 0x1401b60dc movsxd rax, dword ptr [rbx+370h] ; +0x880, 0x1401b60e0 test eax, eax ; +0x887, 0x1401b60e7 jle short loc_1401B6109 ; +0x889, 0x1401b60e9 cmp eax, [rsi+370h] ; +0x88b, 0x1401b60eb jz short loc_1401B6109 ; +0x891, 0x1401b60f1 mov rdx, rax ; +0x893, 0x1401b60f3 mov rcx, [rbp+290h+var_250] ; +0x896, 0x1401b60f6 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x89a, 0x1401b60fa test rax, rax ; +0x8a0, 0x1401b6100 jnz loc_1401B646C ; +0x8a3, 0x1401b6103 mov eax, [rbx+370h] ; +0x8a9, 0x1401b6109 test eax, eax ; +0x8af, 0x1401b610f jz short loc_1401B611F ; +0x8b1, 0x1401b6111 cmp eax, [rsi+370h] ; +0x8b3, 0x1401b6113 jz loc_1401B644B ; +0x8b9, 0x1401b6119 test r12b, r12b ; +0x8bf, 0x1401b611f jz short loc_1401B617A ; +0x8c2, 0x1401b6122 movaps xmm8, xmm9 ; +0x8c4, 0x1401b6124 call ObjectToolbox__sharedState ; +0x8c8, 0x1401b6128 xor edx, edx ; +0x8cd, 0x1401b612d call ObjectToolbox__gridNodeSizeForKey ; +0x8cf, 0x1401b612f ucomiss xmm0, xmm7 ; +0x8d4, 0x1401b6134 jp short loc_1401B613F ; +0x8d7, 0x1401b6137 jnz short loc_1401B613F ; +0x8d9, 0x1401b6139 movaps xmm8, xmm7 ; +0x8db, 0x1401b613b movaps xmm2, xmm8 ; +0x8df, 0x1401b613f xorps xmm1, xmm1 ; +0x8e3, 0x1401b6143 lea rcx, [rbp+290h+var_248] ; +0x8e6, 0x1401b6146 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8ea, 0x1401b614a lea r8, [rbp+290h+var_248] ; +0x8f0, 0x1401b6150 lea rdx, [rbp+290h+var_240] ; +0x8f4, 0x1401b6154 lea rcx, [rsp+390h+var_318] ; +0x8f8, 0x1401b6158 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x8fd, 0x1401b615d lea rdx, [rbp+290h+var_240] ; +0x903, 0x1401b6163 lea rcx, [rbp+290h+var_310] ; +0x907, 0x1401b6167 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x90b, 0x1401b616b comiss xmm6, xmm0 ; +0x911, 0x1401b6171 ja loc_1401B646C ; +0x914, 0x1401b6174 test r15b, r15b ; +0x91a, 0x1401b617a jz short loc_1401B61D9 ; +0x91d, 0x1401b617d movaps xmm8, xmm9 ; +0x91f, 0x1401b617f call ObjectToolbox__sharedState ; +0x923, 0x1401b6183 xor edx, edx ; +0x928, 0x1401b6188 call ObjectToolbox__gridNodeSizeForKey ; +0x92a, 0x1401b618a ucomiss xmm0, xmm7 ; +0x92f, 0x1401b618f jp short loc_1401B619A ; +0x932, 0x1401b6192 jnz short loc_1401B619A ; +0x934, 0x1401b6194 movaps xmm8, xmm7 ; +0x936, 0x1401b6196 xorps xmm8, xmm11 ; +0x93a, 0x1401b619a movaps xmm2, xmm8 ; +0x93e, 0x1401b619e xorps xmm1, xmm1 ; +0x942, 0x1401b61a2 lea rcx, [rbp+290h+var_238] ; +0x945, 0x1401b61a5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x949, 0x1401b61a9 lea r8, [rbp+290h+var_238] ; +0x94f, 0x1401b61af lea rdx, [rbp+290h+var_230] ; +0x953, 0x1401b61b3 lea rcx, [rsp+390h+var_318] ; +0x957, 0x1401b61b7 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x95c, 0x1401b61bc lea rdx, [rbp+290h+var_230] ; +0x962, 0x1401b61c2 lea rcx, [rbp+290h+var_310] ; +0x966, 0x1401b61c6 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x96a, 0x1401b61ca comiss xmm6, xmm0 ; +0x970, 0x1401b61d0 ja loc_1401B646C ; +0x973, 0x1401b61d3 test r13b, r13b ; +0x979, 0x1401b61d9 jz short loc_1401B6238 ; +0x97c, 0x1401b61dc movaps xmm8, xmm9 ; +0x97e, 0x1401b61de call ObjectToolbox__sharedState ; +0x982, 0x1401b61e2 xor edx, edx ; +0x987, 0x1401b61e7 call ObjectToolbox__gridNodeSizeForKey ; +0x989, 0x1401b61e9 ucomiss xmm0, xmm7 ; +0x98e, 0x1401b61ee jp short loc_1401B61F9 ; +0x991, 0x1401b61f1 jnz short loc_1401B61F9 ; +0x993, 0x1401b61f3 movaps xmm8, xmm7 ; +0x995, 0x1401b61f5 xorps xmm8, xmm11 ; +0x999, 0x1401b61f9 xorps xmm2, xmm2 ; +0x99d, 0x1401b61fd movaps xmm1, xmm8 ; +0x9a0, 0x1401b6200 lea rcx, [rbp+290h+var_228] ; +0x9a4, 0x1401b6204 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9a8, 0x1401b6208 lea r8, [rbp+290h+var_228] ; +0x9ae, 0x1401b620e lea rdx, [rbp+290h+var_220] ; +0x9b2, 0x1401b6212 lea rcx, [rsp+390h+var_318] ; +0x9b6, 0x1401b6216 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x9bb, 0x1401b621b lea rdx, [rbp+290h+var_220] ; +0x9c1, 0x1401b6221 lea rcx, [rbp+290h+var_310] ; +0x9c5, 0x1401b6225 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x9c9, 0x1401b6229 comiss xmm6, xmm0 ; +0x9cf, 0x1401b622f ja loc_1401B646C ; +0x9d2, 0x1401b6232 cmp [rsp+390h+var_32E], 0 ; +0x9d8, 0x1401b6238 jz short loc_1401B629B ; +0x9dd, 0x1401b623d movaps xmm8, xmm9 ; +0x9df, 0x1401b623f call ObjectToolbox__sharedState ; +0x9e3, 0x1401b6243 xor edx, edx ; +0x9e8, 0x1401b6248 call ObjectToolbox__gridNodeSizeForKey ; +0x9ea, 0x1401b624a ucomiss xmm0, xmm7 ; +0x9ef, 0x1401b624f jp short loc_1401B625A ; +0x9f2, 0x1401b6252 jnz short loc_1401B625A ; +0x9f4, 0x1401b6254 movaps xmm8, xmm7 ; +0x9f6, 0x1401b6256 xorps xmm2, xmm2 ; +0x9fa, 0x1401b625a movaps xmm1, xmm8 ; +0x9fd, 0x1401b625d lea rcx, [rbp+290h+var_218] ; +0xa01, 0x1401b6261 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa05, 0x1401b6265 lea r8, [rbp+290h+var_218] ; +0xa0b, 0x1401b626b lea rdx, [rbp+290h+var_210] ; +0xa0f, 0x1401b626f lea rcx, [rsp+390h+var_318] ; +0xa16, 0x1401b6276 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xa1b, 0x1401b627b lea rdx, [rbp+290h+var_210] ; +0xa21, 0x1401b6281 lea rcx, [rbp+290h+var_310] ; +0xa28, 0x1401b6288 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xa2c, 0x1401b628c comiss xmm6, xmm0 ; +0xa32, 0x1401b6292 ja loc_1401B646C ; +0xa35, 0x1401b6295 cmp [rsp+390h+var_32D], 0 ; +0xa3b, 0x1401b629b jz short loc_1401B6309 ; +0xa40, 0x1401b62a0 movaps xmm8, xmm9 ; +0xa42, 0x1401b62a2 call ObjectToolbox__sharedState ; +0xa46, 0x1401b62a6 xor edx, edx ; +0xa4b, 0x1401b62ab call ObjectToolbox__gridNodeSizeForKey ; +0xa4d, 0x1401b62ad ucomiss xmm0, xmm7 ; +0xa52, 0x1401b62b2 jp short loc_1401B62BD ; +0xa55, 0x1401b62b5 jnz short loc_1401B62BD ; +0xa57, 0x1401b62b7 movaps xmm8, xmm7 ; +0xa59, 0x1401b62b9 movaps xmm1, xmm8 ; +0xa5d, 0x1401b62bd xorps xmm1, xmm11 ; +0xa61, 0x1401b62c1 movaps xmm2, xmm8 ; +0xa65, 0x1401b62c5 lea rcx, [rbp+290h+var_208] ; +0xa69, 0x1401b62c9 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa70, 0x1401b62d0 lea r8, [rbp+290h+var_208] ; +0xa76, 0x1401b62d6 lea rdx, [rbp+290h+var_200] ; +0xa7d, 0x1401b62dd lea rcx, [rsp+390h+var_318] ; +0xa84, 0x1401b62e4 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xa89, 0x1401b62e9 lea rdx, [rbp+290h+var_200] ; +0xa8f, 0x1401b62ef lea rcx, [rbp+290h+var_310] ; +0xa96, 0x1401b62f6 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xa9a, 0x1401b62fa comiss xmm6, xmm0 ; +0xaa0, 0x1401b6300 ja loc_1401B646C ; +0xaa3, 0x1401b6303 cmp [rsp+390h+var_32C], 0 ; +0xaa9, 0x1401b6309 jz short loc_1401B6373 ; +0xaae, 0x1401b630e movaps xmm8, xmm9 ; +0xab0, 0x1401b6310 call ObjectToolbox__sharedState ; +0xab4, 0x1401b6314 xor edx, edx ; +0xab9, 0x1401b6319 call ObjectToolbox__gridNodeSizeForKey ; +0xabb, 0x1401b631b ucomiss xmm0, xmm7 ; +0xac0, 0x1401b6320 jp short loc_1401B632B ; +0xac3, 0x1401b6323 jnz short loc_1401B632B ; +0xac5, 0x1401b6325 movaps xmm8, xmm7 ; +0xac7, 0x1401b6327 movaps xmm2, xmm8 ; +0xacb, 0x1401b632b movaps xmm1, xmm8 ; +0xacf, 0x1401b632f lea rcx, [rbp+290h+var_1F8] ; +0xad3, 0x1401b6333 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xada, 0x1401b633a lea r8, [rbp+290h+var_1F8] ; +0xae0, 0x1401b6340 lea rdx, [rbp+290h+var_1F0] ; +0xae7, 0x1401b6347 lea rcx, [rsp+390h+var_318] ; +0xaee, 0x1401b634e call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xaf3, 0x1401b6353 lea rdx, [rbp+290h+var_1F0] ; +0xaf9, 0x1401b6359 lea rcx, [rbp+290h+var_310] ; +0xb00, 0x1401b6360 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xb04, 0x1401b6364 comiss xmm6, xmm0 ; +0xb0a, 0x1401b636a ja loc_1401B646C ; +0xb0d, 0x1401b636d cmp [rsp+390h+var_32B], 0 ; +0xb13, 0x1401b6373 jz short loc_1401B63E1 ; +0xb18, 0x1401b6378 movaps xmm8, xmm9 ; +0xb1a, 0x1401b637a call ObjectToolbox__sharedState ; +0xb1e, 0x1401b637e xor edx, edx ; +0xb23, 0x1401b6383 call ObjectToolbox__gridNodeSizeForKey ; +0xb25, 0x1401b6385 ucomiss xmm0, xmm7 ; +0xb2a, 0x1401b638a jp short loc_1401B6395 ; +0xb2d, 0x1401b638d jnz short loc_1401B6395 ; +0xb2f, 0x1401b638f movaps xmm8, xmm7 ; +0xb31, 0x1401b6391 xorps xmm8, xmm11 ; +0xb35, 0x1401b6395 movaps xmm2, xmm8 ; +0xb39, 0x1401b6399 movaps xmm1, xmm8 ; +0xb3d, 0x1401b639d lea rcx, [rbp+290h+var_1E8] ; +0xb41, 0x1401b63a1 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb48, 0x1401b63a8 lea r8, [rbp+290h+var_1E8] ; +0xb4e, 0x1401b63ae lea rdx, [rbp+290h+var_1E0] ; +0xb55, 0x1401b63b5 lea rcx, [rsp+390h+var_318] ; +0xb5c, 0x1401b63bc call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xb61, 0x1401b63c1 lea rdx, [rbp+290h+var_1E0] ; +0xb67, 0x1401b63c7 lea rcx, [rbp+290h+var_310] ; +0xb6e, 0x1401b63ce call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xb72, 0x1401b63d2 comiss xmm6, xmm0 ; +0xb78, 0x1401b63d8 ja loc_1401B646C ; +0xb7b, 0x1401b63db cmp [rsp+390h+var_32A], 0 ; +0xb81, 0x1401b63e1 jz short loc_1401B644B ; +0xb86, 0x1401b63e6 movaps xmm8, xmm9 ; +0xb88, 0x1401b63e8 call ObjectToolbox__sharedState ; +0xb8c, 0x1401b63ec xor edx, edx ; +0xb91, 0x1401b63f1 call ObjectToolbox__gridNodeSizeForKey ; +0xb93, 0x1401b63f3 ucomiss xmm0, xmm7 ; +0xb98, 0x1401b63f8 jp short loc_1401B6403 ; +0xb9b, 0x1401b63fb jnz short loc_1401B6403 ; +0xb9d, 0x1401b63fd movaps xmm8, xmm7 ; +0xb9f, 0x1401b63ff movaps xmm2, xmm8 ; +0xba3, 0x1401b6403 xorps xmm2, xmm11 ; +0xba7, 0x1401b6407 movaps xmm1, xmm8 ; +0xbab, 0x1401b640b lea rcx, [rbp+290h+var_1D8] ; +0xbaf, 0x1401b640f call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xbb6, 0x1401b6416 lea r8, [rbp+290h+var_1D8] ; +0xbbc, 0x1401b641c lea rdx, [rbp+290h+var_1D0] ; +0xbc3, 0x1401b6423 lea rcx, [rsp+390h+var_318] ; +0xbca, 0x1401b642a call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xbcf, 0x1401b642f lea rdx, [rbp+290h+var_1D0] ; +0xbd5, 0x1401b6435 lea rcx, [rbp+290h+var_310] ; +0xbdc, 0x1401b643c call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xbe0, 0x1401b6440 comiss xmm6, xmm0 ; +0xbe6, 0x1401b6446 ja short loc_1401B646C ; +0xbe9, 0x1401b6449 mov r8d, [rbx+39Ch] ; +0xbeb, 0x1401b644b mov rdx, rbx ; +0xbf2, 0x1401b6452 mov rcx, [rbp+290h+var_270] ; +0xbf5, 0x1401b6455 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0xbf9, 0x1401b6459 inc edi ; +0xbff, 0x1401b645f jmp short loc_1401B647A ; +0xc01, 0x1401b6461 mov rsi, [rbp+290h+var_2D8] ; +0xc03, 0x1401b6463 jmp loc_1401B603F ; +0xc07, 0x1401b6467 mov r8b, 1 ; +0xc0c, 0x1401b646c mov edx, edi ; +0xc0f, 0x1401b646f mov rcx, r14 ; +0xc11, 0x1401b6471 call cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xc14, 0x1401b6474 mov rcx, r14 ; +0xc1a, 0x1401b647a call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc1d, 0x1401b647d cmp edi, eax ; +0xc23, 0x1401b6483 jb loc_1401B6065 ; +0xc25, 0x1401b6485 mov rcx, r14 ; +0xc2b, 0x1401b648b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc2e, 0x1401b648e test eax, eax ; +0xc34, 0x1401b6494 jz loc_1401B6726 ; +0xc36, 0x1401b6496 mov ebx, [rsi+40Ch] ; +0xc3c, 0x1401b649c mov rax, [rsi] ; +0xc42, 0x1401b64a2 lea rdx, [rbp+290h+var_178] ; +0xc45, 0x1401b64a5 mov rcx, rsi ; +0xc4c, 0x1401b64ac call qword ptr [rax+4B8h] ; +0xc4f, 0x1401b64af mov r8, rax ; +0xc55, 0x1401b64b5 mov edx, ebx ; +0xc58, 0x1401b64b8 mov rcx, [rbp+290h+var_2C0] ; +0xc5a, 0x1401b64ba call EditorUI__createObject ; +0xc5e, 0x1401b64be mov rdi, rax ; +0xc63, 0x1401b64c3 mov rdx, rax ; +0xc66, 0x1401b64c6 mov rcx, r14 ; +0xc69, 0x1401b64c9 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xc6c, 0x1401b64cc mov rbx, [rdi] ; +0xc72, 0x1401b64d2 mov rcx, [rsi] ; +0xc75, 0x1401b64d5 mov rdx, [rcx+168h] ; +0xc78, 0x1401b64d8 mov rcx, rsi ; +0xc7f, 0x1401b64df call rdx ; +0xc82, 0x1401b64e2 movaps xmm1, xmm0 ; +0xc84, 0x1401b64e4 mov rcx, rdi ; +0xc87, 0x1401b64e7 call qword ptr [rbx+160h] ; +0xc8a, 0x1401b64ea mov rbx, [rdi] ; +0xc90, 0x1401b64f0 mov rax, [rsi] ; +0xc93, 0x1401b64f3 mov rcx, rsi ; +0xc96, 0x1401b64f6 call qword ptr [rax+4F8h] ; +0xc99, 0x1401b64f9 movzx edx, al ; +0xc9f, 0x1401b64ff mov rcx, rdi ; +0xca2, 0x1401b6502 call qword ptr [rbx+440h] ; +0xca5, 0x1401b6505 mov rbx, [rdi] ; +0xcab, 0x1401b650b mov rax, [rsi] ; +0xcae, 0x1401b650e mov rcx, rsi ; +0xcb1, 0x1401b6511 call qword ptr [rax+500h] ; +0xcb4, 0x1401b6514 movzx edx, al ; +0xcba, 0x1401b651a mov rcx, rdi ; +0xcbd, 0x1401b651d call qword ptr [rbx+448h] ; +0xcc0, 0x1401b6520 mov byte ptr [rdi+486h], 1 ; +0xcc6, 0x1401b6526 mov rcx, [r14+38h] ; +0xccd, 0x1401b652d mov edx, [rcx]; NumOfElements ; +0xcd1, 0x1401b6531 lea r9, sub_14019F210; CompareFunction ; +0xcd3, 0x1401b6533 mov r8d, 8; SizeOfElements ; +0xcda, 0x1401b653a mov rcx, [rcx+10h]; Base ; +0xce0, 0x1401b6540 call cs:qsort ; +0xce4, 0x1401b6544 mov r8, r14 ; +0xcea, 0x1401b654a lea rdx, [rbp+290h+var_F8] ; +0xced, 0x1401b654d mov rsi, [rbp+290h+var_2C0] ; +0xcf4, 0x1401b6554 mov rcx, rsi ; +0xcf8, 0x1401b6558 call EditorUI__copyObjectsDetailed ; +0xcfb, 0x1401b655b nop ; +0xd00, 0x1401b6560 mov byte ptr [rdi+486h], 0 ; +0xd01, 0x1401b6561 movzx eax, byte ptr [rdi+475h] ; +0xd08, 0x1401b6568 mov [rdi+474h], al ; +0xd0f, 0x1401b656f mov rdx, rdi ; +0xd15, 0x1401b6575 mov rcx, rsi ; +0xd18, 0x1401b6578 call EditorUI__deselectObject ; +0xd1b, 0x1401b657b mov rbx, [rsi+5E8h] ; +0xd20, 0x1401b6580 mov rax, [rdi] ; +0xd27, 0x1401b6587 mov dl, 1 ; +0xd2a, 0x1401b658a mov rcx, rdi ; +0xd2c, 0x1401b658c call qword ptr [rax+488h] ; +0xd2f, 0x1401b658f mov rdx, rdi ; +0xd35, 0x1401b6595 mov rcx, rbx ; +0xd38, 0x1401b6598 call GJBaseGameLayer__removeObjectFromSection ; +0xd3b, 0x1401b659b mov rdx, rdi ; +0xd40, 0x1401b65a0 mov rcx, rbx ; +0xd43, 0x1401b65a3 call LevelEditorLayer__removeSpecial ; +0xd46, 0x1401b65a6 mov byte ptr [rbx+3D32h], 1 ; +0xd4b, 0x1401b65ab mov rcx, rsi ; +0xd52, 0x1401b65b2 call EditorUI__deactivateRotationControl ; +0xd55, 0x1401b65b5 mov rcx, rsi ; +0xd5a, 0x1401b65ba call EditorUI__deactivateScaleControl ; +0xd5d, 0x1401b65bd mov rcx, rsi ; +0xd62, 0x1401b65c2 call EditorUI__deactivateTransformControl ; +0xd65, 0x1401b65c5 lea rax, [rbp+290h+var_158] ; +0xd6a, 0x1401b65ca mov [rbp+290h+var_290], rax ; +0xd71, 0x1401b65d1 lea rdx, [rbp+290h+var_F8] ; +0xd75, 0x1401b65d5 lea rcx, [rbp+290h+var_158] ; +0xd7c, 0x1401b65dc call sub_14003F4F0 ; +0xd83, 0x1401b65e3 mov rsi, rax ; +0xd88, 0x1401b65e8 mov [rbp+290h+var_2B8], rax ; +0xd8b, 0x1401b65eb lea rdx, [rbp+290h+var_118] ; +0xd8f, 0x1401b65ef lea rcx, [rbp+290h+var_138] ; +0xd96, 0x1401b65f6 call sub_14003F4F0 ; +0xd9d, 0x1401b65fd mov r14, rax ; +0xda2, 0x1401b6602 mov [rbp+290h+var_290], rax ; +0xda5, 0x1401b6605 mov rbx, [rbp+290h+var_298] ; +0xda9, 0x1401b6609 lea rcx, [rbx+0A8h]; void * ; +0xdad, 0x1401b660d xor r8d, r8d; Size ; +0xdb4, 0x1401b6614 lea rdx, byte_1406ED6E0; Src ; +0xdb7, 0x1401b6617 call sub_1400405A0 ; +0xdbe, 0x1401b661e mov rdx, r14 ; +0xdc3, 0x1401b6623 mov rcx, [rbx+38h] ; +0xdc6, 0x1401b6626 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 &) ; +0xdca, 0x1401b662a mov rdi, rax ; +0xdd0, 0x1401b6630 test rax, rax ; +0xdd3, 0x1401b6633 jnz short loc_1401B6651 ; +0xdd6, 0x1401b6636 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xdd8, 0x1401b6638 mov rdi, rax ; +0xdde, 0x1401b663e mov r8, r14 ; +0xde1, 0x1401b6641 mov rdx, rax ; +0xde4, 0x1401b6644 mov rcx, [rbx+38h] ; +0xde7, 0x1401b6647 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0xdeb, 0x1401b664b xor eax, eax ; +0xdf1, 0x1401b6651 mov ebx, eax ; +0xdf3, 0x1401b6653 mov rcx, rdi ; +0xdf5, 0x1401b6655 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xdf8, 0x1401b6658 test eax, eax ; +0xdfe, 0x1401b665e jz short loc_1401B668C ; +0xe00, 0x1401b6660 mov edx, ebx ; +0xe02, 0x1401b6662 mov rcx, rdi ; +0xe04, 0x1401b6664 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xe07, 0x1401b6667 lea rcx, [rax+58h]; Buf1 ; +0xe0d, 0x1401b666d mov rdx, rsi; Buf2 ; +0xe11, 0x1401b6671 call sub_14003D160 ; +0xe14, 0x1401b6674 test eax, eax ; +0xe19, 0x1401b6679 jz short loc_1401B66FA ; +0xe1b, 0x1401b667b inc ebx ; +0xe1d, 0x1401b667d mov rcx, rdi ; +0xe1f, 0x1401b667f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe22, 0x1401b6682 cmp ebx, eax ; +0xe28, 0x1401b6688 jb short loc_1401B6662 ; +0xe2a, 0x1401b668a call GJSmartPrefab__create ; +0xe2c, 0x1401b668c mov rbx, rax ; +0xe31, 0x1401b6691 lea rcx, [rax+58h]; void * ; +0xe34, 0x1401b6694 cmp rcx, rsi ; +0xe38, 0x1401b6698 jz short loc_1401B66B3 ; +0xe3b, 0x1401b669b mov rdx, rsi ; +0xe3d, 0x1401b669d cmp qword ptr [rsi+18h], 0Fh ; +0xe40, 0x1401b66a0 jbe short loc_1401B66AA ; +0xe45, 0x1401b66a5 mov rdx, [rsi]; Src ; +0xe47, 0x1401b66a7 mov r8, [rsi+10h]; Size ; +0xe4a, 0x1401b66aa call sub_1400405A0 ; +0xe4e, 0x1401b66ae lea rcx, [rbx+38h]; void * ; +0xe53, 0x1401b66b3 cmp rcx, r14 ; +0xe57, 0x1401b66b7 jz short loc_1401B66D2 ; +0xe5a, 0x1401b66ba mov rdx, r14 ; +0xe5c, 0x1401b66bc cmp qword ptr [r14+18h], 0Fh ; +0xe5f, 0x1401b66bf jbe short loc_1401B66C9 ; +0xe64, 0x1401b66c4 mov rdx, [r14]; Src ; +0xe66, 0x1401b66c6 mov r8, [r14+10h]; Size ; +0xe69, 0x1401b66c9 call sub_1400405A0 ; +0xe6d, 0x1401b66cd mov rdx, rbx ; +0xe72, 0x1401b66d2 mov rcx, rdi ; +0xe75, 0x1401b66d5 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xe78, 0x1401b66d8 mov rdx, r14 ; +0xe7e, 0x1401b66de lea rcx, [rbp+290h+var_D8] ; +0xe81, 0x1401b66e1 call sub_14003F4F0 ; +0xe88, 0x1401b66e8 mov rdx, rax ; +0xe8d, 0x1401b66ed mov rcx, [rbp+290h+var_298] ; +0xe90, 0x1401b66f0 call GJSmartTemplate__saveRemap ; +0xe94, 0x1401b66f4 nop ; +0xe99, 0x1401b66f9 mov rcx, r14 ; +0xe9a, 0x1401b66fa call sub_14003D310 ; +0xe9d, 0x1401b66fd nop ; +0xea2, 0x1401b6702 mov rcx, rsi ; +0xea3, 0x1401b6703 call sub_14003D310 ; +0xea6, 0x1401b6706 nop ; +0xeab, 0x1401b670b lea rcx, [rbp+290h+var_F8] ; +0xeac, 0x1401b670c call sub_14003D310 ; +0xeb3, 0x1401b6713 jmp short loc_1401B6726 ; +0xeb8, 0x1401b6718 movzx r15d, [rsp+390h+var_330] ; +0xeba, 0x1401b671a movzx r13d, [rsp+390h+var_32F] ; +0xec0, 0x1401b6720 lea rcx, [rbp+290h+var_118] ; +0xec6, 0x1401b6726 call sub_14003D310 ; +0xecd, 0x1401b672d mov [rsp+390h+var_328], r12b ; +0xed2, 0x1401b6732 mov [rsp+390h+var_330], r15b ; +0xed7, 0x1401b6737 mov [rsp+390h+var_32F], r13b ; +0xedc, 0x1401b673c movzx eax, [rsp+390h+var_32E] ; +0xee1, 0x1401b6741 mov [rsp+390h+var_32E], al ; +0xee6, 0x1401b6746 movzx eax, [rsp+390h+var_32D] ; +0xeea, 0x1401b674a mov [rsp+390h+var_32D], al ; +0xeef, 0x1401b674f movzx eax, [rsp+390h+var_32C] ; +0xef3, 0x1401b6753 mov [rsp+390h+var_32C], al ; +0xef8, 0x1401b6758 movzx eax, [rsp+390h+var_32B] ; +0xefc, 0x1401b675c mov [rsp+390h+var_32B], al ; +0xf01, 0x1401b6761 movzx eax, [rsp+390h+var_32A] ; +0xf05, 0x1401b6765 mov [rsp+390h+var_32A], al ; +0xf0a, 0x1401b676a mov r15, [rbp+290h+var_268] ; +0xf0e, 0x1401b676e mov ebx, [rbp+290h+var_2E0] ; +0xf12, 0x1401b6772 xor r12d, r12d ; +0xf15, 0x1401b6775 inc ebx ; +0xf18, 0x1401b6778 mov [rbp+290h+var_2E0], ebx ; +0xf1a, 0x1401b677a mov rcx, r15 ; +0xf1d, 0x1401b677d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf20, 0x1401b6780 cmp ebx, eax ; +0xf26, 0x1401b6786 jb loc_1401B59D0 ; +0xf28, 0x1401b6788 mov r14, [rbp+290h+var_298] ; +0xf2e, 0x1401b678e lea rdx, [rbp+290h+var_D8] ; +0xf32, 0x1401b6792 mov rcx, r14 ; +0xf39, 0x1401b6799 call GJSmartTemplate__logTemplateStatus ; +0xf3c, 0x1401b679c lea rcx, [rbp+290h+var_D8] ; +0xf41, 0x1401b67a1 call sub_14003D310 ; +0xf48, 0x1401b67a8 mov rcx, [rbp+290h+var_B8] ; +0xf4d, 0x1401b67ad xor rcx, rsp; StackCookie ; +0xf54, 0x1401b67b4 call __security_check_cookie ; +0xf57, 0x1401b67b7 lea r11, [rsp+390h+var_30] ; +0xf5c, 0x1401b67bc mov rbx, [r11+58h] ; +0xf64, 0x1401b67c4 movaps xmm6, xmmword ptr [r11-10h] ; +0xf68, 0x1401b67c8 movaps xmm7, xmmword ptr [r11-20h] ; +0xf6d, 0x1401b67cd movaps xmm8, xmmword ptr [r11-30h] ; +0xf72, 0x1401b67d2 movaps xmm9, xmmword ptr [r11-40h] ; +0xf77, 0x1401b67d7 movaps xmm10, xmmword ptr [r11-50h] ; +0xf7c, 0x1401b67dc movaps xmm11, xmmword ptr [r11-60h] ; +0xf81, 0x1401b67e1 movaps xmm12, xmmword ptr [r11-70h] ; +0xf86, 0x1401b67e6 movaps xmm13, xmmword ptr [r11-80h] ; +0xf8b, 0x1401b67eb mov rsp, r11 ; +0xf90, 0x1401b67f0 pop r15 ; +0xf93, 0x1401b67f3 pop r14 ; +0xf95, 0x1401b67f5 pop r13 ; +0xf97, 0x1401b67f7 pop r12 ; +0xf99, 0x1401b67f9 pop rdi ; +0xf9b, 0x1401b67fb pop rsi ; +0xf9c, 0x1401b67fc pop rbp ; +0xf9d, 0x1401b67fd retn ; +0xf9e, 0x1401b67fe xor eax, eax ; +0xf9f, 0x1401b67ff mov [rsp+390h+Reserved], rax; Reserved ; +0xfa1, 0x1401b6801 xor r9d, r9d; LineNo ; +0xfa6, 0x1401b6806 xor r8d, r8d; FileName ; +0xfa9, 0x1401b6809 xor edx, edx; FunctionName ; +0xfac, 0x1401b680c xor ecx, ecx; Expression ; +0xfae, 0x1401b680e call cs:_invoke_watson ; +0xfb0, 0x1401b6810 db 0CCh ; +0xfb6, 0x1401b6816