{"type": "func", "start": 6026784, "end": 6027064, "name": "CreateGuidelinesLayer::onInfo", "pseudocode": "// \n// CreateGuidelinesLayer::onInfo from 0x5bf620 to 0x5bf738 (280 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x79ae8\n// > <???> @ 0x11463b8\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 CreateGuidelinesLayer::onInfo(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v2; // x20\n  void *v3; // x0\n  unsigned int *v4; // x2\n  int v5; // w1\n  __int64 v6; // [xsp+30h] [xbp+30h] BYREF\n\n  sub_D153B8(\n    (int)&v6,\n    \"Guidelines can be used to make it easier to syncronize music and gameplay. Create your own custom song guidelines us\"\n    \"ing this interface. Tap on record to start recording, then tap on the screen to create markings. Press on the stop b\"\n    \"utton to stop recording and save your created guidelines.\");\n  v2 = FLAlertLayer::create(0, (__int64)\"Guidelines\", (__int64)&v6);\n  v3 = (void *)(v6 - 24);\n  if ( (__int64 *)(v6 - 24) != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v4 = (unsigned int *)(v6 - 8);\n      do\n        v5 = __ldaxr(v4);\n      while ( __stlxr(v5 - 1, v4) );\n    }\n    else\n    {\n      v5 = *(_DWORD *)(v6 - 8);\n      *(_DWORD *)(v6 - 8) = v5 - 1;\n    }\n    if ( v5 <= 0 )\n      operator delete(v3);\n  }\n  v2->show(v2);\n}", "assembly": "; \n; CreateGuidelinesLayer::onInfo from 0x5bf620 to 0x5bf738 (280 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x79ae8\n; > <???> @ 0x11463b8\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_40]!                                ; +0x0, 0x5bf620\nADRP            X1, #aGuidelinesCanB@PAGE; \"Guidelines can be used to make it easie\"... ; +0x4, 0x5bf624\nMOV             X29, SP                                                ; +0x8, 0x5bf628\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x5bf62c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x5bf630\nADD             X20, X29, #0x40+var_10                                 ; +0x14, 0x5bf634\nMOV             X0, X20; int                                           ; +0x18, 0x5bf638\nADD             X1, X1, #aGuidelinesCanB@PAGEOFF; \"Guidelines can be used to make it easie\"... ; +0x1c, 0x5bf63c\nADD             X2, X29, #0x40+var_20                                  ; +0x20, 0x5bf640\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x5bf644\nLDR             X3, [X3]                                               ; +0x28, 0x5bf648\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x2c, 0x5bf64c\nBL              sub_D153B8                                             ; +0x30, 0x5bf650\nLDR             S0, =0x43C80000                                        ; +0x34, 0x5bf654\nADRP            X1, #aGuidelines@PAGE; \"Guidelines\"                    ; +0x38, 0x5bf658\nADRP            X3, #aOk@PAGE; \"OK\"                                    ; +0x3c, 0x5bf65c\nMOV             X0, #0                                                 ; +0x40, 0x5bf660\nADD             X1, X1, #aGuidelines@PAGEOFF; \"Guidelines\"             ; +0x44, 0x5bf664\nMOV             X2, X20                                                ; +0x48, 0x5bf668\nADD             X3, X3, #aOk@PAGEOFF; \"OK\"                             ; +0x4c, 0x5bf66c\nMOV             X4, #0                                                 ; +0x50, 0x5bf670\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x54, 0x5bf674\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x58, 0x5bf678\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x5c, 0x5bf67c\nMOV             X20, X0                                                ; +0x60, 0x5bf680\nSUB             X0, X2, #0x18; p                                       ; +0x64, 0x5bf684\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x68, 0x5bf688\nCMP             X0, X1                                                 ; +0x6c, 0x5bf68c\nB.NE            loc_5BF6C4                                             ; +0x70, 0x5bf690\nLDR             X1, [X20]                                              ; +0x74, 0x5bf694\nMOV             X0, X20                                                ; +0x78, 0x5bf698\nLDR             X1, [X1,#0x508]                                        ; +0x7c, 0x5bf69c\nBLR             X1                                                     ; +0x80, 0x5bf6a0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x5bf6a4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x88, 0x5bf6a8\nLDR             X0, [X19]                                              ; +0x8c, 0x5bf6ac\nCMP             X1, X0                                                 ; +0x90, 0x5bf6b0\nB.NE            loc_5BF708                                             ; +0x94, 0x5bf6b4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0x5bf6b8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x9c, 0x5bf6bc\nRET                                                                    ; +0xa0, 0x5bf6c0\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xa4, 0x5bf6c4\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xa8, 0x5bf6c8\nCBZ             X1, loc_5BF6F8                                         ; +0xac, 0x5bf6cc\nSUB             X2, X2, #8                                             ; +0xb0, 0x5bf6d0\nLDAXR           W1, [X2]                                               ; +0xb4, 0x5bf6d4\nSUB             W3, W1, #1                                             ; +0xb8, 0x5bf6d8\nSTLXR           W4, W3, [X2]                                           ; +0xbc, 0x5bf6dc\nCBNZ            W4, loc_5BF6D4                                         ; +0xc0, 0x5bf6e0\nCMP             W1, WZR                                                ; +0xc4, 0x5bf6e4\nB.GT            loc_5BF694                                             ; +0xc8, 0x5bf6e8\nADD             X1, X29, #0x40+var_18                                  ; +0xcc, 0x5bf6ec\nBL              j__ZdlPv; operator delete(void *)                      ; +0xd0, 0x5bf6f0\nB               loc_5BF694                                             ; +0xd4, 0x5bf6f4\nLDUR            W1, [X2,#-8]                                           ; +0xd8, 0x5bf6f8\nSUB             W3, W1, #1                                             ; +0xdc, 0x5bf6fc\nSTUR            W3, [X2,#-8]                                           ; +0xe0, 0x5bf700\nB               loc_5BF6E4                                             ; +0xe4, 0x5bf704\nBL              .__stack_chk_fail                                      ; +0xe8, 0x5bf708\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xec, 0x5bf70c\nMOV             X19, X0                                                ; +0xf0, 0x5bf710\nLDR             X0, [X29,#0x40+var_10]                                 ; +0xf4, 0x5bf714\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xf8, 0x5bf718\nSUB             X0, X0, #0x18                                          ; +0xfc, 0x5bf71c\nCMP             X0, X1                                                 ; +0x100, 0x5bf720\nB.EQ            loc_5BF730                                             ; +0x104, 0x5bf724\nADD             X1, X29, #0x40+var_18                                  ; +0x108, 0x5bf728\nBL              sub_4DB3D0                                             ; +0x10c, 0x5bf72c\nMOV             X0, X19                                                ; +0x110, 0x5bf730\nBL              _Unwind_Resume                                         ; +0x114, 0x5bf734", "xrefs": ["<???> @ 0x79ae8", "<???> @ 0x11463b8"], "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"}