{"type": "func", "start": 6442521344, "end": 6442521448, "name": "cocos2d::extension::CCEditBoxImplWin::setFont", "pseudocode": "// \n// cocos2d::extension::CCEditBoxImplWin::setFont from 0x180011300 to 0x180011368 (104 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18002a7d0\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c1a0\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:15:40 +0000\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 0x180011300 to 0x180011368 (104 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18002a7d0\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c1a0\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:15:40 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180011300\npush    rdi                                                            ; +0x5, 0x180011305\nsub     rsp, 30h                                                       ; +0x6, 0x180011306\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18001130a\nmov     rbx, rcx                                                       ; +0xf, 0x18001130f\nmov     rcx, [rcx+18h]                                                 ; +0x12, 0x180011312\nmov     rdi, rdx                                                       ; +0x16, 0x180011316\nmovd    xmm6, r8d                                                      ; +0x19, 0x180011319\ncvtdq2ps xmm6, xmm6                                                    ; +0x1e, 0x18001131e\ntest    rcx, rcx                                                       ; +0x21, 0x180011321\njz      short loc_180011339                                            ; +0x24, 0x180011324\ncall    cs:?setFontName@CCLabelTTF@cocos2d@@QEAAXPEBD@Z; cocos2d::CCLabelTTF::setFontName(char const *) ; +0x26, 0x180011326\nmov     rcx, [rbx+18h]                                                 ; +0x2c, 0x18001132c\nmovaps  xmm1, xmm6                                                     ; +0x30, 0x180011330\ncall    cs:?setFontSize@CCLabelTTF@cocos2d@@QEAAXM@Z; cocos2d::CCLabelTTF::setFontSize(float) ; +0x33, 0x180011333\nmov     rcx, [rbx+20h]                                                 ; +0x39, 0x180011339\ntest    rcx, rcx                                                       ; +0x3d, 0x18001133d\njz      short loc_180011358                                            ; +0x40, 0x180011340\nmov     rdx, rdi                                                       ; +0x42, 0x180011342\ncall    cs:?setFontName@CCLabelTTF@cocos2d@@QEAAXPEBD@Z; cocos2d::CCLabelTTF::setFontName(char const *) ; +0x45, 0x180011345\nmov     rcx, [rbx+20h]                                                 ; +0x4b, 0x18001134b\nmovaps  xmm1, xmm6                                                     ; +0x4f, 0x18001134f\ncall    cs:?setFontSize@CCLabelTTF@cocos2d@@QEAAXM@Z; cocos2d::CCLabelTTF::setFontSize(float) ; +0x52, 0x180011352\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x58, 0x180011358\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x5d, 0x18001135d\nadd     rsp, 30h                                                       ; +0x62, 0x180011362\npop     rdi                                                            ; +0x66, 0x180011366\nretn                                                                   ; +0x67, 0x180011367", "xrefs": ["<???> @ 0x18002a7d0", "<???> @ 0x180032408", "<???> @ 0x18004c1a0"], "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"}