{"type": "func", "start": 7200612, "end": 7200904, "name": "EditLevelLayer::onGuidelines", "pseudocode": "// \n// EditLevelLayer::onGuidelines from 0x6ddf64 to 0x6de088 (292 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x5e410\n// > EditLevelLayer::init @ 0x6e11b8\n// > <???> @ 0x122b0d0\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 EditLevelLayer::onGuidelines(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // w21\n  FLAlertLayer *v3; // x20\n  void *v4; // x0\n  unsigned int *v5; // x2\n  int v6; // w1\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = (int)a1;\n  sub_D153B8(\n    (int)&v7,\n    \"Hateful, abusive, or otherwise inappropriate content, whether it is in the level, name, or description may lead to <\"\n    \"cr>deletion</c>. The same applies to levels abusing cheats or exploits. Stealing assets from other levels is <co>dis\"\n    \"couraged</c> and may stop a level from being rated depending on the context, severity, credit, and more. Levels veri\"\n    \"fied with hacks cannot be rated.\\n\"\n    \"<cy>These guidelines and their enforcement are entirely at RobTop's discretion.</c>\");\n  v3 = FLAlertLayer::create(v2 + 416, (__int64)\"Upload Guidelines\", (__int64)&v7);\n  v4 = (void *)(v7 - 24);\n  if ( (__int64 *)(v7 - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v5 = (unsigned int *)(v7 - 8);\n      do\n        v6 = __ldaxr(v5);\n      while ( __stlxr(v6 - 1, v5) );\n    }\n    else\n    {\n      v6 = *(_DWORD *)(v7 - 8);\n      *(_DWORD *)(v7 - 8) = v6 - 1;\n    }\n    if ( v6 <= 0 )\n      operator delete(v4);\n  }\n  v3->show(v3);\n}", "assembly": "; \n; EditLevelLayer::onGuidelines from 0x6ddf64 to 0x6de088 (292 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x5e410\n; > EditLevelLayer::init @ 0x6e11b8\n; > <???> @ 0x122b0d0\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_50]!                                ; +0x0, 0x6ddf64\nADRP            X1, #aHatefulAbusive@PAGE; \"Hateful, abusive, or otherwise inapprop\"... ; +0x4, 0x6ddf68\nMOV             X29, SP                                                ; +0x8, 0x6ddf6c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x6ddf70\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x6ddf74\nADD             X20, X29, #0x50+var_10                                 ; +0x14, 0x6ddf78\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x6ddf7c\nADD             X1, X1, #aHatefulAbusive@PAGEOFF; \"Hateful, abusive, or otherwise inapprop\"... ; +0x1c, 0x6ddf80\nMOV             X21, X0                                                ; +0x20, 0x6ddf84\nADD             X2, X29, #0x50+var_20                                  ; +0x24, 0x6ddf88\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x6ddf8c\nMOV             X0, X20; int                                           ; +0x2c, 0x6ddf90\nLDR             X3, [X3]                                               ; +0x30, 0x6ddf94\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x34, 0x6ddf98\nBL              sub_D153B8                                             ; +0x38, 0x6ddf9c\nLDR             S0, =0x43BE0000                                        ; +0x3c, 0x6ddfa0\nADRP            X1, #aUploadGuidelin@PAGE; \"Upload Guidelines\"         ; +0x40, 0x6ddfa4\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0x44, 0x6ddfa8\nADD             X0, X21, #0x1A0                                        ; +0x48, 0x6ddfac\nADD             X1, X1, #aUploadGuidelin@PAGEOFF; \"Upload Guidelines\"  ; +0x4c, 0x6ddfb0\nMOV             X2, X20                                                ; +0x50, 0x6ddfb4\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0x54, 0x6ddfb8\nMOV             X4, #0                                                 ; +0x58, 0x6ddfbc\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x5c, 0x6ddfc0\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x60, 0x6ddfc4\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x64, 0x6ddfc8\nMOV             X20, X0                                                ; +0x68, 0x6ddfcc\nSUB             X0, X2, #0x18; p                                       ; +0x6c, 0x6ddfd0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x70, 0x6ddfd4\nCMP             X0, X1                                                 ; +0x74, 0x6ddfd8\nB.NE            loc_6DE014                                             ; +0x78, 0x6ddfdc\nLDR             X1, [X20]                                              ; +0x7c, 0x6ddfe0\nMOV             X0, X20                                                ; +0x80, 0x6ddfe4\nLDR             X1, [X1,#0x508]                                        ; +0x84, 0x6ddfe8\nBLR             X1                                                     ; +0x88, 0x6ddfec\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x8c, 0x6ddff0\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x90, 0x6ddff4\nLDR             X0, [X19]                                              ; +0x94, 0x6ddff8\nCMP             X1, X0                                                 ; +0x98, 0x6ddffc\nB.NE            loc_6DE058                                             ; +0x9c, 0x6de000\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa0, 0x6de004\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xa4, 0x6de008\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa8, 0x6de00c\nRET                                                                    ; +0xac, 0x6de010\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xb0, 0x6de014\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb4, 0x6de018\nCBZ             X1, loc_6DE048                                         ; +0xb8, 0x6de01c\nSUB             X2, X2, #8                                             ; +0xbc, 0x6de020\nLDAXR           W1, [X2]                                               ; +0xc0, 0x6de024\nSUB             W3, W1, #1                                             ; +0xc4, 0x6de028\nSTLXR           W4, W3, [X2]                                           ; +0xc8, 0x6de02c\nCBNZ            W4, loc_6DE024                                         ; +0xcc, 0x6de030\nCMP             W1, WZR                                                ; +0xd0, 0x6de034\nB.GT            loc_6DDFE0                                             ; +0xd4, 0x6de038\nADD             X1, X29, #0x50+var_18                                  ; +0xd8, 0x6de03c\nBL              j__ZdlPv; operator delete(void *)                      ; +0xdc, 0x6de040\nB               loc_6DDFE0                                             ; +0xe0, 0x6de044\nLDUR            W1, [X2,#-8]                                           ; +0xe4, 0x6de048\nSUB             W3, W1, #1                                             ; +0xe8, 0x6de04c\nSTUR            W3, [X2,#-8]                                           ; +0xec, 0x6de050\nB               loc_6DE034                                             ; +0xf0, 0x6de054\nBL              .__stack_chk_fail                                      ; +0xf4, 0x6de058\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xf8, 0x6de05c\nMOV             X19, X0                                                ; +0xfc, 0x6de060\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x100, 0x6de064\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x104, 0x6de068\nSUB             X0, X0, #0x18                                          ; +0x108, 0x6de06c\nCMP             X0, X1                                                 ; +0x10c, 0x6de070\nB.EQ            loc_6DE080                                             ; +0x110, 0x6de074\nADD             X1, X29, #0x50+var_18                                  ; +0x114, 0x6de078\nBL              sub_4DB8F0                                             ; +0x118, 0x6de07c\nMOV             X0, X19                                                ; +0x11c, 0x6de080\nBL              _Unwind_Resume                                         ; +0x120, 0x6de084", "xrefs": ["<???> @ 0x5e410", "EditLevelLayer::init @ 0x6e11b8", "<???> @ 0x122b0d0"], "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"}