{"type": "func", "start": 4620688, "end": 4620816, "name": "AccountRegisterLayer::createTextBackground", "pseudocode": "// \n// AccountRegisterLayer::createTextBackground from 0x468190 to 0x468210 (128 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::init @ 0x4685a0\n// > AccountRegisterLayer::init @ 0x468664\n// > AccountRegisterLayer::init @ 0x468796\n// > AccountRegisterLayer::init @ 0x468872\n// > AccountRegisterLayer::init @ 0x468938\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\ncocos2d::extension::CCScale9Sprite *AccountRegisterLayer::createTextBackground(\n        AccountRegisterLayer *a1,\n        cocos2d::CCPoint a2,\n        cocos2d::CCSize a3)\n{\n  float x; // r7\n  float y; // r9\n  cocos2d::extension::CCScale9Sprite *v6; // r4\n  float v8; // r2\n  float v9; // r3\n  cocos2d::CCRect v10; // [sp+Ch] [bp-28h] BYREF\n  cocos2d::CCRect v11; // [sp+1Ch] [bp-18h] BYREF\n  cocos2d::CCSize v12; // 0:^0.8\n  cocos2d::CCRect v13; // 0:kr00_16.16\n\n  x = a2.x;\n  y = a2.y;\n  cocos2d::CCRect::CCRect(&v10, 0.0, 0.0, 40.0, 40.0);\n  cocos2d::CCRect::CCRect(&v11, &v10);\n  v13.origin.x = v8;\n  v13.origin.y = v9;\n  v13.size = v12;\n  v6 = (cocos2d::extension::CCScale9Sprite *)cocos2d::extension::CCScale9Sprite::create(\n                                               (cocos2d::extension::CCScale9Sprite *)\"square02_small.png\",\n                                               (const char *)&v11,\n                                               v13);\n  ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v6->setContentSize)(v6, COERCE_FLOAT(LODWORD(y)));\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 1);\n  v6->setOpacity(v6, 100);\n  ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v6->setPosition)(v6, COERCE_FLOAT(LODWORD(x)));\n  return v6;\n}", "assembly": "; \n; AccountRegisterLayer::createTextBackground from 0x468190 to 0x468210 (128 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::init @ 0x4685a0\n; > AccountRegisterLayer::init @ 0x468664\n; > AccountRegisterLayer::init @ 0x468796\n; > AccountRegisterLayer::init @ 0x468872\n; > AccountRegisterLayer::init @ 0x468938\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-R9,LR}                                             ; +0x0, 0x468190\nSUB             SP, SP, #0x34                                          ; +0x4, 0x468194\nLDR             R5, =(__stack_chk_guard_ptr - 0x4681A2)                ; +0x6, 0x468196\nADD             R4, SP, #0x34+var_28                                   ; +0x8, 0x468198\nMOV             R7, R1                                                 ; +0xa, 0x46819a\nADD             R6, SP, #0x34+var_18                                   ; +0xc, 0x46819c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x46819e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x4681a0\nMOVS            R1, #0; float                                          ; +0x12, 0x4681a2\nMOV             R8, R0                                                 ; +0x14, 0x4681a4\nMOV             R9, R2                                                 ; +0x16, 0x4681a6\nLDR             R3, [R5]                                               ; +0x18, 0x4681a8\nMOV             R2, R1; float                                          ; +0x1a, 0x4681aa\nMOV             R0, R4; this                                           ; +0x1c, 0x4681ac\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1e, 0x4681ae\nLDR             R3, flt_468210; float                                  ; +0x20, 0x4681b0\nSTR             R3, [SP,#0x34+var_34]; float                           ; +0x22, 0x4681b2\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x24, 0x4681b4\nMOV             R1, R4; cocos2d::CCRect *                              ; +0x28, 0x4681b8\nMOV             R0, R6; this                                           ; +0x2a, 0x4681ba\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x2c, 0x4681bc\nLDR             R0, =(aSquare02SmallP - 0x4681C8); \"square02_small.png\" ; +0x30, 0x4681c0\nMOV             R1, R6                                                 ; +0x32, 0x4681c2\nADD             R0, PC; \"square02_small.png\"                           ; +0x34, 0x4681c4\nBL              _ZN7cocos2d9extension14CCScale9Sprite6createEPKcNS_6CCRectE; cocos2d::extension::CCScale9Sprite::create(char const*,cocos2d::CCRect) ; +0x36, 0x4681c6\nMOV             R1, R9                                                 ; +0x3a, 0x4681ca\nLDR             R3, [R0]                                               ; +0x3c, 0x4681cc\nMOV             R4, R0                                                 ; +0x3e, 0x4681ce\nLDR.W           R3, [R3,#0x98]                                         ; +0x40, 0x4681d0\nBLX             R3                                                     ; +0x44, 0x4681d4\nLDR.W           R0, [R8,#0x1C8]                                        ; +0x46, 0x4681d6\nMOVS            R2, #1                                                 ; +0x4a, 0x4681da\nMOV             R1, R4                                                 ; +0x4c, 0x4681dc\nLDR             R3, [R0]                                               ; +0x4e, 0x4681de\nLDR.W           R3, [R3,#0xE0]                                         ; +0x50, 0x4681e0\nBLX             R3                                                     ; +0x54, 0x4681e4\nLDR             R3, [R4]                                               ; +0x56, 0x4681e6\nMOV             R0, R4                                                 ; +0x58, 0x4681e8\nMOVS            R1, #0x64 ; 'd'                                        ; +0x5a, 0x4681ea\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x5c, 0x4681ec\nBLX             R3                                                     ; +0x60, 0x4681f0\nLDR             R3, [R4]                                               ; +0x62, 0x4681f2\nMOV             R0, R4                                                 ; +0x64, 0x4681f4\nMOV             R1, R7                                                 ; +0x66, 0x4681f6\nLDR             R3, [R3,#0x5C]                                         ; +0x68, 0x4681f8\nBLX             R3                                                     ; +0x6a, 0x4681fa\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x6c, 0x4681fc\nLDR             R3, [R5]                                               ; +0x6e, 0x4681fe\nMOV             R0, R4                                                 ; +0x70, 0x468200\nCMP             R2, R3                                                 ; +0x72, 0x468202\nBEQ             loc_46820A                                             ; +0x74, 0x468204\nBLX             __stack_chk_fail                                       ; +0x76, 0x468206\nADD             SP, SP, #0x34 ; '4'                                    ; +0x7a, 0x46820a\nPOP.W           {R4-R9,PC}                                             ; +0x7c, 0x46820c", "xrefs": ["AccountRegisterLayer::init @ 0x4685a0", "AccountRegisterLayer::init @ 0x468664", "AccountRegisterLayer::init @ 0x468796", "AccountRegisterLayer::init @ 0x468872", "AccountRegisterLayer::init @ 0x468938"], "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"}