{"type": "func", "start": 5790588, "end": 5790716, "name": "AccountRegisterLayer::createTextBackground", "pseudocode": "// \n// AccountRegisterLayer::createTextBackground from 0x585b7c to 0x585bfc (128 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::init @ 0x586cf6\n// > AccountRegisterLayer::init @ 0x586dd0\n// > AccountRegisterLayer::init @ 0x586fc4\n// > AccountRegisterLayer::init @ 0x5870ba\n// > AccountRegisterLayer::init @ 0x58719c\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::createTextBackground(int a1, int a2, int a3)\n{\n  int v6; // r4\n  _BYTE v8[16]; // [sp+Ch] [bp-28h] BYREF\n  _BYTE v9[16]; // [sp+1Ch] [bp-18h] BYREF\n\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, 0.0, 0.0, 40.0, 40.0);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, (const cocos2d::CCRect *)v8);\n  v6 = cocos2d::extension::CCScale9Sprite::create(\"square02_small.png\", v9);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 160))(v6, a3);\n  (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v6, 1);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 456))(v6, 100);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 92))(v6, a2);\n  return v6;\n}", "assembly": "; \n; AccountRegisterLayer::createTextBackground from 0x585b7c to 0x585bfc (128 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::init @ 0x586cf6\n; > AccountRegisterLayer::init @ 0x586dd0\n; > AccountRegisterLayer::init @ 0x586fc4\n; > AccountRegisterLayer::init @ 0x5870ba\n; > AccountRegisterLayer::init @ 0x58719c\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-R9,LR}                                             ; +0x0, 0x585b7c\nSUB             SP, SP, #0x34                                          ; +0x4, 0x585b80\nLDR             R5, =(__stack_chk_guard_ptr - 0x585B8E)                ; +0x6, 0x585b82\nADD             R4, SP, #0x34+var_28                                   ; +0x8, 0x585b84\nMOV             R7, R1                                                 ; +0xa, 0x585b86\nADD             R6, SP, #0x34+var_18                                   ; +0xc, 0x585b88\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x585b8a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x585b8c\nMOVS            R1, #0; float                                          ; +0x12, 0x585b8e\nMOV             R8, R0                                                 ; +0x14, 0x585b90\nMOV             R9, R2                                                 ; +0x16, 0x585b92\nLDR             R3, [R5]                                               ; +0x18, 0x585b94\nMOV             R2, R1; float                                          ; +0x1a, 0x585b96\nMOV             R0, R4; this                                           ; +0x1c, 0x585b98\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1e, 0x585b9a\nLDR             R3, flt_585BFC; float                                  ; +0x20, 0x585b9c\nSTR             R3, [SP,#0x34+var_34]; float                           ; +0x22, 0x585b9e\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x24, 0x585ba0\nMOV             R1, R4; cocos2d::CCRect *                              ; +0x28, 0x585ba4\nMOV             R0, R6; this                                           ; +0x2a, 0x585ba6\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x2c, 0x585ba8\nLDR             R0, =(aSquare02SmallP - 0x585BB4); \"square02_small.png\" ; +0x30, 0x585bac\nMOV             R1, R6                                                 ; +0x32, 0x585bae\nADD             R0, PC; \"square02_small.png\"                           ; +0x34, 0x585bb0\nBL              _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0x36, 0x585bb2\nMOV             R1, R9                                                 ; +0x3a, 0x585bb6\nLDR             R3, [R0]                                               ; +0x3c, 0x585bb8\nMOV             R4, R0                                                 ; +0x3e, 0x585bba\nLDR.W           R3, [R3,#0xA0]                                         ; +0x40, 0x585bbc\nBLX             R3                                                     ; +0x44, 0x585bc0\nLDR.W           R0, [R8,#0x1CC]                                        ; +0x46, 0x585bc2\nMOVS            R2, #1                                                 ; +0x4a, 0x585bc6\nMOV             R1, R4                                                 ; +0x4c, 0x585bc8\nLDR             R3, [R0]                                               ; +0x4e, 0x585bca\nLDR.W           R3, [R3,#0xE8]                                         ; +0x50, 0x585bcc\nBLX             R3                                                     ; +0x54, 0x585bd0\nLDR             R3, [R4]                                               ; +0x56, 0x585bd2\nMOV             R0, R4                                                 ; +0x58, 0x585bd4\nMOVS            R1, #0x64 ; 'd'                                        ; +0x5a, 0x585bd6\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x5c, 0x585bd8\nBLX             R3                                                     ; +0x60, 0x585bdc\nLDR             R3, [R4]                                               ; +0x62, 0x585bde\nMOV             R0, R4                                                 ; +0x64, 0x585be0\nMOV             R1, R7                                                 ; +0x66, 0x585be2\nLDR             R3, [R3,#0x5C]                                         ; +0x68, 0x585be4\nBLX             R3                                                     ; +0x6a, 0x585be6\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x6c, 0x585be8\nLDR             R3, [R5]                                               ; +0x6e, 0x585bea\nMOV             R0, R4                                                 ; +0x70, 0x585bec\nCMP             R2, R3                                                 ; +0x72, 0x585bee\nBEQ             loc_585BF6                                             ; +0x74, 0x585bf0\nBLX             __stack_chk_fail                                       ; +0x76, 0x585bf2\nADD             SP, SP, #0x34 ; '4'                                    ; +0x7a, 0x585bf6\nPOP.W           {R4-R9,PC}                                             ; +0x7c, 0x585bf8", "xrefs": ["AccountRegisterLayer::init @ 0x586cf6", "AccountRegisterLayer::init @ 0x586dd0", "AccountRegisterLayer::init @ 0x586fc4", "AccountRegisterLayer::init @ 0x5870ba", "AccountRegisterLayer::init @ 0x58719c"], "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"}