{"type": "func", "start": 5372352288, "end": 5372353905, "name": "MoreVideoOptionsLayer::addToggle", "pseudocode": "// \n// MoreVideoOptionsLayer::addToggle from 0x140379720 to 0x140379d71 (1617 bytes)\n// \n// 5 xrefs:\n// > MoreVideoOptionsLayer::init @ 0x140378efd\n// > MoreVideoOptionsLayer::init @ 0x140378f1a\n// > MoreVideoOptionsLayer::init @ 0x140378f37\n// > MoreVideoOptionsLayer::init @ 0x140378f54\n// > <???> @ 0x1406d5c6c\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\n// Hidden C++ exception states: #wind=5\nvoid MoreVideoOptionsLayer::addToggle(MoreVideoOptionsLayer *a1, const char *a2, const char *a3, const char *a4)\n{\n  int m_toggleCount; // ecx\n  int v9; // r12d\n  int m_pageCount; // eax\n  int v11; // eax\n  __int64 v12; // r13\n  GameManager *v13; // rcx\n  size_t v14; // rdi\n  size_t v15; // r8\n  struct cocos2d::CCObject *v16; // rax\n  __int64 v17; // rcx\n  void *v18; // rcx\n  cocos2d::CCDirector *v19; // rax\n  double v20; // xmm0_8\n  int v21; // r13d\n  float v22; // xmm0_4\n  cocos2d::CCLayer *v23; // r13\n  size_t v24; // r8\n  float *v25; // rax\n  float *v26; // rbx\n  struct cocos2d::CCPoint v27; // rax\n  CCMenuItemToggler *ToggleButton; // r15\n  cocos2d::CCString *v29; // rax\n  const char *CString; // rax\n  size_t v31; // r8\n  struct cocos2d::CCString *v32; // rax\n  void *v33; // rcx\n  cocos2d::CCArray *v34; // r12\n  cocos2d::CCString *v35; // rax\n  const char *v36; // rax\n  size_t v37; // r8\n  __int64 v38; // rax\n  void *v39; // rcx\n  void *v40; // rcx\n  struct cocos2d::CCSprite *v41; // rbx\n  CCMenuItemSpriteExtra *v42; // rdi\n  float v43; // xmm0_4\n  __int64 v44; // rax\n  bool GameVariable; // [rsp+80h] [rbp-80h]\n  float v46; // [rsp+88h] [rbp-78h]\n  int v47; // [rsp+88h] [rbp-78h]\n  int v48; // [rsp+90h] [rbp-70h]\n  __int128 *v49; // [rsp+98h] [rbp-68h] BYREF\n  cocos2d::CCPoint v50; // [rsp+A0h] [rbp-60h] BYREF\n  __int128 v51; // [rsp+B0h] [rbp-50h] BYREF\n  __int64 v52; // [rsp+C0h] [rbp-40h]\n  __int64 v53; // [rsp+C8h] [rbp-38h]\n  cocos2d::CCPoint v54; // [rsp+D0h] [rbp-30h] BYREF\n  void *Block[2]; // [rsp+D8h] [rbp-28h] BYREF\n  __int64 v56; // [rsp+E8h] [rbp-18h]\n  unsigned __int64 v57; // [rsp+F0h] [rbp-10h]\n  void *v58[2]; // [rsp+F8h] [rbp-8h] BYREF\n  __int64 v59; // [rsp+108h] [rbp+8h]\n  unsigned __int64 v60; // [rsp+110h] [rbp+10h]\n\n  m_toggleCount = a1->m_toggleCount;\n  a1->m_toggleCount = m_toggleCount + 1;\n  v9 = (int)fmaxf(0.0, floorf((float)(m_toggleCount / 10)));\n  m_pageCount = a1->m_pageCount;\n  if ( m_pageCount <= v9 )\n    m_pageCount = v9;\n  a1->m_pageCount = m_pageCount;\n  v11 = atoi(a3);\n  v12 = v11;\n  v48 = v11;\n  v13 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v49 = (__int128 *)operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v49);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v13 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v13, a3);\n  *(_OWORD *)Block = 0;\n  v56 = 0;\n  v57 = 0;\n  v14 = -1;\n  v15 = -1;\n  do\n    ++v15;\n  while ( a3[v15] );\n  sub_14003A930(Block, a3, v15);\n  v16 = (struct cocos2d::CCObject *)cocos2d::CCString::create(Block);\n  cocos2d::CCDictionary::setObject(a1->m_variables, v16, v12);\n  if ( v57 > 0xF )\n  {\n    v18 = Block[0];\n    if ( v57 + 1 >= 0x1000 )\n    {\n      v18 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v18);\n  }\n  v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17);\n  cocos2d::CCDirector::getWinSize(v19);\n  v20 = cocos2d::CCPoint::CCPoint(0.0, (float)(v46 * 0.5) - 135.0);\n  cocos2d::CCPoint::CCPoint(*(float *)&v20, (float)(v46 * 0.5) + 35.0);\n  v21 = MoreVideoOptionsLayer::countForPage(a1, v9);\n  cocos2d::CCPoint::CCPoint(&v50);\n  if ( v21 + 1 > 2 )\n  {\n    v22 = floorf((float)v21 * 0.5);\n    v50.y = v50.y - (float)(48 * (int)v22);\n  }\n  v23 = MoreVideoOptionsLayer::layerForPage(a1, v9);\n  v49 = &v51;\n  v51 = 0;\n  v52 = 0;\n  v53 = 0;\n  v24 = -1;\n  do\n    ++v24;\n  while ( a2[v24] );\n  sub_14003A930(&v51, a2, v24);\n  cocos2d::CCPoint::CCPoint(0.0, 8.0);\n  v26 = v25;\n  cocos2d::CCPoint::CCPoint(&v54);\n  ToggleButton = GameToolbox::createToggleButton(\n                   (const char *)&v51,\n                   (cocos2d::SEL_MenuHandler *)MoreVideoOptionsLayer::onToggle,\n                   GameVariable,\n                   a1->m_buttonMenu,\n                   v27,\n                   a1,\n                   v23,\n                   0.80000001,\n                   0.5,\n                   110.0,\n                   v26,\n                   (const char *)&qword_14052A4D8,\n                   0,\n                   0,\n                   nullptr);\n  ToggleButton->setTag(ToggleButton, v48);\n  *(_DWORD *)(*(_QWORD *)&ToggleButton->m_nScriptTapHandler + 372LL) = 1065353216;\n  HIDWORD(ToggleButton->m_offButton->m_pfnSelector.adj) = 1065353216;\n  CCMenuItemToggler::toggle(ToggleButton, (bool)ToggleButton->m_onButton);\n  v47 = MoreVideoOptionsLayer::countForPage(a1, v9) + 1;\n  v29 = cocos2d::CCString::createWithFormat(\"page_%i\", v9);\n  CString = cocos2d::CCString::getCString(v29);\n  *(_OWORD *)Block = 0;\n  v56 = 0;\n  v57 = 0;\n  v31 = -1;\n  do\n    ++v31;\n  while ( CString[v31] );\n  sub_14003A930(Block, CString, v31);\n  v32 = cocos2d::CCString::createWithFormat(\"%i\", v47);\n  cocos2d::CCDictionary::setObject(a1->m_values, v32, Block);\n  if ( v57 > 0xF )\n  {\n    v33 = Block[0];\n    if ( v57 + 1 >= 0x1000 )\n    {\n      v33 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v33 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v33);\n  }\n  v34 = MoreVideoOptionsLayer::objectsForPage(a1, v9);\n  cocos2d::CCArray::addObject(v34, ToggleButton);\n  ToggleButton->setVisible(ToggleButton, 0);\n  v23->setVisible(v23, 0);\n  if ( a4 )\n  {\n    v35 = cocos2d::CCString::createWithFormat(\"info_%i\", v48);\n    v36 = cocos2d::CCString::getCString(v35);\n    *(_OWORD *)v58 = 0;\n    v59 = 0;\n    v60 = 0;\n    v37 = -1;\n    do\n      ++v37;\n    while ( v36[v37] );\n    sub_14003A930(v58, v36, v37);\n    *(_OWORD *)Block = 0;\n    v56 = 0;\n    v57 = 0;\n    do\n      ++v14;\n    while ( a4[v14] );\n    sub_14003A930(Block, a4, v14);\n    v38 = cocos2d::CCString::create(Block);\n    cocos2d::CCDictionary::setObject(a1->m_values, v38, v58);\n    if ( v57 > 0xF )\n    {\n      v39 = Block[0];\n      if ( v57 + 1 >= 0x1000 )\n      {\n        v39 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v39 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v39);\n    }\n    v56 = 0;\n    v57 = 15;\n    LOBYTE(Block[0]) = 0;\n    if ( v60 > 0xF )\n    {\n      v40 = v58[0];\n      if ( v60 + 1 >= 0x1000 )\n      {\n        v40 = *((void **)v58[0] - 1);\n        if ( (unsigned __int64)((char *)v58[0] - (char *)v40 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v40);\n    }\n    v41 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_infoIcon_001.png\");\n    ((void (__fastcall *)(struct cocos2d::CCSprite *))v41->setScale_0)(v41);\n    v42 = CCMenuItemSpriteExtra::create(v41, nullptr, a1, (cocos2d::SEL_MenuHandler *)MoreVideoOptionsLayer::onInfo);\n    HIDWORD(v42->m_pfnSelector.adj) = 0x40000000;\n    v42->setTag(v42, v48);\n    v43 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(\n            a1->m_buttonMenu,\n            v42);\n    cocos2d::CCPoint::CCPoint(v43, -18.0);\n    v44 = (__int64)ToggleButton->getPosition_0(ToggleButton);\n    cocos2d::CCPoint::operator+(v44, &v49);\n    v42->setPosition_0(v42, (const cocos2d::CCPoint *)&v49);\n    cocos2d::CCArray::addObject(v34, v42);\n    v42->setVisible(v42, 0);\n  }\n}", "assembly": "; \n; MoreVideoOptionsLayer::addToggle from 0x140379720 to 0x140379d71 (1617 bytes)\n; \n; 5 xrefs:\n; > MoreVideoOptionsLayer::init @ 0x140378efd\n; > MoreVideoOptionsLayer::init @ 0x140378f1a\n; > MoreVideoOptionsLayer::init @ 0x140378f37\n; > MoreVideoOptionsLayer::init @ 0x140378f54\n; > <???> @ 0x1406d5c6c\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    rbp                                                            ; +0x0, 0x140379720\npush    rbx                                                            ; +0x2, 0x140379722\npush    rsi                                                            ; +0x3, 0x140379723\npush    rdi                                                            ; +0x4, 0x140379724\npush    r12                                                            ; +0x5, 0x140379725\npush    r13                                                            ; +0x7, 0x140379727\npush    r14                                                            ; +0x9, 0x140379729\npush    r15                                                            ; +0xb, 0x14037972b\nlea     rbp, [rsp-38h]                                                 ; +0xd, 0x14037972d\nsub     rsp, 138h                                                      ; +0x12, 0x140379732\nmovaps  [rsp+170h+var_50], xmm6                                        ; +0x19, 0x140379739\nmov     rax, cs:__security_cookie                                      ; +0x21, 0x140379741\nxor     rax, rsp                                                       ; +0x28, 0x140379748\nmov     [rbp+70h+var_58], rax                                          ; +0x2b, 0x14037974b\nmov     r14, r9                                                        ; +0x2f, 0x14037974f\nmov     rbx, r8                                                        ; +0x32, 0x140379752\nmov     r15, rdx                                                       ; +0x35, 0x140379755\nmov     rsi, rcx                                                       ; +0x38, 0x140379758\nmov     ecx, [rcx+284h]                                                ; +0x3b, 0x14037975b\nlea     eax, [rcx+1]                                                   ; +0x41, 0x140379761\nmov     [rsi+284h], eax                                                ; +0x44, 0x140379764\nmov     eax, 66666667h                                                 ; +0x4a, 0x14037976a\nimul    ecx                                                            ; +0x4f, 0x14037976f\nsar     edx, 2                                                         ; +0x51, 0x140379771\nmov     eax, edx                                                       ; +0x54, 0x140379774\nshr     eax, 1Fh                                                       ; +0x56, 0x140379776\nadd     edx, eax                                                       ; +0x59, 0x140379779\nmovd    xmm0, edx                                                      ; +0x5b, 0x14037977b\ncvtdq2ps xmm0, xmm0; X                                                 ; +0x5f, 0x14037977f\ncall    floorf                                                         ; +0x62, 0x140379782\nxorps   xmm1, xmm1                                                     ; +0x67, 0x140379787\nmaxss   xmm1, xmm0                                                     ; +0x6a, 0x14037978a\ncvttss2si r12d, xmm1                                                   ; +0x6e, 0x14037978e\nmov     eax, [rsi+288h]                                                ; +0x73, 0x140379793\ncmp     eax, r12d                                                      ; +0x79, 0x140379799\ncmovle  eax, r12d                                                      ; +0x7c, 0x14037979c\nmov     [rsi+288h], eax                                                ; +0x80, 0x1403797a0\nmov     rcx, rbx; String                                               ; +0x86, 0x1403797a6\ncall    cs:atoi                                                        ; +0x89, 0x1403797a9\nmovsxd  r13, eax                                                       ; +0x8f, 0x1403797af\nmov     [rbp+70h+var_E0], r13d                                         ; +0x92, 0x1403797b2\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x96, 0x1403797b6\ntest    rcx, rcx                                                       ; +0x9d, 0x1403797bd\njnz     short loc_1403797F0                                            ; +0xa0, 0x1403797c0\nmov     ecx, 668h; Size                                                ; +0xa2, 0x1403797c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa7, 0x1403797c7\nmov     [rbp+70h+var_D8], rax                                          ; +0xac, 0x1403797cc\nmov     rcx, rax                                                       ; +0xb0, 0x1403797d0\ncall    sub_14017AB00                                                  ; +0xb3, 0x1403797d3\nnop                                                                    ; +0xb8, 0x1403797d8\nmov     cs:qword_1406C2ED8, rax                                        ; +0xb9, 0x1403797d9\nmov     rdx, [rax]                                                     ; +0xc0, 0x1403797e0\nmov     rcx, rax                                                       ; +0xc3, 0x1403797e3\ncall    qword ptr [rdx+48h]                                            ; +0xc6, 0x1403797e6\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xc9, 0x1403797e9\nmov     rdx, rbx                                                       ; +0xd0, 0x1403797f0\ncall    GameManager__getGameVariable                                   ; +0xd3, 0x1403797f3\nmov     [rbp+70h+var_F0], al                                           ; +0xd8, 0x1403797f8\nxorps   xmm0, xmm0                                                     ; +0xdb, 0x1403797fb\nmovups  xmmword ptr [rbp+70h+Block], xmm0                              ; +0xde, 0x1403797fe\nxor     eax, eax                                                       ; +0xe2, 0x140379802\nmov     [rbp+70h+var_88], rax                                          ; +0xe4, 0x140379804\nmov     [rbp+70h+var_80], rax                                          ; +0xe8, 0x140379808\nmov     rdi, 0FFFFFFFFFFFFFFFFh                                        ; +0xec, 0x14037980c\nmov     r8, rdi                                                        ; +0xf3, 0x140379813\ninc     r8                                                             ; +0xf6, 0x140379816\ncmp     [rbx+r8], al                                                   ; +0xf9, 0x140379819\njnz     short loc_140379816                                            ; +0xfd, 0x14037981d\nmov     rdx, rbx                                                       ; +0xff, 0x14037981f\nlea     rcx, [rbp+70h+Block]                                           ; +0x102, 0x140379822\ncall    sub_14003A930                                                  ; +0x106, 0x140379826\nnop                                                                    ; +0x10b, 0x14037982b\nlea     rcx, [rbp+70h+Block]                                           ; +0x10c, 0x14037982c\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x110, 0x140379830\nmov     rdx, rax                                                       ; +0x116, 0x140379836\nmov     r8, r13                                                        ; +0x119, 0x140379839\nmov     rcx, [rsi+298h]                                                ; +0x11c, 0x14037983c\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x123, 0x140379843\nnop                                                                    ; +0x129, 0x140379849\nmov     rdx, [rbp+70h+var_80]                                          ; +0x12a, 0x14037984a\ncmp     rdx, 0Fh                                                       ; +0x12e, 0x14037984e\njbe     short loc_140379888                                            ; +0x132, 0x140379852\ninc     rdx                                                            ; +0x134, 0x140379854\nmov     rcx, [rbp+70h+Block]; Block                                    ; +0x137, 0x140379857\nmov     rax, rcx                                                       ; +0x13b, 0x14037985b\ncmp     rdx, 1000h                                                     ; +0x13e, 0x14037985e\njb      short loc_140379883                                            ; +0x145, 0x140379865\nadd     rdx, 27h ; '''                                                 ; +0x147, 0x140379867\nmov     rcx, [rcx-8]                                                   ; +0x14b, 0x14037986b\nsub     rax, rcx                                                       ; +0x14f, 0x14037986f\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x152, 0x140379872\ncmp     rax, 1Fh                                                       ; +0x156, 0x140379876\njbe     short loc_140379883                                            ; +0x15a, 0x14037987a\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x15c, 0x14037987c\ndb 0CCh                                                                ; +0x162, 0x140379882\ncall    j_j_free                                                       ; +0x163, 0x140379883\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x168, 0x140379888\nmov     rcx, rax                                                       ; +0x16e, 0x14037988e\nlea     rdx, [rbp+70h+var_E8]                                          ; +0x171, 0x140379891\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x175, 0x140379895\nmovss   xmm2, [rbp+70h+var_E4]                                         ; +0x17b, 0x14037989b\nmovss   xmm6, cs:dword_140622B08                                       ; +0x180, 0x1403798a0\nmulss   xmm2, xmm6                                                     ; +0x188, 0x1403798a8\naddss   xmm2, cs:dword_140623210                                       ; +0x18c, 0x1403798ac\nmovss   xmm1, [rbp+70h+var_E8]                                         ; +0x194, 0x1403798b4\nmulss   xmm1, xmm6                                                     ; +0x199, 0x1403798b9\nsubss   xmm1, cs:dword_140623324                                       ; +0x19d, 0x1403798bd\nlea     rcx, [rbp+70h+var_C8]                                          ; +0x1a5, 0x1403798c5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a9, 0x1403798c9\nmovss   xmm1, [rbp+70h+var_E8]                                         ; +0x1af, 0x1403798cf\nmulss   xmm1, xmm6                                                     ; +0x1b4, 0x1403798d4\naddss   xmm1, cs:dword_140623198                                       ; +0x1b8, 0x1403798d8\nmovss   xmm2, [rbp+70h+var_C4]                                         ; +0x1c0, 0x1403798e0\nlea     rcx, [rbp+70h+var_D8]                                          ; +0x1c5, 0x1403798e5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c9, 0x1403798e9\nmov     edx, r12d                                                      ; +0x1cf, 0x1403798ef\nmov     rcx, rsi                                                       ; +0x1d2, 0x1403798f2\ncall    MoreVideoOptionsLayer__countForPage                            ; +0x1d5, 0x1403798f5\nmov     r13d, eax                                                      ; +0x1da, 0x1403798fa\nlea     ebx, [rax+1]                                                   ; +0x1dd, 0x1403798fd\ntest    bl, 1                                                          ; +0x1e0, 0x140379900\nlea     rdx, [rbp+70h+var_C8]                                          ; +0x1e3, 0x140379903\nlea     rax, [rbp+70h+var_D8]                                          ; +0x1e7, 0x140379907\ncmovz   rdx, rax                                                       ; +0x1eb, 0x14037990b\nlea     rcx, [rbp+70h+var_D0]                                          ; +0x1ef, 0x14037990f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1f3, 0x140379913\ncmp     ebx, 2                                                         ; +0x1f9, 0x140379919\njle     short loc_14037994E                                            ; +0x1fc, 0x14037991c\nmovd    xmm0, r13d                                                     ; +0x1fe, 0x14037991e\ncvtdq2ps xmm0, xmm0                                                    ; +0x203, 0x140379923\nmulss   xmm0, xmm6; X                                                  ; +0x206, 0x140379926\ncall    floorf                                                         ; +0x20a, 0x14037992a\ncvttss2si eax, xmm0                                                    ; +0x20f, 0x14037992f\nlea     ecx, [rax+rax*2]                                               ; +0x213, 0x140379933\nshl     ecx, 4                                                         ; +0x216, 0x140379936\nmovd    xmm0, ecx                                                      ; +0x219, 0x140379939\ncvtdq2ps xmm0, xmm0                                                    ; +0x21d, 0x14037993d\nmovss   xmm1, [rbp+70h+var_CC]                                         ; +0x220, 0x140379940\nsubss   xmm1, xmm0                                                     ; +0x225, 0x140379945\nmovss   [rbp+70h+var_CC], xmm1                                         ; +0x229, 0x140379949\nmov     edx, r12d                                                      ; +0x22e, 0x14037994e\nmov     rcx, rsi                                                       ; +0x231, 0x140379951\ncall    MoreVideoOptionsLayer__layerForPage                            ; +0x234, 0x140379954\nmov     r13, rax                                                       ; +0x239, 0x140379959\nlea     rax, [rbp+70h+var_C0]                                          ; +0x23c, 0x14037995c\nmov     [rbp+70h+var_D8], rax                                          ; +0x240, 0x140379960\nxorps   xmm0, xmm0                                                     ; +0x244, 0x140379964\nmovups  [rbp+70h+var_C0], xmm0                                         ; +0x247, 0x140379967\nxor     eax, eax                                                       ; +0x24b, 0x14037996b\nmov     [rbp+70h+var_B0], rax                                          ; +0x24d, 0x14037996d\nmov     [rbp+70h+var_A8], rax                                          ; +0x251, 0x140379971\nmov     r8, rdi                                                        ; +0x255, 0x140379975\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x258, 0x140379978\ninc     r8                                                             ; +0x260, 0x140379980\ncmp     [r15+r8], al                                                   ; +0x263, 0x140379983\njnz     short loc_140379980                                            ; +0x267, 0x140379987\nmov     rdx, r15                                                       ; +0x269, 0x140379989\nlea     rcx, [rbp+70h+var_C0]                                          ; +0x26c, 0x14037998c\ncall    sub_14003A930                                                  ; +0x270, 0x140379990\nnop                                                                    ; +0x275, 0x140379995\nxorps   xmm2, xmm2                                                     ; +0x276, 0x140379996\nmovss   xmm1, cs:dword_140623068                                       ; +0x279, 0x140379999\nlea     rcx, [rbp+70h+var_C8]                                          ; +0x281, 0x1403799a1\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x285, 0x1403799a5\nmov     rbx, rax                                                       ; +0x28b, 0x1403799ab\nlea     rdx, [rbp+70h+var_D0]                                          ; +0x28e, 0x1403799ae\nlea     rcx, [rbp+70h+var_A0]                                          ; +0x292, 0x1403799b2\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x296, 0x1403799b6\nnop                                                                    ; +0x29c, 0x1403799bc\nxor     ecx, ecx                                                       ; +0x29d, 0x1403799bd\nmov     [rsp+170h+var_100], rcx                                        ; +0x29f, 0x1403799bf\nmov     [rsp+170h+var_108], ecx                                        ; +0x2a4, 0x1403799c4\nmov     [rsp+170h+var_110], cl                                         ; +0x2a8, 0x1403799c8\nlea     rcx, qword_14052A4D8                                           ; +0x2ac, 0x1403799cc\nmov     [rsp+170h+var_118], rcx                                        ; +0x2b3, 0x1403799d3\nmov     [rsp+170h+var_120], rbx                                        ; +0x2b8, 0x1403799d8\nmovss   xmm0, cs:dword_1406232D8                                       ; +0x2bd, 0x1403799dd\nmovss   [rsp+170h+var_128], xmm0                                       ; +0x2c5, 0x1403799e5\nmovss   [rsp+170h+var_130], xmm6                                       ; +0x2cb, 0x1403799eb\nmovss   xmm0, cs:dword_140622BA4                                       ; +0x2d1, 0x1403799f1\nmovss   [rsp+170h+var_138], xmm0                                       ; +0x2d9, 0x1403799f9\nmov     [rsp+170h+var_140], r13                                        ; +0x2df, 0x1403799ff\nmov     [rsp+170h+var_148], rsi                                        ; +0x2e4, 0x140379a04\nmov     [rsp+170h+var_150], rax                                        ; +0x2e9, 0x140379a09\nmov     r9, [rsi+220h]                                                 ; +0x2ee, 0x140379a0e\nmovzx   r8d, [rbp+70h+var_F0]                                          ; +0x2f5, 0x140379a15\nlea     rdx, MoreVideoOptionsLayer__onToggle                           ; +0x2fa, 0x140379a1a\nlea     rcx, [rbp+70h+var_C0]                                          ; +0x301, 0x140379a21\ncall    GameToolbox__createToggleButton                                ; +0x305, 0x140379a25\nmov     r15, rax                                                       ; +0x30a, 0x140379a2a\nmov     r8, [rax]                                                      ; +0x30d, 0x140379a2d\nmov     ebx, [rbp+70h+var_E0]                                          ; +0x310, 0x140379a30\nmov     edx, ebx                                                       ; +0x313, 0x140379a33\nmov     rcx, rax                                                       ; +0x315, 0x140379a35\ncall    qword ptr [r8+40h]                                             ; +0x318, 0x140379a38\nmov     rcx, [r15+178h]                                                ; +0x31c, 0x140379a3c\nmov     dword ptr [rcx+174h], 3F800000h                                ; +0x323, 0x140379a43\nmov     rcx, [r15+180h]                                                ; +0x32d, 0x140379a4d\nmov     dword ptr [rcx+174h], 3F800000h                                ; +0x334, 0x140379a54\nmovzx   edx, byte ptr [r15+188h]                                       ; +0x33e, 0x140379a5e\nmov     rcx, r15                                                       ; +0x346, 0x140379a66\ncall    CCMenuItemToggler__toggle                                      ; +0x349, 0x140379a69\nmov     edx, r12d                                                      ; +0x34e, 0x140379a6e\nmov     rcx, rsi                                                       ; +0x351, 0x140379a71\ncall    MoreVideoOptionsLayer__countForPage                            ; +0x354, 0x140379a74\ninc     eax                                                            ; +0x359, 0x140379a79\nmov     [rbp+70h+var_E8], eax                                          ; +0x35b, 0x140379a7b\nmov     edx, r12d                                                      ; +0x35e, 0x140379a7e\nlea     rcx, aPageI; \"page_%i\"                                         ; +0x361, 0x140379a81\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x368, 0x140379a88\nmov     rcx, rax                                                       ; +0x36e, 0x140379a8e\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x371, 0x140379a91\nxorps   xmm0, xmm0                                                     ; +0x377, 0x140379a97\nmovups  xmmword ptr [rbp+70h+Block], xmm0                              ; +0x37a, 0x140379a9a\nxor     ecx, ecx                                                       ; +0x37e, 0x140379a9e\nmov     [rbp+70h+var_88], rcx                                          ; +0x380, 0x140379aa0\nmov     [rbp+70h+var_80], rcx                                          ; +0x384, 0x140379aa4\nmov     r8, rdi                                                        ; +0x388, 0x140379aa8\nnop     dword ptr [rax+rax+00h]                                        ; +0x38b, 0x140379aab\ninc     r8                                                             ; +0x390, 0x140379ab0\ncmp     [rax+r8], cl                                                   ; +0x393, 0x140379ab3\njnz     short loc_140379AB0                                            ; +0x397, 0x140379ab7\nmov     rdx, rax                                                       ; +0x399, 0x140379ab9\nlea     rcx, [rbp+70h+Block]                                           ; +0x39c, 0x140379abc\ncall    sub_14003A930                                                  ; +0x3a0, 0x140379ac0\nnop                                                                    ; +0x3a5, 0x140379ac5\nmov     edx, [rbp+70h+var_E8]                                          ; +0x3a6, 0x140379ac6\nlea     rcx, aI_11; \"%i\"                                               ; +0x3a9, 0x140379ac9\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3b0, 0x140379ad0\nmov     rdx, rax                                                       ; +0x3b6, 0x140379ad6\nlea     r8, [rbp+70h+Block]                                            ; +0x3b9, 0x140379ad9\nmov     rcx, [rsi+290h]                                                ; +0x3bd, 0x140379add\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x3c4, 0x140379ae4\nnop                                                                    ; +0x3ca, 0x140379aea\nmov     rdx, [rbp+70h+var_80]                                          ; +0x3cb, 0x140379aeb\ncmp     rdx, 0Fh                                                       ; +0x3cf, 0x140379aef\njbe     short loc_140379B29                                            ; +0x3d3, 0x140379af3\ninc     rdx                                                            ; +0x3d5, 0x140379af5\nmov     rcx, [rbp+70h+Block]; Block                                    ; +0x3d8, 0x140379af8\nmov     rax, rcx                                                       ; +0x3dc, 0x140379afc\ncmp     rdx, 1000h                                                     ; +0x3df, 0x140379aff\njb      short loc_140379B24                                            ; +0x3e6, 0x140379b06\nadd     rdx, 27h ; '''                                                 ; +0x3e8, 0x140379b08\nmov     rcx, [rcx-8]                                                   ; +0x3ec, 0x140379b0c\nsub     rax, rcx                                                       ; +0x3f0, 0x140379b10\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x3f3, 0x140379b13\ncmp     rax, 1Fh                                                       ; +0x3f7, 0x140379b17\njbe     short loc_140379B24                                            ; +0x3fb, 0x140379b1b\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x3fd, 0x140379b1d\nalign 4                                                                ; +0x403, 0x140379b23\ncall    j_j_free                                                       ; +0x404, 0x140379b24\nmov     edx, r12d                                                      ; +0x409, 0x140379b29\nmov     rcx, rsi                                                       ; +0x40c, 0x140379b2c\ncall    MoreVideoOptionsLayer__objectsForPage                          ; +0x40f, 0x140379b2f\nmov     r12, rax                                                       ; +0x414, 0x140379b34\nmov     rdx, r15                                                       ; +0x417, 0x140379b37\nmov     rcx, rax                                                       ; +0x41a, 0x140379b3a\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x41d, 0x140379b3d\nmov     r8, [r15]                                                      ; +0x423, 0x140379b43\nxor     edx, edx                                                       ; +0x426, 0x140379b46\nmov     rcx, r15                                                       ; +0x428, 0x140379b48\ncall    qword ptr [r8+140h]                                            ; +0x42b, 0x140379b4b\nmov     r8, [r13+0]                                                    ; +0x432, 0x140379b52\nxor     edx, edx                                                       ; +0x436, 0x140379b56\nmov     rcx, r13                                                       ; +0x438, 0x140379b58\ncall    qword ptr [r8+140h]                                            ; +0x43b, 0x140379b5b\ntest    r14, r14                                                       ; +0x442, 0x140379b62\njz      loc_140379D49                                                  ; +0x445, 0x140379b65\nmov     edx, ebx                                                       ; +0x44b, 0x140379b6b\nlea     rcx, aInfoI; \"info_%i\"                                         ; +0x44d, 0x140379b6d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x454, 0x140379b74\nmov     rcx, rax                                                       ; +0x45a, 0x140379b7a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x45d, 0x140379b7d\nxorps   xmm0, xmm0                                                     ; +0x463, 0x140379b83\nmovups  xmmword ptr [rbp+70h+var_78], xmm0                             ; +0x466, 0x140379b86\nxor     ebx, ebx                                                       ; +0x46a, 0x140379b8a\nmov     [rbp+70h+var_68], rbx                                          ; +0x46c, 0x140379b8c\nmov     [rbp+70h+var_60], rbx                                          ; +0x470, 0x140379b90\nmov     r8, rdi                                                        ; +0x474, 0x140379b94\ninc     r8                                                             ; +0x477, 0x140379b97\ncmp     [rax+r8], bl                                                   ; +0x47a, 0x140379b9a\njnz     short loc_140379B97                                            ; +0x47e, 0x140379b9e\nmov     rdx, rax                                                       ; +0x480, 0x140379ba0\nlea     rcx, [rbp+70h+var_78]                                          ; +0x483, 0x140379ba3\ncall    sub_14003A930                                                  ; +0x487, 0x140379ba7\nnop                                                                    ; +0x48c, 0x140379bac\nxorps   xmm0, xmm0                                                     ; +0x48d, 0x140379bad\nmovups  xmmword ptr [rbp+70h+Block], xmm0                              ; +0x490, 0x140379bb0\nmov     [rbp+70h+var_88], rbx                                          ; +0x494, 0x140379bb4\nmov     [rbp+70h+var_80], rbx                                          ; +0x498, 0x140379bb8\nnop     dword ptr [rax+00h]                                            ; +0x49c, 0x140379bbc\ninc     rdi                                                            ; +0x4a0, 0x140379bc0\ncmp     byte ptr [r14+rdi], 0                                          ; +0x4a3, 0x140379bc3\njnz     short loc_140379BC0                                            ; +0x4a8, 0x140379bc8\nmov     r8, rdi                                                        ; +0x4aa, 0x140379bca\nmov     rdx, r14                                                       ; +0x4ad, 0x140379bcd\nlea     rcx, [rbp+70h+Block]                                           ; +0x4b0, 0x140379bd0\ncall    sub_14003A930                                                  ; +0x4b4, 0x140379bd4\nnop                                                                    ; +0x4b9, 0x140379bd9\nlea     rcx, [rbp+70h+Block]                                           ; +0x4ba, 0x140379bda\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x4be, 0x140379bde\nmov     rdx, rax                                                       ; +0x4c4, 0x140379be4\nlea     r8, [rbp+70h+var_78]                                           ; +0x4c7, 0x140379be7\nmov     rcx, [rsi+290h]                                                ; +0x4cb, 0x140379beb\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x4d2, 0x140379bf2\nnop                                                                    ; +0x4d8, 0x140379bf8\nmov     rdx, [rbp+70h+var_80]                                          ; +0x4d9, 0x140379bf9\ncmp     rdx, 0Fh                                                       ; +0x4dd, 0x140379bfd\njbe     short loc_140379C37                                            ; +0x4e1, 0x140379c01\ninc     rdx                                                            ; +0x4e3, 0x140379c03\nmov     rcx, [rbp+70h+Block]; Block                                    ; +0x4e6, 0x140379c06\nmov     rax, rcx                                                       ; +0x4ea, 0x140379c0a\ncmp     rdx, 1000h                                                     ; +0x4ed, 0x140379c0d\njb      short loc_140379C32                                            ; +0x4f4, 0x140379c14\nadd     rdx, 27h ; '''                                                 ; +0x4f6, 0x140379c16\nmov     rcx, [rcx-8]                                                   ; +0x4fa, 0x140379c1a\nsub     rax, rcx                                                       ; +0x4fe, 0x140379c1e\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x501, 0x140379c21\ncmp     rax, 1Fh                                                       ; +0x505, 0x140379c25\njbe     short loc_140379C32                                            ; +0x509, 0x140379c29\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x50b, 0x140379c2b\nalign 2                                                                ; +0x511, 0x140379c31\ncall    j_j_free                                                       ; +0x512, 0x140379c32\nmov     [rbp+70h+var_88], rbx                                          ; +0x517, 0x140379c37\nmov     [rbp+70h+var_80], 0Fh                                          ; +0x51b, 0x140379c3b\nmov     byte ptr [rbp+70h+Block], 0                                    ; +0x523, 0x140379c43\nmov     rdx, [rbp+70h+var_60]                                          ; +0x527, 0x140379c47\ncmp     rdx, 0Fh                                                       ; +0x52b, 0x140379c4b\njbe     short loc_140379C85                                            ; +0x52f, 0x140379c4f\ninc     rdx                                                            ; +0x531, 0x140379c51\nmov     rcx, [rbp+70h+var_78]; Block                                   ; +0x534, 0x140379c54\nmov     rax, rcx                                                       ; +0x538, 0x140379c58\ncmp     rdx, 1000h                                                     ; +0x53b, 0x140379c5b\njb      short loc_140379C80                                            ; +0x542, 0x140379c62\nadd     rdx, 27h ; '''                                                 ; +0x544, 0x140379c64\nmov     rcx, [rcx-8]                                                   ; +0x548, 0x140379c68\nsub     rax, rcx                                                       ; +0x54c, 0x140379c6c\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x54f, 0x140379c6f\ncmp     rax, 1Fh                                                       ; +0x553, 0x140379c73\njbe     short loc_140379C80                                            ; +0x557, 0x140379c77\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x559, 0x140379c79\nalign 20h                                                              ; +0x55f, 0x140379c7f\ncall    j_j_free                                                       ; +0x560, 0x140379c80\nlea     rcx, aGjInfoicon001P; \"GJ_infoIcon_001.png\"                    ; +0x565, 0x140379c85\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x56c, 0x140379c8c\nmov     rbx, rax                                                       ; +0x572, 0x140379c92\nmov     rdx, [rax]                                                     ; +0x575, 0x140379c95\nmovaps  xmm1, xmm6                                                     ; +0x578, 0x140379c98\nmov     rcx, rax                                                       ; +0x57b, 0x140379c9b\ncall    qword ptr [rdx+0A0h]                                           ; +0x57e, 0x140379c9e\nlea     r9, MoreVideoOptionsLayer__onInfo                              ; +0x584, 0x140379ca4\nmov     r8, rsi                                                        ; +0x58b, 0x140379cab\nxor     edx, edx                                                       ; +0x58e, 0x140379cae\nmov     rcx, rbx                                                       ; +0x590, 0x140379cb0\ncall    CCMenuItemSpriteExtra__create                                  ; +0x593, 0x140379cb3\nmov     rdi, rax                                                       ; +0x598, 0x140379cb8\nmov     dword ptr [rax+174h], 40000000h                                ; +0x59b, 0x140379cbb\nmov     r8, [rax]                                                      ; +0x5a5, 0x140379cc5\nmov     edx, [rbp+70h+var_E0]                                          ; +0x5a8, 0x140379cc8\nmov     rcx, rax                                                       ; +0x5ab, 0x140379ccb\ncall    qword ptr [r8+40h]                                             ; +0x5ae, 0x140379cce\nmov     rcx, [rsi+220h]                                                ; +0x5b2, 0x140379cd2\nmov     r8, [rcx]                                                      ; +0x5b9, 0x140379cd9\nmov     rdx, rdi                                                       ; +0x5bc, 0x140379cdc\ncall    qword ptr [r8+1C0h]                                            ; +0x5bf, 0x140379cdf\nmovss   xmm2, cs:dword_1406230F8                                       ; +0x5c6, 0x140379ce6\nmovss   xmm1, cs:dword_140623890                                       ; +0x5ce, 0x140379cee\nlea     rcx, [rbp+70h+var_E8]                                          ; +0x5d6, 0x140379cf6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5da, 0x140379cfa\nmov     rbx, rax                                                       ; +0x5e0, 0x140379d00\nmov     rdx, [r15]                                                     ; +0x5e3, 0x140379d03\nmov     rcx, r15                                                       ; +0x5e6, 0x140379d06\ncall    qword ptr [rdx+0C8h]                                           ; +0x5e9, 0x140379d09\nmov     r8, rbx                                                        ; +0x5ef, 0x140379d0f\nlea     rdx, [rbp+70h+var_D8]                                          ; +0x5f2, 0x140379d12\nmov     rcx, rax                                                       ; +0x5f6, 0x140379d16\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x5f9, 0x140379d19\nmov     rax, [rdi]                                                     ; +0x5ff, 0x140379d1f\nlea     rdx, [rbp+70h+var_D8]                                          ; +0x602, 0x140379d22\nmov     rcx, rdi                                                       ; +0x606, 0x140379d26\ncall    qword ptr [rax+0B8h]                                           ; +0x609, 0x140379d29\nmov     rdx, rdi                                                       ; +0x60f, 0x140379d2f\nmov     rcx, r12                                                       ; +0x612, 0x140379d32\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x615, 0x140379d35\nmov     rax, [rdi]                                                     ; +0x61b, 0x140379d3b\nxor     edx, edx                                                       ; +0x61e, 0x140379d3e\nmov     rcx, rdi                                                       ; +0x620, 0x140379d40\ncall    qword ptr [rax+140h]                                           ; +0x623, 0x140379d43\nmov     rcx, [rbp+70h+var_58]                                          ; +0x629, 0x140379d49\nxor     rcx, rsp; StackCookie                                          ; +0x62d, 0x140379d4d\ncall    __security_check_cookie                                        ; +0x630, 0x140379d50\nmovaps  xmm6, [rsp+170h+var_50]                                        ; +0x635, 0x140379d55\nadd     rsp, 138h                                                      ; +0x63d, 0x140379d5d\npop     r15                                                            ; +0x644, 0x140379d64\npop     r14                                                            ; +0x646, 0x140379d66\npop     r13                                                            ; +0x648, 0x140379d68\npop     r12                                                            ; +0x64a, 0x140379d6a\npop     rdi                                                            ; +0x64c, 0x140379d6c\npop     rsi                                                            ; +0x64d, 0x140379d6d\npop     rbx                                                            ; +0x64e, 0x140379d6e\npop     rbp                                                            ; +0x64f, 0x140379d6f\nretn                                                                   ; +0x650, 0x140379d70", "xrefs": ["MoreVideoOptionsLayer::init @ 0x140378efd", "MoreVideoOptionsLayer::init @ 0x140378f1a", "MoreVideoOptionsLayer::init @ 0x140378f37", "MoreVideoOptionsLayer::init @ 0x140378f54", "<???> @ 0x1406d5c6c"], "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"}