; ; AccountLayer::updatePage from 0x5847ac to 0x584a20 (628 bytes) ; ; 4 xrefs: ; > AccountLayer::doBackup @ 0x584a46 ; > AccountLayer::doSync @ 0x584a78 ; > AccountLayer::accountStatusChanged @ 0x584afa ; > AccountLayer::customSetup @ 0x584f86 ; ; 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-R10,LR} ; +0x0, 0x5847ac SUB SP, SP, #0x18 ; +0x4, 0x5847b0 LDR R7, =(__stack_chk_guard_ptr - 0x5847BE) ; +0x6, 0x5847b2 MOV R5, R0 ; +0x8, 0x5847b4 MOV R9, R1 ; +0xa, 0x5847b6 ADD R4, SP, #0x18+var_10 ; +0xc, 0x5847b8 ADD R7, PC; __stack_chk_guard_ptr ; +0xe, 0x5847ba LDR R7, [R7]; __stack_chk_guard ; +0x10, 0x5847bc LDR R3, [R7] ; +0x12, 0x5847be STR R3, [SP,#0x18+var_4] ; +0x14, 0x5847c0 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x16, 0x5847c2 LDR.W R2, [R0,#0x118] ; +0x1a, 0x5847c6 LDR.W R3, [R0,#0x11C] ; +0x1e, 0x5847ca CMP R2, R3 ; +0x22, 0x5847ce BEQ loc_5847FA ; +0x24, 0x5847d0 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x26, 0x5847d2 ADD.W R1, R0, #0x124 ; +0x2a, 0x5847d6 MOV R0, R4 ; +0x2e, 0x5847da BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x30, 0x5847dc LDRB.W R6, [SP,#0x18+var_10] ; +0x34, 0x5847e0 LSLS R0, R6, #0x1F ; +0x38, 0x5847e4 MOV R0, R4 ; +0x3a, 0x5847e6 ITE PL ; +0x3c, 0x5847e8 ASRPL R6, R6, #1 ; +0x3e, 0x5847ea LDRMI R6, [SP,#0x18+var_C] ; +0x40, 0x5847ec ADDS R6, #0 ; +0x42, 0x5847ee IT NE ; +0x44, 0x5847f0 MOVNE R6, #1 ; +0x46, 0x5847f2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x48, 0x5847f4 B loc_5847FC ; +0x4c, 0x5847f8 MOVS R6, #0 ; +0x4e, 0x5847fa LDR R2, =(byte_BED88C - 0x584806) ; +0x50, 0x5847fc LDR.W R0, [R5,#0x1F4] ; +0x52, 0x5847fe ADD R2, PC; byte_BED88C ; +0x56, 0x584802 LDRB R1, [R2,#(byte_BED890 - 0xBED88C)] ; +0x58, 0x584804 LDRB R3, [R2,#(byte_BED88F - 0xBED88C)] ; +0x5a, 0x584806 ORR.W R3, R3, R1,LSL#8 ; +0x5c, 0x584808 LDRB R1, [R2,#(byte_BED891 - 0xBED88C)] ; +0x60, 0x58480c ORR.W R1, R3, R1,LSL#16 ; +0x62, 0x58480e BL _ZN8TextArea20colorAllCharactersToEN7cocos2d10_ccColor3BE; TextArea::colorAllCharactersTo(cocos2d::_ccColor3B) ; +0x66, 0x584812 CBZ R6, loc_58487A ; +0x6a, 0x584816 LDR.W R8, [R5,#0x1F0] ; +0x6c, 0x584818 LDR.W R3, [R8] ; +0x70, 0x58481c LDR.W R10, [R3,#0x1D0] ; +0x74, 0x584820 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x78, 0x584824 ADD.W R1, R0, #0x10C ; +0x7c, 0x584828 MOV R0, R4 ; +0x80, 0x58482c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x82, 0x58482e LDRB.W R3, [SP,#0x18+var_10] ; +0x86, 0x584832 LDR R0, =(aLinkedToAccoun - 0x584844); "Linked to account: %s" ; +0x8a, 0x584836 LSLS R1, R3, #0x1F ; +0x8c, 0x584838 IT PL ; +0x8e, 0x58483a ADDPL.W R1, SP, #0x18+var_10+1 ; +0x90, 0x58483c ADD R0, PC; "Linked to account: %s" ; +0x94, 0x584840 IT MI ; +0x96, 0x584842 LDRMI R1, [SP,#0x18+var_8]; char * ; +0x98, 0x584844 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x9a, 0x584846 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x9e, 0x58484a MOV R1, R0 ; +0xa2, 0x58484e MOV R0, R8 ; +0xa4, 0x584850 BLX R10 ; +0xa6, 0x584852 MOV R0, R4 ; +0xa8, 0x584854 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xaa, 0x584856 LDR.W R8, [R5,#0x1F4] ; +0xae, 0x58485a LDR R1, =(unk_B6B226 - 0x58486A) ; +0xb2, 0x58485e MOVS R2, #0 ; +0xb4, 0x584860 MOV R0, R4 ; +0xb6, 0x584862 STR R2, [SP,#0x18+var_10] ; +0xb8, 0x584864 ADD R1, PC; unk_B6B226 ; +0xba, 0x584866 STR R2, [SP,#0x18+var_C] ; +0xbc, 0x584868 STR R2, [SP,#0x18+var_8] ; +0xbe, 0x58486a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xc0, 0x58486c MOV R0, R8 ; +0xc4, 0x584870 MOV R1, R4 ; +0xc6, 0x584872 BL _ZN8TextArea9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; TextArea::setString(std::string) ; +0xc8, 0x584874 B loc_584918 ; +0xcc, 0x584878 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0xce, 0x58487a LDR.W R8, [R5,#0x1F0] ; +0xd2, 0x58487e LDR.W R3, [R0,#0x11C] ; +0xd6, 0x584882 LDR.W R2, [R0,#0x118] ; +0xda, 0x584886 CMP R2, R3 ; +0xde, 0x58488a LDR.W R3, [R8] ; +0xe0, 0x58488c BEQ loc_5848EE ; +0xe4, 0x584890 LDR.W R10, [R3,#0x1D0] ; +0xe6, 0x584892 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0xea, 0x584896 ADD.W R1, R0, #0x10C ; +0xee, 0x58489a MOV R0, R4 ; +0xf2, 0x58489e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xf4, 0x5848a0 LDRB.W R3, [SP,#0x18+var_10] ; +0xf8, 0x5848a4 LDR R0, =(aLinkedToAccoun - 0x5848B6); "Linked to account: %s" ; +0xfc, 0x5848a8 LSLS R2, R3, #0x1F ; +0xfe, 0x5848aa IT PL ; +0x100, 0x5848ac ADDPL.W R1, SP, #0x18+var_10+1 ; +0x102, 0x5848ae ADD R0, PC; "Linked to account: %s" ; +0x106, 0x5848b2 IT MI ; +0x108, 0x5848b4 LDRMI R1, [SP,#0x18+var_8]; char * ; +0x10a, 0x5848b6 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x10c, 0x5848b8 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x110, 0x5848bc MOV R1, R0 ; +0x114, 0x5848c0 MOV R0, R8 ; +0x116, 0x5848c2 BLX R10 ; +0x118, 0x5848c4 MOV R0, R4 ; +0x11a, 0x5848c6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x11c, 0x5848c8 LDR.W R8, [R5,#0x1F4] ; +0x120, 0x5848cc LDR R1, =(aLoginRequired - 0x5848DC); "Login required" ; +0x124, 0x5848d0 MOV R0, R4 ; +0x126, 0x5848d2 MOVS R2, #0xE ; +0x128, 0x5848d4 MOVS R3, #0 ; +0x12a, 0x5848d6 ADD R1, PC; "Login required" ; +0x12c, 0x5848d8 STR R3, [SP,#0x18+var_10] ; +0x12e, 0x5848da STR R3, [SP,#0x18+var_C] ; +0x130, 0x5848dc STR R3, [SP,#0x18+var_8] ; +0x132, 0x5848de BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x134, 0x5848e0 MOV R0, R8 ; +0x138, 0x5848e4 MOV R1, R4 ; +0x13a, 0x5848e6 BL _ZN8TextArea9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; TextArea::setString(std::string) ; +0x13c, 0x5848e8 B loc_584918 ; +0x140, 0x5848ec LDR R1, =(aNotLoggedIn - 0x5848FA); "Not logged in" ; +0x142, 0x5848ee MOV R0, R8 ; +0x144, 0x5848f0 LDR.W R3, [R3,#0x1D0] ; +0x146, 0x5848f2 ADD R1, PC; "Not logged in" ; +0x14a, 0x5848f6 BLX R3 ; +0x14c, 0x5848f8 LDR.W R8, [R5,#0x1F4] ; +0x14e, 0x5848fa LDR R1, =(aCreateAnAccoun - 0x58490A); "Create an account to back up\nand load "... ; +0x152, 0x5848fe MOV R0, R4 ; +0x154, 0x584900 MOVS R2, #0x3E ; '>' ; +0x156, 0x584902 STR R6, [SP,#0x18+var_10] ; +0x158, 0x584904 ADD R1, PC; "Create an account to back up\nand load "... ; +0x15a, 0x584906 STR R6, [SP,#0x18+var_C] ; +0x15c, 0x584908 STR R6, [SP,#0x18+var_8] ; +0x15e, 0x58490a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x160, 0x58490c MOV R0, R8 ; +0x164, 0x584910 MOV R1, R4 ; +0x166, 0x584912 BL _ZN8TextArea9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; TextArea::setString(std::string) ; +0x168, 0x584914 MOV R0, R4 ; +0x16c, 0x584918 EOR.W R4, R6, #1 ; +0x16e, 0x58491a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x172, 0x58491e LDR.W R0, [R5,#0x1F8] ; +0x176, 0x584922 MOV R1, R4 ; +0x17a, 0x584926 LDR R3, [R0] ; +0x17c, 0x584928 LDR.W R3, [R3,#0xAC] ; +0x17e, 0x58492a BLX R3 ; +0x182, 0x58492e LDR.W R8, [R5,#0x1FC] ; +0x184, 0x584930 LDR.W R3, [R8] ; +0x188, 0x584934 LDR.W R10, [R3,#0xAC] ; +0x18c, 0x584938 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x190, 0x58493c LDR.W R1, [R0,#0x118] ; +0x194, 0x584940 LDR.W R3, [R0,#0x11C] ; +0x198, 0x584944 MOV R0, R8 ; +0x19c, 0x584948 SUBS R3, R1, R3 ; +0x19e, 0x58494a NEGS R1, R3 ; +0x1a0, 0x58494c ADCS R1, R3 ; +0x1a2, 0x58494e BLX R10 ; +0x1a4, 0x584950 LDR.W R0, [R5,#0x200] ; +0x1a6, 0x584952 MOV R1, R6 ; +0x1aa, 0x584956 LDR R3, [R0] ; +0x1ac, 0x584958 LDR.W R3, [R3,#0xAC] ; +0x1ae, 0x58495a BLX R3 ; +0x1b2, 0x58495e LDR.W R0, [R5,#0x204] ; +0x1b4, 0x584960 MOV R1, R6 ; +0x1b8, 0x584964 LDR R3, [R0] ; +0x1ba, 0x584966 LDR.W R3, [R3,#0xAC] ; +0x1bc, 0x584968 BLX R3 ; +0x1c0, 0x58496c LDR.W R0, [R5,#0x208] ; +0x1c2, 0x58496e MOV R1, R4 ; +0x1c6, 0x584972 LDR R3, [R0] ; +0x1c8, 0x584974 LDR.W R3, [R3,#0xAC] ; +0x1ca, 0x584976 BLX R3 ; +0x1ce, 0x58497a LDR.W R4, [R5,#0x20C] ; +0x1d0, 0x58497c LDR R3, [R4] ; +0x1d4, 0x584980 LDR.W R6, [R3,#0xAC] ; +0x1d6, 0x584982 BL _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x1da, 0x584986 LDR.W R1, [R0,#0x118] ; +0x1de, 0x58498a LDR.W R3, [R0,#0x11C] ; +0x1e2, 0x58498e MOV R0, R4 ; +0x1e6, 0x584992 SUBS R1, R1, R3 ; +0x1e8, 0x584994 IT NE ; +0x1ea, 0x584996 MOVNE R1, #1 ; +0x1ec, 0x584998 BLX R6 ; +0x1ee, 0x58499a CMP.W R9, #0 ; +0x1f0, 0x58499c BEQ loc_584A0E ; +0x1f4, 0x5849a0 LDRB.W R1, [R5,#0x218] ; +0x1f6, 0x5849a2 CBNZ R1, loc_584A0E ; +0x1fa, 0x5849a6 LDR.W R0, [R5,#0x200] ; +0x1fc, 0x5849a8 MOVS R4, #0x7D ; '}' ; +0x200, 0x5849ac LDR R3, [R0] ; +0x202, 0x5849ae LDR.W R3, [R3,#0x210] ; +0x204, 0x5849b0 BLX R3 ; +0x208, 0x5849b4 LDR.W R0, [R5,#0x200] ; +0x20a, 0x5849b6 ADD R5, SP, #0x18+var_14 ; +0x20e, 0x5849ba LDR R3, [R0] ; +0x210, 0x5849bc LDR.W R3, [R3,#0x218] ; +0x212, 0x5849be BLX R3 ; +0x216, 0x5849c2 MOV R1, R5 ; +0x218, 0x5849c4 MOV R6, R0 ; +0x21a, 0x5849c6 LDR.W R0, [R0,#0x224] ; +0x21c, 0x5849c8 LDR R3, [R0] ; +0x220, 0x5849cc LDR.W R3, [R3,#0x1E0] ; +0x222, 0x5849ce STRB.W R4, [SP,#0x18+var_14] ; +0x226, 0x5849d2 STRB.W R4, [SP,#0x18+var_13] ; +0x22a, 0x5849d6 STRB.W R4, [SP,#0x18+var_12] ; +0x22e, 0x5849da BLX R3 ; +0x232, 0x5849de LDR.W R0, [R6,#0x218] ; +0x234, 0x5849e0 MOV R1, R5 ; +0x238, 0x5849e4 LDR R3, [R0] ; +0x23a, 0x5849e6 LDR.W R3, [R3,#0x218] ; +0x23c, 0x5849e8 STRB.W R4, [SP,#0x18+var_14] ; +0x240, 0x5849ec STRB.W R4, [SP,#0x18+var_13] ; +0x244, 0x5849f0 STRB.W R4, [SP,#0x18+var_12] ; +0x248, 0x5849f4 BLX R3 ; +0x24c, 0x5849f8 B loc_584A0E ; +0x24e, 0x5849fa B loc_5849FE ; +0x250, 0x5849fc MOV R0, R4 ; +0x252, 0x5849fe BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x254, 0x584a00 BL __cxa_end_cleanup ; +0x258, 0x584a04 B loc_5849FE ; +0x25c, 0x584a08 B loc_5849FE ; +0x25e, 0x584a0a B loc_5849FE ; +0x260, 0x584a0c LDR R2, [SP,#0x18+var_4] ; +0x262, 0x584a0e LDR R3, [R7] ; +0x264, 0x584a10 CMP R2, R3 ; +0x266, 0x584a12 BEQ loc_584A1A ; +0x268, 0x584a14 BLX __stack_chk_fail ; +0x26a, 0x584a16 ADD SP, SP, #0x18 ; +0x26e, 0x584a1a POP.W {R4-R10,PC} ; +0x270, 0x584a1c