{"type": "func", "start": 3937862, "end": 3937898, "name": "BoomScrollLayer::getRelativePageForNum", "pseudocode": "// \n// BoomScrollLayer::getRelativePageForNum from 0x3c1646 to 0x3c166a (36 bytes)\n// \n// 7 xrefs:\n// > BoomScrollLayer::updateDots @ 0x3c16c6\n// > BoomScrollLayer::repositionPagesLooped @ 0x3c19de\n// > BoomScrollLayer::repositionPagesLooped @ 0x3c19ec\n// > BoomScrollLayer::repositionPagesLooped @ 0x3c19fa\n// > ListButtonBar::getPage @ 0x3e6a52\n// > EditButtonBar::getPage @ 0x4ddd2e\n// > EditButtonBar::updateDotState @ 0x4ddd5c\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\nint __fastcall BoomScrollLayer::getRelativePageForNum(cocos2d::CCArray **this, int a2)\n{\n  int TotalPages; // r0\n\n  TotalPages = BoomScrollLayer::getTotalPages(this);\n  if ( a2 > 0 )\n    return a2 % TotalPages;\n  while ( a2 < 0 )\n    a2 += TotalPages;\n  return a2;\n}", "assembly": "; \n; BoomScrollLayer::getRelativePageForNum from 0x3c1646 to 0x3c166a (36 bytes)\n; \n; 7 xrefs:\n; > BoomScrollLayer::updateDots @ 0x3c16c6\n; > BoomScrollLayer::repositionPagesLooped @ 0x3c19de\n; > BoomScrollLayer::repositionPagesLooped @ 0x3c19ec\n; > BoomScrollLayer::repositionPagesLooped @ 0x3c19fa\n; > ListButtonBar::getPage @ 0x3e6a52\n; > EditButtonBar::getPage @ 0x4ddd2e\n; > EditButtonBar::updateDotState @ 0x4ddd5c\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; \nPUSH            {R4,LR}                                                ; +0x0, 0x3c1646\nMOV             R4, R1                                                 ; +0x2, 0x3c1648\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x4, 0x3c164a\nCMP             R4, #0                                                 ; +0x8, 0x3c164e\nMOV             R1, R0                                                 ; +0xa, 0x3c1650\nBLE             loc_3C165C                                             ; +0xc, 0x3c1652\nMOV             R0, R4                                                 ; +0xe, 0x3c1654\nBLX             __aeabi_idivmod                                        ; +0x10, 0x3c1656\nB               loc_3C1666                                             ; +0x14, 0x3c165a\nCMP             R4, #0                                                 ; +0x16, 0x3c165c\nBGE             loc_3C1664                                             ; +0x18, 0x3c165e\nADD             R4, R1                                                 ; +0x1a, 0x3c1660\nB               loc_3C165C                                             ; +0x1c, 0x3c1662\nMOV             R1, R4                                                 ; +0x1e, 0x3c1664\nMOV             R0, R1                                                 ; +0x20, 0x3c1666\nPOP             {R4,PC}                                                ; +0x22, 0x3c1668", "xrefs": ["BoomScrollLayer::updateDots @ 0x3c16c6", "BoomScrollLayer::repositionPagesLooped @ 0x3c19de", "BoomScrollLayer::repositionPagesLooped @ 0x3c19ec", "BoomScrollLayer::repositionPagesLooped @ 0x3c19fa", "ListButtonBar::getPage @ 0x3e6a52", "EditButtonBar::getPage @ 0x4ddd2e", "EditButtonBar::updateDotState @ 0x4ddd5c"], "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"}