{"type": "func", "start": 3940048, "end": 3940140, "name": "BoomScrollLayer::selectPage", "pseudocode": "// \n// BoomScrollLayer::selectPage from 0x3c1ed0 to 0x3c1f2c (92 bytes)\n// \n// 1 xrefs:\n// > BoomScrollLayer::ccTouchCancelled @ 0x3c1f4c\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\ncocos2d::CCArray **__fastcall BoomScrollLayer::selectPage(cocos2d::CCArray **this, cocos2d::CCArray *a2)\n{\n  cocos2d::CCArray **v3; // r4\n  cocos2d::CCArray *v4; // r8\n  int (__fastcall *v5)(cocos2d::CCArray *, _BYTE *); // r9\n  cocos2d::CCArray *v6; // r3\n  _BYTE v7[8]; // [sp+4h] [bp-10h] BYREF\n\n  v3 = this;\n  if ( (int)a2 >= 0 )\n  {\n    this = (cocos2d::CCArray **)BoomScrollLayer::getTotalPages(this);\n    if ( (int)a2 < (int)this )\n    {\n      v4 = v3[96];\n      v5 = *(int (__fastcall **)(cocos2d::CCArray *, _BYTE *))(*(_DWORD *)v4 + 92);\n      BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v7, (float *)v3, (int)a2);\n      this = (cocos2d::CCArray **)v5(v4, v7);\n      v6 = v3[115];\n      v3[115] = a2;\n      v3[81] = v6;\n    }\n  }\n  return this;\n}", "assembly": "; \n; BoomScrollLayer::selectPage from 0x3c1ed0 to 0x3c1f2c (92 bytes)\n; \n; 1 xrefs:\n; > BoomScrollLayer::ccTouchCancelled @ 0x3c1f4c\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 - 0x3C1EDA)                ; +0x0, 0x3c1ed0\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x3c1ed2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3c1ed6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3c1ed8\nSUB             SP, SP, #0x14                                          ; +0xa, 0x3c1eda\nSUBS            R6, R1, #0                                             ; +0xc, 0x3c1edc\nLDR             R2, [R3]                                               ; +0xe, 0x3c1ede\nMOV             R4, R0                                                 ; +0x10, 0x3c1ee0\nMOV             R5, R3                                                 ; +0x12, 0x3c1ee2\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x3c1ee4\nBLT             loc_3C1F1A                                             ; +0x16, 0x3c1ee6\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x18, 0x3c1ee8\nCMP             R6, R0                                                 ; +0x1c, 0x3c1eec\nBGE             loc_3C1F1A                                             ; +0x1e, 0x3c1eee\nLDR.W           R8, [R4,#0x180]                                        ; +0x20, 0x3c1ef0\nADD             R7, SP, #0x14+var_10                                   ; +0x24, 0x3c1ef4\nMOV             R1, R4; int                                            ; +0x26, 0x3c1ef6\nMOV             R2, R6                                                 ; +0x28, 0x3c1ef8\nMOV             R0, R7; this                                           ; +0x2a, 0x3c1efa\nLDR.W           R3, [R8]                                               ; +0x2c, 0x3c1efc\nLDR.W           R9, [R3,#0x5C]                                         ; +0x30, 0x3c1f00\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x34, 0x3c1f04\nMOV             R0, R8                                                 ; +0x38, 0x3c1f08\nMOV             R1, R7                                                 ; +0x3a, 0x3c1f0a\nBLX             R9                                                     ; +0x3c, 0x3c1f0c\nLDR.W           R3, [R4,#0x1CC]                                        ; +0x3e, 0x3c1f0e\nSTR.W           R6, [R4,#0x1CC]                                        ; +0x42, 0x3c1f12\nSTR.W           R3, [R4,#0x144]                                        ; +0x46, 0x3c1f16\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x4a, 0x3c1f1a\nLDR             R3, [R5]                                               ; +0x4c, 0x3c1f1c\nCMP             R2, R3                                                 ; +0x4e, 0x3c1f1e\nBEQ             loc_3C1F26                                             ; +0x50, 0x3c1f20\nBLX             __stack_chk_fail                                       ; +0x52, 0x3c1f22\nADD             SP, SP, #0x14                                          ; +0x56, 0x3c1f26\nPOP.W           {R4-R9,PC}                                             ; +0x58, 0x3c1f28", "xrefs": ["BoomScrollLayer::ccTouchCancelled @ 0x3c1f4c"], "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"}