{"type": "func", "start": 6442486832, "end": 6442487041, "name": "cocos2d::CCPrettyPrinter::visit", "pseudocode": "// \n// cocos2d::CCPrettyPrinter::visit from 0x180008c30 to 0x180008d01 (209 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ec448\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7be8\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 11:21:19 +0000\n// \n\nvoid __fastcall cocos2d::CCPrettyPrinter::visit(cocos2d::CCPrettyPrinter *this, const struct cocos2d::CCDouble *a2)\n{\n  _QWORD *v3; // rbx\n  size_t Size; // rax\n  unsigned __int64 v5; // rdx\n  size_t v6; // rdi\n  __int64 v7; // rcx\n  char *v8; // rbx\n  char Str[16]; // [rsp+30h] [rbp-48h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-38h]\n  __int128 v11; // [rsp+50h] [rbp-28h]\n  __int16 v12; // [rsp+60h] [rbp-18h]\n\n  v12 = 0;\n  *(_OWORD *)Str = 0;\n  v10 = 0;\n  v11 = 0;\n  sub_1800095F0(Str, \"%lf\");\n  v3 = (_QWORD *)((char *)this + 48);\n  Size = strlen(Str);\n  v5 = v3[3];\n  v6 = Size;\n  v7 = v3[2];\n  if ( Size > v5 - v7 )\n  {\n    sub_180007A50(v3, Size, 0, Str, Size);\n  }\n  else\n  {\n    v3[2] = v7 + Size;\n    if ( v5 > 0xF )\n      v3 = (_QWORD *)*v3;\n    v8 = (char *)v3 + v7;\n    memmove(v8, Str, Size);\n    v8[v6] = 0;\n  }\n}", "assembly": "; \n; cocos2d::CCPrettyPrinter::visit from 0x180008c30 to 0x180008d01 (209 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ec448\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7be8\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 11:21:19 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180008c30\npush    rdi                                                            ; +0x5, 0x180008c35\nsub     rsp, 70h                                                       ; +0x6, 0x180008c36\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180008c3a\nxor     rax, rsp                                                       ; +0x11, 0x180008c41\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x180008c44\nmovsd   xmm2, qword ptr [rdx+38h]                                      ; +0x19, 0x180008c49\nxorps   xmm0, xmm0                                                     ; +0x1e, 0x180008c4e\nmov     rbx, rcx                                                       ; +0x21, 0x180008c51\nlea     rdx, aLf; \"%lf\"                                                ; +0x24, 0x180008c54\nxor     eax, eax                                                       ; +0x2b, 0x180008c5b\nlea     rcx, [rsp+78h+Str]; Buffer                                     ; +0x2d, 0x180008c5d\nmovq    r8, xmm2                                                       ; +0x32, 0x180008c62\nmov     [rsp+78h+var_18], ax                                           ; +0x37, 0x180008c67\nmovups  xmmword ptr [rsp+78h+Str], xmm0                                ; +0x3c, 0x180008c6c\nmovups  [rsp+78h+var_38], xmm0                                         ; +0x41, 0x180008c71\nmovups  [rsp+78h+var_28], xmm0                                         ; +0x46, 0x180008c76\ncall    sub_1800095F0                                                  ; +0x4b, 0x180008c7b\nlea     rcx, [rsp+78h+Str]; Str                                        ; +0x50, 0x180008c80\nadd     rbx, 30h ; '0'                                                 ; +0x55, 0x180008c85\ncall    strlen                                                         ; +0x59, 0x180008c89\nmov     rdx, [rbx+18h]                                                 ; +0x5e, 0x180008c8e\nmov     rdi, rax                                                       ; +0x62, 0x180008c92\nmov     rcx, [rbx+10h]                                                 ; +0x65, 0x180008c95\nmov     rax, rdx                                                       ; +0x69, 0x180008c99\nsub     rax, rcx                                                       ; +0x6c, 0x180008c9c\ncmp     rdi, rax                                                       ; +0x6f, 0x180008c9f\nja      short loc_180008CCE                                            ; +0x72, 0x180008ca2\nlea     rax, [rcx+rdi]                                                 ; +0x74, 0x180008ca4\nmov     [rbx+10h], rax                                                 ; +0x78, 0x180008ca8\ncmp     rdx, 0Fh                                                       ; +0x7c, 0x180008cac\njbe     short loc_180008CB5                                            ; +0x80, 0x180008cb0\nmov     rbx, [rbx]                                                     ; +0x82, 0x180008cb2\nadd     rbx, rcx                                                       ; +0x85, 0x180008cb5\nlea     rdx, [rsp+78h+Str]; Src                                        ; +0x88, 0x180008cb8\nmov     rcx, rbx; void *                                               ; +0x8d, 0x180008cbd\nmov     r8, rdi; Size                                                  ; +0x90, 0x180008cc0\ncall    memmove                                                        ; +0x93, 0x180008cc3\nmov     byte ptr [rbx+rdi], 0                                          ; +0x98, 0x180008cc8\njmp     short loc_180008CE6                                            ; +0x9c, 0x180008ccc\nlea     r9, [rsp+78h+Str]                                              ; +0x9e, 0x180008cce\nmov     [rsp+78h+Size], rdi; Size                                      ; +0xa3, 0x180008cd3\nxor     r8d, r8d                                                       ; +0xa8, 0x180008cd8\nmov     rdx, rdi                                                       ; +0xab, 0x180008cdb\nmov     rcx, rbx; Src                                                  ; +0xae, 0x180008cde\ncall    sub_180007A50                                                  ; +0xb1, 0x180008ce1\nmov     rcx, [rsp+78h+var_10]                                          ; +0xb6, 0x180008ce6\nxor     rcx, rsp; StackCookie                                          ; +0xbb, 0x180008ceb\ncall    __security_check_cookie                                        ; +0xbe, 0x180008cee\nmov     rbx, [rsp+78h+arg_10]                                          ; +0xc3, 0x180008cf3\nadd     rsp, 70h                                                       ; +0xcb, 0x180008cfb\npop     rdi                                                            ; +0xcf, 0x180008cff\nretn                                                                   ; +0xd0, 0x180008d00", "xrefs": ["<???> @ 0x1800ec448", "<???> @ 0x18014cf68", "<???> @ 0x1801b7be8"], "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"}