{"type": "func", "start": 3937404, "end": 3937608, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x3c147c to 0x3c1548 (204 bytes)\n// \n// 3 xrefs:\n// > BoomScrollLayer::addPage @ 0x3c1fbc\n// > BoomScrollLayer::removePage @ 0x3c200a\n// > BoomScrollLayer::init @ 0x3c2464\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:31 +0000\n// \n\nunsigned int __fastcall BoomScrollLayer::updatePages(cocos2d::CCArray **this)\n{\n  unsigned int i; // r8\n  unsigned int result; // r0\n  int v4; // r4\n  int (__fastcall *v5)(int, _BYTE *); // r9\n  cocos2d::CCDirector *v6; // r0\n  void (__fastcall *v7)(int, _BYTE *); // r9\n  void (__fastcall *v8)(int, _BYTE *); // r9\n  float *v9; // r0\n  _BYTE v10[8]; // [sp+4h] [bp-10h] BYREF\n\n  for ( i = 0; ; ++i )\n  {\n    result = cocos2d::CCArray::count(*(this + 91));\n    if ( i >= result )\n      break;\n    v4 = cocos2d::CCArray::objectAtIndex(*(this + 91), i);\n    v5 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 148);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 0.0);\n    v6 = (cocos2d::CCDirector *)v5(v4, v10);\n    v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 160);\n    cocos2d::CCDirector::sharedDirector(v6);\n    cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10);\n    v7(v4, v10);\n    v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);\n    v9 = (float *)(*((int (__fastcall **)(cocos2d::CCArray **))*this + 41))(this);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)(int)i * (float)(*v9 - *((float *)this + 116)), 0.0);\n    v8(v4, v10);\n    if ( !(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 256))(v4) )\n      (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 96) + 228))(*(this + 96), v4);\n  }\n  return result;\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x3c147c to 0x3c1548 (204 bytes)\n; \n; 3 xrefs:\n; > BoomScrollLayer::addPage @ 0x3c1fbc\n; > BoomScrollLayer::removePage @ 0x3c200a\n; > BoomScrollLayer::init @ 0x3c2464\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:31 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3C1486)                ; +0x0, 0x3c147c\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x3c147e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3c1482\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3c1484\nSUB             SP, SP, #0x14                                          ; +0xa, 0x3c1486\nMOV             R5, R0                                                 ; +0xc, 0x3c1488\nLDR             R2, [R3]                                               ; +0xe, 0x3c148a\nADD             R6, SP, #0x14+var_10                                   ; +0x10, 0x3c148c\nMOV.W           R8, #0                                                 ; +0x12, 0x3c148e\nMOV             R7, R3                                                 ; +0x16, 0x3c1492\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x18, 0x3c1494\nLDR.W           R0, [R5,#0x16C]; this                                  ; +0x1a, 0x3c1496\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x3c149a\nCMP             R8, R0                                                 ; +0x22, 0x3c149e\nBCS             loc_3C1536                                             ; +0x24, 0x3c14a0\nMOV             R1, R8; unsigned int                                   ; +0x26, 0x3c14a2\nLDR.W           R0, [R5,#0x16C]; this                                  ; +0x28, 0x3c14a4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x3c14a8\nMOVS            R1, #0; float                                          ; +0x30, 0x3c14ac\nMOV             R2, R1; float                                          ; +0x32, 0x3c14ae\nLDR             R3, [R0]                                               ; +0x34, 0x3c14b0\nMOV             R4, R0                                                 ; +0x36, 0x3c14b2\nMOV             R0, R6; this                                           ; +0x38, 0x3c14b4\nLDR.W           R9, [R3,#0x94]                                         ; +0x3a, 0x3c14b6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x3e, 0x3c14ba\nMOV             R1, R6                                                 ; +0x42, 0x3c14be\nMOV             R0, R4                                                 ; +0x44, 0x3c14c0\nBLX             R9                                                     ; +0x46, 0x3c14c2\nLDR             R3, [R4]                                               ; +0x48, 0x3c14c4\nLDR.W           R9, [R3,#0xA0]                                         ; +0x4a, 0x3c14c6\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4e, 0x3c14ca\nMOV             R1, R0                                                 ; +0x52, 0x3c14ce\nMOV             R0, R6; this                                           ; +0x54, 0x3c14d0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x56, 0x3c14d2\nMOV             R1, R6                                                 ; +0x5a, 0x3c14d6\nMOV             R0, R4                                                 ; +0x5c, 0x3c14d8\nBLX             R9                                                     ; +0x5e, 0x3c14da\nLDR             R3, [R4]                                               ; +0x60, 0x3c14dc\nMOV             R0, R5                                                 ; +0x62, 0x3c14de\nLDR.W           R9, [R3,#0x5C]                                         ; +0x64, 0x3c14e0\nLDR             R3, [R5]                                               ; +0x68, 0x3c14e4\nLDR.W           R3, [R3,#0xA4]                                         ; +0x6a, 0x3c14e6\nBLX             R3                                                     ; +0x6e, 0x3c14ea\nVLDR            S14, [R5,#0x1D0]                                       ; +0x70, 0x3c14ec\nMOVS            R2, #0; float                                          ; +0x74, 0x3c14f0\nVLDR            S15, [R0]                                              ; +0x76, 0x3c14f2\nMOV             R0, R6; this                                           ; +0x7a, 0x3c14f6\nVSUB.F32        S15, S15, S14                                          ; +0x7c, 0x3c14f8\nVMOV            S14, R8                                                ; +0x80, 0x3c14fc\nVCVT.F32.S32    S14, S14                                               ; +0x84, 0x3c1500\nVMUL.F32        S15, S14, S15                                          ; +0x88, 0x3c1504\nVMOV            R1, S15; float                                         ; +0x8c, 0x3c1508\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x90, 0x3c150c\nMOV             R0, R4                                                 ; +0x94, 0x3c1510\nMOV             R1, R6                                                 ; +0x96, 0x3c1512\nBLX             R9                                                     ; +0x98, 0x3c1514\nLDR             R3, [R4]                                               ; +0x9a, 0x3c1516\nMOV             R0, R4                                                 ; +0x9c, 0x3c1518\nLDR.W           R3, [R3,#0x100]                                        ; +0x9e, 0x3c151a\nBLX             R3                                                     ; +0xa2, 0x3c151e\nCBNZ            R0, loc_3C1530                                         ; +0xa4, 0x3c1520\nLDR.W           R0, [R5,#0x180]                                        ; +0xa6, 0x3c1522\nMOV             R1, R4                                                 ; +0xaa, 0x3c1526\nLDR             R3, [R0]                                               ; +0xac, 0x3c1528\nLDR.W           R3, [R3,#0xE4]                                         ; +0xae, 0x3c152a\nBLX             R3                                                     ; +0xb2, 0x3c152e\nADD.W           R8, R8, #1                                             ; +0xb4, 0x3c1530\nB               loc_3C1496                                             ; +0xb8, 0x3c1534\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xba, 0x3c1536\nLDR             R3, [R7]                                               ; +0xbc, 0x3c1538\nCMP             R2, R3                                                 ; +0xbe, 0x3c153a\nBEQ             loc_3C1542                                             ; +0xc0, 0x3c153c\nBLX             __stack_chk_fail                                       ; +0xc2, 0x3c153e\nADD             SP, SP, #0x14                                          ; +0xc6, 0x3c1542\nPOP.W           {R4-R9,PC}                                             ; +0xc8, 0x3c1544", "xrefs": ["BoomScrollLayer::addPage @ 0x3c1fbc", "BoomScrollLayer::removePage @ 0x3c200a", "BoomScrollLayer::init @ 0x3c2464"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}