; ; CCCounterLabel::updateString from 0x2e588c to 0x2e5910 (132 bytes) ; ; 2 xrefs: ; > CCCounterLabel::updateCounter @ 0x2e598a ; > CCCounterLabel::fastUpdateCounter @ 0x2e599c ; ; 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 - 0x2E5894) ; +0x0, 0x2e588c PUSH {R0-R2,R4-R7,LR} ; +0x2, 0x2e588e ADD R3, PC; __stack_chk_guard_ptr ; +0x4, 0x2e5890 LDR R3, [R3]; __stack_chk_guard ; +0x6, 0x2e5892 MOV R4, R0 ; +0x8, 0x2e5894 LDR R2, [R3] ; +0xa, 0x2e5896 MOV R5, R3 ; +0xc, 0x2e5898 STR R2, [SP,#0xC+var_8] ; +0xe, 0x2e589a LDR.W R2, [R0,#0x184] ; +0x10, 0x2e589c CMP R2, #1 ; +0x14, 0x2e58a0 BNE loc_2E58D6 ; +0x16, 0x2e58a2 VLDR S15, [R0,#0x174] ; +0x18, 0x2e58a4 LDR R0, =(a2f - 0x2E58B2); "%.2f" ; +0x1c, 0x2e58a8 VLDR S14, =100.0 ; +0x1e, 0x2e58aa ADD R0, PC; "%.2f" ; +0x22, 0x2e58ae VCVT.F32.S32 S15, S15 ; +0x24, 0x2e58b0 VDIV.F32 S15, S15, S14 ; +0x28, 0x2e58b4 VCVT.F64.F32 D7, S15 ; +0x2c, 0x2e58b8 VMOV R2, R3, D7 ; +0x30, 0x2e58bc BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x34, 0x2e58c0 LDR R3, [R4] ; +0x38, 0x2e58c4 LDR.W R6, [R3,#0x1C8] ; +0x3a, 0x2e58c6 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3e, 0x2e58ca MOV R1, R0 ; +0x42, 0x2e58ce MOV R0, R4 ; +0x44, 0x2e58d0 BLX R6 ; +0x46, 0x2e58d2 B loc_2E5900 ; +0x48, 0x2e58d4 LDR R3, [R0] ; +0x4a, 0x2e58d6 MOV R0, SP; this ; +0x4c, 0x2e58d8 LDR.W R1, [R4,#0x174]; int ; +0x4e, 0x2e58da MOV R6, SP ; +0x52, 0x2e58de LDR.W R7, [R3,#0x1C8] ; +0x54, 0x2e58e0 BL _ZN11GameToolbox11intToStringEi; GameToolbox::intToString(int) ; +0x58, 0x2e58e4 MOV R0, R4 ; +0x5c, 0x2e58e8 LDR R1, [SP,#0xC+var_C] ; +0x5e, 0x2e58ea BLX R7 ; +0x60, 0x2e58ec MOV R0, SP ; +0x62, 0x2e58ee BL sub_774008 ; +0x64, 0x2e58f0 B loc_2E5900 ; +0x68, 0x2e58f4 MOV R0, R6 ; +0x6a, 0x2e58f6 BL sub_774008 ; +0x6c, 0x2e58f8 BL __cxa_end_cleanup ; +0x70, 0x2e58fc LDR R2, [SP,#0xC+var_8] ; +0x74, 0x2e5900 LDR R3, [R5] ; +0x76, 0x2e5902 CMP R2, R3 ; +0x78, 0x2e5904 BEQ loc_2E590C ; +0x7a, 0x2e5906 BLX __stack_chk_fail ; +0x7c, 0x2e5908 ADD SP, SP, #0xC ; +0x80, 0x2e590c POP {R4-R7,PC} ; +0x82, 0x2e590e