{"type": "func", "start": 6442489136, "end": 6442489230, "name": "sub_180009530", "pseudocode": "// \n// sub_180009530 from 0x180009530 to 0x18000958e (94 bytes)\n// \n// 22 xrefs:\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008161\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008463\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008684\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008b8b\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008c6e\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008d41\n// > cocos2d::CCPrettyPrinter::visitObject @ 0x180009470\n// > cocos2d::CCEGLView::initWithRect @ 0x1800773ca\n// > cocos2d::CCUserDefault::setDoubleForKey @ 0x18009f454\n// > cocos2d::CCUserDefault::setIntegerForKey @ 0x18009f58f\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1594\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1698\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1ecb\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1fc0\n// > cocos2d::CCDirector::showFPSLabel @ 0x1800bfe11\n// > cocos2d::CCDirector::showStats @ 0x1800bfeac\n// > sub_1800DBAE0 @ 0x1800dbb98\n// > sub_1800DBDF0 @ 0x1800dbefa\n// > sub_1800DC050 @ 0x1800dc0a2\n// > sub_1800DC1C0 @ 0x1800dc5d3\n// > sub_1800DC1C0 @ 0x1800dc63d\n// > <???> @ 0x1801adc54\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\nint sub_180009530(char *Buffer, char *Format, ...)\n{\n  _QWORD *v4; // rax\n  int result; // eax\n  va_list va; // [rsp+60h] [rbp+18h] BYREF\n\n  va_start(va, Format);\n  v4 = sub_180009520();\n  result = _stdio_common_vsprintf(*v4 | 1LL, Buffer, 0xFFFFFFFFFFFFFFFFuLL, Format, nullptr, va);\n  if ( result < 0 )\n    return -1;\n  return result;\n}", "assembly": "; \n; sub_180009530 from 0x180009530 to 0x18000958e (94 bytes)\n; \n; 22 xrefs:\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008161\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008463\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008684\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008b8b\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008c6e\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008d41\n; > cocos2d::CCPrettyPrinter::visitObject @ 0x180009470\n; > cocos2d::CCEGLView::initWithRect @ 0x1800773ca\n; > cocos2d::CCUserDefault::setDoubleForKey @ 0x18009f454\n; > cocos2d::CCUserDefault::setIntegerForKey @ 0x18009f58f\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1594\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1698\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1ecb\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1fc0\n; > cocos2d::CCDirector::showFPSLabel @ 0x1800bfe11\n; > cocos2d::CCDirector::showStats @ 0x1800bfeac\n; > sub_1800DBAE0 @ 0x1800dbb98\n; > sub_1800DBDF0 @ 0x1800dbefa\n; > sub_1800DC050 @ 0x1800dc0a2\n; > sub_1800DC1C0 @ 0x1800dc5d3\n; > sub_1800DC1C0 @ 0x1800dc63d\n; > <???> @ 0x1801adc54\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\nmov     [rsp+arg_8], rdx                                               ; +0x0, 0x180009530\nmov     qword ptr [rsp+arg_10], r8                                     ; +0x5, 0x180009535\nmov     [rsp+arg_18], r9                                               ; +0xa, 0x18000953a\npush    rbx                                                            ; +0xf, 0x18000953f\npush    rsi                                                            ; +0x10, 0x180009540\npush    rdi                                                            ; +0x11, 0x180009541\nsub     rsp, 30h                                                       ; +0x12, 0x180009542\nmov     rbx, rdx                                                       ; +0x16, 0x180009546\nlea     rsi, [rsp+48h+arg_10]                                          ; +0x19, 0x180009549\nmov     rdi, rcx                                                       ; +0x1e, 0x18000954e\ncall    sub_180009520                                                  ; +0x21, 0x180009551\nmov     r9, rbx; Format                                                ; +0x26, 0x180009556\nmov     [rsp+48h+ArgList], rsi; ArgList                                ; +0x29, 0x180009559\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x2e, 0x18000955e\nmov     [rsp+48h+Locale], 0; Locale                                    ; +0x35, 0x180009565\nmov     r8, rbx; BufferCount                                           ; +0x3e, 0x18000956e\nmov     rdx, rdi; Buffer                                               ; +0x41, 0x180009571\nmov     rcx, [rax]                                                     ; +0x44, 0x180009574\nor      rcx, 1; Options                                                ; +0x47, 0x180009577\ncall    cs:__stdio_common_vsprintf                                     ; +0x4b, 0x18000957b\ntest    eax, eax                                                       ; +0x51, 0x180009581\ncmovs   eax, ebx                                                       ; +0x53, 0x180009583\nadd     rsp, 30h                                                       ; +0x56, 0x180009586\npop     rdi                                                            ; +0x5a, 0x18000958a\npop     rsi                                                            ; +0x5b, 0x18000958b\npop     rbx                                                            ; +0x5c, 0x18000958c\nretn                                                                   ; +0x5d, 0x18000958d", "xrefs": ["cocos2d::CCPrettyPrinter::visit @ 0x180008161", "cocos2d::CCPrettyPrinter::visit @ 0x180008463", "cocos2d::CCPrettyPrinter::visit @ 0x180008684", "cocos2d::CCPrettyPrinter::visit @ 0x180008b8b", "cocos2d::CCPrettyPrinter::visit @ 0x180008c6e", "cocos2d::CCPrettyPrinter::visit @ 0x180008d41", "cocos2d::CCPrettyPrinter::visitObject @ 0x180009470", "cocos2d::CCEGLView::initWithRect @ 0x1800773ca", "cocos2d::CCUserDefault::setDoubleForKey @ 0x18009f454", "cocos2d::CCUserDefault::setIntegerForKey @ 0x18009f58f", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b1594", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b1698", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b1ecb", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b1fc0", "cocos2d::CCDirector::showFPSLabel @ 0x1800bfe11", "cocos2d::CCDirector::showStats @ 0x1800bfeac", "sub_1800DBAE0 @ 0x1800dbb98", "sub_1800DBDF0 @ 0x1800dbefa", "sub_1800DC050 @ 0x1800dc0a2", "sub_1800DC1C0 @ 0x1800dc5d3", "sub_1800DC1C0 @ 0x1800dc63d", "<???> @ 0x1801adc54"], "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"}