{"type": "func", "start": 9284704, "end": 9286108, "name": "GJOptionsLayer::addToggleInternal", "pseudocode": "// \n// GJOptionsLayer::addToggleInternal from 0x8dac60 to 0x8db1dc (1404 bytes)\n// \n// 3 xrefs:\n// > GJOptionsLayer::addGVToggle @ 0x8db244\n// > GJOptionsLayer::addToggle @ 0x8dbca0\n// > <???> @ 0xa1b50\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\nvoid GJOptionsLayer::addToggleInternal(GJOptionsLayer *a1, const char *a2, int a3, bool a4, const char *a5)\n{\n  int m_toggleCount; // w0\n  int v8; // w3\n  int v9; // w0\n  float v12; // s0\n  int v13; // w20\n  int m_maxPage; // w2\n  cocos2d::CCLayer *v15; // x24\n  cocos2d::CCMenu *m_buttonMenu; // x28\n  float m_maxLabelScale; // s9\n  float m_maxLabelWidth; // s8\n  CCMenuItemToggler *ToggleButton; // x25\n  void *v20; // x0\n  std::_Hashtable<int, std::pair<const int, CCMenuItemToggler *>, std::allocator<std::pair<const int, CCMenuItemToggler *>>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>>::size_type M_bucket_count; // x6\n  std::_Hashtable<int, std::pair<const int, CCMenuItemToggler *>, std::allocator<std::pair<const int, CCMenuItemToggler *>>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>>::__bucket_type v22; // x7\n  std::__detail::_Hash_node_base *M_nxt; // x4\n  int v24; // w0\n  char *v25; // x0\n  cocos2d::CCArray *v26; // x20\n  cocos2d::CCDictionary *m_values; // x24\n  const std::string *v28; // x1\n  cocos2d::CCObject *v29; // x26\n  char *v30; // x0\n  char *v31; // x0\n  void *v32; // x26\n  cocos2d::CCSprite *v33; // x24\n  CCMenuItemSpriteExtra *v34; // x24\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19\n  __int64 v36; // x21\n  unsigned int *v37; // x1\n  int v38; // w2\n  __int64 v39; // x0\n  unsigned int *v40; // x1\n  int v41; // w2\n  unsigned int *v42; // x24\n  int v43; // w0\n  unsigned __int64 v44; // [xsp+A8h] [xbp+78h]\n  cocos2d::CCPoint v46; // [xsp+D8h] [xbp+A8h] BYREF\n  cocos2d::CCPoint v47; // [xsp+E0h] [xbp+B0h] BYREF\n  cocos2d::CCPoint v48; // [xsp+E8h] [xbp+B8h] BYREF\n  char *v49; // [xsp+F0h] [xbp+C0h] BYREF\n  cocos2d::SEL_MenuHandler v50; // 0:x2.16\n\n  m_toggleCount = a1->m_toggleCount;\n  v8 = m_toggleCount + 1;\n  v9 = m_toggleCount / a1->m_togglesPerPage;\n  a1->m_toggleCount = v8;\n  v12 = floorf((float)v9);\n  if ( v12 <= 0.0 )\n    v13 = 0;\n  else\n    v13 = (int)v12;\n  m_maxPage = a1->m_maxPage;\n  if ( v13 >= m_maxPage )\n    m_maxPage = v13;\n  a1->m_maxPage = m_maxPage;\n  GJOptionsLayer::nextPosition(a1, v13);\n  v15 = GJOptionsLayer::layerForPage(a1, v13);\n  sub_D153B8((int)&v48, (char *)a2);\n  m_buttonMenu = a1->m_buttonMenu;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, &v46);\n  m_maxLabelScale = a1->m_maxLabelScale;\n  m_maxLabelWidth = a1->m_maxLabelWidth;\n  cocos2d::CCPoint::CCPoint(&v47, 8.0, 0.0);\n  ToggleButton = GameToolbox::createToggleButton(\n                   0.8,\n                   m_maxLabelScale,\n                   m_maxLabelWidth,\n                   (__int64)&v48,\n                   (void (__cdecl *)(cocos2d::CCObject *))GJOptionsLayer::onToggle,\n                   0,\n                   a4,\n                   m_buttonMenu,\n                   (const cocos2d::CCPoint *)&v49,\n                   a1,\n                   v15,\n                   (float *)&v47,\n                   (__int64)\"bigFont.fnt\",\n                   0,\n                   0,\n                   nullptr);\n  v20 = (void *)(*(_QWORD *)&v48 - 24LL);\n  if ( (__int64 *)(*(_QWORD *)&v48 - 24LL) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v37 = (unsigned int *)(*(_QWORD *)&v48 - 8LL);\n      do\n        v38 = __ldaxr(v37);\n      while ( __stlxr(v38 - 1, v37) );\n    }\n    else\n    {\n      v38 = *(_DWORD *)(*(_QWORD *)&v48 - 8LL);\n      *(_DWORD *)(*(_QWORD *)&v48 - 8LL) = v38 - 1;\n    }\n    if ( v38 <= 0 )\n      operator delete(v20);\n  }\n  ToggleButton->setTag(ToggleButton, a3);\n  CCMenuItemToggler::setSizeMult(ToggleButton, 1.0);\n  M_bucket_count = a1->m_toggleButtons._M_h._M_bucket_count;\n  v22 = a1->m_toggleButtons._M_h._M_buckets[a3 % M_bucket_count];\n  if ( !v22 )\n    goto LABEL_25;\n  M_nxt = v22->_M_nxt;\n  if ( a3 != LODWORD(v22->_M_nxt[1]._M_nxt) )\n  {\n    while ( M_nxt->_M_nxt )\n    {\n      v24 = (int)M_nxt->_M_nxt[1]._M_nxt;\n      v22 = M_nxt;\n      if ( a3 % M_bucket_count != v24 % M_bucket_count )\n        break;\n      M_nxt = M_nxt->_M_nxt;\n      if ( a3 == v24 )\n        goto LABEL_11;\n    }\n    goto LABEL_25;\n  }\nLABEL_11:\n  if ( !v22->_M_nxt )\n  {\nLABEL_25:\n    v44 = a3 % M_bucket_count;\n    v39 = operator new(0x18u);\n    *(_QWORD *)v39 = 0;\n    *(_DWORD *)(v39 + 8) = a3;\n    *(_QWORD *)(v39 + 16) = 0;\n    v25 = std::_Hashtable<int,std::pair<int const,CCMenuItemToggler *>,std::allocator<std::pair<int const,CCMenuItemToggler *>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_M_insert_unique_node(\n            (char **)&a1->m_toggleButtons,\n            v44,\n            a3,\n            (char *)v39)\n        + 16;\n    goto LABEL_13;\n  }\n  v25 = (char *)&v22->_M_nxt[2];\nLABEL_13:\n  *(_QWORD *)v25 = ToggleButton;\n  GJOptionsLayer::incrementCountForPage(a1, v13);\n  v26 = GJOptionsLayer::objectsForPage(a1, v13);\n  cocos2d::CCArray::addObject(v26, ToggleButton);\n  ToggleButton->setVisible(ToggleButton, 0);\n  v15->setVisible(v15, 0);\n  if ( a5 && *a5 )\n  {\n    m_values = a1->m_values;\n    sub_D153B8((int)&v48, (char *)a5);\n    v29 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v48, v28);\n    v30 = (char *)GJOptionsLayer::infoKey(a1, a3);\n    sub_D153B8((int)&v49, v30);\n    cocos2d::CCDictionary::setObject((int)m_values, v29);\n    v31 = v49 - 24;\n    if ( v49 - 24 != (char *)&qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v40 = (unsigned int *)(v49 - 8);\n        do\n          v41 = __ldaxr(v40);\n        while ( __stlxr(v41 - 1, v40) );\n      }\n      else\n      {\n        v41 = *((_DWORD *)v49 - 2);\n        *((_DWORD *)v49 - 2) = v41 - 1;\n      }\n      if ( v41 <= 0 )\n        operator delete(v31);\n    }\n    v32 = (void *)(*(_QWORD *)&v48 - 24LL);\n    if ( (__int64 *)(*(_QWORD *)&v48 - 24LL) != &qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v42 = (unsigned int *)(*(_QWORD *)&v48 - 8LL);\n        do\n          v43 = __ldaxr(v42);\n        while ( __stlxr(v43 - 1, v42) );\n      }\n      else\n      {\n        v43 = *(_DWORD *)(*(_QWORD *)&v48 - 8LL);\n        *(_DWORD *)(*(_QWORD *)&v48 - 8LL) = v43 - 1;\n      }\n      if ( v43 <= 0 )\n        operator delete(v32);\n    }\n    v33 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_infoIcon_001.png\");\n    v33->setScale(v33, 0.5);\n    v50.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;\n    v50.adj = (size_t)GJOptionsLayer::onInfo;\n    v34 = CCMenuItemSpriteExtra::create(v33, nullptr, v50);\n    CCMenuItemSpriteExtra::setSizeMult(v34, 2.0);\n    v34->setTag(v34, a3);\n    a1->m_buttonMenu->addChild(a1->m_buttonMenu, v34);\n    setPosition = v34->setPosition;\n    v36 = (__int64)ToggleButton->getPosition(ToggleButton);\n    cocos2d::CCPoint::CCPoint(&v48, -18.0, 16.0);\n    cocos2d::CCPoint::operator+(&v49, v36, &v48);\n    setPosition(v34, (const cocos2d::CCPoint *)&v49);\n    cocos2d::CCArray::addObject(v26, v34);\n    v34->setVisible(v34, 0);\n  }\n}", "assembly": "; \n; GJOptionsLayer::addToggleInternal from 0x8dac60 to 0x8db1dc (1404 bytes)\n; \n; 3 xrefs:\n; > GJOptionsLayer::addGVToggle @ 0x8db244\n; > GJOptionsLayer::addToggle @ 0x8dbca0\n; > <???> @ 0xa1b50\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\nSUB             SP, SP, #0x100                                         ; +0x0, 0x8dac60\nSTP             X29, X30, [SP,#0x100+var_D0]                           ; +0x4, 0x8dac64\nADD             X29, SP, #0x30                                         ; +0x8, 0x8dac68\nSTP             X19, X20, [SP,#0x100+var_C0]                           ; +0xc, 0x8dac6c\nSTP             D8, D9, [SP,#0x100+var_70]                             ; +0x10, 0x8dac70\nMOV             X19, X0                                                ; +0x14, 0x8dac74\nUXTB            W0, W3                                                 ; +0x18, 0x8dac78\nSTP             X21, X22, [SP,#0x100+var_B0]                           ; +0x1c, 0x8dac7c\nSTR             W0, [X29,#0xD0+var_48]                                 ; +0x20, 0x8dac80\nMOV             W21, W2                                                ; +0x24, 0x8dac84\nLDR             W0, [X19,#0x3D0]                                       ; +0x28, 0x8dac88\nLDR             W2, [X19,#0x3CC]                                       ; +0x2c, 0x8dac8c\nADD             W3, W0, #1                                             ; +0x30, 0x8dac90\nSTP             X27, X28, [SP,#0x100+var_80]                           ; +0x34, 0x8dac94\nSDIV            W0, W0, W2                                             ; +0x38, 0x8dac98\nMOV             X28, X1                                                ; +0x3c, 0x8dac9c\nADRP            X1, #__stack_chk_guard_ptr@PAGE                        ; +0x40, 0x8daca0\nSTP             X25, X26, [SP,#0x100+var_90]                           ; +0x44, 0x8daca4\nSTP             X23, X24, [SP,#0x100+var_A0]                           ; +0x48, 0x8daca8\nLDR             X1, [X1,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x4c, 0x8dacac\nMOV             X26, X4                                                ; +0x50, 0x8dacb0\nSTR             W3, [X19,#0x3D0]                                       ; +0x54, 0x8dacb4\nLDR             X1, [X1]                                               ; +0x58, 0x8dacb8\nSTR             X1, [X29,#0xD0+var_8]                                  ; +0x5c, 0x8dacbc\nSCVTF           S0, W0                                                 ; +0x60, 0x8dacc0\nFRINTM          S0, S0                                                 ; +0x64, 0x8dacc4\nFCMPE           S0, #0.0                                               ; +0x68, 0x8dacc8\nB.LE            loc_8DB04C                                             ; +0x6c, 0x8daccc\nFCVTZS          W20, S0                                                ; +0x70, 0x8dacd0\nLDR             W2, [X19,#0x3D4]                                       ; +0x74, 0x8dacd4\nADD             X25, X29, #0xD0+var_28                                 ; +0x78, 0x8dacd8\nMOV             X8, X25                                                ; +0x7c, 0x8dacdc\nMOV             X0, X19; this                                          ; +0x80, 0x8dace0\nCMP             W20, W2                                                ; +0x84, 0x8dace4\nMOV             W1, W20; int                                           ; +0x88, 0x8dace8\nCSEL            W2, W20, W2, GE                                        ; +0x8c, 0x8dacec\nSTR             W2, [X19,#0x3D4]                                       ; +0x90, 0x8dacf0\nADD             X2, X29, #0xD0+var_30                                  ; +0x94, 0x8dacf4\nSTR             X2, [X29,#0xD0+var_50]                                 ; +0x98, 0x8dacf8\nMOV             X27, X2                                                ; +0x9c, 0x8dacfc\nADD             X23, X29, #0xD0+var_18                                 ; +0xa0, 0x8dad00\nBL              _ZN14GJOptionsLayer12nextPositionEi; GJOptionsLayer::nextPosition(int) ; +0xa4, 0x8dad04\nADD             X22, X29, #0xD0+var_10                                 ; +0xa8, 0x8dad08\nMOV             W1, W20; int                                           ; +0xac, 0x8dad0c\nMOV             X0, X19; this                                          ; +0xb0, 0x8dad10\nBL              _ZN14GJOptionsLayer12layerForPageEi; GJOptionsLayer::layerForPage(int) ; +0xb4, 0x8dad14\nMOV             X24, X0                                                ; +0xb8, 0x8dad18\nMOV             X1, X28; char *                                        ; +0xbc, 0x8dad1c\nMOV             X0, X23; int                                           ; +0xc0, 0x8dad20\nMOV             X2, X27                                                ; +0xc4, 0x8dad24\nBL              sub_D153B8                                             ; +0xc8, 0x8dad28\nLDR             X28, [X19,#0x220]                                      ; +0xcc, 0x8dad2c\nMOV             X1, X25; cocos2d::CCPoint *                            ; +0xd0, 0x8dad30\nADRP            X25, #_ZN14GJOptionsLayer8onToggleEPN7cocos2d8CCObjectE_ptr@PAGE ; +0xd4, 0x8dad34\nMOV             X0, X22; this                                          ; +0xd8, 0x8dad38\nLDR             X25, [X25,#_ZN14GJOptionsLayer8onToggleEPN7cocos2d8CCObjectE_ptr@PAGEOFF]; GJOptionsLayer::onToggle(cocos2d::CCObject *) ... ; +0xdc, 0x8dad3c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xe0, 0x8dad40\nFMOV            S1, WZR; float                                         ; +0xe4, 0x8dad44\nADD             X27, X29, #0xD0+var_20                                 ; +0xe8, 0x8dad48\nLDR             S9, [X19,#0x3D8]                                       ; +0xec, 0x8dad4c\nMOV             X0, X27; this                                          ; +0xf0, 0x8dad50\nLDR             S8, [X19,#0x3DC]                                       ; +0xf4, 0x8dad54\nFMOV            S0, #8.0; float                                        ; +0xf8, 0x8dad58\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xfc, 0x8dad5c\nADRP            X0, #aBigfontFnt@PAGE; \"bigFont.fnt\"                   ; +0x100, 0x8dad60\nLDRB            W3, [X29,#0xD0+var_48]                                 ; +0x104, 0x8dad64\nFMOV            S1, S9                                                 ; +0x108, 0x8dad68\nADD             X0, X0, #aBigfontFnt@PAGEOFF; \"bigFont.fnt\"            ; +0x10c, 0x8dad6c\nFMOV            S2, S8                                                 ; +0x110, 0x8dad70\nSTR             X0, [SP,#0x100+var_F8]                                 ; +0x114, 0x8dad74\nLDR             S0, =0x3F4CCCCD                                        ; +0x118, 0x8dad78\nSTR             X27, [SP,#0x100+var_100]                               ; +0x11c, 0x8dad7c\nMOV             X0, X23                                                ; +0x120, 0x8dad80\nSTRB            WZR, [SP,#0x100+var_F0]                                ; +0x124, 0x8dad84\nSTR             WZR, [SP,#0x100+var_E8]                                ; +0x128, 0x8dad88\nMOV             X1, X25                                                ; +0x12c, 0x8dad8c\nSTR             XZR, [SP,#0x100+var_E0]                                ; +0x130, 0x8dad90\nMOV             X2, #0                                                 ; +0x134, 0x8dad94\nMOV             X4, X28                                                ; +0x138, 0x8dad98\nMOV             X5, X22                                                ; +0x13c, 0x8dad9c\nMOV             X6, X19                                                ; +0x140, 0x8dada0\nMOV             X7, X24                                                ; +0x144, 0x8dada4\nBL              _ZN11GameToolbox18createToggleButtonESsMN7cocos2d8CCObjectEFvPS1_EbPNS0_6CCMenuENS0_7CCPointEPNS0_6CCNodeES9_fffS7_PKcbiPNS0_7CCArrayE; GameToolbox::createToggleButton(std::string,void (cocos2d::CCObject::*)(cocos2d::CCObject*),bool,cocos2d::CCMenu *,cocos2d::CCPoint,cocos2d::CCNode *,cocos2d::CCNode *,float,float,float,cocos2d::CCPoint,char const*,bool,int,cocos2d::CCArray *) ; +0x148, 0x8dada8\nADRP            X28, #off_122EFE8@PAGE                                 ; +0x14c, 0x8dadac\nLDR             X1, [X29,#0xD0+var_18]                                 ; +0x150, 0x8dadb0\nMOV             X25, X0                                                ; +0x154, 0x8dadb4\nSUB             X0, X1, #0x18; p                                       ; +0x158, 0x8dadb8\nLDR             X2, [X28,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0x15c, 0x8dadbc\nCMP             X0, X2                                                 ; +0x160, 0x8dadc0\nB.NE            loc_8DB054                                             ; +0x164, 0x8dadc4\nLDR             X3, [X25]                                              ; +0x168, 0x8dadc8\nSXTW            X2, W21                                                ; +0x16c, 0x8dadcc\nMOV             W1, W21                                                ; +0x170, 0x8dadd0\nSTR             X2, [X29,#0xD0+var_48]                                 ; +0x174, 0x8dadd4\nMOV             X0, X25                                                ; +0x178, 0x8dadd8\nLDR             X3, [X3,#0x48]                                         ; +0x17c, 0x8daddc\nBLR             X3                                                     ; +0x180, 0x8dade0\nMOV             X0, X25; this                                          ; +0x184, 0x8dade4\nFMOV            S0, #1.0; float                                        ; +0x188, 0x8dade8\nBL              _ZN17CCMenuItemToggler11setSizeMultEf; CCMenuItemToggler::setSizeMult(float) ; +0x18c, 0x8dadec\nLDR             X6, [X19,#0x410]                                       ; +0x190, 0x8dadf0\nLDR             X2, [X29,#0xD0+var_48]                                 ; +0x194, 0x8dadf4\nLDR             X0, [X19,#0x408]                                       ; +0x198, 0x8dadf8\nUDIV            X1, X2, X6                                             ; +0x19c, 0x8dadfc\nMSUB            X1, X1, X6, X2                                         ; +0x1a0, 0x8dae00\nLDR             X7, [X0,X1,LSL#3]                                      ; +0x1a4, 0x8dae04\nCBZ             X7, loc_8DB088                                         ; +0x1a8, 0x8dae08\nLDR             X4, [X7]                                               ; +0x1ac, 0x8dae0c\nLDR             W0, [X4,#8]                                            ; +0x1b0, 0x8dae10\nCMP             W21, W0                                                ; +0x1b4, 0x8dae14\nB.EQ            loc_8DAE4C                                             ; +0x1b8, 0x8dae18\nLDR             X3, [X4]                                               ; +0x1bc, 0x8dae1c\nCBZ             X3, loc_8DB088                                         ; +0x1c0, 0x8dae20\nLDR             W0, [X3,#8]                                            ; +0x1c4, 0x8dae24\nMOV             X7, X4                                                 ; +0x1c8, 0x8dae28\nSXTW            X5, W0                                                 ; +0x1cc, 0x8dae2c\nUDIV            X4, X5, X6                                             ; +0x1d0, 0x8dae30\nMSUB            X4, X4, X6, X5                                         ; +0x1d4, 0x8dae34\nCMP             X1, X4                                                 ; +0x1d8, 0x8dae38\nB.NE            loc_8DB088                                             ; +0x1dc, 0x8dae3c\nCMP             W21, W0                                                ; +0x1e0, 0x8dae40\nMOV             X4, X3                                                 ; +0x1e4, 0x8dae44\nB.NE            loc_8DAE1C                                             ; +0x1e8, 0x8dae48\nLDR             X0, [X7]                                               ; +0x1ec, 0x8dae4c\nCBZ             X0, loc_8DB088                                         ; +0x1f0, 0x8dae50\nADD             X0, X0, #0x10                                          ; +0x1f4, 0x8dae54\nMOV             W1, W20; int                                           ; +0x1f8, 0x8dae58\nSTR             X25, [X0]                                              ; +0x1fc, 0x8dae5c\nMOV             X0, X19; this                                          ; +0x200, 0x8dae60\nBL              _ZN14GJOptionsLayer21incrementCountForPageEi; GJOptionsLayer::incrementCountForPage(int) ; +0x204, 0x8dae64\nMOV             W1, W20; int                                           ; +0x208, 0x8dae68\nMOV             X0, X19; this                                          ; +0x20c, 0x8dae6c\nBL              _ZN14GJOptionsLayer14objectsForPageEi; GJOptionsLayer::objectsForPage(int) ; +0x210, 0x8dae70\nMOV             X20, X0                                                ; +0x214, 0x8dae74\nMOV             X1, X25; cocos2d::CCObject *                           ; +0x218, 0x8dae78\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x21c, 0x8dae7c\nLDR             X2, [X25]                                              ; +0x220, 0x8dae80\nMOV             X0, X25                                                ; +0x224, 0x8dae84\nMOV             W1, #0                                                 ; +0x228, 0x8dae88\nLDR             X2, [X2,#0x148]                                        ; +0x22c, 0x8dae8c\nBLR             X2                                                     ; +0x230, 0x8dae90\nLDR             X2, [X24]                                              ; +0x234, 0x8dae94\nMOV             X0, X24                                                ; +0x238, 0x8dae98\nMOV             W1, #0                                                 ; +0x23c, 0x8dae9c\nLDR             X2, [X2,#0x148]                                        ; +0x240, 0x8daea0\nBLR             X2                                                     ; +0x244, 0x8daea4\nCBZ             X26, loc_8DAEB4                                        ; +0x248, 0x8daea8\nLDRB            W0, [X26]                                              ; +0x24c, 0x8daeac\nCBNZ            W0, loc_8DAEF8                                         ; +0x250, 0x8daeb0\nADRP            X0, #__stack_chk_guard_ptr@PAGE                        ; +0x254, 0x8daeb4\nLDR             X2, [X29,#0xD0+var_8]                                  ; +0x258, 0x8daeb8\nLDR             X1, [X0,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x25c, 0x8daebc\nMOV             X0, X25                                                ; +0x260, 0x8daec0\nLDR             X1, [X1]                                               ; +0x264, 0x8daec4\nCMP             X2, X1                                                 ; +0x268, 0x8daec8\nB.NE            loc_8DB1A8                                             ; +0x26c, 0x8daecc\nSUB             SP, X29, #0x30 ; '0'                                   ; +0x270, 0x8daed0\nLDP             D8, D9, [SP,#0x100+var_70]                             ; +0x274, 0x8daed4\nLDP             X19, X20, [SP,#0x100+var_C0]                           ; +0x278, 0x8daed8\nLDP             X21, X22, [SP,#0x100+var_B0]                           ; +0x27c, 0x8daedc\nLDP             X23, X24, [SP,#0x100+var_A0]                           ; +0x280, 0x8daee0\nLDP             X25, X26, [SP,#0x100+var_90]                           ; +0x284, 0x8daee4\nLDP             X27, X28, [SP,#0x100+var_80]                           ; +0x288, 0x8daee8\nLDP             X29, X30, [SP,#0x100+var_D0]                           ; +0x28c, 0x8daeec\nADD             SP, SP, #0x100                                         ; +0x290, 0x8daef0\nRET                                                                    ; +0x294, 0x8daef4\nMOV             X0, X23; int                                           ; +0x298, 0x8daef8\nMOV             X1, X26; char *                                        ; +0x29c, 0x8daefc\nADD             X2, X29, #0xD0+var_38                                  ; +0x2a0, 0x8daf00\nLDR             X24, [X19,#0x3E0]                                      ; +0x2a4, 0x8daf04\nBL              sub_D153B8                                             ; +0x2a8, 0x8daf08\nMOV             X0, X23                                                ; +0x2ac, 0x8daf0c\nBL              _ZN7cocos2d8CCString6createERKSs; cocos2d::CCString::create(std::string const&) ; +0x2b0, 0x8daf10\nMOV             X26, X0                                                ; +0x2b4, 0x8daf14\nMOV             W1, W21; int                                           ; +0x2b8, 0x8daf18\nMOV             X0, X19; this                                          ; +0x2bc, 0x8daf1c\nBL              _ZN14GJOptionsLayer7infoKeyEi; GJOptionsLayer::infoKey(int) ; +0x2c0, 0x8daf20\nLDR             X2, [X29,#0xD0+var_50]                                 ; +0x2c4, 0x8daf24\nMOV             X1, X0; char *                                         ; +0x2c8, 0x8daf28\nMOV             X0, X22; int                                           ; +0x2cc, 0x8daf2c\nBL              sub_D153B8                                             ; +0x2d0, 0x8daf30\nMOV             X0, X24; int                                           ; +0x2d4, 0x8daf34\nMOV             X1, X26; this                                          ; +0x2d8, 0x8daf38\nMOV             X2, X22                                                ; +0x2dc, 0x8daf3c\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x2e0, 0x8daf40\nLDR             X1, [X29,#0xD0+var_10]; char *                         ; +0x2e4, 0x8daf44\nLDR             X2, [X28,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0x2e8, 0x8daf48\nSUB             X0, X1, #0x18; p                                       ; +0x2ec, 0x8daf4c\nCMP             X0, X2                                                 ; +0x2f0, 0x8daf50\nB.NE            loc_8DB0C8                                             ; +0x2f4, 0x8daf54\nLDR             X24, [X29,#0xD0+var_18]                                ; +0x2f8, 0x8daf58\nLDR             X28, [X28,#off_122EFE8@PAGEOFF]; qword_124B6B0         ; +0x2fc, 0x8daf5c\nSUB             X26, X24, #0x18                                        ; +0x300, 0x8daf60\nCMP             X26, X28                                               ; +0x304, 0x8daf64\nB.NE            loc_8DB0FC                                             ; +0x308, 0x8daf68\nADRL            X0, aGjInfoicon001P; \"GJ_infoIcon_001.png\"             ; +0x30c, 0x8daf6c\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x314, 0x8daf74\nLDR             X1, [X0]                                               ; +0x318, 0x8daf78\nFMOV            S0, #0.5                                               ; +0x31c, 0x8daf7c\nMOV             X24, X0                                                ; +0x320, 0x8daf80\nLDR             X1, [X1,#0xA0]                                         ; +0x324, 0x8daf84\nBLR             X1                                                     ; +0x328, 0x8daf88\nADRP            X3, #_ZN14GJOptionsLayer6onInfoEPN7cocos2d8CCObjectE_ptr@PAGE ; +0x32c, 0x8daf8c\nMOV             X4, #0                                                 ; +0x330, 0x8daf90\nMOV             X2, X19                                                ; +0x334, 0x8daf94\nMOV             X1, #0                                                 ; +0x338, 0x8daf98\nMOV             X0, X24                                                ; +0x33c, 0x8daf9c\nLDR             X3, [X3,#_ZN14GJOptionsLayer6onInfoEPN7cocos2d8CCObjectE_ptr@PAGEOFF]; GJOptionsLayer::onInfo(cocos2d::CCObject *) ... ; +0x340, 0x8dafa0\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x344, 0x8dafa4\nMOV             X24, X0                                                ; +0x348, 0x8dafa8\nFMOV            S0, #2.0; float                                        ; +0x34c, 0x8dafac\nBL              _ZN21CCMenuItemSpriteExtra11setSizeMultEf; CCMenuItemSpriteExtra::setSizeMult(float) ; +0x350, 0x8dafb0\nLDR             X2, [X24]                                              ; +0x354, 0x8dafb4\nMOV             X0, X24                                                ; +0x358, 0x8dafb8\nMOV             W1, W21                                                ; +0x35c, 0x8dafbc\nLDR             X2, [X2,#0x48]                                         ; +0x360, 0x8dafc0\nBLR             X2                                                     ; +0x364, 0x8dafc4\nLDR             X2, [X19,#0x220]                                       ; +0x368, 0x8dafc8\nMOV             X1, X24                                                ; +0x36c, 0x8dafcc\nMOV             X0, X2                                                 ; +0x370, 0x8dafd0\nLDR             X2, [X2]                                               ; +0x374, 0x8dafd4\nLDR             X2, [X2,#0x1B8]                                        ; +0x378, 0x8dafd8\nBLR             X2                                                     ; +0x37c, 0x8dafdc\nLDR             X1, [X25]                                              ; +0x380, 0x8dafe0\nMOV             X0, X25                                                ; +0x384, 0x8dafe4\nLDR             X2, [X24]                                              ; +0x388, 0x8dafe8\nLDR             X1, [X1,#0xC0]                                         ; +0x38c, 0x8dafec\nLDR             X19, [X2,#0xB8]                                        ; +0x390, 0x8daff0\nBLR             X1                                                     ; +0x394, 0x8daff4\nMOV             X21, X0                                                ; +0x398, 0x8daff8\nFMOV            S0, #-18.0; float                                      ; +0x39c, 0x8daffc\nMOV             X0, X23; this                                          ; +0x3a0, 0x8db000\nFMOV            S1, #16.0; float                                       ; +0x3a4, 0x8db004\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x3a8, 0x8db008\nMOV             X8, X22                                                ; +0x3ac, 0x8db00c\nMOV             X0, X21                                                ; +0x3b0, 0x8db010\nMOV             X1, X23                                                ; +0x3b4, 0x8db014\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x3b8, 0x8db018\nMOV             X0, X24                                                ; +0x3bc, 0x8db01c\nMOV             X1, X22                                                ; +0x3c0, 0x8db020\nBLR             X19                                                    ; +0x3c4, 0x8db024\nMOV             X0, X20; this                                          ; +0x3c8, 0x8db028\nMOV             X1, X24; cocos2d::CCObject *                           ; +0x3cc, 0x8db02c\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3d0, 0x8db030\nLDR             X2, [X24]                                              ; +0x3d4, 0x8db034\nMOV             X0, X24                                                ; +0x3d8, 0x8db038\nMOV             W1, #0                                                 ; +0x3dc, 0x8db03c\nLDR             X2, [X2,#0x148]                                        ; +0x3e0, 0x8db040\nBLR             X2                                                     ; +0x3e4, 0x8db044\nB               loc_8DAEB4                                             ; +0x3e8, 0x8db048\nMOV             W20, #0                                                ; +0x3ec, 0x8db04c\nB               loc_8DACD4                                             ; +0x3f0, 0x8db050\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x3f4, 0x8db054\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x3f8, 0x8db058\nCBZ             X2, loc_8DB134                                         ; +0x3fc, 0x8db05c\nSUB             X1, X1, #8                                             ; +0x400, 0x8db060\nLDAXR           W2, [X1]                                               ; +0x404, 0x8db064\nSUB             W3, W2, #1                                             ; +0x408, 0x8db068\nSTLXR           W4, W3, [X1]                                           ; +0x40c, 0x8db06c\nCBNZ            W4, loc_8DB064                                         ; +0x410, 0x8db070\nCMP             W2, WZR                                                ; +0x414, 0x8db074\nB.GT            loc_8DADC8                                             ; +0x418, 0x8db078\nMOV             X1, X22                                                ; +0x41c, 0x8db07c\nBL              j__ZdlPv; operator delete(void *)                      ; +0x420, 0x8db080\nB               loc_8DADC8                                             ; +0x424, 0x8db084\nMOV             X0, #0x18; unsigned __int64                            ; +0x428, 0x8db088\nSTR             X1, [X29,#0xD0+var_58]                                 ; +0x42c, 0x8db08c\nSTR             X2, [X29,#0xD0+var_48]                                 ; +0x430, 0x8db090\nBL              _Znwm; operator new(ulong)                             ; +0x434, 0x8db094\nMOV             X4, X0                                                 ; +0x438, 0x8db098\nMOV             X5, X0                                                 ; +0x43c, 0x8db09c\nLDR             X1, [X29,#0xD0+var_58]                                 ; +0x440, 0x8db0a0\nLDR             X2, [X29,#0xD0+var_48]                                 ; +0x444, 0x8db0a4\nADD             X0, X19, #0x408                                        ; +0x448, 0x8db0a8\nSTR             XZR, [X4],#8                                           ; +0x44c, 0x8db0ac\nMOV             X3, X5                                                 ; +0x450, 0x8db0b0\nSTR             W21, [X5,#8]                                           ; +0x454, 0x8db0b4\nSTR             XZR, [X4,#8]                                           ; +0x458, 0x8db0b8\nBL              _ZNSt10_HashtableIiSt4pairIKiP17CCMenuItemTogglerESaIS4_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEmmPNS6_10_Hash_nodeIS4_Lb0EEE; std::_Hashtable<int,std::pair<int const,CCMenuItemToggler *>,std::allocator<std::pair<int const,CCMenuItemToggler *>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::_M_insert_unique_node(ulong,ulong,std::__detail::_Hash_node<std::pair<int const,CCMenuItemToggler *>,false> *) ; +0x45c, 0x8db0bc\nADD             X0, X0, #0x10                                          ; +0x460, 0x8db0c0\nB               loc_8DAE58                                             ; +0x464, 0x8db0c4\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x468, 0x8db0c8\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x46c, 0x8db0cc\nCBZ             X2, loc_8DB144                                         ; +0x470, 0x8db0d0\nSUB             X1, X1, #8                                             ; +0x474, 0x8db0d4\nLDAXR           W2, [X1]                                               ; +0x478, 0x8db0d8\nSUB             W3, W2, #1                                             ; +0x47c, 0x8db0dc\nSTLXR           W4, W3, [X1]                                           ; +0x480, 0x8db0e0\nCBNZ            W4, loc_8DB0D8                                         ; +0x484, 0x8db0e4\nCMP             W2, WZR                                                ; +0x488, 0x8db0e8\nB.GT            loc_8DAF58                                             ; +0x48c, 0x8db0ec\nMOV             X1, X27                                                ; +0x490, 0x8db0f0\nBL              j__ZdlPv; operator delete(void *)                      ; +0x494, 0x8db0f4\nB               loc_8DAF58                                             ; +0x498, 0x8db0f8\nADRP            X0, #pthread_create_ptr_0@PAGE                         ; +0x49c, 0x8db0fc\nLDR             X0, [X0,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x4a0, 0x8db100\nCBZ             X0, loc_8DB154                                         ; +0x4a4, 0x8db104\nSUB             X24, X24, #8                                           ; +0x4a8, 0x8db108\nLDAXR           W0, [X24]                                              ; +0x4ac, 0x8db10c\nSUB             W1, W0, #1                                             ; +0x4b0, 0x8db110\nSTLXR           W2, W1, [X24]                                          ; +0x4b4, 0x8db114\nCBNZ            W2, loc_8DB10C                                         ; +0x4b8, 0x8db118\nCMP             W0, WZR                                                ; +0x4bc, 0x8db11c\nB.GT            loc_8DAF6C                                             ; +0x4c0, 0x8db120\nMOV             X0, X26; p                                             ; +0x4c4, 0x8db124\nMOV             X1, X22                                                ; +0x4c8, 0x8db128\nBL              j__ZdlPv; operator delete(void *)                      ; +0x4cc, 0x8db12c\nB               loc_8DAF6C                                             ; +0x4d0, 0x8db130\nLDUR            W2, [X1,#-8]                                           ; +0x4d4, 0x8db134\nSUB             W3, W2, #1                                             ; +0x4d8, 0x8db138\nSTUR            W3, [X1,#-8]                                           ; +0x4dc, 0x8db13c\nB               loc_8DB074                                             ; +0x4e0, 0x8db140\nLDUR            W2, [X1,#-8]                                           ; +0x4e4, 0x8db144\nSUB             W3, W2, #1                                             ; +0x4e8, 0x8db148\nSTUR            W3, [X1,#-8]                                           ; +0x4ec, 0x8db14c\nB               loc_8DB0E8                                             ; +0x4f0, 0x8db150\nLDUR            W0, [X24,#-8]                                          ; +0x4f4, 0x8db154\nSUB             W1, W0, #1                                             ; +0x4f8, 0x8db158\nSTUR            W1, [X24,#-8]                                          ; +0x4fc, 0x8db15c\nB               loc_8DB11C                                             ; +0x500, 0x8db160\nMOV             X19, X0                                                ; +0x504, 0x8db164\nLDR             X0, [X29,#0xD0+var_10]                                 ; +0x508, 0x8db168\nLDR             X1, [X28,#0xFE8]                                       ; +0x50c, 0x8db16c\nSUB             X0, X0, #0x18                                          ; +0x510, 0x8db170\nCMP             X0, X1                                                 ; +0x514, 0x8db174\nB.EQ            loc_8DB184                                             ; +0x518, 0x8db178\nMOV             X1, X27                                                ; +0x51c, 0x8db17c\nBL              sub_4DC698                                             ; +0x520, 0x8db180\nLDR             X0, [X29,#0xD0+var_18]                                 ; +0x524, 0x8db184\nLDR             X28, [X28,#0xFE8]                                      ; +0x528, 0x8db188\nSUB             X0, X0, #0x18                                          ; +0x52c, 0x8db18c\nCMP             X0, X28                                                ; +0x530, 0x8db190\nB.EQ            loc_8DB1A0                                             ; +0x534, 0x8db194\nMOV             X1, X27                                                ; +0x538, 0x8db198\nBL              sub_4DC698                                             ; +0x53c, 0x8db19c\nMOV             X0, X19                                                ; +0x540, 0x8db1a0\nBL              _Unwind_Resume                                         ; +0x544, 0x8db1a4\nBL              .__stack_chk_fail                                      ; +0x548, 0x8db1a8\nMOV             X19, X0                                                ; +0x54c, 0x8db1ac\nB               loc_8DB184                                             ; +0x550, 0x8db1b0\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x554, 0x8db1b4\nMOV             X19, X0                                                ; +0x558, 0x8db1b8\nLDR             X0, [X29,#0xD0+var_18]                                 ; +0x55c, 0x8db1bc\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x560, 0x8db1c0\nSUB             X0, X0, #0x18                                          ; +0x564, 0x8db1c4\nCMP             X0, X1                                                 ; +0x568, 0x8db1c8\nB.EQ            loc_8DB1A0                                             ; +0x56c, 0x8db1cc\nMOV             X1, X22                                                ; +0x570, 0x8db1d0\nBL              sub_4DC698                                             ; +0x574, 0x8db1d4\nB               loc_8DB1A0                                             ; +0x578, 0x8db1d8", "xrefs": ["GJOptionsLayer::addGVToggle @ 0x8db244", "GJOptionsLayer::addToggle @ 0x8dbca0", "<???> @ 0xa1b50"], "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"}