{"type": "func", "start": 8749656, "end": 8749884, "name": "GJBaseGameLayer::updateLegacyLayerCapacity", "pseudocode": "// \n// GJBaseGameLayer::updateLegacyLayerCapacity from 0x858258 to 0x85833c (228 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateLayerCapacity @ 0x86d5d8\n// > <???> @ 0x45f48\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; // w21\n  signed int v6; // w20\n  cocos2d::CCSpriteBatchNode *m_gameLayerT1; // x0\n  unsigned int v9; // w23\n  unsigned int v10; // w22\n\n  if ( a3 < 100 )\n    v5 = 100;\n  else\n    v5 = a3;\n  if ( a5 < 100 )\n    v6 = 100;\n  else\n    v6 = a5;\n  m_gameLayerT1 = a1->m_gameLayerT1;\n  if ( a2 < 100 )\n    a2 = 100;\n  v9 = v6 >> 1;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_gameLayerT1, a2);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerT1, v5);\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    v10 = 100;\n  else\n    v10 = a4;\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB1, v10);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB1, v6);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB2, v10);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB2, v6);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerT1, v5 >> 1);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB1, v9);\n  cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB2, v9);\n}", "assembly": "; \n; GJBaseGameLayer::updateLegacyLayerCapacity from 0x858258 to 0x85833c (228 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateLayerCapacity @ 0x86d5d8\n; > <???> @ 0x45f48\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x858258\nMOV             X29, SP                                                ; +0x4, 0x85825c\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x8, 0x858260\nMOV             W22, #0x64 ; 'd'                                       ; +0xc, 0x858264\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x10, 0x858268\nCMP             W2, W22                                                ; +0x14, 0x85826c\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x18, 0x858270\nCSEL            W21, W2, W22, GE                                       ; +0x1c, 0x858274\nCMP             W4, W22                                                ; +0x20, 0x858278\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x24, 0x85827c\nCSEL            W20, W4, W22, GE                                       ; +0x28, 0x858280\nMOV             X19, X0                                                ; +0x2c, 0x858284\nCMP             W1, W22                                                ; +0x30, 0x858288\nLDR             X0, [X0,#0xB28]; this                                  ; +0x34, 0x85828c\nCSEL            W1, W1, W22, GE; unsigned int                          ; +0x38, 0x858290\nASR             W23, W20, #1                                           ; +0x3c, 0x858294\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x40, 0x858298\nLDR             X0, [X19,#0xB30]; this                                 ; +0x44, 0x85829c\nMOV             W1, W21; unsigned int                                  ; +0x48, 0x8582a0\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x4c, 0x8582a4\nLDR             X0, [X19,#0xB88]; this                                 ; +0x50, 0x8582a8\nMOV             W1, #0x14; unsigned int                                ; +0x54, 0x8582ac\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x58, 0x8582b0\nLDR             X0, [X19,#0xB90]; this                                 ; +0x5c, 0x8582b4\nMOV             W1, #0x14; unsigned int                                ; +0x60, 0x8582b8\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x64, 0x8582bc\nLDR             X0, [X19,#0xC28]; this                                 ; +0x68, 0x8582c0\nMOV             W1, #0x14; unsigned int                                ; +0x6c, 0x8582c4\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x70, 0x8582c8\nLDR             X3, [X29,#0x50+var_8]                                  ; +0x74, 0x8582cc\nLDR             X0, [X19,#0xBC8]; this                                 ; +0x78, 0x8582d0\nCMP             W3, W22                                                ; +0x7c, 0x8582d4\nCSEL            W22, W3, W22, GE                                       ; +0x80, 0x8582d8\nMOV             W1, W22; unsigned int                                  ; +0x84, 0x8582dc\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x88, 0x8582e0\nLDR             X0, [X19,#0xBD0]; this                                 ; +0x8c, 0x8582e4\nMOV             W1, W20; unsigned int                                  ; +0x90, 0x8582e8\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x94, 0x8582ec\nLDR             X0, [X19,#0xC38]; this                                 ; +0x98, 0x8582f0\nMOV             W1, W22; unsigned int                                  ; +0x9c, 0x8582f4\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xa0, 0x8582f8\nLDR             X0, [X19,#0xC40]; this                                 ; +0xa4, 0x8582fc\nMOV             W1, W20; unsigned int                                  ; +0xa8, 0x858300\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xac, 0x858304\nLDR             X0, [X19,#0xB38]; this                                 ; +0xb0, 0x858308\nASR             W1, W21, #1; unsigned int                              ; +0xb4, 0x85830c\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xb8, 0x858310\nLDR             X0, [X19,#0xBD8]; this                                 ; +0xbc, 0x858314\nMOV             W1, W23; unsigned int                                  ; +0xc0, 0x858318\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xc4, 0x85831c\nLDR             X0, [X19,#0xC48]; this                                 ; +0xc8, 0x858320\nMOV             W1, W23; unsigned int                                  ; +0xcc, 0x858324\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xd0, 0x858328\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xd4, 0x85832c\nLDR             X23, [SP,#0x50+var_20]                                 ; +0xd8, 0x858330\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xdc, 0x858334\nB               _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0xe0, 0x858338", "xrefs": ["GJBaseGameLayer::updateLayerCapacity @ 0x86d5d8", "<???> @ 0x45f48"], "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"}