; ; AccountLayer::backupAccountFailed from 0x585040 to 0x5851de (414 bytes) ; ; 1 xrefs: ; > `non-virtual thunk to'AccountLayer::backupAccountFailed @ 0x585208 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:52:57 +0000 ; PUSH.W {R4-R9,LR} ; +0x0, 0x585040 MOV R6, R1 ; +0x4, 0x585044 VPUSH {D8-D9} ; +0x6, 0x585046 MOV R9, R2 ; +0xa, 0x58504a LDR R4, =(__stack_chk_guard_ptr - 0x585054) ; +0xc, 0x58504c MOV R7, R0 ; +0xe, 0x58504e ADD R4, PC; __stack_chk_guard_ptr ; +0x10, 0x585050 LDR R4, [R4]; __stack_chk_guard ; +0x12, 0x585052 VLDR S18, =9.5367e-7 ; +0x14, 0x585054 SUB SP, SP, #0x4C ; +0x18, 0x585058 LDR R3, [R4] ; +0x1a, 0x58505a ADD R5, SP, #0x4C+var_38 ; +0x1c, 0x58505c STR R3, [SP,#0x4C+var_8] ; +0x1e, 0x58505e BL _ZN12AccountLayer13hideLoadingUIEv; AccountLayer::hideLoadingUI(void) ; +0x20, 0x585060 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x24, 0x585064 VLDR S17, [R0,#0x148] ; +0x28, 0x585068 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x2c, 0x58506c LDR R1, =(unk_B6B226 - 0x58507A) ; +0x30, 0x585070 MOVS R2, #0 ; +0x32, 0x585072 STR R2, [SP,#0x4C+var_38] ; +0x34, 0x585074 ADD R1, PC; unk_B6B226 ; +0x36, 0x585076 STR R2, [SP,#0x4C+var_34] ; +0x38, 0x585078 VCVT.F32.S32 S17, S17 ; +0x3a, 0x58507a STR R2, [SP,#0x4C+var_30] ; +0x3e, 0x58507e VMUL.F32 S17, S17, S18 ; +0x40, 0x585080 VLDR S16, [R0,#0x14C] ; +0x44, 0x585084 MOV R0, R5 ; +0x48, 0x585088 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4a, 0x58508a VLDR S15, =32.0 ; +0x4e, 0x58508e VCVT.F32.S32 S16, S16 ; +0x52, 0x585092 VMUL.F32 S16, S16, S18 ; +0x56, 0x585096 VADD.F32 S13, S17, S16 ; +0x5a, 0x58509a VCMPE.F32 S13, S15 ; +0x5e, 0x58509e VMRS APSR_nzcv, FPSCR ; +0x62, 0x5850a2 BLE loc_5850E2 ; +0x66, 0x5850a6 VCVT.F64.F32 D7, S17 ; +0x68, 0x5850a8 LDR R0, =(aSize2f32mbProf - 0x5850B2); "Size: %.2f/32MB. (Profile: %.2f, Levels"... ; +0x6c, 0x5850ac ADD R0, PC; "Size: %.2f/32MB. (Profile: %.2f, Levels"... ; +0x6e, 0x5850ae VSTR D7, [SP,#0x4C+var_4C] ; +0x70, 0x5850b0 VCVT.F64.F32 D7, S16 ; +0x74, 0x5850b4 VSTR D7, [SP,#0x4C+var_44] ; +0x78, 0x5850b8 VCVT.F64.F32 D7, S13 ; +0x7c, 0x5850bc VMOV R2, R3, D7 ; +0x80, 0x5850c0 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x84, 0x5850c4 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x88, 0x5850c8 MOV R1, R0; char * ; +0x8c, 0x5850cc MOV R0, R5; int ; +0x8e, 0x5850ce BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x90, 0x5850d0 ADDS R1, R6, #3 ; +0x94, 0x5850d4 LDR.W R8, [R7,#0x1F4] ; +0x96, 0x5850d6 BEQ loc_58510A ; +0x9a, 0x5850da ADDS R6, #2 ; +0x9c, 0x5850dc BEQ loc_5850EA ; +0x9e, 0x5850de B loc_58514C ; +0xa0, 0x5850e0 LDR R1, =(aSaveSizeIsWith - 0x5850EA); "Save size is within limits." ; +0xa2, 0x5850e2 MOV R0, R5 ; +0xa4, 0x5850e4 ADD R1, PC; "Save size is within limits." ; +0xa6, 0x5850e6 B loc_5850D0 ; +0xa8, 0x5850e8 ADD R6, SP, #0x4C+var_2C ; +0xaa, 0x5850ea LDR R1, =(aLoginFailedPle - 0x5850F8); "Login failed. Please login to verify yo"... ; +0xac, 0x5850ec MOVS R2, #0x32 ; '2' ; +0xae, 0x5850ee MOVS R3, #0 ; +0xb0, 0x5850f0 MOV R0, R6 ; +0xb2, 0x5850f2 ADD R1, PC; "Login failed. Please login to verify yo"... ; +0xb4, 0x5850f4 STR R3, [SP,#0x4C+var_2C] ; +0xb6, 0x5850f6 STR R3, [SP,#0x4C+var_28] ; +0xb8, 0x5850f8 STR R3, [SP,#0x4C+var_24] ; +0xba, 0x5850fa BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xbc, 0x5850fc MOV R0, R8 ; +0xc0, 0x585100 MOV R1, R6 ; +0xc2, 0x585102 BL _ZN8TextArea9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; TextArea::setString(std::string) ; +0xc4, 0x585104 B loc_58518A ; +0xc8, 0x585108 LDRB.W R3, [SP,#0x4C+var_38] ; +0xca, 0x58510a MOV R1, R9; char * ; +0xce, 0x58510e LDR R0, =(aBackupFailedEr - 0x58511E); "Backup failed. Error code: %i\n%s" ; +0xd0, 0x585110 LSLS R2, R3, #0x1F ; +0xd2, 0x585112 IT PL ; +0xd4, 0x585114 ADDPL.W R2, SP, #0x4C+var_38+1 ; +0xd6, 0x585116 ADD R0, PC; "Backup failed. Error code: %i\n%s" ; +0xda, 0x58511a IT MI ; +0xdc, 0x58511c LDRMI R2, [SP,#0x4C+var_30] ; +0xde, 0x58511e BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xe0, 0x585120 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xe4, 0x585124 MOVS R3, #0 ; +0xe8, 0x585128 MOV R9, R0 ; +0xea, 0x58512a STR R3, [SP,#0x4C+var_20] ; +0xec, 0x58512c ADD R6, SP, #0x4C+var_20 ; +0xee, 0x58512e STR R3, [SP,#0x4C+var_1C] ; +0xf0, 0x585130 STR R3, [SP,#0x4C+var_18] ; +0xf2, 0x585132 BLX strlen ; +0xf4, 0x585134 MOV R1, R9 ; +0xf8, 0x585138 MOV R2, R0 ; +0xfa, 0x58513a MOV R0, R6 ; +0xfc, 0x58513c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xfe, 0x58513e MOV R0, R8 ; +0x102, 0x585142 MOV R1, R6 ; +0x104, 0x585144 BL _ZN8TextArea9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; TextArea::setString(std::string) ; +0x106, 0x585146 B loc_58518A ; +0x10a, 0x58514a LDRB.W R3, [SP,#0x4C+var_38] ; +0x10c, 0x58514c LDR R0, =(aBackupFailedPl - 0x58515E); "Backup failed. Please try again later."... ; +0x110, 0x585150 LSLS R3, R3, #0x1F ; +0x112, 0x585152 IT PL ; +0x114, 0x585154 ADDPL.W R1, SP, #0x4C+var_38+1 ; +0x116, 0x585156 ADD R0, PC; "Backup failed. Please try again later."... ; +0x11a, 0x58515a IT MI ; +0x11c, 0x58515c LDRMI R1, [SP,#0x4C+var_30]; char * ; +0x11e, 0x58515e BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x120, 0x585160 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x124, 0x585164 MOVS R3, #0 ; +0x128, 0x585168 MOV R9, R0 ; +0x12a, 0x58516a STR R3, [SP,#0x4C+var_14] ; +0x12c, 0x58516c ADD R6, SP, #0x4C+var_14 ; +0x12e, 0x58516e STR R3, [SP,#0x4C+var_10] ; +0x130, 0x585170 STR R3, [SP,#0x4C+var_C] ; +0x132, 0x585172 BLX strlen ; +0x134, 0x585174 MOV R1, R9 ; +0x138, 0x585178 MOV R2, R0 ; +0x13a, 0x58517a MOV R0, R6 ; +0x13c, 0x58517c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x13e, 0x58517e MOV R0, R8 ; +0x142, 0x585182 MOV R1, R6 ; +0x144, 0x585184 BL _ZN8TextArea9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; TextArea::setString(std::string) ; +0x146, 0x585186 MOV R0, R6 ; +0x14a, 0x58518a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x14c, 0x58518c MOVS R3, #0xFF ; +0x150, 0x585190 STRB.W R3, [SP,#0x4C+var_3C] ; +0x152, 0x585192 MOVS R3, #0x4B ; 'K' ; +0x156, 0x585196 STRB.W R3, [SP,#0x4C+var_3C+1] ; +0x158, 0x585198 MOVS R3, #0 ; +0x15c, 0x58519c STRB.W R3, [SP,#0x4C+var_3C+2] ; +0x15e, 0x58519e LDR.W R0, [R7,#0x1F4] ; +0x162, 0x5851a2 LDR R1, [SP,#0x4C+var_3C] ; +0x166, 0x5851a6 BL _ZN8TextArea20colorAllCharactersToEN7cocos2d10_ccColor3BE; TextArea::colorAllCharactersTo(cocos2d::_ccColor3B) ; +0x168, 0x5851a8 MOV R0, R5 ; +0x16c, 0x5851ac BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x16e, 0x5851ae LDR R2, [SP,#0x4C+var_8] ; +0x172, 0x5851b2 LDR R3, [R4] ; +0x174, 0x5851b4 CMP R2, R3 ; +0x176, 0x5851b6 BEQ loc_5851D4 ; +0x178, 0x5851b8 BLX __stack_chk_fail ; +0x17a, 0x5851ba B loc_5851C2 ; +0x17e, 0x5851be B loc_5851C2 ; +0x180, 0x5851c0 MOV R0, R6 ; +0x182, 0x5851c2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x184, 0x5851c4 B loc_5851CA ; +0x188, 0x5851c8 MOV R0, R5 ; +0x18a, 0x5851ca BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x18c, 0x5851cc BL __cxa_end_cleanup ; +0x190, 0x5851d0 ADD SP, SP, #0x4C ; 'L' ; +0x194, 0x5851d4 VPOP {D8-D9} ; +0x196, 0x5851d6 POP.W {R4-R9,PC} ; +0x19a, 0x5851da