{"type": "func", "start": 9958116, "end": 9958340, "name": "CustomSongLayer::showNewgroundsMessage", "pseudocode": "// \n// CustomSongLayer::showNewgroundsMessage from 0x97f2e4 to 0x97f3c4 (224 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::onSearch @ 0x97f4b0\n// > <???> @ 0x968f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:57:50 +0000\n// \n\n__int64 __fastcall CustomSongLayer::showNewgroundsMessage(CustomSongLayer *this)\n{\n  __int64 v1; // x20\n  _QWORD v3[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v4; // [xsp+30h] [xbp+30h]\n\n  v4 = (void *)operator new(0x120u);\n  v3[1] = 273;\n  v3[0] = 289;\n  *((_BYTE *)memcpy(\n               v4,\n               \"There are thousands of great custom songs for you to choose from Newgrounds. Please do not upload music y\"\n               \"ou did not create. You are only allowed to use songs from artists that have been scouted on Newgrounds. F\"\n               \"or more information, please check the <cy>Audio Guidelines</c>.\",\n               0x111u)\n  + 273) = 0;\n  v1 = FLAlertLayer::create(\n         0,\n         (cocos2d::CCLabelBMFont *)\"Newgrounds Info\",\n         (char *)v3,\n         (ButtonSprite *)\"OK\",\n         nullptr,\n         380.0);\n  if ( (v3[0] & 1) != 0 )\n    operator delete(v4);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1312LL))(v1);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongLayer::showNewgroundsMessage from 0x97f2e4 to 0x97f3c4 (224 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::onSearch @ 0x97f4b0\n; > <???> @ 0x968f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:57:50 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x97f2e4\nMOV             X0, #0x120; unsigned __int64                           ; +0x4, 0x97f2e8\nMOV             X29, SP                                                ; +0x8, 0x97f2ec\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x97f2f0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x97f2f4\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x14, 0x97f2f8\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x18, 0x97f2fc\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x97f300\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x20, 0x97f304\nLDR             X1, [X1]                                               ; +0x24, 0x97f308\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x28, 0x97f30c\nBL              _Znwm; operator new(ulong)                             ; +0x2c, 0x97f310\nSTR             X0, [X29,#0x40+var_10]                                 ; +0x30, 0x97f314\nMOV             X4, #0x111                                             ; +0x34, 0x97f318\nADRP            X1, #aThereAreThousa@PAGE; \"There are thousands of great custom son\"... ; +0x38, 0x97f31c\nMOV             X2, X4; size_t                                         ; +0x3c, 0x97f320\nADD             X1, X1, #aThereAreThousa@PAGEOFF; \"There are thousands of great custom son\"... ; +0x40, 0x97f324\nSTR             X4, [X29,#0x40+var_18]                                 ; +0x44, 0x97f328\nMOV             X4, #0x121                                             ; +0x48, 0x97f32c\nSTR             X4, [X29,#0x40+var_20]                                 ; +0x4c, 0x97f330\nBL              .memcpy                                                ; +0x50, 0x97f334\nSTRB            WZR, [X0,#0x111]                                       ; +0x54, 0x97f338\nLDR             S0, =0x43BE0000                                        ; +0x58, 0x97f33c\nADRP            X1, #aNewgroundsInfo@PAGE; \"Newgrounds Info\"           ; +0x5c, 0x97f340\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0x60, 0x97f344\nMOV             X0, #0                                                 ; +0x64, 0x97f348\nADD             X1, X1, #aNewgroundsInfo@PAGEOFF; \"Newgrounds Info\"    ; +0x68, 0x97f34c\nADD             X2, X29, #0x40+var_20                                  ; +0x6c, 0x97f350\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0x70, 0x97f354\nMOV             X4, #0                                                 ; +0x74, 0x97f358\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x78, 0x97f35c\nMOV             X20, X0                                                ; +0x7c, 0x97f360\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0x80, 0x97f364\nTBZ             W0, #0, loc_97F374                                     ; +0x84, 0x97f368\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x88, 0x97f36c\nBL              _ZdlPv; operator delete(void *)                        ; +0x8c, 0x97f370\nLDR             X1, [X20]                                              ; +0x90, 0x97f374\nMOV             X0, X20                                                ; +0x94, 0x97f378\nLDR             X1, [X1,#0x520]                                        ; +0x98, 0x97f37c\nBLR             X1                                                     ; +0x9c, 0x97f380\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa0, 0x97f384\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xa4, 0x97f388\nLDR             X0, [X19]                                              ; +0xa8, 0x97f38c\nCMP             X1, X0                                                 ; +0xac, 0x97f390\nB.NE            loc_97F3A4                                             ; +0xb0, 0x97f394\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb4, 0x97f398\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0x97f39c\nRET                                                                    ; +0xbc, 0x97f3a0\nBL              .__stack_chk_fail                                      ; +0xc0, 0x97f3a4\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0xc4, 0x97f3a8\nMOV             X19, X0                                                ; +0xc8, 0x97f3ac\nTBZ             W1, #0, loc_97F3BC                                     ; +0xcc, 0x97f3b0\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xd0, 0x97f3b4\nBL              _ZdlPv; operator delete(void *)                        ; +0xd4, 0x97f3b8\nMOV             X0, X19                                                ; +0xd8, 0x97f3bc\nBL              _Unwind_Resume                                         ; +0xdc, 0x97f3c0", "xrefs": ["CustomSongLayer::onSearch @ 0x97f4b0", "<???> @ 0x968f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}