{"type": "func", "start": 4166032, "end": 4166398, "name": "CreateGuidelinesLayer::recordingDidStop", "pseudocode": "// \n// CreateGuidelinesLayer::recordingDidStop from 0x3f9190 to 0x3f92fe (366 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:47:19 +0000\n// \n\nint __fastcall CreateGuidelinesLayer::recordingDidStop(CreateGuidelinesLayer *this)\n{\n  int v2; // r5\n  int v3; // r3\n  int v4; // r0\n  int result; // r0\n  int v6; // r0\n  int v7; // r3\n  int v8; // r8\n  int v9; // r9\n  int v10[3]; // [sp+0h] [bp-40h] BYREF\n  int v11[3]; // [sp+Ch] [bp-34h] BYREF\n  int v12[3]; // [sp+18h] [bp-28h] BYREF\n  int v13[3]; // [sp+24h] [bp-1Ch] BYREF\n  int v14[3]; // [sp+30h] [bp-10h] BYREF\n\n  v2 = *((unsigned __int8 *)this + 560);\n  if ( (v2 & 1) != 0 )\n    v3 = *((_DWORD *)this + 141);\n  else\n    v3 = v2 >> 1;\n  v4 = *((_DWORD *)this + 135);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(int, const char *))(*(_DWORD *)v4 + 464))(v4, \"Guidelines saved\");\n    v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));\n    std::string::basic_string(v10, v6 + 324);\n    if ( (v10[0] & 1) != 0 )\n      v7 = v10[1];\n    else\n      v7 = (int)LOBYTE(v10[0]) >> 1;\n    if ( v7 )\n    {\n      std::string::basic_string(v12, (int)v10);\n      std::string::basic_string(v13, (int)this + 560);\n      CreateGuidelinesLayer::getMergedRecordString(v11, (int)this, (cocos2d::CCArray *)v12, (cocos2d::CCArray *)v13);\n      std::string::~string((int)v13);\n      std::string::~string((int)v12);\n      v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));\n      std::string::basic_string(v14, (int)v11);\n      std::string::operator=((unsigned __int8 *)(v9 + 324), (unsigned __int8 *)v14);\n      std::string::~string((int)v14);\n      *(_BYTE *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131)) + 336) = 1;\n      std::string::~string((int)v11);\n    }\n    else\n    {\n      v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));\n      std::string::basic_string(v11, (int)this + 560);\n      std::string::operator=((unsigned __int8 *)(v8 + 324), (unsigned __int8 *)v11);\n      std::string::~string((int)v11);\n      *(_BYTE *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131)) + 336) = 1;\n    }\n    result = std::string::~string((int)v10);\n  }\n  else\n  {\n    result = (*(int (__fastcall **)(int, void *))(*(_DWORD *)v4 + 464))(v4, &unk_B6B226);\n  }\n  if ( *((int *)this + 139) > 1000 )\n    result = (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 135) + 464))(\n               *((_DWORD *)this + 135),\n               \"Maximum limit exceeded\");\n  *((_DWORD *)this + 139) = 0;\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::recordingDidStop from 0x3f9190 to 0x3f92fe (366 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:47:19 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3f9190\nSUB             SP, SP, #0x40                                          ; +0x4, 0x3f9194\nLDR             R6, =(__stack_chk_guard_ptr - 0x3F91A2)                ; +0x6, 0x3f9196\nMOV             R4, R0                                                 ; +0x8, 0x3f9198\nLDRB.W          R5, [R0,#0x230]                                        ; +0xa, 0x3f919a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3f919e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x3f91a0\nLSLS            R1, R5, #0x1F                                          ; +0x12, 0x3f91a2\nLDR             R3, [R6]                                               ; +0x14, 0x3f91a4\nSTR             R3, [SP,#0x40+var_4]                                   ; +0x16, 0x3f91a6\nITE PL                                                                 ; +0x18, 0x3f91a8\nASRPL           R3, R5, #1                                             ; +0x1a, 0x3f91aa\nLDRMI.W         R3, [R0,#0x234]                                        ; +0x1c, 0x3f91ac\nLDR.W           R0, [R0,#0x21C]                                        ; +0x20, 0x3f91b0\nCBNZ            R3, loc_3F91C4                                         ; +0x24, 0x3f91b4\nLDR             R3, [R0]                                               ; +0x26, 0x3f91b6\nLDR             R1, =(unk_B6B226 - 0x3F91C2)                           ; +0x28, 0x3f91b8\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x2a, 0x3f91ba\nADD             R1, PC; unk_B6B226                                     ; +0x2e, 0x3f91be\nBLX             R3                                                     ; +0x30, 0x3f91c0\nB               loc_3F92A4                                             ; +0x32, 0x3f91c2\nLDR             R3, [R0]                                               ; +0x34, 0x3f91c4\nMOV             R7, SP                                                 ; +0x36, 0x3f91c6\nLDR             R1, =(aGuidelinesSave - 0x3F91D4); \"Guidelines saved\"  ; +0x38, 0x3f91c8\nADD             R5, SP, #0x40+var_34                                   ; +0x3a, 0x3f91ca\nADD.W           R10, R4, #0x230                                        ; +0x3c, 0x3f91cc\nADD             R1, PC; \"Guidelines saved\"                             ; +0x40, 0x3f91d0\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x42, 0x3f91d2\nBLX             R3                                                     ; +0x46, 0x3f91d6\nLDR.W           R0, [R4,#0x20C]                                        ; +0x48, 0x3f91d8\nLDR             R3, [R0]                                               ; +0x4c, 0x3f91dc\nLDR             R3, [R3,#0xC]                                          ; +0x4e, 0x3f91de\nBLX             R3                                                     ; +0x50, 0x3f91e0\nADD.W           R1, R0, #0x144                                         ; +0x52, 0x3f91e2\nMOV             R0, SP                                                 ; +0x56, 0x3f91e6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x58, 0x3f91e8\nLDRB.W          R3, [SP,#0x40+var_40]                                  ; +0x5c, 0x3f91ec\nLSLS            R2, R3, #0x1F                                          ; +0x60, 0x3f91f0\nITE PL                                                                 ; +0x62, 0x3f91f2\nASRPL           R3, R3, #1                                             ; +0x64, 0x3f91f4\nLDRMI           R3, [SP,#0x40+var_3C]                                  ; +0x66, 0x3f91f6\nCBNZ            R3, loc_3F9230                                         ; +0x68, 0x3f91f8\nLDR.W           R0, [R4,#0x20C]                                        ; +0x6a, 0x3f91fa\nLDR             R3, [R0]                                               ; +0x6e, 0x3f91fe\nLDR             R3, [R3,#0xC]                                          ; +0x70, 0x3f9200\nBLX             R3                                                     ; +0x72, 0x3f9202\nMOV             R8, R0                                                 ; +0x74, 0x3f9204\nMOV             R1, R10                                                ; +0x76, 0x3f9206\nMOV             R0, R5                                                 ; +0x78, 0x3f9208\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x7a, 0x3f920a\nADD.W           R0, R8, #0x144                                         ; +0x7e, 0x3f920e\nMOV             R1, R5                                                 ; +0x82, 0x3f9212\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x84, 0x3f9214\nMOV             R0, R5                                                 ; +0x88, 0x3f9218\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8a, 0x3f921a\nLDR.W           R0, [R4,#0x20C]                                        ; +0x8e, 0x3f921e\nLDR             R3, [R0]                                               ; +0x92, 0x3f9222\nLDR             R3, [R3,#0xC]                                          ; +0x94, 0x3f9224\nBLX             R3                                                     ; +0x96, 0x3f9226\nMOVS            R3, #1                                                 ; +0x98, 0x3f9228\nSTRB.W          R3, [R0,#0x150]                                        ; +0x9a, 0x3f922a\nB               loc_3F929E                                             ; +0x9e, 0x3f922e\nADD.W           R8, SP, #0x40+var_28                                   ; +0xa0, 0x3f9230\nMOV             R1, SP                                                 ; +0xa4, 0x3f9234\nMOV             R0, R8                                                 ; +0xa6, 0x3f9236\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xa8, 0x3f9238\nADD.W           R9, SP, #0x40+var_1C                                   ; +0xac, 0x3f923c\nMOV             R1, R10                                                ; +0xb0, 0x3f9240\nMOV             R0, R9                                                 ; +0xb2, 0x3f9242\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xb4, 0x3f9244\nMOV             R0, R5                                                 ; +0xb8, 0x3f9248\nMOV             R1, R4                                                 ; +0xba, 0x3f924a\nMOV             R2, R8                                                 ; +0xbc, 0x3f924c\nMOV             R3, R9                                                 ; +0xbe, 0x3f924e\nBL              _ZN21CreateGuidelinesLayer21getMergedRecordStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES6_; CreateGuidelinesLayer::getMergedRecordString(std::string,std::string) ; +0xc0, 0x3f9250\nMOV             R0, R9                                                 ; +0xc4, 0x3f9254\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xc6, 0x3f9256\nMOV             R0, R8                                                 ; +0xca, 0x3f925a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xcc, 0x3f925c\nLDR.W           R0, [R4,#0x20C]                                        ; +0xd0, 0x3f9260\nLDR             R3, [R0]                                               ; +0xd4, 0x3f9264\nLDR             R3, [R3,#0xC]                                          ; +0xd6, 0x3f9266\nBLX             R3                                                     ; +0xd8, 0x3f9268\nADD.W           R8, SP, #0x40+var_10                                   ; +0xda, 0x3f926a\nMOV             R9, R0                                                 ; +0xde, 0x3f926e\nMOV             R1, R5                                                 ; +0xe0, 0x3f9270\nMOV             R0, R8                                                 ; +0xe2, 0x3f9272\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xe4, 0x3f9274\nADD.W           R0, R9, #0x144                                         ; +0xe8, 0x3f9278\nMOV             R1, R8                                                 ; +0xec, 0x3f927c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xee, 0x3f927e\nMOV             R0, R8                                                 ; +0xf2, 0x3f9282\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf4, 0x3f9284\nLDR.W           R0, [R4,#0x20C]                                        ; +0xf8, 0x3f9288\nLDR             R3, [R0]                                               ; +0xfc, 0x3f928c\nLDR             R3, [R3,#0xC]                                          ; +0xfe, 0x3f928e\nBLX             R3                                                     ; +0x100, 0x3f9290\nMOVS            R3, #1                                                 ; +0x102, 0x3f9292\nSTRB.W          R3, [R0,#0x150]                                        ; +0x104, 0x3f9294\nMOV             R0, R5                                                 ; +0x108, 0x3f9298\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x10a, 0x3f929a\nMOV             R0, R7                                                 ; +0x10e, 0x3f929e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x110, 0x3f92a0\nLDR.W           R3, [R4,#0x22C]                                        ; +0x114, 0x3f92a4\nCMP.W           R3, #0x3E8                                             ; +0x118, 0x3f92a8\nBLE             loc_3F92BE                                             ; +0x11c, 0x3f92ac\nLDR.W           R0, [R4,#0x21C]                                        ; +0x11e, 0x3f92ae\nLDR             R1, =(aMaximumLimitEx - 0x3F92BA); \"Maximum limit exceeded\" ; +0x122, 0x3f92b2\nLDR             R3, [R0]                                               ; +0x124, 0x3f92b4\nADD             R1, PC; \"Maximum limit exceeded\"                       ; +0x126, 0x3f92b6\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x128, 0x3f92b8\nBLX             R3                                                     ; +0x12c, 0x3f92bc\nMOVS            R3, #0                                                 ; +0x12e, 0x3f92be\nLDR             R2, [SP,#0x40+var_4]                                   ; +0x130, 0x3f92c0\nSTR.W           R3, [R4,#0x22C]                                        ; +0x132, 0x3f92c2\nLDR             R3, [R6]                                               ; +0x136, 0x3f92c6\nCMP             R2, R3                                                 ; +0x138, 0x3f92c8\nBEQ             loc_3F92F8                                             ; +0x13a, 0x3f92ca\nBLX             __stack_chk_fail                                       ; +0x13c, 0x3f92cc\nB               loc_3F92E6                                             ; +0x140, 0x3f92d0\nMOV             R0, R9                                                 ; +0x142, 0x3f92d2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x144, 0x3f92d4\nB               loc_3F92DA                                             ; +0x148, 0x3f92d8\nMOV             R0, R8                                                 ; +0x14a, 0x3f92da\nB               loc_3F92E8                                             ; +0x14c, 0x3f92dc\nMOV             R0, R8                                                 ; +0x14e, 0x3f92de\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x150, 0x3f92e0\nB               loc_3F92E6                                             ; +0x154, 0x3f92e4\nMOV             R0, R5                                                 ; +0x156, 0x3f92e6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x158, 0x3f92e8\nB               loc_3F92EE                                             ; +0x15c, 0x3f92ec\nMOV             R0, R7                                                 ; +0x15e, 0x3f92ee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x160, 0x3f92f0\nBL              __cxa_end_cleanup                                      ; +0x164, 0x3f92f4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x168, 0x3f92f8\nPOP.W           {R4-R10,PC}                                            ; +0x16a, 0x3f92fa", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}