{"type": "func", "start": 5790916, "end": 5791090, "name": "AccountRegisterLayer::createTextInput", "pseudocode": "// \n// AccountRegisterLayer::createTextInput from 0x585cc4 to 0x585d72 (174 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::init @ 0x586d64\n// > AccountRegisterLayer::init @ 0x586f44\n// > AccountRegisterLayer::init @ 0x587032\n// > AccountRegisterLayer::init @ 0x587128\n// > AccountRegisterLayer::init @ 0x58720a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:58 +0000\n// \n\nint *__fastcall AccountRegisterLayer::createTextInput(int a1, int a2, int a3, int a4, int a5)\n{\n  int v6; // r5\n  float v7; // s14\n  float v8; // s15\n  char *v9; // r2\n  int *v10; // r4\n  int v11; // r3\n  int v14; // [sp+Ch] [bp-4h]\n\n  HIBYTE(v14) = HIBYTE(a4);\n  v6 = a1 + 440;\n  v7 = *(float *)a3 - 20.0;\n  v8 = *(float *)(a3 + 4);\n  if ( (*(_BYTE *)a4 & 1) != 0 )\n    v9 = *(char **)(a4 + 8);\n  else\n    v9 = (char *)(a4 + 1);\n  v10 = CCTextInputNode::create(\n          (CCTextInputNode *)LODWORD(v7),\n          v8 + 10.0,\n          v9,\n          \"Thonburi\",\n          (const char *)&dword_18,\n          \"bigFont.fnt\",\n          (const char *)a3);\n  (*(void (__fastcall **)(_DWORD, int *, int))(**(_DWORD **)(v6 + 20) + 232))(*(_DWORD *)(v6 + 20), v10, 20);\n  CCTextInputNode::setMaxLabelScale((unsigned int)v10, 0.8);\n  v11 = *v10;\n  v10[105] = v6;\n  (*(void (__fastcall **)(int *, int))(v11 + 36))(v10, a5);\n  (*(void (__fastcall **)(int *, int))(*v10 + 92))(v10, a2);\n  (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v10[104] + 172))(v10[104], 0);\n  LOWORD(v14) = -21896;\n  BYTE2(v14) = -16;\n  CCTextInputNode::setLabelPlaceholderColor((unsigned int)v10, v14);\n  CCTextInputNode::setLabelPlaceholderScale((unsigned int)v10, 0.5);\n  return v10;\n}", "assembly": "; \n; AccountRegisterLayer::createTextInput from 0x585cc4 to 0x585d72 (174 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::init @ 0x586d64\n; > AccountRegisterLayer::init @ 0x586f44\n; > AccountRegisterLayer::init @ 0x587032\n; > AccountRegisterLayer::init @ 0x587128\n; > AccountRegisterLayer::init @ 0x58720a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:58 +0000\n; \nVMOV.F32        S14, #20.0                                             ; +0x0, 0x585cc4\nPUSH            {R0-R6,LR}                                             ; +0x4, 0x585cc8\nMOV             R5, R0                                                 ; +0x6, 0x585cca\nVLDR            S15, [R2]                                              ; +0x8, 0x585ccc\nMOV             R6, R1                                                 ; +0xc, 0x585cd0\nADD.W           R5, R5, #0x1B8                                         ; +0xe, 0x585cd2\nVMOV.F32        S13, #10.0                                             ; +0x12, 0x585cd6\nVSUB.F32        S14, S15, S14                                          ; +0x16, 0x585cda\nVLDR            S15, [R2,#4]                                           ; +0x1a, 0x585cde\nLDRB            R2, [R3]                                               ; +0x1e, 0x585ce2\nLSLS            R2, R2, #0x1F                                          ; +0x20, 0x585ce4\nITE PL                                                                 ; +0x22, 0x585ce6\nADDPL           R2, R3, #1                                             ; +0x24, 0x585ce8\nLDRMI           R2, [R3,#8]; float                                     ; +0x26, 0x585cea\nMOVS            R3, #dword_18                                          ; +0x28, 0x585cec\nSTR             R3, [SP,#0x10+var_10]; char *                          ; +0x2a, 0x585cee\nLDR             R3, =(aBigfontFnt - 0x585CFA); \"bigFont.fnt\"           ; +0x2c, 0x585cf0\nVADD.F32        S15, S15, S13                                          ; +0x2e, 0x585cf2\nADD             R3, PC; \"bigFont.fnt\"                                  ; +0x32, 0x585cf6\nSTR             R3, [SP,#0x10+var_C]; char *                           ; +0x34, 0x585cf8\nLDR             R3, =(aThonburi - 0x585D04); \"Thonburi\"                ; +0x36, 0x585cfa\nVMOV            R0, S14; this                                          ; +0x38, 0x585cfc\nADD             R3, PC; \"Thonburi\"                                     ; +0x3c, 0x585d00\nVMOV            R1, S15; float                                         ; +0x3e, 0x585d02\nBL              _ZN15CCTextInputNode6createEffPKcS1_iS1_; CCTextInputNode::create(float,float,char const*,char const*,int,char const*) ; +0x42, 0x585d06\nMOVS            R2, #0x14                                              ; +0x46, 0x585d0a\nMOV             R4, R0                                                 ; +0x48, 0x585d0c\nLDR             R0, [R5,#0x14]                                         ; +0x4a, 0x585d0e\nMOV             R1, R4                                                 ; +0x4c, 0x585d10\nLDR             R3, [R0]                                               ; +0x4e, 0x585d12\nLDR.W           R3, [R3,#0xE8]                                         ; +0x50, 0x585d14\nBLX             R3                                                     ; +0x54, 0x585d18\nMOV             R0, R4; this                                           ; +0x56, 0x585d1a\nLDR             R1, flt_585D74; float                                  ; +0x58, 0x585d1c\nBL              _ZN15CCTextInputNode16setMaxLabelScaleEf; CCTextInputNode::setMaxLabelScale(float) ; +0x5a, 0x585d1e\nLDR             R3, [R4]                                               ; +0x5e, 0x585d22\nSTR.W           R5, [R4,#0x1A4]                                        ; +0x60, 0x585d24\nMOV             R0, R4                                                 ; +0x64, 0x585d28\nLDR             R1, [SP,#0x10+arg_0]                                   ; +0x66, 0x585d2a\nLDR             R3, [R3,#0x24]                                         ; +0x68, 0x585d2c\nBLX             R3                                                     ; +0x6a, 0x585d2e\nLDR             R3, [R4]                                               ; +0x6c, 0x585d30\nMOV             R0, R4                                                 ; +0x6e, 0x585d32\nMOV             R1, R6                                                 ; +0x70, 0x585d34\nLDR             R3, [R3,#0x5C]                                         ; +0x72, 0x585d36\nBLX             R3                                                     ; +0x74, 0x585d38\nLDR.W           R0, [R4,#0x1A0]                                        ; +0x76, 0x585d3a\nMOVS            R1, #0                                                 ; +0x7a, 0x585d3e\nLDR             R3, [R0]                                               ; +0x7c, 0x585d40\nLDR.W           R3, [R3,#0xAC]                                         ; +0x7e, 0x585d42\nBLX             R3                                                     ; +0x82, 0x585d46\nMOVS            R3, #0x78 ; 'x'                                        ; +0x84, 0x585d48\nSTRB.W          R3, [SP,#0x10+var_4]                                   ; +0x86, 0x585d4a\nMOVS            R3, #0xAA                                              ; +0x8a, 0x585d4e\nSTRB.W          R3, [SP,#0x10+var_4+1]                                 ; +0x8c, 0x585d50\nMOVS            R3, #0xF0                                              ; +0x90, 0x585d54\nSTRB.W          R3, [SP,#0x10+var_4+2]                                 ; +0x92, 0x585d56\nMOV             R0, R4                                                 ; +0x96, 0x585d5a\nLDR             R1, [SP,#0x10+var_4]                                   ; +0x98, 0x585d5c\nBL              _ZN15CCTextInputNode24setLabelPlaceholderColorEN7cocos2d10_ccColor3BE; CCTextInputNode::setLabelPlaceholderColor(cocos2d::_ccColor3B) ; +0x9a, 0x585d5e\nMOV             R0, R4; this                                           ; +0x9e, 0x585d62\nMOV.W           R1, #0x3F000000; float                                 ; +0xa0, 0x585d64\nBL              _ZN15CCTextInputNode24setLabelPlaceholderScaleEf; CCTextInputNode::setLabelPlaceholderScale(float) ; +0xa4, 0x585d68\nMOV             R0, R4                                                 ; +0xa8, 0x585d6c\nADD             SP, SP, #0x10                                          ; +0xaa, 0x585d6e\nPOP             {R4-R6,PC}                                             ; +0xac, 0x585d70", "xrefs": ["AccountRegisterLayer::init @ 0x586d64", "AccountRegisterLayer::init @ 0x586f44", "AccountRegisterLayer::init @ 0x587032", "AccountRegisterLayer::init @ 0x587128", "AccountRegisterLayer::init @ 0x58720a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}