{"type": "func", "start": 3022220, "end": 3022424, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x2e1d8c to 0x2e1e58 (204 bytes)\n// \n// 3 xrefs:\n// > BoomScrollLayer::addPage @ 0x2e28cc\n// > BoomScrollLayer::removePage @ 0x2e291a\n// > BoomScrollLayer::init @ 0x2e2d74\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 BoomScrollLayer::updatePages(BoomScrollLayer *a1)\n{\n  unsigned int i; // r8\n  cocos2d::CCNode *v3; // r4\n  void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9\n  void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r9\n  cocos2d::CCDirector *v6; // r0\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9\n  const cocos2d::CCSize *v8; // r0\n  cocos2d::CCPoint v9; // [sp+4h] [bp-10h] BYREF\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_pages); ++i )\n  {\n    v3 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i);\n    setAnchorPoint = v3->setAnchorPoint;\n    cocos2d::CCPoint::CCPoint(&v9, 0.0, 0.0);\n    setAnchorPoint(v3, &v9);\n    setContentSize = v3->setContentSize;\n    v6 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize((cocos2d::CCSize *)&v9, v6);\n    setContentSize(v3, (const cocos2d::CCSize *)&v9);\n    setPosition = v3->setPosition;\n    v8 = a1->getContentSize(a1);\n    cocos2d::CCPoint::CCPoint(&v9, (float)(int)i * (float)(v8->width - a1->m_pageOffset), 0.0);\n    setPosition(v3, &v9);\n    if ( !v3->getParent(v3) )\n      a1->m_extendedLayer->addChild(a1->m_extendedLayer, v3);\n  }\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x2e1d8c to 0x2e1e58 (204 bytes)\n; \n; 3 xrefs:\n; > BoomScrollLayer::addPage @ 0x2e28cc\n; > BoomScrollLayer::removePage @ 0x2e291a\n; > BoomScrollLayer::init @ 0x2e2d74\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E1D96)                ; +0x0, 0x2e1d8c\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x2e1d8e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e1d92\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e1d94\nSUB             SP, SP, #0x14                                          ; +0xa, 0x2e1d96\nMOV             R5, R0                                                 ; +0xc, 0x2e1d98\nLDR             R2, [R3]                                               ; +0xe, 0x2e1d9a\nADD             R6, SP, #0x14+var_10                                   ; +0x10, 0x2e1d9c\nMOV.W           R8, #0                                                 ; +0x12, 0x2e1d9e\nMOV             R7, R3                                                 ; +0x16, 0x2e1da2\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x18, 0x2e1da4\nLDR.W           R0, [R5,#0x168]; this                                  ; +0x1a, 0x2e1da6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x2e1daa\nCMP             R8, R0                                                 ; +0x22, 0x2e1dae\nBCS             loc_2E1E46                                             ; +0x24, 0x2e1db0\nMOV             R1, R8; unsigned int                                   ; +0x26, 0x2e1db2\nLDR.W           R0, [R5,#0x168]; this                                  ; +0x28, 0x2e1db4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x2e1db8\nMOVS            R1, #0; float                                          ; +0x30, 0x2e1dbc\nMOV             R2, R1; float                                          ; +0x32, 0x2e1dbe\nLDR             R3, [R0]                                               ; +0x34, 0x2e1dc0\nMOV             R4, R0                                                 ; +0x36, 0x2e1dc2\nMOV             R0, R6; this                                           ; +0x38, 0x2e1dc4\nLDR.W           R9, [R3,#0x8C]                                         ; +0x3a, 0x2e1dc6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x3e, 0x2e1dca\nMOV             R1, R6                                                 ; +0x42, 0x2e1dce\nMOV             R0, R4                                                 ; +0x44, 0x2e1dd0\nBLX             R9                                                     ; +0x46, 0x2e1dd2\nLDR             R3, [R4]                                               ; +0x48, 0x2e1dd4\nLDR.W           R9, [R3,#0x98]                                         ; +0x4a, 0x2e1dd6\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4e, 0x2e1dda\nMOV             R1, R0                                                 ; +0x52, 0x2e1dde\nMOV             R0, R6; this                                           ; +0x54, 0x2e1de0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x56, 0x2e1de2\nMOV             R1, R6                                                 ; +0x5a, 0x2e1de6\nMOV             R0, R4                                                 ; +0x5c, 0x2e1de8\nBLX             R9                                                     ; +0x5e, 0x2e1dea\nLDR             R3, [R4]                                               ; +0x60, 0x2e1dec\nMOV             R0, R5                                                 ; +0x62, 0x2e1dee\nLDR.W           R9, [R3,#0x5C]                                         ; +0x64, 0x2e1df0\nLDR             R3, [R5]                                               ; +0x68, 0x2e1df4\nLDR.W           R3, [R3,#0x9C]                                         ; +0x6a, 0x2e1df6\nBLX             R3                                                     ; +0x6e, 0x2e1dfa\nVLDR            S14, [R5,#0x1D0]                                       ; +0x70, 0x2e1dfc\nMOVS            R2, #0; float                                          ; +0x74, 0x2e1e00\nVLDR            S15, [R0]                                              ; +0x76, 0x2e1e02\nMOV             R0, R6; this                                           ; +0x7a, 0x2e1e06\nVSUB.F32        S15, S15, S14                                          ; +0x7c, 0x2e1e08\nVMOV            S14, R8                                                ; +0x80, 0x2e1e0c\nVCVT.F32.S32    S14, S14                                               ; +0x84, 0x2e1e10\nVMUL.F32        S15, S14, S15                                          ; +0x88, 0x2e1e14\nVMOV            R1, S15; float                                         ; +0x8c, 0x2e1e18\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x90, 0x2e1e1c\nMOV             R0, R4                                                 ; +0x94, 0x2e1e20\nMOV             R1, R6                                                 ; +0x96, 0x2e1e22\nBLX             R9                                                     ; +0x98, 0x2e1e24\nLDR             R3, [R4]                                               ; +0x9a, 0x2e1e26\nMOV             R0, R4                                                 ; +0x9c, 0x2e1e28\nLDR.W           R3, [R3,#0xF8]                                         ; +0x9e, 0x2e1e2a\nBLX             R3                                                     ; +0xa2, 0x2e1e2e\nCBNZ            R0, loc_2E1E40                                         ; +0xa4, 0x2e1e30\nLDR.W           R0, [R5,#0x180]                                        ; +0xa6, 0x2e1e32\nMOV             R1, R4                                                 ; +0xaa, 0x2e1e36\nLDR             R3, [R0]                                               ; +0xac, 0x2e1e38\nLDR.W           R3, [R3,#0xDC]                                         ; +0xae, 0x2e1e3a\nBLX             R3                                                     ; +0xb2, 0x2e1e3e\nADD.W           R8, R8, #1                                             ; +0xb4, 0x2e1e40\nB               loc_2E1DA6                                             ; +0xb8, 0x2e1e44\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xba, 0x2e1e46\nLDR             R3, [R7]                                               ; +0xbc, 0x2e1e48\nCMP             R2, R3                                                 ; +0xbe, 0x2e1e4a\nBEQ             loc_2E1E52                                             ; +0xc0, 0x2e1e4c\nBLX             __stack_chk_fail                                       ; +0xc2, 0x2e1e4e\nADD             SP, SP, #0x14                                          ; +0xc6, 0x2e1e52\nPOP.W           {R4-R9,PC}                                             ; +0xc8, 0x2e1e54", "xrefs": ["BoomScrollLayer::addPage @ 0x2e28cc", "BoomScrollLayer::removePage @ 0x2e291a", "BoomScrollLayer::init @ 0x2e2d74"], "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"}