{"type": "func", "start": 6853968, "end": 6854300, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x689550 to 0x68969c (332 bytes)\n// \n// 4 xrefs:\n// > BoomScrollLayer::addPage @ 0x68a608\n// > BoomScrollLayer::removePage @ 0x68a690\n// > BoomScrollLayer::init @ 0x68ad20\n// > <???> @ 0x80a10\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:32 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::updatePages(cocos2d::CCArray **this)\n{\n  unsigned int i; // w22\n  cocos2d::CCDirector **v3; // x19\n  void (__fastcall *v4)(cocos2d::CCDirector **, __int64 *); // x24\n  void (__fastcall *v5)(cocos2d::CCDirector **, __int64 *); // x24\n  cocos2d::CCDirector *v6; // x0\n  void (__fastcall *v7)(cocos2d::CCDirector **, __int64 *); // x24\n  float *v8; // x0\n  __int64 v10; // [xsp+40h] [xbp+40h] BYREF\n\n  for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*(this + 60)); ++i )\n  {\n    v3 = (cocos2d::CCDirector **)cocos2d::CCArray::objectAtIndex(*(this + 60), i);\n    v4 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v3 + 37);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 0.0, 0.0);\n    v4(v3, &v10);\n    v5 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v3 + 40);\n    v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v3);\n    cocos2d::CCDirector::getWinSize(&v10, v6);\n    v5(v3, &v10);\n    v7 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v3 + 23);\n    v8 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 41))(this);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (float)(int)i * (float)(*v8 - *((float *)this + 148)), 0.0);\n    v7(v3, &v10);\n    if ( !(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v3 + 64))(v3) )\n      (*(void (__fastcall **)(_QWORD, cocos2d::CCDirector **))(*(_QWORD *)*(this + 63) + 456LL))(*(this + 63), v3);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x689550 to 0x68969c (332 bytes)\n; \n; 4 xrefs:\n; > BoomScrollLayer::addPage @ 0x68a608\n; > BoomScrollLayer::removePage @ 0x68a690\n; > BoomScrollLayer::init @ 0x68ad20\n; > <???> @ 0x80a10\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:32 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x689550\nMOV             X29, SP                                                ; +0x4, 0x689554\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x8, 0x689558\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68955c\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x689560\nMOV             X21, X0                                                ; +0x14, 0x689564\nMOV             W22, #0                                                ; +0x18, 0x689568\nLDR             X0, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x68956c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x20, 0x689570\nADD             X20, X29, #0x50+var_10                                 ; +0x24, 0x689574\nLDR             X0, [X0]                                               ; +0x28, 0x689578\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x2c, 0x68957c\nLDR             X0, [X21,#0x1E0]; this                                 ; +0x30, 0x689580\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x34, 0x689584\nCMP             W22, W0                                                ; +0x38, 0x689588\nB.CS            loc_689650                                             ; +0x3c, 0x68958c\nLDR             X0, [X21,#0x1E0]; this                                 ; +0x40, 0x689590\nMOV             W1, W22; unsigned int                                  ; +0x44, 0x689594\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x689598\nMOV             X19, X0                                                ; +0x4c, 0x68959c\nFMOV            S0, WZR; float                                         ; +0x50, 0x6895a0\nMOV             X0, X20; this                                          ; +0x54, 0x6895a4\nLDR             X1, [X19]                                              ; +0x58, 0x6895a8\nFMOV            S1, S0; float                                          ; +0x5c, 0x6895ac\nLDR             X24, [X1,#0x128]                                       ; +0x60, 0x6895b0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x64, 0x6895b4\nMOV             X1, X20                                                ; +0x68, 0x6895b8\nMOV             X0, X19                                                ; +0x6c, 0x6895bc\nBLR             X24                                                    ; +0x70, 0x6895c0\nLDR             X0, [X19]; this                                        ; +0x74, 0x6895c4\nLDR             X24, [X0,#0x140]                                       ; +0x78, 0x6895c8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x6895cc\nMOV             X8, X20                                                ; +0x80, 0x6895d0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x84, 0x6895d4\nMOV             X0, X19                                                ; +0x88, 0x6895d8\nMOV             X1, X20                                                ; +0x8c, 0x6895dc\nBLR             X24                                                    ; +0x90, 0x6895e0\nLDR             X1, [X21]                                              ; +0x94, 0x6895e4\nMOV             X0, X21                                                ; +0x98, 0x6895e8\nLDR             X2, [X19]                                              ; +0x9c, 0x6895ec\nLDR             X1, [X1,#0x148]                                        ; +0xa0, 0x6895f0\nLDR             X24, [X2,#0xB8]                                        ; +0xa4, 0x6895f4\nBLR             X1                                                     ; +0xa8, 0x6895f8\nLDR             S1, [X21,#0x250]                                       ; +0xac, 0x6895fc\nLDR             S2, [X0]                                               ; +0xb0, 0x689600\nMOV             X0, X20; this                                          ; +0xb4, 0x689604\nSCVTF           S0, W22                                                ; +0xb8, 0x689608\nFSUB            S2, S2, S1                                             ; +0xbc, 0x68960c\nFMOV            S1, WZR; float                                         ; +0xc0, 0x689610\nFMUL            S0, S0, S2; float                                      ; +0xc4, 0x689614\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc8, 0x689618\nMOV             X0, X19                                                ; +0xcc, 0x68961c\nMOV             X1, X20                                                ; +0xd0, 0x689620\nBLR             X24                                                    ; +0xd4, 0x689624\nLDR             X1, [X19]                                              ; +0xd8, 0x689628\nMOV             X0, X19                                                ; +0xdc, 0x68962c\nLDR             X1, [X1,#0x200]                                        ; +0xe0, 0x689630\nBLR             X1                                                     ; +0xe4, 0x689634\nCBZ             X0, loc_689678                                         ; +0xe8, 0x689638\nADD             W22, W22, #1                                           ; +0xec, 0x68963c\nLDR             X0, [X21,#0x1E0]; this                                 ; +0xf0, 0x689640\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xf4, 0x689644\nCMP             W22, W0                                                ; +0xf8, 0x689648\nB.CC            loc_689590                                             ; +0xfc, 0x68964c\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x100, 0x689650\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x104, 0x689654\nLDR             X0, [X23]                                              ; +0x108, 0x689658\nCMP             X1, X0                                                 ; +0x10c, 0x68965c\nB.NE            loc_689698                                             ; +0x110, 0x689660\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x114, 0x689664\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x118, 0x689668\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0x11c, 0x68966c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x120, 0x689670\nRET                                                                    ; +0x124, 0x689674\nLDR             X2, [X21,#0x1F8]                                       ; +0x128, 0x689678\nMOV             X1, X19                                                ; +0x12c, 0x68967c\nADD             W22, W22, #1                                           ; +0x130, 0x689680\nMOV             X0, X2                                                 ; +0x134, 0x689684\nLDR             X2, [X2]                                               ; +0x138, 0x689688\nLDR             X2, [X2,#0x1C8]                                        ; +0x13c, 0x68968c\nBLR             X2                                                     ; +0x140, 0x689690\nB               loc_689640                                             ; +0x144, 0x689694\nBL              .__stack_chk_fail                                      ; +0x148, 0x689698", "xrefs": ["BoomScrollLayer::addPage @ 0x68a608", "BoomScrollLayer::removePage @ 0x68a690", "BoomScrollLayer::init @ 0x68ad20", "<???> @ 0x80a10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}