{"type": "func", "start": 4300267664, "end": 4300268169, "name": "CreateGuidelinesLayer::getMergedRecordString", "pseudocode": "// \n// CreateGuidelinesLayer::getMergedRecordString from 0x10050e090 to 0x10050e289 (505 bytes)\n// \n// 1 xrefs:\n// > CreateGuidelinesLayer::recordingDidStop @ 0x10050de78\n// \n// This function is hookable on this platform (idp: pc, 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:31:35 +0000\n// \n\nstd::string *__fastcall CreateGuidelinesLayer::getMergedRecordString(\n        std::string *a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4)\n{\n  __int64 v5; // r15\n  __int64 v6; // r13\n  char v7; // bl\n  __int64 v8; // r14\n  float v9; // xmm0_4\n  __int64 v10; // rax\n  double v11; // xmm0_8\n  __int64 v12; // rax\n  float v13; // xmm1_4\n  char v14; // al\n  __int64 v15; // rax\n  __int64 v16; // r12\n  __int64 v17; // rax\n  __int64 v18; // rax\n  unsigned int i; // r15d\n  __int64 v20; // rax\n  __int64 v21; // rax\n  const std::string::value_type *CString; // rax\n  char v24; // [rsp+0h] [rbp-40h]\n  float v25; // [rsp+10h] [rbp-30h]\n  int v26; // [rsp+14h] [rbp-2Ch]\n\n  v24 = (char)a1;\n  v5 = sub_10050E2B0(a3);\n  v6 = sub_10050E2B0(a4);\n  v7 = 1;\n  v8 = sub_1007FE900(a4);\n  v26 = 0;\n  do\n  {\n    v9 = 9999999.0;\n    if ( (unsigned int)sub_1007FEF90(v5) >= 2 )\n    {\n      v10 = cocos2d::CCArray::stringAtIndex(v5, 0);\n      v9 = cocos2d::CCString::floatValue(v10, COERCE_DOUBLE(1259902591));\n    }\n    v25 = v9;\n    *(_QWORD *)&v11 = 1259902591;\n    if ( (unsigned int)sub_1007FEF90(v6) >= 2 )\n    {\n      v12 = cocos2d::CCArray::stringAtIndex(v6, 0);\n      *(float *)&v11 = cocos2d::CCString::floatValue(v12, COERCE_DOUBLE(1259902591));\n    }\n    v13 = fminf(*(float *)&v11, v25);\n    if ( v13 == 9999999.0 )\n      break;\n    v14 = v7;\n    if ( v13 != *(float *)&v11 )\n      v14 = 0;\n    if ( v13 != v25 )\n      v7 = v14;\n    if ( (v7 & 1) != 0 )\n    {\n      v15 = v6;\n      if ( v13 != *(float *)&v11 )\n        v15 = 0;\n      v16 = v5;\n      if ( v13 != v25 )\n        v16 = v15;\n      v17 = sub_1007FEFE0(v16, 0);\n      sub_1007FEBF0(v8, v17);\n      v18 = sub_1007FEFE0(v16, 1);\n      sub_1007FEBF0(v8, v18);\n      sub_1007FF150(v16, 0, 1);\n      sub_1007FF150(v16, 0, 1);\n      if ( v26 >= 1000 )\n      {\n        (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a2 + 704) + 928LL))(\n          *(_QWORD *)(a2 + 704),\n          \"Maximum limit exceeded\");\n        break;\n      }\n      ++v26;\n    }\n  }\n  while ( (v7 & 1) != 0 );\n  *(_WORD *)&a1->__r_.__value_.__l.0 = 0;\n  for ( i = 0; i < (unsigned int)sub_1007FEF90(v8); i += 2 )\n  {\n    v20 = cocos2d::CCArray::stringAtIndex(v8, i);\n    v11 = cocos2d::CCString::floatValue(v20, v11);\n    v21 = sub_10088E820(\"%0.2f~0~\", v24);\n    CString = (const std::string::value_type *)cocos2d::CCString::getCString(v21);\n    std::string::append(a1, CString);\n  }\n  return a1;\n}", "assembly": "; \n; CreateGuidelinesLayer::getMergedRecordString from 0x10050e090 to 0x10050e289 (505 bytes)\n; \n; 1 xrefs:\n; > CreateGuidelinesLayer::recordingDidStop @ 0x10050de78\n; \n; This function is hookable on this platform (idp: pc, 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:31:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10050e090\nmov     rbp, rsp                                                       ; +0x1, 0x10050e091\npush    r15                                                            ; +0x4, 0x10050e094\npush    r14                                                            ; +0x6, 0x10050e096\npush    r13                                                            ; +0x8, 0x10050e098\npush    r12                                                            ; +0xa, 0x10050e09a\npush    rbx                                                            ; +0xc, 0x10050e09c\nsub     rsp, 18h                                                       ; +0xd, 0x10050e09d\nmov     r14, rcx                                                       ; +0x11, 0x10050e0a1\nmov     [rbp+var_38], rsi                                              ; +0x14, 0x10050e0a4\nmov     [rbp+var_40], rdi                                              ; +0x18, 0x10050e0a8\nmov     rdi, rdx                                                       ; +0x1c, 0x10050e0ac\ncall    sub_10050E2B0                                                  ; +0x1f, 0x10050e0af\nmov     r15, rax                                                       ; +0x24, 0x10050e0b4\nmov     rdi, r14                                                       ; +0x27, 0x10050e0b7\ncall    sub_10050E2B0                                                  ; +0x2a, 0x10050e0ba\nmov     r13, rax                                                       ; +0x2f, 0x10050e0bf\nmov     bl, 1                                                          ; +0x32, 0x10050e0c2\nxor     r12d, r12d                                                     ; +0x34, 0x10050e0c4\ncall    sub_1007FE900                                                  ; +0x37, 0x10050e0c7\nmov     r14, rax                                                       ; +0x3c, 0x10050e0cc\nmov     [rbp+var_2C], 0                                                ; +0x3f, 0x10050e0cf\njmp     short loc_10050E0E9                                            ; +0x46, 0x10050e0d6\nalign 20h                                                              ; +0x48, 0x10050e0d8\ntest    bl, 1                                                          ; +0x50, 0x10050e0e0\njz      loc_10050E212                                                  ; +0x53, 0x10050e0e3\nmov     rdi, r15                                                       ; +0x59, 0x10050e0e9\ncall    sub_1007FEF90                                                  ; +0x5c, 0x10050e0ec\nmovss   xmm0, cs:dword_100A0C8B4                                       ; +0x61, 0x10050e0f1\ncmp     eax, 2                                                         ; +0x69, 0x10050e0f9\njb      short loc_10050E110                                            ; +0x6c, 0x10050e0fc\nmov     rdi, r15                                                       ; +0x6e, 0x10050e0fe\nxor     esi, esi                                                       ; +0x71, 0x10050e101\ncall    cocos2d__CCArray__stringAtIndex                                ; +0x73, 0x10050e103\nmov     rdi, rax                                                       ; +0x78, 0x10050e108\ncall    cocos2d__CCString__floatValue                                  ; +0x7b, 0x10050e10b\nmovss   [rbp+var_30], xmm0                                             ; +0x80, 0x10050e110\nmov     rdi, r13                                                       ; +0x85, 0x10050e115\ncall    sub_1007FEF90                                                  ; +0x88, 0x10050e118\nmovss   xmm0, cs:dword_100A0C8B4                                       ; +0x8d, 0x10050e11d\ncmp     eax, 2                                                         ; +0x95, 0x10050e125\njb      short loc_10050E13C                                            ; +0x98, 0x10050e128\nmov     rdi, r13                                                       ; +0x9a, 0x10050e12a\nxor     esi, esi                                                       ; +0x9d, 0x10050e12d\ncall    cocos2d__CCArray__stringAtIndex                                ; +0x9f, 0x10050e12f\nmov     rdi, rax                                                       ; +0xa4, 0x10050e134\ncall    cocos2d__CCString__floatValue                                  ; +0xa7, 0x10050e137\nmovaps  xmm1, xmm0                                                     ; +0xac, 0x10050e13c\nmovss   xmm2, [rbp+var_30]                                             ; +0xaf, 0x10050e13f\nminss   xmm1, xmm2                                                     ; +0xb4, 0x10050e144\nucomiss xmm1, cs:dword_100A0C8B4                                       ; +0xb8, 0x10050e148\njnz     short loc_10050E157                                            ; +0xbf, 0x10050e14f\njnp     loc_10050E212                                                  ; +0xc1, 0x10050e151\nucomiss xmm1, xmm0                                                     ; +0xc7, 0x10050e157\nmovzx   ebx, bl                                                        ; +0xca, 0x10050e15a\nmov     eax, ebx                                                       ; +0xcd, 0x10050e15d\ncmovnz  eax, r12d                                                      ; +0xcf, 0x10050e15f\ncmovp   eax, r12d                                                      ; +0xd3, 0x10050e163\nucomiss xmm1, xmm2                                                     ; +0xd7, 0x10050e167\ncmovnz  ebx, eax                                                       ; +0xda, 0x10050e16a\ncmovp   ebx, eax                                                       ; +0xdd, 0x10050e16d\ntest    bl, 1                                                          ; +0xe0, 0x10050e170\njz      loc_10050E0E0                                                  ; +0xe3, 0x10050e173\nucomiss xmm1, xmm0                                                     ; +0xe9, 0x10050e179\nmov     rax, r13                                                       ; +0xec, 0x10050e17c\ncmovnz  rax, r12                                                       ; +0xef, 0x10050e17f\ncmovp   rax, r12                                                       ; +0xf3, 0x10050e183\nucomiss xmm1, xmm2                                                     ; +0xf7, 0x10050e187\nmov     r12, r15                                                       ; +0xfa, 0x10050e18a\ncmovnz  r12, rax                                                       ; +0xfd, 0x10050e18d\ncmovp   r12, rax                                                       ; +0x101, 0x10050e191\nmov     rdi, r12                                                       ; +0x105, 0x10050e195\nxor     esi, esi                                                       ; +0x108, 0x10050e198\ncall    sub_1007FEFE0                                                  ; +0x10a, 0x10050e19a\nmov     rdi, r14                                                       ; +0x10f, 0x10050e19f\nmov     rsi, rax                                                       ; +0x112, 0x10050e1a2\ncall    sub_1007FEBF0                                                  ; +0x115, 0x10050e1a5\nmov     rdi, r12                                                       ; +0x11a, 0x10050e1aa\nmov     esi, 1                                                         ; +0x11d, 0x10050e1ad\ncall    sub_1007FEFE0                                                  ; +0x122, 0x10050e1b2\nmov     rdi, r14                                                       ; +0x127, 0x10050e1b7\nmov     rsi, rax                                                       ; +0x12a, 0x10050e1ba\ncall    sub_1007FEBF0                                                  ; +0x12d, 0x10050e1bd\nmov     rdi, r12                                                       ; +0x132, 0x10050e1c2\nxor     esi, esi                                                       ; +0x135, 0x10050e1c5\nmov     edx, 1                                                         ; +0x137, 0x10050e1c7\ncall    sub_1007FF150                                                  ; +0x13c, 0x10050e1cc\nmov     rdi, r12                                                       ; +0x141, 0x10050e1d1\nxor     esi, esi                                                       ; +0x144, 0x10050e1d4\nmov     edx, 1                                                         ; +0x146, 0x10050e1d6\ncall    sub_1007FF150                                                  ; +0x14b, 0x10050e1db\nmov     eax, [rbp+var_2C]                                              ; +0x150, 0x10050e1e0\ncmp     eax, 3E8h                                                      ; +0x153, 0x10050e1e3\njge     short loc_10050E1F7                                            ; +0x158, 0x10050e1e8\ninc     eax                                                            ; +0x15a, 0x10050e1ea\nmov     [rbp+var_2C], eax                                              ; +0x15c, 0x10050e1ec\nxor     r12d, r12d                                                     ; +0x15f, 0x10050e1ef\njmp     loc_10050E0E0                                                  ; +0x162, 0x10050e1f2\nmov     rax, [rbp+var_38]                                              ; +0x167, 0x10050e1f7\nmov     rdi, [rax+2C0h]                                                ; +0x16b, 0x10050e1fb\nmov     rax, [rdi]                                                     ; +0x172, 0x10050e202\nlea     rsi, aMaximumLimitEx; \"Maximum limit exceeded\"                 ; +0x175, 0x10050e205\ncall    qword ptr [rax+3A0h]                                           ; +0x17c, 0x10050e20c\nmov     rbx, [rbp+var_40]                                              ; +0x182, 0x10050e212\nmov     word ptr [rbx], 0                                              ; +0x186, 0x10050e216\nxor     r15d, r15d                                                     ; +0x18b, 0x10050e21b\nlea     r12, a02f0; \"%0.2f~0~\"                                         ; +0x18e, 0x10050e21e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x195, 0x10050e225\nmov     rdi, r14                                                       ; +0x1a0, 0x10050e230\ncall    sub_1007FEF90                                                  ; +0x1a3, 0x10050e233\ncmp     r15d, eax                                                      ; +0x1a8, 0x10050e238\njnb     short loc_10050E277                                            ; +0x1ab, 0x10050e23b\nmov     rdi, r14                                                       ; +0x1ad, 0x10050e23d\nmov     esi, r15d                                                      ; +0x1b0, 0x10050e240\ncall    cocos2d__CCArray__stringAtIndex                                ; +0x1b3, 0x10050e243\nmov     rdi, rax                                                       ; +0x1b8, 0x10050e248\ncall    cocos2d__CCString__floatValue                                  ; +0x1bb, 0x10050e24b\ncvtss2sd xmm0, xmm0                                                    ; +0x1c0, 0x10050e250\nmov     rdi, r12; __format                                             ; +0x1c4, 0x10050e254\nmov     al, 1                                                          ; +0x1c7, 0x10050e257\ncall    sub_10088E820                                                  ; +0x1c9, 0x10050e259\nmov     rdi, rax                                                       ; +0x1ce, 0x10050e25e\ncall    cocos2d__CCString__getCString                                  ; +0x1d1, 0x10050e261\nmov     rdi, rbx; this                                                 ; +0x1d6, 0x10050e266\nmov     rsi, rax; __s                                                  ; +0x1d9, 0x10050e269\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x1dc, 0x10050e26c\nadd     r15d, 2                                                        ; +0x1e1, 0x10050e271\njmp     short loc_10050E230                                            ; +0x1e5, 0x10050e275\nmov     rax, rbx                                                       ; +0x1e7, 0x10050e277\nadd     rsp, 18h                                                       ; +0x1ea, 0x10050e27a\npop     rbx                                                            ; +0x1ee, 0x10050e27e\npop     r12                                                            ; +0x1ef, 0x10050e27f\npop     r13                                                            ; +0x1f1, 0x10050e281\npop     r14                                                            ; +0x1f3, 0x10050e283\npop     r15                                                            ; +0x1f5, 0x10050e285\npop     rbp                                                            ; +0x1f7, 0x10050e287\nretn                                                                   ; +0x1f8, 0x10050e288", "xrefs": ["CreateGuidelinesLayer::recordingDidStop @ 0x10050de78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}