{"type": "func", "start": 9210564, "end": 9211060, "name": "GJOptionsLayer::onInfo", "pseudocode": "// \n// GJOptionsLayer::onInfo from 0x8c8ac4 to 0x8c8cb4 (496 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xafc50\n// > GJOptionsLayer::addToggleInternal @ 0x8dafa0\n// > <???> @ 0x122e150\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::onInfo(GJOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w1\n  GJOptionsLayer *v4; // x0\n  cocos2d::CCDictionary *m_values; // x19\n  char *v6; // x0\n  cocos2d::CCString *v7; // x0\n  char *CString; // x23\n  char *v9; // x0\n  FLAlertLayer *v10; // x20\n  char *v11; // x0\n  unsigned int *v12; // x1\n  int v13; // w2\n  unsigned int *v14; // x1\n  int v15; // w2\n  std::string v16; // [xsp+50h] [xbp+50h] BYREF\n\n  v3 = a2->getTag(a2);\n  v4 = a1;\n  m_values = a1->m_values;\n  v6 = (char *)GJOptionsLayer::infoKey(v4, v3);\n  sub_D153B8((int)&v16, v6);\n  v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_values, &v16);\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  v9 = (char *)v16.m_data.m_data - 24;\n  if ( (__int64 *)v16.m_data.m_data - 3 != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v12 = (unsigned int *)((char *)v16.m_data.m_data - 8);\n      do\n        v13 = __ldaxr(v12);\n      while ( __stlxr(v13 - 1, v12) );\n    }\n    else\n    {\n      v13 = *((_DWORD *)v16.m_data.m_data - 2);\n      *((_DWORD *)v16.m_data.m_data - 2) = v13 - 1;\n    }\n    if ( v13 <= 0 )\n      operator delete(v9);\n  }\n  sub_D153B8((int)&v16, CString);\n  v10 = FLAlertLayer::create(0, (__int64)\"Info\", (__int64)&v16);\n  v11 = (char *)v16.m_data.m_data - 24;\n  if ( (__int64 *)v16.m_data.m_data - 3 != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v14 = (unsigned int *)((char *)v16.m_data.m_data - 8);\n      do\n        v15 = __ldaxr(v14);\n      while ( __stlxr(v15 - 1, v14) );\n    }\n    else\n    {\n      v15 = *((_DWORD *)v16.m_data.m_data - 2);\n      *((_DWORD *)v16.m_data.m_data - 2) = v15 - 1;\n    }\n    if ( v15 <= 0 )\n      operator delete(v11);\n  }\n  v10->show(v10);\n}", "assembly": "; \n; GJOptionsLayer::onInfo from 0x8c8ac4 to 0x8c8cb4 (496 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xafc50\n; > GJOptionsLayer::addToggleInternal @ 0x8dafa0\n; > <???> @ 0x122e150\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x8c8ac4\nMOV             X29, SP                                                ; +0x4, 0x8c8ac8\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0x8c8acc\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8c8ad0\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0x8c8ad4\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x14, 0x8c8ad8\nMOV             X19, X0                                                ; +0x18, 0x8c8adc\nMOV             X0, X1                                                 ; +0x1c, 0x8c8ae0\nLDR             X2, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x8c8ae4\nADD             X20, X29, #0x60+var_10                                 ; +0x24, 0x8c8ae8\nLDR             X1, [X1]                                               ; +0x28, 0x8c8aec\nADD             X22, X29, #0x60+var_20                                 ; +0x2c, 0x8c8af0\nLDR             X2, [X2]                                               ; +0x30, 0x8c8af4\nLDR             X1, [X1,#0x40]                                         ; +0x34, 0x8c8af8\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x38, 0x8c8afc\nBLR             X1                                                     ; +0x3c, 0x8c8b00\nMOV             W1, W0; int                                            ; +0x40, 0x8c8b04\nMOV             X0, X19; this                                          ; +0x44, 0x8c8b08\nLDR             X19, [X19,#0x3E0]                                      ; +0x48, 0x8c8b0c\nBL              _ZN14GJOptionsLayer7infoKeyEi; GJOptionsLayer::infoKey(int) ; +0x4c, 0x8c8b10\nMOV             X1, X0; char *                                         ; +0x50, 0x8c8b14\nMOV             X2, X22                                                ; +0x54, 0x8c8b18\nMOV             X0, X20; int                                           ; +0x58, 0x8c8b1c\nBL              sub_D153B8                                             ; +0x5c, 0x8c8b20\nMOV             X0, X19                                                ; +0x60, 0x8c8b24\nMOV             X1, X20                                                ; +0x64, 0x8c8b28\nBL              _ZN7cocos2d12CCDictionary11valueForKeyERKSs; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x68, 0x8c8b2c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x6c, 0x8c8b30\nADRP            X19, #off_122EFE8@PAGE                                 ; +0x70, 0x8c8b34\nLDR             X1, [X29,#0x60+var_10]                                 ; +0x74, 0x8c8b38\nMOV             X23, X0                                                ; +0x78, 0x8c8b3c\nSUB             X0, X1, #0x18; p                                       ; +0x7c, 0x8c8b40\nLDR             X2, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0x80, 0x8c8b44\nCMP             X0, X2                                                 ; +0x84, 0x8c8b48\nB.NE            loc_8C8BD4                                             ; +0x88, 0x8c8b4c\nMOV             X0, X20; int                                           ; +0x8c, 0x8c8b50\nMOV             X1, X23; char *                                        ; +0x90, 0x8c8b54\nMOV             X2, X22                                                ; +0x94, 0x8c8b58\nBL              sub_D153B8                                             ; +0x98, 0x8c8b5c\nLDR             S0, =0x43960000                                        ; +0x9c, 0x8c8b60\nADRP            X1, #(aCmsKekrecipien_0+0x10)@PAGE; \"Info\"             ; +0xa0, 0x8c8b64\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0xa4, 0x8c8b68\nMOV             X0, #0                                                 ; +0xa8, 0x8c8b6c\nADD             X1, X1, #(aCmsKekrecipien_0+0x10)@PAGEOFF; \"Info\"      ; +0xac, 0x8c8b70\nMOV             X2, X20                                                ; +0xb0, 0x8c8b74\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0xb4, 0x8c8b78\nMOV             X4, #0                                                 ; +0xb8, 0x8c8b7c\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xbc, 0x8c8b80\nLDR             X1, [X29,#0x60+var_10]                                 ; +0xc0, 0x8c8b84\nMOV             X20, X0                                                ; +0xc4, 0x8c8b88\nLDR             X19, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0         ; +0xc8, 0x8c8b8c\nSUB             X0, X1, #0x18; p                                       ; +0xcc, 0x8c8b90\nCMP             X0, X19                                                ; +0xd0, 0x8c8b94\nB.NE            loc_8C8C08                                             ; +0xd4, 0x8c8b98\nLDR             X1, [X20]                                              ; +0xd8, 0x8c8b9c\nMOV             X0, X20                                                ; +0xdc, 0x8c8ba0\nLDR             X1, [X1,#0x508]                                        ; +0xe0, 0x8c8ba4\nBLR             X1                                                     ; +0xe4, 0x8c8ba8\nLDR             X0, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe8, 0x8c8bac\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xec, 0x8c8bb0\nLDR             X0, [X0]                                               ; +0xf0, 0x8c8bb4\nCMP             X1, X0                                                 ; +0xf4, 0x8c8bb8\nB.NE            loc_8C8C5C                                             ; +0xf8, 0x8c8bbc\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xfc, 0x8c8bc0\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x100, 0x8c8bc4\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x104, 0x8c8bc8\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x108, 0x8c8bcc\nRET                                                                    ; +0x10c, 0x8c8bd0\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x110, 0x8c8bd4\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x114, 0x8c8bd8\nCBZ             X2, loc_8C8C4C                                         ; +0x118, 0x8c8bdc\nSUB             X1, X1, #8                                             ; +0x11c, 0x8c8be0\nLDAXR           W2, [X1]                                               ; +0x120, 0x8c8be4\nSUB             W3, W2, #1                                             ; +0x124, 0x8c8be8\nSTLXR           W4, W3, [X1]                                           ; +0x128, 0x8c8bec\nCBNZ            W4, loc_8C8BE4                                         ; +0x12c, 0x8c8bf0\nCMP             W2, WZR                                                ; +0x130, 0x8c8bf4\nB.GT            loc_8C8B50                                             ; +0x134, 0x8c8bf8\nADD             X1, X29, #0x60+var_18                                  ; +0x138, 0x8c8bfc\nBL              j__ZdlPv; operator delete(void *)                      ; +0x13c, 0x8c8c00\nB               loc_8C8B50                                             ; +0x140, 0x8c8c04\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x144, 0x8c8c08\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x148, 0x8c8c0c\nCBZ             X2, loc_8C8C3C                                         ; +0x14c, 0x8c8c10\nSUB             X1, X1, #8                                             ; +0x150, 0x8c8c14\nLDAXR           W2, [X1]                                               ; +0x154, 0x8c8c18\nSUB             W3, W2, #1                                             ; +0x158, 0x8c8c1c\nSTLXR           W4, W3, [X1]                                           ; +0x15c, 0x8c8c20\nCBNZ            W4, loc_8C8C18                                         ; +0x160, 0x8c8c24\nCMP             W2, WZR                                                ; +0x164, 0x8c8c28\nB.GT            loc_8C8B9C                                             ; +0x168, 0x8c8c2c\nADD             X1, X29, #0x60+var_18                                  ; +0x16c, 0x8c8c30\nBL              j__ZdlPv; operator delete(void *)                      ; +0x170, 0x8c8c34\nB               loc_8C8B9C                                             ; +0x174, 0x8c8c38\nLDUR            W2, [X1,#-8]                                           ; +0x178, 0x8c8c3c\nSUB             W3, W2, #1                                             ; +0x17c, 0x8c8c40\nSTUR            W3, [X1,#-8]                                           ; +0x180, 0x8c8c44\nB               loc_8C8C28                                             ; +0x184, 0x8c8c48\nLDUR            W2, [X1,#-8]                                           ; +0x188, 0x8c8c4c\nSUB             W3, W2, #1                                             ; +0x18c, 0x8c8c50\nSTUR            W3, [X1,#-8]                                           ; +0x190, 0x8c8c54\nB               loc_8C8BF4                                             ; +0x194, 0x8c8c58\nBL              .__stack_chk_fail                                      ; +0x198, 0x8c8c5c\nMOV             X20, X0                                                ; +0x19c, 0x8c8c60\nLDR             X0, [X29,#0x60+var_10]                                 ; +0x1a0, 0x8c8c64\nLDR             X19, [X19,#0xFE8]                                      ; +0x1a4, 0x8c8c68\nSUB             X0, X0, #0x18                                          ; +0x1a8, 0x8c8c6c\nCMP             X0, X19                                                ; +0x1ac, 0x8c8c70\nB.EQ            loc_8C8C80                                             ; +0x1b0, 0x8c8c74\nADD             X1, X29, #0x60+var_18                                  ; +0x1b4, 0x8c8c78\nBL              sub_4DC698                                             ; +0x1b8, 0x8c8c7c\nMOV             X0, X20                                                ; +0x1bc, 0x8c8c80\nBL              _Unwind_Resume                                         ; +0x1c0, 0x8c8c84\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x1c4, 0x8c8c88\nMOV             X19, X0                                                ; +0x1c8, 0x8c8c8c\nLDR             X0, [X29,#0x60+var_10]                                 ; +0x1cc, 0x8c8c90\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x1d0, 0x8c8c94\nSUB             X0, X0, #0x18                                          ; +0x1d4, 0x8c8c98\nCMP             X0, X1                                                 ; +0x1d8, 0x8c8c9c\nB.EQ            loc_8C8CAC                                             ; +0x1dc, 0x8c8ca0\nADD             X1, X29, #0x60+var_18                                  ; +0x1e0, 0x8c8ca4\nBL              sub_4DC698                                             ; +0x1e4, 0x8c8ca8\nMOV             X0, X19                                                ; +0x1e8, 0x8c8cac\nBL              _Unwind_Resume                                         ; +0x1ec, 0x8c8cb0", "xrefs": ["<???> @ 0xafc50", "GJOptionsLayer::addToggleInternal @ 0x8dafa0", "<???> @ 0x122e150"], "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"}