{"type": "func", "start": 4941900, "end": 4942242, "name": "ConfigureHSVWidget::createTextInputNode", "pseudocode": "// \n// ConfigureHSVWidget::createTextInputNode from 0x4b684c to 0x4b69a2 (342 bytes)\n// \n// 3 xrefs:\n// > ConfigureHSVWidget::init @ 0x4b71cc\n// > ConfigureHSVWidget::init @ 0x4b72d0\n// > ConfigureHSVWidget::init @ 0x4b73ca\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 ConfigureHSVWidget::createTextInputNode(ConfigureHSVWidget *a1, cocos2d::CCPoint a2, int a3)\n{\n  float x; // r11\n  float y; // r10\n  cocos2d::CCNode *v6; // r5\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r4\n  CCTextInputNode *v8; // r4\n  void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11\n  int v10; // r0\n  cocos2d::CCDictionary *m_inputs; // r0\n  float v12; // r2\n  float v13; // r3\n  cocos2d::CCSize v14; // [sp+Ch] [bp-28h] BYREF\n  cocos2d::CCPoint v15; // [sp+14h] [bp-20h] BYREF\n  cocos2d::CCRect v16; // [sp+1Ch] [bp-18h] BYREF\n  cocos2d::CCSize v17; // 0:^0.8\n  cocos2d::CCRect v18; // 0:kr00_16.16\n\n  x = a2.x;\n  y = a2.y;\n  cocos2d::CCRect::CCRect(&v16, 0.0, 0.0, 40.0, 40.0);\n  v18.origin.x = v12;\n  v18.origin.y = v13;\n  v18.size = v17;\n  v6 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(\n                            (cocos2d::extension::CCScale9Sprite *)\"square02_small.png\",\n                            (const char *)&v16,\n                            v18);\n  ((void (__fastcall *)(cocos2d::CCNode *, int))v6->__vftable[1].~CCNode_0)(v6, 100);\n  cocos2d::CCSize::CCSize(&v14, 60.0, 30.0);\n  v6->setContentSize(v6, &v14);\n  a1->addChild_0(a1, v6, -1);\n  setPosition = v6->setPosition;\n  cocos2d::CCPoint::CCPoint(&v15, 50.0, 0.0);\n  cocos2d::CCPoint::operator+(&v16, LODWORD(x), &v15);\n  setPosition(v6, &v16.origin);\n  ((void (__fastcall *)(cocos2d::CCNode *, int))v6->setScale)(v6, 1058642330);\n  v8 = CCTextInputNode::create(30.0, 24.0, \"Num\", \"Thonburi\");\n  ((void (__fastcall *)(ConfigureHSVWidget *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int *, const char *))a1->addChild_0)(\n    a1,\n    v8,\n    20,\n    a1->addChild_0,\n    &dword_18,\n    \"bigFont.fnt\");\n  v9 = v8->setPosition;\n  v10 = (int)v6->getPosition(v6);\n  v9(v8, (const cocos2d::CCPoint *)v10);\n  CCTextInputNode::setMaxLabelScale(v8, 0.36);\n  CCTextInputNode::setMaxLabelWidth(v8, 60.0);\n  v8->m_textField->setVisible(v8->m_textField, 0);\n  v8->m_maxLabelLength = 5;\n  v8->m_valueType = Float;\n  sub_776584((int)&v16, \"0123456789.-\");\n  CCTextInputNode::setAllowedChars((int)v8, (int)&v16);\n  sub_774008(&v16);\n  ((void (__fastcall *)(CCTextInputNode *, float))v8->setTag)(v8, COERCE_FLOAT(LODWORD(y)));\n  v8->m_delegate = &a1->TextInputDelegate;\n  m_inputs = a1->m_inputs;\n  v8->m_numberInput = 1;\n  cocos2d::CCDictionary::setObject(m_inputs, v8, SLODWORD(y));\n}", "assembly": "; \n; ConfigureHSVWidget::createTextInputNode from 0x4b684c to 0x4b69a2 (342 bytes)\n; \n; 3 xrefs:\n; > ConfigureHSVWidget::init @ 0x4b71cc\n; > ConfigureHSVWidget::init @ 0x4b72d0\n; > ConfigureHSVWidget::init @ 0x4b73ca\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.W          {R4-R11,LR}                                            ; +0x0, 0x4b684c\nSUB             SP, SP, #0x34                                          ; +0x4, 0x4b6850\nLDR             R7, =(__stack_chk_guard_ptr - 0x4B685E)                ; +0x6, 0x4b6852\nADD             R6, SP, #0x34+var_18                                   ; +0x8, 0x4b6854\nMOV             R11, R1                                                ; +0xa, 0x4b6856\nMOVS            R1, #0; float                                          ; +0xc, 0x4b6858\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4b685a\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x4b685c\nMOV             R8, R0                                                 ; +0x12, 0x4b685e\nMOV             R10, R2                                                ; +0x14, 0x4b6860\nMOV             R0, R6; this                                           ; +0x16, 0x4b6862\nLDR             R3, [R7]                                               ; +0x18, 0x4b6864\nMOV             R2, R1; float                                          ; +0x1a, 0x4b6866\nADD             R4, SP, #0x34+var_28                                   ; +0x1c, 0x4b6868\nADD.W           R9, SP, #0x34+var_20                                   ; +0x1e, 0x4b686a\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x22, 0x4b686e\nLDR             R3, flt_4B69A4; float                                  ; +0x24, 0x4b6870\nSTR             R3, [SP,#0x34+var_34]; float                           ; +0x26, 0x4b6872\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x28, 0x4b6874\nLDR             R0, =(aSquare02SmallP - 0x4B6880); \"square02_small.png\" ; +0x2c, 0x4b6878\nMOV             R1, R6                                                 ; +0x2e, 0x4b687a\nADD             R0, PC; \"square02_small.png\"                           ; +0x30, 0x4b687c\nBL              _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0x32, 0x4b687e\nMOVS            R1, #0x64 ; 'd'                                        ; +0x36, 0x4b6882\nLDR             R3, [R0]                                               ; +0x38, 0x4b6884\nMOV             R5, R0                                                 ; +0x3a, 0x4b6886\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x3c, 0x4b6888\nBLX             R3                                                     ; +0x40, 0x4b688c\nLDR             R2, flt_4B69A8; float                                  ; +0x42, 0x4b688e\nMOV             R0, R4; this                                           ; +0x44, 0x4b6890\nLDR             R1, flt_4B69AC; float                                  ; +0x46, 0x4b6892\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x48, 0x4b6894\nLDR             R3, [R5]                                               ; +0x4c, 0x4b6898\nMOV             R1, R4                                                 ; +0x4e, 0x4b689a\nMOV             R0, R5                                                 ; +0x50, 0x4b689c\nLDR.W           R3, [R3,#0x98]                                         ; +0x52, 0x4b689e\nBLX             R3                                                     ; +0x56, 0x4b68a2\nLDR.W           R3, [R8]                                               ; +0x58, 0x4b68a4\nMOV             R0, R8                                                 ; +0x5c, 0x4b68a8\nMOV             R1, R5                                                 ; +0x5e, 0x4b68aa\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x60, 0x4b68ac\nLDR.W           R3, [R3,#0xE0]                                         ; +0x64, 0x4b68b0\nBLX             R3                                                     ; +0x68, 0x4b68b4\nLDR             R3, [R5]                                               ; +0x6a, 0x4b68b6\nLDR             R1, flt_4B69B0; float                                  ; +0x6c, 0x4b68b8\nMOVS            R2, #0; float                                          ; +0x6e, 0x4b68ba\nMOV             R0, R9; this                                           ; +0x70, 0x4b68bc\nLDR             R4, [R3,#0x5C]                                         ; +0x72, 0x4b68be\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x74, 0x4b68c0\nMOV             R2, R9                                                 ; +0x78, 0x4b68c4\nMOV             R1, R11                                                ; +0x7a, 0x4b68c6\nMOV             R0, R6                                                 ; +0x7c, 0x4b68c8\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x7e, 0x4b68ca\nMOV             R0, R5                                                 ; +0x82, 0x4b68ce\nMOV             R1, R6                                                 ; +0x84, 0x4b68d0\nBLX             R4                                                     ; +0x86, 0x4b68d2\nLDR             R3, [R5]                                               ; +0x88, 0x4b68d4\nMOV             R0, R5                                                 ; +0x8a, 0x4b68d6\nLDR             R1, =0x3F19999A                                        ; +0x8c, 0x4b68d8\nLDR             R3, [R3,#0x50]                                         ; +0x8e, 0x4b68da\nBLX             R3                                                     ; +0x90, 0x4b68dc\nMOVS            R3, #dword_18                                          ; +0x92, 0x4b68de\nSTR             R3, [SP,#0x34+var_34]; char *                          ; +0x94, 0x4b68e0\nLDR             R3, =(aBigfontFnt - 0x4B68EA); \"bigFont.fnt\"           ; +0x96, 0x4b68e2\nLDR             R2, =(aNum - 0x4B68F0); \"Num\"                          ; +0x98, 0x4b68e4\nADD             R3, PC; \"bigFont.fnt\"                                  ; +0x9a, 0x4b68e6\nSTR             R3, [SP,#0x34+var_30]; char *                          ; +0x9c, 0x4b68e8\nLDR             R3, =(aThonburi - 0x4B68F4); \"Thonburi\"                ; +0x9e, 0x4b68ea\nADD             R2, PC; \"Num\"                                          ; +0xa0, 0x4b68ec\nLDR             R1, flt_4B69B8; float                                  ; +0xa2, 0x4b68ee\nADD             R3, PC; \"Thonburi\"                                     ; +0xa4, 0x4b68f0\nLDR             R0, =0x41F00001; this                                  ; +0xa6, 0x4b68f2\nBL              _ZN15CCTextInputNode6createEffPKcS1_iS1_; CCTextInputNode::create(float,float,char const*,char const*,int,char const*) ; +0xa8, 0x4b68f4\nLDR.W           R3, [R8]                                               ; +0xac, 0x4b68f8\nMOVS            R2, #0x14                                              ; +0xb0, 0x4b68fc\nLDR.W           R3, [R3,#0xE0]                                         ; +0xb2, 0x4b68fe\nMOV             R4, R0                                                 ; +0xb6, 0x4b6902\nMOV             R0, R8                                                 ; +0xb8, 0x4b6904\nMOV             R1, R4                                                 ; +0xba, 0x4b6906\nBLX             R3                                                     ; +0xbc, 0x4b6908\nLDR             R3, [R4]                                               ; +0xbe, 0x4b690a\nMOV             R0, R5                                                 ; +0xc0, 0x4b690c\nLDR.W           R11, [R3,#0x5C]                                        ; +0xc2, 0x4b690e\nLDR             R3, [R5]                                               ; +0xc6, 0x4b6912\nLDR             R3, [R3,#0x60]                                         ; +0xc8, 0x4b6914\nBLX             R3                                                     ; +0xca, 0x4b6916\nMOV             R1, R0                                                 ; +0xcc, 0x4b6918\nMOV             R0, R4                                                 ; +0xce, 0x4b691a\nBLX             R11                                                    ; +0xd0, 0x4b691c\nMOV             R0, R4; this                                           ; +0xd2, 0x4b691e\nLDR             R1, flt_4B69C0; float                                  ; +0xd4, 0x4b6920\nBL              _ZN15CCTextInputNode16setMaxLabelScaleEf; CCTextInputNode::setMaxLabelScale(float) ; +0xd6, 0x4b6922\nMOV             R0, R4; this                                           ; +0xda, 0x4b6926\nLDR             R1, flt_4B69AC; float                                  ; +0xdc, 0x4b6928\nBL              _ZN15CCTextInputNode16setMaxLabelWidthEf; CCTextInputNode::setMaxLabelWidth(float) ; +0xde, 0x4b692a\nLDR.W           R0, [R4,#0x17C]                                        ; +0xe2, 0x4b692e\nMOVS            R1, #0                                                 ; +0xe6, 0x4b6932\nLDR             R3, [R0]                                               ; +0xe8, 0x4b6934\nLDR.W           R3, [R3,#0xA4]                                         ; +0xea, 0x4b6936\nBLX             R3                                                     ; +0xee, 0x4b693a\nLDR             R1, =(a0123456789_2 - 0x4B694A); \"0123456789.-\"        ; +0xf0, 0x4b693c\nMOVS            R3, #5                                                 ; +0xf2, 0x4b693e\nMOV             R0, R6; int                                            ; +0xf4, 0x4b6940\nSTR.W           R3, [R4,#0x184]                                        ; +0xf6, 0x4b6942\nADD             R1, PC; \"0123456789.-\"                                 ; +0xfa, 0x4b6946\nMOVS            R3, #1                                                 ; +0xfc, 0x4b6948\nMOV             R2, R9                                                 ; +0xfe, 0x4b694a\nSTR.W           R3, [R4,#0x194]                                        ; +0x100, 0x4b694c\nBL              sub_776584                                             ; +0x104, 0x4b6950\nMOV             R0, R4                                                 ; +0x108, 0x4b6954\nMOV             R1, R6                                                 ; +0x10a, 0x4b6956\nBL              _ZN15CCTextInputNode15setAllowedCharsESs; CCTextInputNode::setAllowedChars(std::string) ; +0x10c, 0x4b6958\nMOV             R0, R6                                                 ; +0x110, 0x4b695c\nBL              sub_774008                                             ; +0x112, 0x4b695e\nLDR             R3, [R4]                                               ; +0x116, 0x4b6962\nMOV             R0, R4                                                 ; +0x118, 0x4b6964\nMOV             R1, R10                                                ; +0x11a, 0x4b6966\nLDR             R3, [R3,#0x24]                                         ; +0x11c, 0x4b6968\nBLX             R3                                                     ; +0x11e, 0x4b696a\nADD.W           R3, R8, #0x108                                         ; +0x120, 0x4b696c\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x124, 0x4b6970\nSTR.W           R3, [R4,#0x180]                                        ; +0x126, 0x4b6972\nMOV             R2, R10; int                                           ; +0x12a, 0x4b6976\nMOVS            R3, #1                                                 ; +0x12c, 0x4b6978\nLDR.W           R0, [R8,#0x140]; this                                  ; +0x12e, 0x4b697a\nSTRB.W          R3, [R4,#0x144]                                        ; +0x132, 0x4b697e\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x136, 0x4b6982\nLDR             R5, [SP,#0x34+var_8]                                   ; +0x13a, 0x4b6986\nLDR             R3, [R7]                                               ; +0x13c, 0x4b6988\nCMP             R5, R3                                                 ; +0x13e, 0x4b698a\nBEQ             loc_4B699C                                             ; +0x140, 0x4b698c\nBLX             __stack_chk_fail                                       ; +0x142, 0x4b698e\nMOV             R0, R6                                                 ; +0x146, 0x4b6992\nBL              sub_774008                                             ; +0x148, 0x4b6994\nBL              __cxa_end_cleanup                                      ; +0x14c, 0x4b6998\nADD             SP, SP, #0x34 ; '4'                                    ; +0x150, 0x4b699c\nPOP.W           {R4-R11,PC}                                            ; +0x152, 0x4b699e", "xrefs": ["ConfigureHSVWidget::init @ 0x4b71cc", "ConfigureHSVWidget::init @ 0x4b72d0", "ConfigureHSVWidget::init @ 0x4b73ca"], "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"}