{"type": "func", "start": 6442522976, "end": 6442523080, "name": "cocos2d::extension::CCEditBoxImplWin::setFont", "pseudocode": "// \n// cocos2d::extension::CCEditBoxImplWin::setFont from 0x180011960 to 0x1800119c8 (104 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180028158\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a2c0\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\nvoid __fastcall cocos2d::extension::CCEditBoxImplWin::setFont(\n        cocos2d::extension::CCEditBoxImplWin *this,\n        const char *a2,\n        int a3)\n{\n  cocos2d::CCLabelTTF *v4; // rcx\n  float v6; // xmm6_4\n  cocos2d::CCLabelTTF *v7; // rcx\n\n  v4 = *((cocos2d::CCLabelTTF **)this + 3);\n  v6 = (float)a3;\n  if ( v4 )\n  {\n    cocos2d::CCLabelTTF::setFontName(v4, a2);\n    cocos2d::CCLabelTTF::setFontSize(*((cocos2d::CCLabelTTF **)this + 3), v6);\n  }\n  v7 = *((cocos2d::CCLabelTTF **)this + 4);\n  if ( v7 )\n  {\n    cocos2d::CCLabelTTF::setFontName(v7, a2);\n    cocos2d::CCLabelTTF::setFontSize(*((cocos2d::CCLabelTTF **)this + 4), v6);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCEditBoxImplWin::setFont from 0x180011960 to 0x1800119c8 (104 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180028158\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a2c0\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_0], rbx                                               ; +0x0, 0x180011960\npush    rdi                                                            ; +0x5, 0x180011965\nsub     rsp, 30h                                                       ; +0x6, 0x180011966\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18001196a\nmov     rbx, rcx                                                       ; +0xf, 0x18001196f\nmov     rcx, [rcx+18h]                                                 ; +0x12, 0x180011972\nmov     rdi, rdx                                                       ; +0x16, 0x180011976\nmovd    xmm6, r8d                                                      ; +0x19, 0x180011979\ncvtdq2ps xmm6, xmm6                                                    ; +0x1e, 0x18001197e\ntest    rcx, rcx                                                       ; +0x21, 0x180011981\njz      short loc_180011999                                            ; +0x24, 0x180011984\ncall    cs:?setFontName@CCLabelTTF@cocos2d@@QEAAXPEBD@Z; cocos2d::CCLabelTTF::setFontName(char const *) ; +0x26, 0x180011986\nmov     rcx, [rbx+18h]                                                 ; +0x2c, 0x18001198c\nmovaps  xmm1, xmm6                                                     ; +0x30, 0x180011990\ncall    cs:?setFontSize@CCLabelTTF@cocos2d@@QEAAXM@Z; cocos2d::CCLabelTTF::setFontSize(float) ; +0x33, 0x180011993\nmov     rcx, [rbx+20h]                                                 ; +0x39, 0x180011999\ntest    rcx, rcx                                                       ; +0x3d, 0x18001199d\njz      short loc_1800119B8                                            ; +0x40, 0x1800119a0\nmov     rdx, rdi                                                       ; +0x42, 0x1800119a2\ncall    cs:?setFontName@CCLabelTTF@cocos2d@@QEAAXPEBD@Z; cocos2d::CCLabelTTF::setFontName(char const *) ; +0x45, 0x1800119a5\nmov     rcx, [rbx+20h]                                                 ; +0x4b, 0x1800119ab\nmovaps  xmm1, xmm6                                                     ; +0x4f, 0x1800119af\ncall    cs:?setFontSize@CCLabelTTF@cocos2d@@QEAAXM@Z; cocos2d::CCLabelTTF::setFontSize(float) ; +0x52, 0x1800119b2\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x58, 0x1800119b8\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x5d, 0x1800119bd\nadd     rsp, 30h                                                       ; +0x62, 0x1800119c2\npop     rdi                                                            ; +0x66, 0x1800119c6\nretn                                                                   ; +0x67, 0x1800119c7", "xrefs": ["<???> @ 0x180028158", "<???> @ 0x18002fdf8", "<???> @ 0x18004a2c0"], "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"}