; ; GJBaseGameLayer::increaseBatchNodeCapacity from 0x140312d10 to 0x140312de5 (213 bytes) ; ; 3 xrefs: ; > LevelEditorLayer::init @ 0x1403ee89b ; > PlayLayer::setupHasCompleted @ 0x140504a66 ; > @ 0x14091e854 ; ; 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:30:16 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x140312d10 mov [rsp+arg_10], rbp ; +0x5, 0x140312d15 mov [rsp+arg_18], rsi ; +0xa, 0x140312d1a push rdi ; +0xf, 0x140312d1f sub rsp, 20h ; +0x10, 0x140312d20 mov rbx, rcx ; +0x14, 0x140312d24 mov rcx, cs:qword_14090BFD0 ; +0x17, 0x140312d27 test rcx, rcx ; +0x1e, 0x140312d2e jnz short loc_140312D65 ; +0x21, 0x140312d31 mov ecx, 6E8h; Size ; +0x23, 0x140312d33 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x28, 0x140312d38 mov [rsp+28h+arg_0], rax ; +0x2d, 0x140312d3d mov rcx, rax ; +0x32, 0x140312d42 call GameManager__GameManager ; +0x35, 0x140312d45 nop ; +0x3a, 0x140312d4a mov cs:qword_14090BFD0, rax ; +0x3b, 0x140312d4b mov rcx, [rax] ; +0x42, 0x140312d52 mov rdx, [rcx+48h] ; +0x45, 0x140312d55 mov rcx, rax ; +0x49, 0x140312d59 call rdx ; +0x4c, 0x140312d5c mov rcx, cs:qword_14090BFD0 ; +0x4e, 0x140312d5e lea rdx, a0066; "0066" ; +0x55, 0x140312d65 call GameManager__getGameVariable ; +0x5c, 0x140312d6c mov esi, 0C8h ; +0x61, 0x140312d71 mov ecx, 3E8h ; +0x66, 0x140312d76 test al, al ; +0x6b, 0x140312d7b cmovnz esi, ecx ; +0x6d, 0x140312d7d mov rbx, [rbx+1108h] ; +0x70, 0x140312d80 test rbx, rbx ; +0x77, 0x140312d87 jz short loc_140312DD0 ; +0x7a, 0x140312d8a mov rbx, [rbx+38h] ; +0x7c, 0x140312d8c mov eax, [rbx] ; +0x80, 0x140312d90 test eax, eax ; +0x82, 0x140312d92 jz short loc_140312DD0 ; +0x84, 0x140312d94 mov rbx, [rbx+10h] ; +0x86, 0x140312d96 lea rbp, [rax-1] ; +0x8a, 0x140312d9a lea rbp, [rbx+rbp*8] ; +0x8e, 0x140312d9e cmp rbx, rbp ; +0x92, 0x140312da2 ja short loc_140312DD0 ; +0x95, 0x140312da5 mov rdi, [rbx] ; +0x97, 0x140312da7 test rdi, rdi ; +0x9a, 0x140312daa jz short loc_140312DD0 ; +0x9d, 0x140312dad mov rcx, rdi ; +0x9f, 0x140312daf call cs:?getAtlasCapacity@CCSpriteBatchNode@cocos2d@@QEAAHXZ; cocos2d::CCSpriteBatchNode::getAtlasCapacity(void) ; +0xa2, 0x140312db2 cmp eax, esi ; +0xa8, 0x140312db8 jge short loc_140312DC7 ; +0xaa, 0x140312dba mov edx, esi ; +0xac, 0x140312dbc mov rcx, rdi ; +0xae, 0x140312dbe call cs:?increaseAtlasCapacity@CCSpriteBatchNode@cocos2d@@QEAAXI@Z; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xb1, 0x140312dc1 add rbx, 8 ; +0xb7, 0x140312dc7 cmp rbx, rbp ; +0xbb, 0x140312dcb jbe short loc_140312DA7 ; +0xbe, 0x140312dce mov rbx, [rsp+28h+arg_8] ; +0xc0, 0x140312dd0 mov rbp, [rsp+28h+arg_10] ; +0xc5, 0x140312dd5 mov rsi, [rsp+28h+arg_18] ; +0xca, 0x140312dda add rsp, 20h ; +0xcf, 0x140312ddf pop rdi ; +0xd3, 0x140312de3 retn ; +0xd4, 0x140312de4