{"type": "func", "start": 4300261984, "end": 4300262489, "name": "CreateGuidelinesLayer::getMergedRecordString", "pseudocode": "// \n// CreateGuidelinesLayer::getMergedRecordString from 0x10050ca60 to 0x10050cc59 (505 bytes)\n// \n// 1 xrefs:\n// > CreateGuidelinesLayer::recordingDidStop @ 0x10050c848\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\nstd::string *__fastcall CreateGuidelinesLayer::getMergedRecordString(\n        std::string *a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4)\n{\n  cocos2d::CCArray *v5; // r15\n  cocos2d::CCArray *v6; // r13\n  char v7; // bl\n  cocos2d::CCArray *v8; // r14\n  float v9; // xmm0_4\n  cocos2d::CCString *v10; // rax\n  float v11; // xmm0_4\n  cocos2d::CCString *v12; // rax\n  float v13; // xmm1_4\n  char v14; // al\n  cocos2d::CCArray *v15; // rax\n  cocos2d::CCArray *v16; // r12\n  __int64 v17; // rax\n  __int64 v18; // rax\n  unsigned int i; // r15d\n  cocos2d::CCString *v20; // rax\n  cocos2d::CCString *v21; // rax\n  const char *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 = (cocos2d::CCArray *)sub_10050CC80(a3);\n  v6 = (cocos2d::CCArray *)sub_10050CC80(a4);\n  v7 = 1;\n  v8 = (cocos2d::CCArray *)sub_10071F9E0(a4, a2);\n  v26 = 0;\n  do\n  {\n    v9 = 9999999.0;\n    if ( (unsigned int)sub_100720070(v5) >= 2 )\n    {\n      v10 = cocos2d::CCArray::stringAtIndex(v5, 0);\n      v9 = cocos2d::CCString::floatValue(v10);\n    }\n    v25 = v9;\n    v11 = 9999999.0;\n    if ( (unsigned int)sub_100720070(v6) >= 2 )\n    {\n      v12 = cocos2d::CCArray::stringAtIndex(v6, 0);\n      v11 = cocos2d::CCString::floatValue(v12);\n    }\n    v13 = fminf(v11, v25);\n    if ( v13 == 9999999.0 )\n      break;\n    v14 = v7;\n    if ( v13 != v11 )\n      v14 = 0;\n    if ( v13 != v25 )\n      v7 = v14;\n    if ( (v7 & 1) != 0 )\n    {\n      v15 = v6;\n      if ( v13 != v11 )\n        v15 = nullptr;\n      v16 = v5;\n      if ( v13 != v25 )\n        v16 = v15;\n      v17 = sub_1007200C0(v16, 0);\n      sub_10071FCD0(v8, v17);\n      v18 = sub_1007200C0(v16, 1);\n      sub_10071FCD0(v8, v18);\n      sub_100720230(v16, 0, 1);\n      sub_100720230(v16, 0, 1);\n      if ( v26 >= 1000 )\n      {\n        (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a2 + 672) + 912LL))(\n          *(_QWORD *)(a2 + 672),\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_100720070(v8); i += 2 )\n  {\n    v20 = cocos2d::CCArray::stringAtIndex(v8, i);\n    cocos2d::CCString::floatValue(v20);\n    v21 = (cocos2d::CCString *)sub_1007AB580(\"%0.2f~0~\", v24);\n    CString = cocos2d::CCString::getCString(v21);\n    std::string::append(a1, CString);\n  }\n  return a1;\n}", "assembly": "; \n; CreateGuidelinesLayer::getMergedRecordString from 0x10050ca60 to 0x10050cc59 (505 bytes)\n; \n; 1 xrefs:\n; > CreateGuidelinesLayer::recordingDidStop @ 0x10050c848\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\npush    rbp                                                            ; +0x0, 0x10050ca60\nmov     rbp, rsp                                                       ; +0x1, 0x10050ca61\npush    r15                                                            ; +0x4, 0x10050ca64\npush    r14                                                            ; +0x6, 0x10050ca66\npush    r13                                                            ; +0x8, 0x10050ca68\npush    r12                                                            ; +0xa, 0x10050ca6a\npush    rbx                                                            ; +0xc, 0x10050ca6c\nsub     rsp, 18h                                                       ; +0xd, 0x10050ca6d\nmov     r14, rcx                                                       ; +0x11, 0x10050ca71\nmov     [rbp+var_38], rsi                                              ; +0x14, 0x10050ca74\nmov     [rbp+var_40], rdi                                              ; +0x18, 0x10050ca78\nmov     rdi, rdx                                                       ; +0x1c, 0x10050ca7c\ncall    sub_10050CC80                                                  ; +0x1f, 0x10050ca7f\nmov     r15, rax                                                       ; +0x24, 0x10050ca84\nmov     rdi, r14                                                       ; +0x27, 0x10050ca87\ncall    sub_10050CC80                                                  ; +0x2a, 0x10050ca8a\nmov     r13, rax                                                       ; +0x2f, 0x10050ca8f\nmov     bl, 1                                                          ; +0x32, 0x10050ca92\nxor     r12d, r12d                                                     ; +0x34, 0x10050ca94\ncall    sub_10071F9E0                                                  ; +0x37, 0x10050ca97\nmov     r14, rax                                                       ; +0x3c, 0x10050ca9c\nmov     [rbp+var_2C], 0                                                ; +0x3f, 0x10050ca9f\njmp     short loc_10050CAB9                                            ; +0x46, 0x10050caa6\nalign 10h                                                              ; +0x48, 0x10050caa8\ntest    bl, 1                                                          ; +0x50, 0x10050cab0\njz      loc_10050CBE2                                                  ; +0x53, 0x10050cab3\nmov     rdi, r15                                                       ; +0x59, 0x10050cab9\ncall    sub_100720070                                                  ; +0x5c, 0x10050cabc\nmovss   xmm0, cs:dword_10081E21C                                       ; +0x61, 0x10050cac1\ncmp     eax, 2                                                         ; +0x69, 0x10050cac9\njb      short loc_10050CAE0                                            ; +0x6c, 0x10050cacc\nmov     rdi, r15                                                       ; +0x6e, 0x10050cace\nxor     esi, esi                                                       ; +0x71, 0x10050cad1\ncall    cocos2d__CCArray__stringAtIndex                                ; +0x73, 0x10050cad3\nmov     rdi, rax                                                       ; +0x78, 0x10050cad8\ncall    cocos2d__CCString__floatValue                                  ; +0x7b, 0x10050cadb\nmovss   [rbp+var_30], xmm0                                             ; +0x80, 0x10050cae0\nmov     rdi, r13                                                       ; +0x85, 0x10050cae5\ncall    sub_100720070                                                  ; +0x88, 0x10050cae8\nmovss   xmm0, cs:dword_10081E21C                                       ; +0x8d, 0x10050caed\ncmp     eax, 2                                                         ; +0x95, 0x10050caf5\njb      short loc_10050CB0C                                            ; +0x98, 0x10050caf8\nmov     rdi, r13                                                       ; +0x9a, 0x10050cafa\nxor     esi, esi                                                       ; +0x9d, 0x10050cafd\ncall    cocos2d__CCArray__stringAtIndex                                ; +0x9f, 0x10050caff\nmov     rdi, rax                                                       ; +0xa4, 0x10050cb04\ncall    cocos2d__CCString__floatValue                                  ; +0xa7, 0x10050cb07\nmovaps  xmm1, xmm0                                                     ; +0xac, 0x10050cb0c\nmovss   xmm2, [rbp+var_30]                                             ; +0xaf, 0x10050cb0f\nminss   xmm1, xmm2                                                     ; +0xb4, 0x10050cb14\nucomiss xmm1, cs:dword_10081E21C                                       ; +0xb8, 0x10050cb18\njnz     short loc_10050CB27                                            ; +0xbf, 0x10050cb1f\njnp     loc_10050CBE2                                                  ; +0xc1, 0x10050cb21\nucomiss xmm1, xmm0                                                     ; +0xc7, 0x10050cb27\nmovzx   ebx, bl                                                        ; +0xca, 0x10050cb2a\nmov     eax, ebx                                                       ; +0xcd, 0x10050cb2d\ncmovnz  eax, r12d                                                      ; +0xcf, 0x10050cb2f\ncmovp   eax, r12d                                                      ; +0xd3, 0x10050cb33\nucomiss xmm1, xmm2                                                     ; +0xd7, 0x10050cb37\ncmovnz  ebx, eax                                                       ; +0xda, 0x10050cb3a\ncmovp   ebx, eax                                                       ; +0xdd, 0x10050cb3d\ntest    bl, 1                                                          ; +0xe0, 0x10050cb40\njz      loc_10050CAB0                                                  ; +0xe3, 0x10050cb43\nucomiss xmm1, xmm0                                                     ; +0xe9, 0x10050cb49\nmov     rax, r13                                                       ; +0xec, 0x10050cb4c\ncmovnz  rax, r12                                                       ; +0xef, 0x10050cb4f\ncmovp   rax, r12                                                       ; +0xf3, 0x10050cb53\nucomiss xmm1, xmm2                                                     ; +0xf7, 0x10050cb57\nmov     r12, r15                                                       ; +0xfa, 0x10050cb5a\ncmovnz  r12, rax                                                       ; +0xfd, 0x10050cb5d\ncmovp   r12, rax                                                       ; +0x101, 0x10050cb61\nmov     rdi, r12                                                       ; +0x105, 0x10050cb65\nxor     esi, esi                                                       ; +0x108, 0x10050cb68\ncall    sub_1007200C0                                                  ; +0x10a, 0x10050cb6a\nmov     rdi, r14                                                       ; +0x10f, 0x10050cb6f\nmov     rsi, rax                                                       ; +0x112, 0x10050cb72\ncall    sub_10071FCD0                                                  ; +0x115, 0x10050cb75\nmov     rdi, r12                                                       ; +0x11a, 0x10050cb7a\nmov     esi, 1                                                         ; +0x11d, 0x10050cb7d\ncall    sub_1007200C0                                                  ; +0x122, 0x10050cb82\nmov     rdi, r14                                                       ; +0x127, 0x10050cb87\nmov     rsi, rax                                                       ; +0x12a, 0x10050cb8a\ncall    sub_10071FCD0                                                  ; +0x12d, 0x10050cb8d\nmov     rdi, r12                                                       ; +0x132, 0x10050cb92\nxor     esi, esi                                                       ; +0x135, 0x10050cb95\nmov     edx, 1                                                         ; +0x137, 0x10050cb97\ncall    sub_100720230                                                  ; +0x13c, 0x10050cb9c\nmov     rdi, r12                                                       ; +0x141, 0x10050cba1\nxor     esi, esi                                                       ; +0x144, 0x10050cba4\nmov     edx, 1                                                         ; +0x146, 0x10050cba6\ncall    sub_100720230                                                  ; +0x14b, 0x10050cbab\nmov     eax, [rbp+var_2C]                                              ; +0x150, 0x10050cbb0\ncmp     eax, 3E8h                                                      ; +0x153, 0x10050cbb3\njge     short loc_10050CBC7                                            ; +0x158, 0x10050cbb8\ninc     eax                                                            ; +0x15a, 0x10050cbba\nmov     [rbp+var_2C], eax                                              ; +0x15c, 0x10050cbbc\nxor     r12d, r12d                                                     ; +0x15f, 0x10050cbbf\njmp     loc_10050CAB0                                                  ; +0x162, 0x10050cbc2\nmov     rax, [rbp+var_38]                                              ; +0x167, 0x10050cbc7\nmov     rdi, [rax+2A0h]                                                ; +0x16b, 0x10050cbcb\nmov     rax, [rdi]                                                     ; +0x172, 0x10050cbd2\nlea     rsi, aMaximumLimitEx; \"Maximum limit exceeded\"                 ; +0x175, 0x10050cbd5\ncall    qword ptr [rax+390h]                                           ; +0x17c, 0x10050cbdc\nmov     rbx, [rbp+var_40]                                              ; +0x182, 0x10050cbe2\nmov     word ptr [rbx], 0                                              ; +0x186, 0x10050cbe6\nxor     r15d, r15d                                                     ; +0x18b, 0x10050cbeb\nlea     r12, a02f0; \"%0.2f~0~\"                                         ; +0x18e, 0x10050cbee\nnop     word ptr [rax+rax+00000000h]                                   ; +0x195, 0x10050cbf5\nmov     rdi, r14                                                       ; +0x1a0, 0x10050cc00\ncall    sub_100720070                                                  ; +0x1a3, 0x10050cc03\ncmp     r15d, eax                                                      ; +0x1a8, 0x10050cc08\njnb     short loc_10050CC47                                            ; +0x1ab, 0x10050cc0b\nmov     rdi, r14                                                       ; +0x1ad, 0x10050cc0d\nmov     esi, r15d                                                      ; +0x1b0, 0x10050cc10\ncall    cocos2d__CCArray__stringAtIndex                                ; +0x1b3, 0x10050cc13\nmov     rdi, rax                                                       ; +0x1b8, 0x10050cc18\ncall    cocos2d__CCString__floatValue                                  ; +0x1bb, 0x10050cc1b\ncvtss2sd xmm0, xmm0                                                    ; +0x1c0, 0x10050cc20\nmov     rdi, r12; __format                                             ; +0x1c4, 0x10050cc24\nmov     al, 1                                                          ; +0x1c7, 0x10050cc27\ncall    sub_1007AB580                                                  ; +0x1c9, 0x10050cc29\nmov     rdi, rax                                                       ; +0x1ce, 0x10050cc2e\ncall    cocos2d__CCString__getCString                                  ; +0x1d1, 0x10050cc31\nmov     rdi, rbx; this                                                 ; +0x1d6, 0x10050cc36\nmov     rsi, rax; __s                                                  ; +0x1d9, 0x10050cc39\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x1dc, 0x10050cc3c\nadd     r15d, 2                                                        ; +0x1e1, 0x10050cc41\njmp     short loc_10050CC00                                            ; +0x1e5, 0x10050cc45\nmov     rax, rbx                                                       ; +0x1e7, 0x10050cc47\nadd     rsp, 18h                                                       ; +0x1ea, 0x10050cc4a\npop     rbx                                                            ; +0x1ee, 0x10050cc4e\npop     r12                                                            ; +0x1ef, 0x10050cc4f\npop     r13                                                            ; +0x1f1, 0x10050cc51\npop     r14                                                            ; +0x1f3, 0x10050cc53\npop     r15                                                            ; +0x1f5, 0x10050cc55\npop     rbp                                                            ; +0x1f7, 0x10050cc57\nretn                                                                   ; +0x1f8, 0x10050cc58", "xrefs": ["CreateGuidelinesLayer::recordingDidStop @ 0x10050c848"], "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"}