{"type": "func", "start": 4296105308, "end": 4296105548, "name": "MoreVideoOptionsLayer::nextPosition", "pseudocode": "// \n// MoreVideoOptionsLayer::nextPosition from 0x100115d5c to 0x100115e4c (240 bytes)\n// \n// 1 xrefs:\n// > MoreVideoOptionsLayer::addToggle @ 0x1001157a0\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\nvoid __usercall MoreVideoOptionsLayer::nextPosition(__int64 a1@<X0>, __int64 a2@<X1>, __int64 a3@<X8>)\n{\n  __int64 v6; // x0\n  signed int v7; // w20\n  float *v8; // x1\n  float v9; // [xsp+8h] [xbp-58h] BYREF\n  float v10[2]; // [xsp+10h] [xbp-50h] BYREF\n  __int64 v11; // [xsp+18h] [xbp-48h] BYREF\n\n  v6 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(&v11, v6);\n  sub_1000262BC(v10, (float)(*(float *)&v11 * 0.5) + -135.0, (float)(*((float *)&v11 + 1) * 0.5) + 60.0);\n  sub_1000262BC(&v9, (float)(*(float *)&v11 * 0.5) + 35.0, v10[1]);\n  v7 = MoreVideoOptionsLayer::countForPage(a1, a2);\n  if ( (v7 & 1) != 0 )\n    v8 = &v9;\n  else\n    v8 = v10;\n  sub_1000262F4((_QWORD *)a3, (double *)v8);\n  if ( v7 >= 2 )\n    *(float *)(a3 + 4) = *(float *)(a3 + 4) - (float)(int)(48 * vcvtms_s32_f32(vcvts_n_f32_u32(v7, 1u)));\n}", "assembly": "; \n; MoreVideoOptionsLayer::nextPosition from 0x100115d5c to 0x100115e4c (240 bytes)\n; \n; 1 xrefs:\n; > MoreVideoOptionsLayer::addToggle @ 0x1001157a0\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, #0x70                                          ; +0x0, 0x100115d5c\nSTP             D9, D8, [SP,#0x60+var_40]                              ; +0x4, 0x100115d60\nSTP             X24, X23, [SP,#0x60+var_30]                            ; +0x8, 0x100115d64\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0xc, 0x100115d68\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x10, 0x100115d6c\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x14, 0x100115d70\nADD             X29, SP, #0x60                                         ; +0x18, 0x100115d74\nMOV             X20, X1                                                ; +0x1c, 0x100115d78\nMOV             X21, X0                                                ; +0x20, 0x100115d7c\nMOV             X19, X8                                                ; +0x24, 0x100115d80\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x28, 0x100115d84\nADD             X8, SP, #0x60+var_48                                   ; +0x2c, 0x100115d88\nBL              cocos2d__CCDirector__getWinSize                        ; +0x30, 0x100115d8c\nFMOV            S8, #0.5                                               ; +0x34, 0x100115d90\nLDP             S0, S1, [SP,#0x60+var_48]                              ; +0x38, 0x100115d94\nFMUL            S0, S0, S8                                             ; +0x3c, 0x100115d98\nMOV             W8, #0xC3070000                                        ; +0x40, 0x100115d9c\nFMOV            S2, W8                                                 ; +0x44, 0x100115da0\nFADD            S0, S0, S2                                             ; +0x48, 0x100115da4\nFMUL            S1, S1, S8                                             ; +0x4c, 0x100115da8\nMOV             W8, #0x42700000                                        ; +0x50, 0x100115dac\nFMOV            S2, W8                                                 ; +0x54, 0x100115db0\nFADD            S1, S1, S2                                             ; +0x58, 0x100115db4\nADD             X22, SP, #0x60+var_50                                  ; +0x5c, 0x100115db8\nADD             X0, SP, #0x60+var_50                                   ; +0x60, 0x100115dbc\nBL              sub_1000262BC                                          ; +0x64, 0x100115dc0\nLDR             S0, [SP,#0x60+var_48]                                  ; +0x68, 0x100115dc4\nFMUL            S0, S0, S8                                             ; +0x6c, 0x100115dc8\nMOV             W8, #0x420C0000                                        ; +0x70, 0x100115dcc\nFMOV            S1, W8                                                 ; +0x74, 0x100115dd0\nFADD            S0, S0, S1                                             ; +0x78, 0x100115dd4\nLDR             S1, [SP,#0x60+var_4C]                                  ; +0x7c, 0x100115dd8\nADD             X23, SP, #0x60+var_58                                  ; +0x80, 0x100115ddc\nADD             X0, SP, #0x60+var_58                                   ; +0x84, 0x100115de0\nBL              sub_1000262BC                                          ; +0x88, 0x100115de4\nMOV             X0, X21                                                ; +0x8c, 0x100115de8\nMOV             X1, X20                                                ; +0x90, 0x100115dec\nBL              MoreVideoOptionsLayer__countForPage                    ; +0x94, 0x100115df0\nMOV             X20, X0                                                ; +0x98, 0x100115df4\nTST             W0, #1                                                 ; +0x9c, 0x100115df8\nCSEL            X1, X22, X23, EQ                                       ; +0xa0, 0x100115dfc\nMOV             X0, X19                                                ; +0xa4, 0x100115e00\nBL              sub_1000262F4                                          ; +0xa8, 0x100115e04\nCMP             W20, #2                                                ; +0xac, 0x100115e08\nB.LT            loc_100115E30                                          ; +0xb0, 0x100115e0c\nUCVTF           S0, W20, #1                                            ; +0xb4, 0x100115e10\nFCVTMS          W8, S0                                                 ; +0xb8, 0x100115e14\nADD             W8, W8, W8,LSL#1                                       ; +0xbc, 0x100115e18\nLSL             W8, W8, #4                                             ; +0xc0, 0x100115e1c\nSCVTF           S0, W8                                                 ; +0xc4, 0x100115e20\nLDR             S1, [X19,#4]                                           ; +0xc8, 0x100115e24\nFSUB            S0, S1, S0                                             ; +0xcc, 0x100115e28\nSTR             S0, [X19,#4]                                           ; +0xd0, 0x100115e2c\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0xd4, 0x100115e30\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0xd8, 0x100115e34\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0xdc, 0x100115e38\nLDP             X24, X23, [SP,#0x60+var_30]                            ; +0xe0, 0x100115e3c\nLDP             D9, D8, [SP,#0x60+var_40]                              ; +0xe4, 0x100115e40\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xe8, 0x100115e44\nRET                                                                    ; +0xec, 0x100115e48", "xrefs": ["MoreVideoOptionsLayer::addToggle @ 0x1001157a0"], "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"}