{"type": "func", "start": 4296103088, "end": 4296103333, "name": "GJBaseGameLayer::updateLegacyLayerCapacity", "pseudocode": "// \n// GJBaseGameLayer::updateLegacyLayerCapacity from 0x1001154b0 to 0x1001155a5 (245 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateLayerCapacity @ 0x1001159ee\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJBaseGameLayer::updateLegacyLayerCapacity(GJBaseGameLayer *a1, int a2, int a3, int a4, int a5)\n{\n  unsigned int v5; // r12d\n  unsigned int v6; // ebx\n  unsigned int v7; // r15d\n  unsigned int v8; // ebx\n\n  v5 = a4;\n  v6 = 100;\n  if ( a2 < 101 )\n    a2 = 100;\n  v7 = a3;\n  if ( a3 < 101 )\n    v7 = 100;\n  if ( a4 < 101 )\n    v5 = 100;\n  if ( a5 >= 101 )\n    v6 = a5;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerT1, a2);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerT1, v7);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2LayerT1, 0x14u);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2BlendingLayerT1, 0x14u);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2LayerB1, 0x14u);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB1, v5);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB1, v6);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB2, v5);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB2, v6);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerT1, v7 >> 1);\n  v8 = v6 >> 1;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB1, v8);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB2, v8);\n}", "assembly": "; \n; GJBaseGameLayer::updateLegacyLayerCapacity from 0x1001154b0 to 0x1001155a5 (245 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateLayerCapacity @ 0x1001159ee\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1001154b0\nmov     rbp, rsp                                                       ; +0x1, 0x1001154b1\npush    r15                                                            ; +0x4, 0x1001154b4\npush    r14                                                            ; +0x6, 0x1001154b6\npush    r12                                                            ; +0x8, 0x1001154b8\npush    rbx                                                            ; +0xa, 0x1001154ba\nmov     r12d, ecx                                                      ; +0xb, 0x1001154bb\ncmp     esi, 65h ; 'e'                                                 ; +0xe, 0x1001154be\nmov     ebx, 64h ; 'd'                                                 ; +0x11, 0x1001154c1\ncmovl   esi, ebx                                                       ; +0x16, 0x1001154c6\nmov     r15d, edx                                                      ; +0x19, 0x1001154c9\ncmp     edx, 65h ; 'e'                                                 ; +0x1c, 0x1001154cc\ncmovl   r15d, ebx                                                      ; +0x1f, 0x1001154cf\nmov     r14, rdi                                                       ; +0x23, 0x1001154d3\ncmp     ecx, 65h ; 'e'                                                 ; +0x26, 0x1001154d6\ncmovl   r12d, ebx                                                      ; +0x29, 0x1001154d9\ncmp     r8d, 65h ; 'e'                                                 ; +0x2d, 0x1001154dd\ncmovge  ebx, r8d                                                       ; +0x31, 0x1001154e1\nmov     rdi, [rdi+9D0h]                                                ; +0x35, 0x1001154e5\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x3c, 0x1001154ec\nmov     rdi, [r14+9D8h]                                                ; +0x41, 0x1001154f1\nmov     esi, r15d                                                      ; +0x48, 0x1001154f8\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x4b, 0x1001154fb\nmov     rdi, [r14+0A30h]                                               ; +0x50, 0x100115500\nmov     esi, 14h                                                       ; +0x57, 0x100115507\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x5c, 0x10011550c\nmov     rdi, [r14+0A38h]                                               ; +0x61, 0x100115511\nmov     esi, 14h                                                       ; +0x68, 0x100115518\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x6d, 0x10011551d\nmov     rdi, [r14+0AD0h]                                               ; +0x72, 0x100115522\nmov     esi, 14h                                                       ; +0x79, 0x100115529\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x7e, 0x10011552e\nmov     rdi, [r14+0A70h]                                               ; +0x83, 0x100115533\nmov     esi, r12d                                                      ; +0x8a, 0x10011553a\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x8d, 0x10011553d\nmov     rdi, [r14+0A78h]                                               ; +0x92, 0x100115542\nmov     esi, ebx                                                       ; +0x99, 0x100115549\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x9b, 0x10011554b\nmov     rdi, [r14+0AE0h]                                               ; +0xa0, 0x100115550\nmov     esi, r12d                                                      ; +0xa7, 0x100115557\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0xaa, 0x10011555a\nmov     rdi, [r14+0AE8h]                                               ; +0xaf, 0x10011555f\nmov     esi, ebx                                                       ; +0xb6, 0x100115566\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0xb8, 0x100115568\nmov     rdi, [r14+9E0h]                                                ; +0xbd, 0x10011556d\nshr     r15d, 1                                                        ; +0xc4, 0x100115574\nmov     esi, r15d                                                      ; +0xc7, 0x100115577\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0xca, 0x10011557a\nmov     rdi, [r14+0A80h]                                               ; +0xcf, 0x10011557f\nshr     ebx, 1                                                         ; +0xd6, 0x100115586\nmov     esi, ebx                                                       ; +0xd8, 0x100115588\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0xda, 0x10011558a\nmov     rdi, [r14+0AF0h]                                               ; +0xdf, 0x10011558f\nmov     esi, ebx                                                       ; +0xe6, 0x100115596\npop     rbx                                                            ; +0xe8, 0x100115598\npop     r12                                                            ; +0xe9, 0x100115599\npop     r14                                                            ; +0xeb, 0x10011559b\npop     r15                                                            ; +0xed, 0x10011559d\npop     rbp                                                            ; +0xef, 0x10011559f\njmp     cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0xf0, 0x1001155a0", "xrefs": ["GJBaseGameLayer::updateLayerCapacity @ 0x1001159ee"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}