{"type": "func", "start": 4295481512, "end": 4295481964, "name": "CreateGuidelinesLayer::getMergedRecordString", "pseudocode": "// \n// CreateGuidelinesLayer::getMergedRecordString from 0x10007d8a8 to 0x10007da6c (452 bytes)\n// \n// 1 xrefs:\n// > CreateGuidelinesLayer::recordingDidStop @ 0x10007d6e0\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\n__int64 __usercall CreateGuidelinesLayer::getMergedRecordString@<X0>(\n        __int64 a1@<X0>,\n        __int64 a2@<X1>,\n        __int64 a3@<X2>,\n        std::string *a4@<X8>)\n{\n  cocos2d::CCArray *v7; // x22\n  cocos2d::CCArray *v8; // x23\n  int v9; // w25\n  cocos2d::CCArray *v10; // x20\n  float v11; // s8\n  cocos2d::CCString *v12; // x0\n  unsigned int v13; // w0\n  float v14; // s0\n  cocos2d::CCString *v15; // x0\n  float v16; // s1\n  cocos2d::CCArray *v17; // x24\n  __int64 v18; // x0\n  __int64 v19; // x0\n  unsigned int i; // w21\n  __int64 result; // x0\n  cocos2d::CCString *v22; // x0\n  float v23; // s0\n  cocos2d::CCString *v24; // x0\n  const char *CString; // x0\n\n  v7 = (cocos2d::CCArray *)sub_10007DA8C(a2);\n  v8 = (cocos2d::CCArray *)sub_10007DA8C(a3);\n  v9 = -1;\n  v10 = (cocos2d::CCArray *)sub_10024A15C(v8);\n  while ( 1 )\n  {\n    v11 = 10000000.0;\n    if ( (unsigned int)sub_10024A36C(v7) >= 2 )\n    {\n      v12 = cocos2d::CCArray::stringAtIndex(v7, 0);\n      v11 = cocos2d::CCString::floatValue(v12);\n    }\n    v13 = sub_10024A36C(v8);\n    v14 = 10000000.0;\n    if ( v13 >= 2 )\n    {\n      v15 = cocos2d::CCArray::stringAtIndex(v8, 0);\n      v14 = cocos2d::CCString::floatValue(v15);\n    }\n    v16 = v11 <= v14 ? v11 : v14;\n    if ( v16 == 10000000.0 )\n      break;\n    v17 = v7;\n    if ( v16 != v11 )\n    {\n      v17 = v8;\n      if ( v16 != v14 )\n        break;\n    }\n    v18 = sub_10024A388(v17, 0);\n    sub_10024A2D0(v10, v18);\n    v19 = sub_10024A388(v17, 1);\n    sub_10024A2D0(v10, v19);\n    sub_10024A44C(v17, 0, 1);\n    sub_10024A44C(v17, 0, 1);\n    if ( (unsigned int)++v9 >= 0x3E8 )\n    {\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 672) + 912LL))(\n        *(_QWORD *)(a1 + 672),\n        \"Maximum limit exceeded\");\n      break;\n    }\n  }\n  sub_100009900(a4, \"\");\n  for ( i = 0; ; i += 2 )\n  {\n    result = sub_10024A36C(v10);\n    if ( i >= (unsigned int)result )\n      break;\n    v22 = cocos2d::CCArray::stringAtIndex(v10, i);\n    v23 = cocos2d::CCString::floatValue(v22);\n    v24 = (cocos2d::CCString *)sub_100268F4C(\"%0.2f~0~\", v23);\n    CString = cocos2d::CCString::getCString(v24);\n    std::string::append(a4, CString);\n  }\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::getMergedRecordString from 0x10007d8a8 to 0x10007da6c (452 bytes)\n; \n; 1 xrefs:\n; > CreateGuidelinesLayer::recordingDidStop @ 0x10007d6e0\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x10007d8a8\nSTP             D9, D8, [SP,#0x60+var_50]                              ; +0x4, 0x10007d8ac\nSTP             X26, X25, [SP,#0x60+var_40]                            ; +0x8, 0x10007d8b0\nSTP             X24, X23, [SP,#0x60+var_30]                            ; +0xc, 0x10007d8b4\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x10, 0x10007d8b8\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x14, 0x10007d8bc\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x18, 0x10007d8c0\nADD             X29, SP, #0x60                                         ; +0x1c, 0x10007d8c4\nMOV             X20, X2                                                ; +0x20, 0x10007d8c8\nMOV             X21, X0                                                ; +0x24, 0x10007d8cc\nMOV             X19, X8                                                ; +0x28, 0x10007d8d0\nMOV             X0, X1                                                 ; +0x2c, 0x10007d8d4\nBL              sub_10007DA8C                                          ; +0x30, 0x10007d8d8\nMOV             X22, X0                                                ; +0x34, 0x10007d8dc\nMOV             X0, X20                                                ; +0x38, 0x10007d8e0\nBL              sub_10007DA8C                                          ; +0x3c, 0x10007d8e4\nMOV             X23, X0                                                ; +0x40, 0x10007d8e8\nMOV             W25, #0xFFFFFFFF                                       ; +0x44, 0x10007d8ec\nBL              sub_10024A15C                                          ; +0x48, 0x10007d8f0\nMOV             X20, X0                                                ; +0x4c, 0x10007d8f4\nADRP            X8, #dword_100636560@PAGE                              ; +0x50, 0x10007d8f8\nLDR             S9, [X8,#dword_100636560@PAGEOFF]                      ; +0x54, 0x10007d8fc\nMOV             X0, X22                                                ; +0x58, 0x10007d900\nBL              sub_10024A36C                                          ; +0x5c, 0x10007d904\nFMOV            S8, S9                                                 ; +0x60, 0x10007d908\nCMP             W0, #2                                                 ; +0x64, 0x10007d90c\nB.CC            loc_10007D928                                          ; +0x68, 0x10007d910\nMOV             X0, X22                                                ; +0x6c, 0x10007d914\nMOV             W1, #0                                                 ; +0x70, 0x10007d918\nBL              cocos2d__CCArray__stringAtIndex                        ; +0x74, 0x10007d91c\nBL              cocos2d__CCString__floatValue                          ; +0x78, 0x10007d920\nFMOV            S8, S0                                                 ; +0x7c, 0x10007d924\nMOV             X0, X23                                                ; +0x80, 0x10007d928\nBL              sub_10024A36C                                          ; +0x84, 0x10007d92c\nFMOV            S0, S9                                                 ; +0x88, 0x10007d930\nCMP             W0, #2                                                 ; +0x8c, 0x10007d934\nB.CC            loc_10007D94C                                          ; +0x90, 0x10007d938\nMOV             X0, X23                                                ; +0x94, 0x10007d93c\nMOV             W1, #0                                                 ; +0x98, 0x10007d940\nBL              cocos2d__CCArray__stringAtIndex                        ; +0x9c, 0x10007d944\nBL              cocos2d__CCString__floatValue                          ; +0xa0, 0x10007d948\nFCMP            S8, S0                                                 ; +0xa4, 0x10007d94c\nFCSEL           S1, S0, S8, GT                                         ; +0xa8, 0x10007d950\nFCMP            S1, S9                                                 ; +0xac, 0x10007d954\nB.EQ            loc_10007D9E8                                          ; +0xb0, 0x10007d958\nFCMP            S1, S8                                                 ; +0xb4, 0x10007d95c\nMOV             X24, X22                                               ; +0xb8, 0x10007d960\nB.EQ            loc_10007D974                                          ; +0xbc, 0x10007d964\nFCMP            S1, S0                                                 ; +0xc0, 0x10007d968\nMOV             X24, X23                                               ; +0xc4, 0x10007d96c\nB.NE            loc_10007D9E8                                          ; +0xc8, 0x10007d970\nMOV             X0, X24                                                ; +0xcc, 0x10007d974\nMOV             W1, #0                                                 ; +0xd0, 0x10007d978\nBL              sub_10024A388                                          ; +0xd4, 0x10007d97c\nMOV             X1, X0                                                 ; +0xd8, 0x10007d980\nMOV             X0, X20                                                ; +0xdc, 0x10007d984\nBL              sub_10024A2D0                                          ; +0xe0, 0x10007d988\nMOV             X0, X24                                                ; +0xe4, 0x10007d98c\nMOV             W1, #1                                                 ; +0xe8, 0x10007d990\nBL              sub_10024A388                                          ; +0xec, 0x10007d994\nMOV             X1, X0                                                 ; +0xf0, 0x10007d998\nMOV             X0, X20                                                ; +0xf4, 0x10007d99c\nBL              sub_10024A2D0                                          ; +0xf8, 0x10007d9a0\nMOV             X0, X24                                                ; +0xfc, 0x10007d9a4\nMOV             W1, #0                                                 ; +0x100, 0x10007d9a8\nMOV             W2, #1                                                 ; +0x104, 0x10007d9ac\nBL              sub_10024A44C                                          ; +0x108, 0x10007d9b0\nMOV             X0, X24                                                ; +0x10c, 0x10007d9b4\nMOV             W1, #0                                                 ; +0x110, 0x10007d9b8\nMOV             W2, #1                                                 ; +0x114, 0x10007d9bc\nBL              sub_10024A44C                                          ; +0x118, 0x10007d9c0\nADD             W25, W25, #1                                           ; +0x11c, 0x10007d9c4\nCMP             W25, #0x3E8                                            ; +0x120, 0x10007d9c8\nB.CC            loc_10007D900                                          ; +0x124, 0x10007d9cc\nLDR             X0, [X21,#0x2A0]                                       ; +0x128, 0x10007d9d0\nLDR             X8, [X0]                                               ; +0x12c, 0x10007d9d4\nLDR             X8, [X8,#0x390]                                        ; +0x130, 0x10007d9d8\nADRL            X1, aMaximumLimitEx; \"Maximum limit exceeded\"          ; +0x134, 0x10007d9dc\nBLR             X8                                                     ; +0x13c, 0x10007d9e4\nADRL            X1, asc_100746688; \"\"                                  ; +0x140, 0x10007d9e8\nMOV             X0, X19; int                                           ; +0x148, 0x10007d9f0\nBL              sub_100009900                                          ; +0x14c, 0x10007d9f4\nMOV             W21, #0                                                ; +0x150, 0x10007d9f8\nADRL            X22, a02f0; \"%0.2f~0~\"                                 ; +0x154, 0x10007d9fc\nMOV             X0, X20                                                ; +0x15c, 0x10007da04\nBL              sub_10024A36C                                          ; +0x160, 0x10007da08\nCMP             W21, W0                                                ; +0x164, 0x10007da0c\nB.CS            loc_10007DA4C                                          ; +0x168, 0x10007da10\nMOV             X0, X20                                                ; +0x16c, 0x10007da14\nMOV             X1, X21                                                ; +0x170, 0x10007da18\nBL              cocos2d__CCArray__stringAtIndex                        ; +0x174, 0x10007da1c\nBL              cocos2d__CCString__floatValue                          ; +0x178, 0x10007da20\nFCVT            D0, S0                                                 ; +0x17c, 0x10007da24\nSTR             D0, [SP,#0x60+var_60]                                  ; +0x180, 0x10007da28\nMOV             X0, X22                                                ; +0x184, 0x10007da2c\nBL              sub_100268F4C                                          ; +0x188, 0x10007da30\nBL              cocos2d__CCString__getCString                          ; +0x18c, 0x10007da34\nMOV             X1, X0; __s                                            ; +0x190, 0x10007da38\nMOV             X0, X19; this                                          ; +0x194, 0x10007da3c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x198, 0x10007da40\nADD             W21, W21, #2                                           ; +0x19c, 0x10007da44\nB               loc_10007DA04                                          ; +0x1a0, 0x10007da48\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x1a4, 0x10007da4c\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x1a8, 0x10007da50\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0x1ac, 0x10007da54\nLDP             X24, X23, [SP,#0x60+var_30]                            ; +0x1b0, 0x10007da58\nLDP             X26, X25, [SP,#0x60+var_40]                            ; +0x1b4, 0x10007da5c\nLDP             D9, D8, [SP,#0x60+var_50]                              ; +0x1b8, 0x10007da60\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x1bc, 0x10007da64\nRET                                                                    ; +0x1c0, 0x10007da68", "xrefs": ["CreateGuidelinesLayer::recordingDidStop @ 0x10007d6e0"], "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"}