; ; GJGroundLayer::createLine from 0x14027ea50 to 0x14027ec35 (485 bytes) ; ; 2 xrefs: ; > GJGroundLayer::init @ 0x14027e300 ; > @ 0x1406d1250 ; ; 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_8], rbx ; +0x0, 0x14027ea50 mov [rsp+arg_18], rsi ; +0x5, 0x14027ea55 push rdi ; +0xa, 0x14027ea5a sub rsp, 30h ; +0xb, 0x14027ea5b mov rdi, rcx ; +0xf, 0x14027ea5f movaps [rsp+38h+var_18], xmm6 ; +0x12, 0x14027ea62 mov rcx, [rcx+1B0h] ; +0x17, 0x14027ea67 xor esi, esi ; +0x1e, 0x14027ea6e mov ebx, edx ; +0x20, 0x14027ea70 test rcx, rcx ; +0x22, 0x14027ea72 jz short loc_14027EA87 ; +0x25, 0x14027ea75 mov rax, [rcx] ; +0x27, 0x14027ea77 call qword ptr [rax+1F0h] ; +0x2a, 0x14027ea7a mov [rdi+1B0h], rsi ; +0x30, 0x14027ea80 mov eax, 1 ; +0x37, 0x14027ea87 cmp ebx, eax ; +0x3c, 0x14027ea8c cmovge eax, ebx ; +0x3e, 0x14027ea8e cmp eax, 3 ; +0x41, 0x14027ea91 jge short loc_14027EAB5 ; +0x44, 0x14027ea94 mov [rdi+1C0h], eax ; +0x46, 0x14027ea96 xorps xmm6, xmm6 ; +0x4c, 0x14027ea9c cmp eax, 1 ; +0x4f, 0x14027ea9f jnz short loc_14027EAAE ; +0x52, 0x14027eaa2 movss xmm6, cs:dword_140622B08 ; +0x54, 0x14027eaa4 jmp short loc_14027EAC7 ; +0x5c, 0x14027eaac cmp eax, 2 ; +0x5e, 0x14027eaae jz short loc_14027EABF ; +0x61, 0x14027eab1 jmp short loc_14027EAC7 ; +0x63, 0x14027eab3 mov dword ptr [rdi+1C0h], 3 ; +0x65, 0x14027eab5 movss xmm6, cs:dword_140622A74 ; +0x6f, 0x14027eabf call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x77, 0x14027eac7 mov rcx, rax ; +0x7d, 0x14027eacd lea rdx, [rsp+38h+arg_10] ; +0x80, 0x14027ead0 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x85, 0x14027ead5 cmp dword ptr [rdi+1C0h], 1 ; +0x8b, 0x14027eadb lea rcx, aFloorline02d00; "floorLine_%02d_001.png" ; +0x92, 0x14027eae2 setnz sil ; +0x99, 0x14027eae9 lea edx, [rsi+1] ; +0x9d, 0x14027eaed call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xa0, 0x14027eaf0 mov rcx, rax ; +0xa6, 0x14027eaf6 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa9, 0x14027eaf9 mov rcx, rax ; +0xaf, 0x14027eaff call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xb2, 0x14027eb02 mov r9, [rdi] ; +0xb8, 0x14027eb08 mov r8d, 5 ; +0xbb, 0x14027eb0b mov rdx, rax ; +0xc1, 0x14027eb11 mov [rdi+1B0h], rax ; +0xc4, 0x14027eb14 mov rcx, rdi ; +0xcb, 0x14027eb1b call qword ptr [r9+1B8h] ; +0xce, 0x14027eb1e movss xmm1, [rsp+38h+arg_10] ; +0xd5, 0x14027eb25 lea rcx, [rsp+38h+arg_0] ; +0xdb, 0x14027eb2b mov rax, [rdi+1B0h] ; +0xe0, 0x14027eb30 movaps xmm2, xmm6 ; +0xe7, 0x14027eb37 mulss xmm1, cs:dword_140622B08 ; +0xea, 0x14027eb3a mov rbx, [rax] ; +0xf2, 0x14027eb42 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xf5, 0x14027eb45 mov rcx, [rdi+1B0h] ; +0xfb, 0x14027eb4b mov rdx, rax ; +0x102, 0x14027eb52 call qword ptr [rbx+0B8h] ; +0x105, 0x14027eb55 mov rax, [rdi+1B0h] ; +0x10b, 0x14027eb5b lea rcx, [rsp+38h+arg_0] ; +0x112, 0x14027eb62 movss xmm2, cs:flt_140622C24 ; +0x117, 0x14027eb67 movss xmm1, cs:dword_140622B08 ; +0x11f, 0x14027eb6f mov rbx, [rax] ; +0x127, 0x14027eb77 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12a, 0x14027eb7a mov rcx, [rdi+1B0h] ; +0x130, 0x14027eb80 mov rdx, rax ; +0x137, 0x14027eb87 call qword ptr [rbx+110h] ; +0x13a, 0x14027eb8a mov rcx, [rdi+1B0h] ; +0x140, 0x14027eb90 mov edx, 2 ; +0x147, 0x14027eb97 mov rax, [rcx] ; +0x14c, 0x14027eb9c call qword ptr [rax+40h] ; +0x14f, 0x14027eb9f cmp byte ptr [rdi+1B9h], 0 ; +0x152, 0x14027eba2 jz short loc_14027EBD3 ; +0x159, 0x14027eba9 mov rcx, [rdi+1B0h] ; +0x15b, 0x14027ebab add rcx, 158h ; +0x162, 0x14027ebb2 mov dword ptr [rsp+38h+arg_0], 302h ; +0x169, 0x14027ebb9 mov dword ptr [rsp+38h+arg_0+4], 1 ; +0x171, 0x14027ebc1 mov rdx, [rsp+38h+arg_0] ; +0x179, 0x14027ebc9 mov rax, [rcx] ; +0x17e, 0x14027ebce call qword ptr [rax] ; +0x181, 0x14027ebd1 cmp dword ptr [rdi+1C0h], 1 ; +0x183, 0x14027ebd3 jle short loc_14027EBFF ; +0x18a, 0x14027ebda mov rcx, [rdi+1B0h] ; +0x18c, 0x14027ebdc movss xmm1, [rsp+38h+arg_10] ; +0x193, 0x14027ebe3 addss xmm1, cs:flt_14062307C ; +0x199, 0x14027ebe9 mov rax, [rcx] ; +0x1a1, 0x14027ebf1 divss xmm1, dword ptr [rcx+1B0h] ; +0x1a4, 0x14027ebf4 call qword ptr [rax+78h] ; +0x1ac, 0x14027ebfc cmp dword ptr [rdi+1C0h], 3 ; +0x1af, 0x14027ebff jnz short loc_14027EC20 ; +0x1b6, 0x14027ec06 mov rcx, [rdi+1B0h] ; +0x1b8, 0x14027ec08 movss xmm1, cs:width ; +0x1bf, 0x14027ec0f mov rax, [rcx] ; +0x1c7, 0x14027ec17 call qword ptr [rax+88h] ; +0x1ca, 0x14027ec1a mov rbx, [rsp+38h+arg_8] ; +0x1d0, 0x14027ec20 mov rsi, [rsp+38h+arg_18] ; +0x1d5, 0x14027ec25 movaps xmm6, [rsp+38h+var_18] ; +0x1da, 0x14027ec2a add rsp, 30h ; +0x1df, 0x14027ec2f pop rdi ; +0x1e3, 0x14027ec33 retn ; +0x1e4, 0x14027ec34