{"type": "func", "start": 5790728, "end": 5790904, "name": "AccountRegisterLayer::createTextLabel", "pseudocode": "// \n// AccountRegisterLayer::createTextLabel from 0x585c08 to 0x585cb8 (176 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::init @ 0x586d26\n// > AccountRegisterLayer::init @ 0x586e00\n// > AccountRegisterLayer::init @ 0x586ff4\n// > AccountRegisterLayer::init @ 0x5870ea\n// > AccountRegisterLayer::init @ 0x5871cc\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::createTextLabel(int a1, int a2, int a3, float *a4)\n{\n  cocos2d::CCLabelBMFont *v7; // r0\n  int v8; // r4\n  void (__fastcall *v9)(int, _BYTE *); // r10\n  void (__fastcall *v10)(int, _BYTE *); // r10\n  _BYTE v12[8]; // [sp+4h] [bp-14h] BYREF\n  _BYTE v13[8]; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n    v7 = *(cocos2d::CCLabelBMFont **)(a3 + 8);\n  else\n    v7 = (cocos2d::CCLabelBMFont *)(a3 + 1);\n  v8 = cocos2d::CCLabelBMFont::create(v7, \"bigFont.fnt\", (const char *)a3);\n  v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 148);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 0.0);\n  v9(v8, v13);\n  v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -(float)(*a4 * 0.5), (float)(a4[1] * 0.5) + 1.0);\n  cocos2d::CCPoint::operator+(v13, a2, v12);\n  v10(v8, v13);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 80))(v8, 1053609165);\n  (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v8);\n  return v8;\n}", "assembly": "; \n; AccountRegisterLayer::createTextLabel from 0x585c08 to 0x585cb8 (176 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::init @ 0x586d26\n; > AccountRegisterLayer::init @ 0x586e00\n; > AccountRegisterLayer::init @ 0x586ff4\n; > AccountRegisterLayer::init @ 0x5870ea\n; > AccountRegisterLayer::init @ 0x5871cc\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; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x585c08\nMOV             R9, R1                                                 ; +0x4, 0x585c0c\nLDR             R1, =(__stack_chk_guard_ptr - 0x585C1A)                ; +0x6, 0x585c0e\nMOV             R6, R3                                                 ; +0x8, 0x585c10\nSUB             SP, SP, #0x18                                          ; +0xa, 0x585c12\nMOV             R8, R0                                                 ; +0xc, 0x585c14\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xe, 0x585c16\nLDR             R1, [R1]; __stack_chk_guard                            ; +0x10, 0x585c18\nADD             R5, SP, #0x18+var_C                                    ; +0x12, 0x585c1a\nLDR             R3, [R1]                                               ; +0x14, 0x585c1c\nMOV             R7, R1                                                 ; +0x16, 0x585c1e\nLDR             R1, =(aBigfontFnt - 0x585C28); \"bigFont.fnt\"           ; +0x18, 0x585c20\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1a, 0x585c22\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x1c, 0x585c24\nLDRB            R3, [R2]                                               ; +0x1e, 0x585c26\nTST.W           R3, #1                                                 ; +0x20, 0x585c28\nITE EQ                                                                 ; +0x24, 0x585c2c\nADDEQ           R0, R2, #1                                             ; +0x26, 0x585c2e\nLDRNE           R0, [R2,#8]; this                                      ; +0x28, 0x585c30\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x2a, 0x585c32\nMOVS            R1, #0; float                                          ; +0x2e, 0x585c36\nMOV             R2, R1; float                                          ; +0x30, 0x585c38\nLDR             R3, [R0]                                               ; +0x32, 0x585c3a\nMOV             R4, R0                                                 ; +0x34, 0x585c3c\nMOV             R0, R5; this                                           ; +0x36, 0x585c3e\nLDR.W           R10, [R3,#0x94]                                        ; +0x38, 0x585c40\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x3c, 0x585c44\nMOV             R0, R4                                                 ; +0x40, 0x585c48\nMOV             R1, R5                                                 ; +0x42, 0x585c4a\nBLX             R10                                                    ; +0x44, 0x585c4c\nVMOV.F32        S15, #0.5                                              ; +0x46, 0x585c4e\nVLDR            S14, [R6]                                              ; +0x4a, 0x585c52\nLDR             R3, [R4]                                               ; +0x4e, 0x585c56\nVLDR            S13, [R6,#4]                                           ; +0x50, 0x585c58\nADD             R6, SP, #0x18+var_14                                   ; +0x54, 0x585c5c\nLDR.W           R10, [R3,#0x5C]                                        ; +0x56, 0x585c5e\nMOV             R0, R6; this                                           ; +0x5a, 0x585c62\nVNMUL.F32       S14, S14, S15                                          ; +0x5c, 0x585c64\nVMOV            R1, S14; float                                         ; +0x60, 0x585c68\nVMOV.F32        S14, #1.0                                              ; +0x64, 0x585c6c\nVMLA.F32        S14, S13, S15                                          ; +0x68, 0x585c70\nVMOV            R2, S14; float                                         ; +0x6c, 0x585c74\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x70, 0x585c78\nMOV             R2, R6                                                 ; +0x74, 0x585c7c\nMOV             R0, R5                                                 ; +0x76, 0x585c7e\nMOV             R1, R9                                                 ; +0x78, 0x585c80\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x7a, 0x585c82\nMOV             R0, R4                                                 ; +0x7e, 0x585c86\nMOV             R1, R5                                                 ; +0x80, 0x585c88\nBLX             R10                                                    ; +0x82, 0x585c8a\nLDR             R3, [R4]                                               ; +0x84, 0x585c8c\nMOV             R0, R4                                                 ; +0x86, 0x585c8e\nLDR             R1, =0x3ECCCCCD                                        ; +0x88, 0x585c90\nLDR             R3, [R3,#0x50]                                         ; +0x8a, 0x585c92\nBLX             R3                                                     ; +0x8c, 0x585c94\nLDR.W           R0, [R8,#0x1CC]                                        ; +0x8e, 0x585c96\nMOV             R1, R4                                                 ; +0x92, 0x585c9a\nLDR             R3, [R0]                                               ; +0x94, 0x585c9c\nLDR.W           R3, [R3,#0xE4]                                         ; +0x96, 0x585c9e\nBLX             R3                                                     ; +0x9a, 0x585ca2\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x9c, 0x585ca4\nLDR             R3, [R7]                                               ; +0x9e, 0x585ca6\nMOV             R0, R4                                                 ; +0xa0, 0x585ca8\nCMP             R2, R3                                                 ; +0xa2, 0x585caa\nBEQ             loc_585CB2                                             ; +0xa4, 0x585cac\nBLX             __stack_chk_fail                                       ; +0xa6, 0x585cae\nADD             SP, SP, #0x18                                          ; +0xaa, 0x585cb2\nPOP.W           {R4-R10,PC}                                            ; +0xac, 0x585cb4", "xrefs": ["AccountRegisterLayer::init @ 0x586d26", "AccountRegisterLayer::init @ 0x586e00", "AccountRegisterLayer::init @ 0x586ff4", "AccountRegisterLayer::init @ 0x5870ea", "AccountRegisterLayer::init @ 0x5871cc"], "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"}