{"type": "func", "start": 4644112, "end": 4644270, "name": "GJBaseGameLayer::updateLegacyLayerCapacity", "pseudocode": "// \n// GJBaseGameLayer::updateLegacyLayerCapacity from 0x46dd10 to 0x46ddae (158 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateLayerCapacity @ 0x47e574\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 GJBaseGameLayer::updateLegacyLayerCapacity(GJBaseGameLayer *a1, int a2, int a3, int a4, int a5)\n{\n  signed int v5; // r5\n  cocos2d::CCSpriteBatchNode *m_gameLayerT1; // r0\n  signed int v8; // r7\n  unsigned int v10; // r1\n  unsigned int v11; // r5\n\n  v5 = a5;\n  if ( a3 < 100 )\n    a3 = 100;\n  m_gameLayerT1 = a1->m_gameLayerT1;\n  v8 = a3;\n  if ( a5 < 100 )\n    v5 = 100;\n  if ( a2 < 100 )\n    a2 = 100;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_gameLayerT1, a2);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerT1, v8);\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  if ( a4 < 100 )\n    a4 = 100;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB1, a4);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB1, v5);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB2, a4);\n  v10 = v5;\n  v11 = v5 >> 1;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB2, v10);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerT1, v8 >> 1);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB1, v11);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB2, v11);\n}", "assembly": "; \n; GJBaseGameLayer::updateLegacyLayerCapacity from 0x46dd10 to 0x46ddae (158 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateLayerCapacity @ 0x47e574\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            {R3-R7,LR}                                             ; +0x0, 0x46dd10\nCMP             R2, #0x64 ; 'd'                                        ; +0x2, 0x46dd12\nLDR             R5, [SP,#4+arg_0]                                      ; +0x4, 0x46dd14\nMOV             R4, R0                                                 ; +0x6, 0x46dd16\nIT LT                                                                  ; +0x8, 0x46dd18\nMOVLT           R2, #0x64 ; 'd'                                        ; +0xa, 0x46dd1a\nLDR.W           R0, [R0,#0x750]; this                                  ; +0xc, 0x46dd1c\nCMP             R5, #0x64 ; 'd'                                        ; +0x10, 0x46dd20\nMOV             R7, R2                                                 ; +0x12, 0x46dd22\nMOV             R6, R3                                                 ; +0x14, 0x46dd24\nIT LT                                                                  ; +0x16, 0x46dd26\nMOVLT           R5, #0x64 ; 'd'                                        ; +0x18, 0x46dd28\nCMP             R1, #0x64 ; 'd'                                        ; +0x1a, 0x46dd2a\nIT LT                                                                  ; +0x1c, 0x46dd2c\nMOVLT           R1, #0x64 ; 'd'; unsigned int                          ; +0x1e, 0x46dd2e\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x20, 0x46dd30\nLDR.W           R0, [R4,#0x754]; this                                  ; +0x24, 0x46dd34\nMOV             R1, R7; unsigned int                                   ; +0x28, 0x46dd38\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x2a, 0x46dd3a\nLDR.W           R0, [R4,#0x780]; this                                  ; +0x2e, 0x46dd3e\nMOVS            R1, #0x14; unsigned int                                ; +0x32, 0x46dd42\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x34, 0x46dd44\nLDR.W           R0, [R4,#0x784]; this                                  ; +0x38, 0x46dd48\nMOVS            R1, #0x14; unsigned int                                ; +0x3c, 0x46dd4c\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x3e, 0x46dd4e\nLDR.W           R0, [R4,#0x7D0]; this                                  ; +0x42, 0x46dd52\nMOVS            R1, #0x14; unsigned int                                ; +0x46, 0x46dd56\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x48, 0x46dd58\nCMP             R6, #0x64 ; 'd'                                        ; +0x4c, 0x46dd5c\nLDR.W           R0, [R4,#0x7A0]; this                                  ; +0x4e, 0x46dd5e\nIT LT                                                                  ; +0x52, 0x46dd62\nMOVLT           R6, #0x64 ; 'd'                                        ; +0x54, 0x46dd64\nMOV             R1, R6; unsigned int                                   ; +0x56, 0x46dd66\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x58, 0x46dd68\nLDR.W           R0, [R4,#0x7A4]; this                                  ; +0x5c, 0x46dd6c\nMOV             R1, R5; unsigned int                                   ; +0x60, 0x46dd70\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x62, 0x46dd72\nLDR.W           R0, [R4,#0x7D8]; this                                  ; +0x66, 0x46dd76\nMOV             R1, R6; unsigned int                                   ; +0x6a, 0x46dd7a\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x6c, 0x46dd7c\nLDR.W           R0, [R4,#0x7DC]; this                                  ; +0x70, 0x46dd80\nMOV             R1, R5; unsigned int                                   ; +0x74, 0x46dd84\nASRS            R5, R5, #1                                             ; +0x76, 0x46dd86\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x78, 0x46dd88\nLDR.W           R0, [R4,#0x758]; this                                  ; +0x7c, 0x46dd8c\nASRS            R1, R7, #1; unsigned int                               ; +0x80, 0x46dd90\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x82, 0x46dd92\nLDR.W           R0, [R4,#0x7A8]; this                                  ; +0x86, 0x46dd96\nMOV             R1, R5; unsigned int                                   ; +0x8a, 0x46dd9a\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x8c, 0x46dd9c\nLDR.W           R0, [R4,#0x7E0]; this                                  ; +0x90, 0x46dda0\nMOV             R1, R5; unsigned int                                   ; +0x94, 0x46dda4\nPOP.W           {R3-R7,LR}                                             ; +0x96, 0x46dda6\nB.W             _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x9a, 0x46ddaa", "xrefs": ["GJBaseGameLayer::updateLayerCapacity @ 0x47e574"], "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"}