; ; GJBaseGameLayer::increaseBatchNodeCapacity from 0x14020cc20 to 0x14020ccf2 (210 bytes) ; ; 3 xrefs: ; > LevelEditorLayer::init @ 0x1402d29a4 ; > PlayLayer::setupHasCompleted @ 0x1403a6850 ; > @ 0x1406ccd74 ; ; 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, 0x14020cc20 mov [rsp+arg_10], rbp ; +0x5, 0x14020cc25 mov [rsp+arg_18], rsi ; +0xa, 0x14020cc2a push rdi ; +0xf, 0x14020cc2f sub rsp, 20h ; +0x10, 0x14020cc30 mov rbx, rcx ; +0x14, 0x14020cc34 mov rcx, cs:qword_1406C2ED8 ; +0x17, 0x14020cc37 test rcx, rcx ; +0x1e, 0x14020cc3e jnz short loc_14020CC72 ; +0x21, 0x14020cc41 mov ecx, 668h; Size ; +0x23, 0x14020cc43 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x28, 0x14020cc48 mov [rsp+28h+arg_0], rax ; +0x2d, 0x14020cc4d mov rcx, rax ; +0x32, 0x14020cc52 call sub_14017AB00 ; +0x35, 0x14020cc55 nop ; +0x3a, 0x14020cc5a mov cs:qword_1406C2ED8, rax ; +0x3b, 0x14020cc5b mov rdx, [rax] ; +0x42, 0x14020cc62 mov rcx, rax ; +0x45, 0x14020cc65 call qword ptr [rdx+48h] ; +0x48, 0x14020cc68 mov rcx, cs:qword_1406C2ED8 ; +0x4b, 0x14020cc6b lea rdx, a0066; "0066" ; +0x52, 0x14020cc72 call GameManager__getGameVariable ; +0x59, 0x14020cc79 mov esi, 0C8h ; +0x5e, 0x14020cc7e mov ecx, 3E8h ; +0x63, 0x14020cc83 test al, al ; +0x68, 0x14020cc88 cmovnz esi, ecx ; +0x6a, 0x14020cc8a mov rbx, [rbx+1028h] ; +0x6d, 0x14020cc8d test rbx, rbx ; +0x74, 0x14020cc94 jz short loc_14020CCDD ; +0x77, 0x14020cc97 mov rbx, [rbx+38h] ; +0x79, 0x14020cc99 mov eax, [rbx] ; +0x7d, 0x14020cc9d test eax, eax ; +0x7f, 0x14020cc9f jz short loc_14020CCDD ; +0x81, 0x14020cca1 mov rbx, [rbx+10h] ; +0x83, 0x14020cca3 lea rbp, [rax-1] ; +0x87, 0x14020cca7 lea rbp, [rbx+rbp*8] ; +0x8b, 0x14020ccab cmp rbx, rbp ; +0x8f, 0x14020ccaf ja short loc_14020CCDD ; +0x92, 0x14020ccb2 mov rdi, [rbx] ; +0x94, 0x14020ccb4 test rdi, rdi ; +0x97, 0x14020ccb7 jz short loc_14020CCDD ; +0x9a, 0x14020ccba mov rcx, rdi ; +0x9c, 0x14020ccbc call cs:?getAtlasCapacity@CCSpriteBatchNode@cocos2d@@QEAAHXZ; cocos2d::CCSpriteBatchNode::getAtlasCapacity(void) ; +0x9f, 0x14020ccbf cmp eax, esi ; +0xa5, 0x14020ccc5 jge short loc_14020CCD4 ; +0xa7, 0x14020ccc7 mov edx, esi ; +0xa9, 0x14020ccc9 mov rcx, rdi ; +0xab, 0x14020cccb call cs:?increaseAtlasCapacity@CCSpriteBatchNode@cocos2d@@QEAAXI@Z; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xae, 0x14020ccce add rbx, 8 ; +0xb4, 0x14020ccd4 cmp rbx, rbp ; +0xb8, 0x14020ccd8 jbe short loc_14020CCB4 ; +0xbb, 0x14020ccdb mov rbx, [rsp+28h+arg_8] ; +0xbd, 0x14020ccdd mov rbp, [rsp+28h+arg_10] ; +0xc2, 0x14020cce2 mov rsi, [rsp+28h+arg_18] ; +0xc7, 0x14020cce7 add rsp, 20h ; +0xcc, 0x14020ccec pop rdi ; +0xd0, 0x14020ccf0 retn ; +0xd1, 0x14020ccf1