{"type": "func", "start": 3022678, "end": 3022714, "name": "BoomScrollLayer::getRelativePageForNum", "pseudocode": "// \n// BoomScrollLayer::getRelativePageForNum from 0x2e1f56 to 0x2e1f7a (36 bytes)\n// \n// 6 xrefs:\n// > BoomScrollLayer::updateDots @ 0x2e1fd6\n// > BoomScrollLayer::repositionPagesLooped @ 0x2e22ee\n// > BoomScrollLayer::repositionPagesLooped @ 0x2e22fc\n// > BoomScrollLayer::repositionPagesLooped @ 0x2e230a\n// > ListButtonBar::getPage @ 0x2fd426\n// > EditButtonBar::getPage @ 0x3d90ee\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\nint BoomScrollLayer::getRelativePageForNum(BoomScrollLayer *a1, int a2)\n{\n  int TotalPages; // r0\n\n  TotalPages = BoomScrollLayer::getTotalPages(a1);\n  if ( a2 > 0 )\n    return a2 % TotalPages;\n  while ( a2 < 0 )\n    a2 += TotalPages;\n  return a2;\n}", "assembly": "; \n; BoomScrollLayer::getRelativePageForNum from 0x2e1f56 to 0x2e1f7a (36 bytes)\n; \n; 6 xrefs:\n; > BoomScrollLayer::updateDots @ 0x2e1fd6\n; > BoomScrollLayer::repositionPagesLooped @ 0x2e22ee\n; > BoomScrollLayer::repositionPagesLooped @ 0x2e22fc\n; > BoomScrollLayer::repositionPagesLooped @ 0x2e230a\n; > ListButtonBar::getPage @ 0x2fd426\n; > EditButtonBar::getPage @ 0x3d90ee\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\nPUSH            {R4,LR}                                                ; +0x0, 0x2e1f56\nMOV             R4, R1                                                 ; +0x2, 0x2e1f58\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x4, 0x2e1f5a\nCMP             R4, #0                                                 ; +0x8, 0x2e1f5e\nMOV             R1, R0                                                 ; +0xa, 0x2e1f60\nBLE             loc_2E1F6C                                             ; +0xc, 0x2e1f62\nMOV             R0, R4                                                 ; +0xe, 0x2e1f64\nBLX             __aeabi_idivmod                                        ; +0x10, 0x2e1f66\nB               loc_2E1F76                                             ; +0x14, 0x2e1f6a\nCMP             R4, #0                                                 ; +0x16, 0x2e1f6c\nBGE             loc_2E1F74                                             ; +0x18, 0x2e1f6e\nADD             R4, R1                                                 ; +0x1a, 0x2e1f70\nB               loc_2E1F6C                                             ; +0x1c, 0x2e1f72\nMOV             R1, R4                                                 ; +0x1e, 0x2e1f74\nMOV             R0, R1                                                 ; +0x20, 0x2e1f76\nPOP             {R4,PC}                                                ; +0x22, 0x2e1f78", "xrefs": ["BoomScrollLayer::updateDots @ 0x2e1fd6", "BoomScrollLayer::repositionPagesLooped @ 0x2e22ee", "BoomScrollLayer::repositionPagesLooped @ 0x2e22fc", "BoomScrollLayer::repositionPagesLooped @ 0x2e230a", "ListButtonBar::getPage @ 0x2fd426", "EditButtonBar::getPage @ 0x3d90ee"], "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"}