; ; DialogLayer::displayDialogObject from 0x4d5ea0 to 0x4d60ae (526 bytes) ; ; 2 xrefs: ; > DialogLayer::displayNextObject @ 0x4d6140 ; > DialogLayer::init @ 0x4d63f4 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; LDR R3, =(__stack_chk_guard_ptr - 0x4D5EAA) ; +0x0, 0x4d5ea0 PUSH.W {R4-R9,LR} ; +0x2, 0x4d5ea2 ADD R3, PC; __stack_chk_guard_ptr ; +0x6, 0x4d5ea6 LDR R3, [R3]; __stack_chk_guard ; +0x8, 0x4d5ea8 VPUSH {D8} ; +0xa, 0x4d5eaa MOV R4, R0 ; +0xe, 0x4d5eae LDR R2, [R3] ; +0x10, 0x4d5eb0 MOV R6, R1 ; +0x12, 0x4d5eb2 MOV R7, R3 ; +0x14, 0x4d5eb4 SUB SP, SP, #0x2C ; +0x16, 0x4d5eb6 STR R2, [SP,#0x2C+var_8] ; +0x18, 0x4d5eb8 CMP R1, #0 ; +0x1a, 0x4d5eba BEQ.W loc_4D6098 ; +0x1c, 0x4d5ebc MOVS R3, #1 ; +0x20, 0x4d5ec0 STRB.W R3, [R0,#0x1DC] ; +0x22, 0x4d5ec2 LDRB.W R3, [R1,#0x48] ; +0x26, 0x4d5ec6 STRB.W R3, [R0,#0x1DD] ; +0x2a, 0x4d5eca LDR.W R0, [R0,#0x1D8]; this ; +0x2e, 0x4d5ece BL _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x32, 0x4d5ed2 LDR.W R0, [R4,#0x1D8] ; +0x36, 0x4d5ed6 MOVS R1, #0 ; +0x3a, 0x4d5eda LDR R3, [R0] ; +0x3c, 0x4d5edc LDR.W R3, [R3,#0x1C0] ; +0x3e, 0x4d5ede BLX R3 ; +0x42, 0x4d5ee2 LDR.W R0, [R4,#0x1CC] ; +0x44, 0x4d5ee4 CBZ R0, loc_4D5EF8 ; +0x48, 0x4d5ee8 LDR R3, [R0] ; +0x4a, 0x4d5eea LDR.W R3, [R3,#0x104] ; +0x4c, 0x4d5eec BLX R3 ; +0x50, 0x4d5ef0 MOVS R3, #0 ; +0x52, 0x4d5ef2 STR.W R3, [R4,#0x1CC] ; +0x54, 0x4d5ef4 LDR.W R3, [R4,#0x1C8] ; +0x58, 0x4d5ef8 CBZ R3, loc_4D5F14 ; +0x5c, 0x4d5efc MOVS R5, #0 ; +0x5e, 0x4d5efe STR.W R5, [R3,#0x23C] ; +0x60, 0x4d5f00 LDR.W R0, [R4,#0x1C8] ; +0x64, 0x4d5f04 LDR R3, [R0] ; +0x68, 0x4d5f08 LDR.W R3, [R3,#0x104] ; +0x6a, 0x4d5f0a BLX R3 ; +0x6e, 0x4d5f0e STR.W R5, [R4,#0x1C8] ; +0x70, 0x4d5f10 LDR.W R8, [R4,#0x1C4] ; +0x74, 0x4d5f14 ADD R5, SP, #0x2C+var_10 ; +0x78, 0x4d5f18 ADD.W R1, R6, #0x38 ; '8' ; +0x7a, 0x4d5f1a MOV R0, R5 ; +0x7e, 0x4d5f1e LDR.W R3, [R8] ; +0x80, 0x4d5f20 LDR.W R9, [R3,#0x1C8] ; +0x84, 0x4d5f24 BL sub_775C20 ; +0x88, 0x4d5f28 MOV R0, R8 ; +0x8c, 0x4d5f2c LDR R1, [SP,#0x2C+var_10] ; +0x8e, 0x4d5f2e BLX R9 ; +0x90, 0x4d5f30 MOV R0, R5 ; +0x92, 0x4d5f32 BL sub_774008 ; +0x94, 0x4d5f34 LDR.W R0, [R4,#0x1C4] ; +0x98, 0x4d5f38 LDRB.W R1, [R6,#0x41] ; +0x9c, 0x4d5f3c LDRB.W R2, [R6,#0x42] ; +0xa0, 0x4d5f40 LDR R3, [R0] ; +0xa4, 0x4d5f44 LDRB.W LR, [R6,#0x40] ; +0xa6, 0x4d5f46 LDR.W R3, [R3,#0x210] ; +0xaa, 0x4d5f4a STRB.W R1, [SP,#0x2C+var_10+1] ; +0xae, 0x4d5f4e MOV R1, R5 ; +0xb2, 0x4d5f52 STRB.W LR, [SP,#0x2C+var_10] ; +0xb4, 0x4d5f54 STRB.W R2, [SP,#0x2C+var_10+2] ; +0xb8, 0x4d5f58 BLX R3 ; +0xbc, 0x4d5f5c LDR R1, [R6,#0x3C] ; +0xbe, 0x4d5f5e CMP R1, #0 ; +0xc0, 0x4d5f60 BLE loc_4D5FB0 ; +0xc2, 0x4d5f62 CMP R1, #0x38 ; '8' ; +0xc4, 0x4d5f64 LDR R0, =(aDialogicon03dP - 0x4D5F72); "dialogIcon_%03d.png" ; +0xc6, 0x4d5f66 IT GE ; +0xc8, 0x4d5f68 MOVGE R1, #0x38 ; '8' ; +0xca, 0x4d5f6a CMP R1, #1 ; +0xcc, 0x4d5f6c ADD R0, PC; "dialogIcon_%03d.png" ; +0xce, 0x4d5f6e IT LT ; +0xd0, 0x4d5f70 MOVLT R1, #(dword_0+1); char * ; +0xd2, 0x4d5f72 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xd4, 0x4d5f74 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xd8, 0x4d5f78 BL _ZN7cocos2d8CCSprite6createEPKc; cocos2d::CCSprite::create(char const*) ; +0xdc, 0x4d5f7c MOVS R2, #2 ; +0xe0, 0x4d5f80 MOV R1, R0 ; +0xe2, 0x4d5f82 STR.W R0, [R4,#0x1CC] ; +0xe4, 0x4d5f84 LDR.W R0, [R4,#0x1C0] ; +0xe8, 0x4d5f88 LDR R3, [R0] ; +0xec, 0x4d5f8c LDR.W R3, [R3,#0xE0] ; +0xee, 0x4d5f8e BLX R3 ; +0xf2, 0x4d5f92 LDR.W R8, [R4,#0x1CC] ; +0xf4, 0x4d5f94 LDR R1, flt_4D60B0; float ; +0xf8, 0x4d5f98 MOV R0, R5; this ; +0xfa, 0x4d5f9a MOVS R2, #0; float ; +0xfc, 0x4d5f9c LDR.W R3, [R8] ; +0xfe, 0x4d5f9e LDR.W R9, [R3,#0x5C] ; +0x102, 0x4d5fa2 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x4d5fa6 MOV R0, R8 ; +0x10a, 0x4d5faa MOV R1, R5 ; +0x10c, 0x4d5fac BLX R9 ; +0x10e, 0x4d5fae ADD.W R8, SP, #0x2C+var_18 ; +0x110, 0x4d5fb0 ADD.W R1, R6, #0x34 ; '4' ; +0x114, 0x4d5fb4 VLDR S17, [R6,#0x44] ; +0x118, 0x4d5fb8 ADD R6, SP, #0x2C+var_14 ; +0x11c, 0x4d5fbc MOV R0, R8 ; +0x11e, 0x4d5fbe BL sub_775C20 ; +0x120, 0x4d5fc0 MOV R0, R6; int ; +0x124, 0x4d5fc4 LDR R1, [SP,#0x2C+var_18]; char * ; +0x126, 0x4d5fc6 ADD R2, SP, #0x2C+var_1C ; +0x128, 0x4d5fc8 BL sub_776584 ; +0x12a, 0x4d5fca VLDR S16, =220.0 ; +0x12e, 0x4d5fce MOV R0, R5; this ; +0x132, 0x4d5fd2 MOVS R1, #0; float ; +0x134, 0x4d5fd4 MOV.W R2, #0x3F800000; float ; +0x136, 0x4d5fd6 VDIV.F32 S16, S16, S17 ; +0x13a, 0x4d5fda BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x13e, 0x4d5fde LDR R3, =0x41A00000 ; +0x142, 0x4d5fe2 MOV R0, R6 ; +0x144, 0x4d5fe4 LDR R1, =(aChatfontFnt - 0x4D5FF4); "chatFont.fnt" ; +0x146, 0x4d5fe6 MOV.W R2, #0x3F800000 ; +0x148, 0x4d5fe8 STR R5, [SP,#0x2C+var_2C] ; +0x14c, 0x4d5fec STR R3, [SP,#0x2C+var_28] ; +0x14e, 0x4d5fee ADD R1, PC; "chatFont.fnt" ; +0x150, 0x4d5ff0 MOVS R3, #0 ; +0x152, 0x4d5ff2 STR R3, [SP,#0x2C+var_24] ; +0x154, 0x4d5ff4 VMOV R3, S16 ; +0x156, 0x4d5ff6 BL _ZN8TextArea6createESsPKcffN7cocos2d7CCPointEfb; TextArea::create(std::string,char const*,float,float,cocos2d::CCPoint,float,bool) ; +0x15a, 0x4d5ffa STR.W R0, [R4,#0x1C8] ; +0x15e, 0x4d5ffe MOV R0, R6 ; +0x162, 0x4d6002 BL sub_774008 ; +0x164, 0x4d6004 MOV R0, R8 ; +0x168, 0x4d6008 BL sub_774008 ; +0x16a, 0x4d600a LDR.W R6, [R4,#0x1C8] ; +0x16e, 0x4d600e MOV.W R2, #0x3F000000; float ; +0x172, 0x4d6012 MOV R0, R5; this ; +0x176, 0x4d6016 MOVS R1, #0; float ; +0x178, 0x4d6018 LDR R3, [R6] ; +0x17a, 0x4d601a LDR.W R8, [R3,#0x8C] ; +0x17c, 0x4d601c BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x180, 0x4d6020 MOV R0, R6 ; +0x184, 0x4d6024 MOV R1, R5 ; +0x186, 0x4d6026 BLX R8 ; +0x188, 0x4d6028 LDR.W R0, [R4,#0x1C8] ; +0x18a, 0x4d602a VMOV R1, S17 ; +0x18e, 0x4d602e LDR R3, [R0] ; +0x192, 0x4d6032 LDR R3, [R3,#0x50] ; +0x194, 0x4d6034 BLX R3 ; +0x196, 0x4d6036 LDR.W R3, [R4,#0x1C8] ; +0x198, 0x4d6038 ADD.W R2, R4, #0x1B8 ; +0x19c, 0x4d603c STR.W R2, [R3,#0x23C] ; +0x1a0, 0x4d6040 MOVS R2, #3 ; +0x1a4, 0x4d6044 LDR.W R0, [R4,#0x1C0] ; +0x1a6, 0x4d6046 LDR.W R1, [R4,#0x1C8] ; +0x1aa, 0x4d604a LDR R3, [R0] ; +0x1ae, 0x4d604e LDR.W R3, [R3,#0xE0] ; +0x1b0, 0x4d6050 BLX R3 ; +0x1b4, 0x4d6054 LDR.W R6, [R4,#0x1C8] ; +0x1b6, 0x4d6056 MOVS R2, #0; float ; +0x1ba, 0x4d605a MOV R0, R5; this ; +0x1bc, 0x4d605c LDR R1, flt_4D60BC; float ; +0x1be, 0x4d605e LDR R3, [R6] ; +0x1c0, 0x4d6060 LDR.W R8, [R3,#0x5C] ; +0x1c2, 0x4d6062 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c6, 0x4d6066 MOV R0, R6 ; +0x1ca, 0x4d606a MOV R1, R5 ; +0x1cc, 0x4d606c BLX R8 ; +0x1ce, 0x4d606e MOVS R3, #0 ; +0x1d0, 0x4d6070 LDR.W R0, [R4,#0x1C8] ; +0x1d2, 0x4d6072 STR R3, [SP,#0x2C+var_2C] ; +0x1d6, 0x4d6076 LDR R1, =0x3E4CCCCD ; +0x1d8, 0x4d6078 LDR R2, =0x3CA3D70A ; +0x1da, 0x4d607a BL _ZN8TextArea16fadeInCharactersEffb15TextFadeInStyle; TextArea::fadeInCharacters(float,float,bool,TextFadeInStyle) ; +0x1dc, 0x4d607c B loc_4D6098 ; +0x1e0, 0x4d6080 MOV R0, R5 ; +0x1e2, 0x4d6082 B loc_4D6090 ; +0x1e4, 0x4d6084 MOV R0, R6 ; +0x1e6, 0x4d6086 BL sub_774008 ; +0x1e8, 0x4d6088 B loc_4D608E ; +0x1ec, 0x4d608c MOV R0, R8 ; +0x1ee, 0x4d608e BL sub_774008 ; +0x1f0, 0x4d6090 BL __cxa_end_cleanup ; +0x1f4, 0x4d6094 LDR R2, [SP,#0x2C+var_8] ; +0x1f8, 0x4d6098 LDR R3, [R7] ; +0x1fa, 0x4d609a CMP R2, R3 ; +0x1fc, 0x4d609c BEQ loc_4D60A4 ; +0x1fe, 0x4d609e BLX __stack_chk_fail ; +0x200, 0x4d60a0 ADD SP, SP, #0x2C ; ',' ; +0x204, 0x4d60a4 VPOP {D8} ; +0x206, 0x4d60a6 POP.W {R4-R9,PC} ; +0x20a, 0x4d60aa