{"type": "func", "start": 4296107512, "end": 4296107620, "name": "MoreVideoOptionsLayer::countForPage", "pseudocode": "// \n// MoreVideoOptionsLayer::countForPage from 0x1001165f8 to 0x100116664 (108 bytes)\n// \n// 2 xrefs:\n// > MoreVideoOptionsLayer::nextPosition @ 0x100115df0\n// > MoreVideoOptionsLayer::incrementCountForPage @ 0x100116370\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:10 +0000\n// \n\n__int64 __fastcall MoreVideoOptionsLayer::countForPage(__int64 a1, int a2)\n{\n  __int64 v2; // x19\n  __int64 v3; // x0\n  char *CString; // x0\n  __int64 v5; // x0\n  __int64 v6; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v9; // [xsp+1Fh] [xbp-11h]\n\n  v2 = *(_QWORD *)(a1 + 672);\n  v3 = sub_1003065B0(\"page_%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_100009900(__p, CString);\n  v5 = cocos2d::CCDictionary::valueForKey(v2, __p);\n  v6 = cocos2d::CCString::intValue(v5);\n  if ( v9 < 0 )\n    operator delete(__p[0]);\n  return v6;\n}", "assembly": "; \n; MoreVideoOptionsLayer::countForPage from 0x1001165f8 to 0x100116664 (108 bytes)\n; \n; 2 xrefs:\n; > MoreVideoOptionsLayer::nextPosition @ 0x100115df0\n; > MoreVideoOptionsLayer::incrementCountForPage @ 0x100116370\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:10 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1001165f8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1001165fc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100116600\nADD             X29, SP, #0x30                                         ; +0xc, 0x100116604\nLDR             X19, [X0,#0x2A0]                                       ; +0x10, 0x100116608\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x14, 0x10011660c\nADRL            X0, aPageI; \"page_%i\"                                  ; +0x18, 0x100116610\nBL              sub_1003065B0                                          ; +0x20, 0x100116618\nBL              cocos2d__CCString__getCString                          ; +0x24, 0x10011661c\nMOV             X1, X0; __s                                            ; +0x28, 0x100116620\nADD             X0, SP, #0x30+__p; int                                 ; +0x2c, 0x100116624\nBL              sub_100009900                                          ; +0x30, 0x100116628\nADD             X1, SP, #0x30+__p                                      ; +0x34, 0x10011662c\nMOV             X0, X19                                                ; +0x38, 0x100116630\nBL              cocos2d__CCDictionary__valueForKey                     ; +0x3c, 0x100116634\nBL              cocos2d__CCString__intValue                            ; +0x40, 0x100116638\nMOV             X19, X0                                                ; +0x44, 0x10011663c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x48, 0x100116640\nTBZ             W8, #0x1F, loc_100116650                               ; +0x4c, 0x100116644\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x50, 0x100116648\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10011664c\nMOV             X0, X19                                                ; +0x58, 0x100116650\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x100116654\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x100116658\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x10011665c\nRET                                                                    ; +0x68, 0x100116660", "xrefs": ["MoreVideoOptionsLayer::nextPosition @ 0x100115df0", "MoreVideoOptionsLayer::incrementCountForPage @ 0x100116370"], "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"}