{"type": "func", "start": 4296365164, "end": 4296365192, "name": "BoomScrollLayer::getTotalPages", "pseudocode": "// \n// BoomScrollLayer::getTotalPages from 0x10015546c to 0x100155488 (28 bytes)\n// \n// 7 xrefs:\n// > sub_1001F0FD8 @ 0x1001f0ff0\n// > GauntletSelectLayer::setupGauntlets @ 0x100255174\n// > sub_100255900 @ 0x100255924\n// > SecretRewardsLayer::init @ 0x1003849b8\n// > sub_1003852E4 @ 0x100385314\n// > SecretRewardsLayer::scrollLayerMoved @ 0x100385374\n// > EditButtonBar::goToPage @ 0x1004a39f4\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 10:59:41 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::getTotalPages(__int64 a1)\n{\n  __int64 v1; // x8\n\n  v1 = 480;\n  if ( *(_BYTE *)(a1 + 456) )\n    v1 = 448;\n  return sub_1002E757C(*(_QWORD *)(a1 + v1));\n}", "assembly": "; \n; BoomScrollLayer::getTotalPages from 0x10015546c to 0x100155488 (28 bytes)\n; \n; 7 xrefs:\n; > sub_1001F0FD8 @ 0x1001f0ff0\n; > GauntletSelectLayer::setupGauntlets @ 0x100255174\n; > sub_100255900 @ 0x100255924\n; > SecretRewardsLayer::init @ 0x1003849b8\n; > sub_1003852E4 @ 0x100385314\n; > SecretRewardsLayer::scrollLayerMoved @ 0x100385374\n; > EditButtonBar::goToPage @ 0x1004a39f4\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 10:59:41 +0000\n; \nLDRB            W8, [X0,#0x1C8]                                        ; +0x0, 0x10015546c\nCMP             W8, #0                                                 ; +0x4, 0x100155470\nMOV             W8, #0x1E0                                             ; +0x8, 0x100155474\nMOV             W9, #0x1C0                                             ; +0xc, 0x100155478\nCSEL            X8, X9, X8, NE                                         ; +0x10, 0x10015547c\nLDR             X0, [X0,X8]                                            ; +0x14, 0x100155480\nB               sub_1002E757C                                          ; +0x18, 0x100155484", "xrefs": ["sub_1001F0FD8 @ 0x1001f0ff0", "GauntletSelectLayer::setupGauntlets @ 0x100255174", "sub_100255900 @ 0x100255924", "SecretRewardsLayer::init @ 0x1003849b8", "sub_1003852E4 @ 0x100385314", "SecretRewardsLayer::scrollLayerMoved @ 0x100385374", "EditButtonBar::goToPage @ 0x1004a39f4"], "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"}