; ; CreateParticlePopup::applyTexturePage from 0x664890 to 0x6649f2 (354 bytes) ; ; 3 xrefs: ; > CreateParticlePopup::onTexturePage @ 0x664a28 ; > CreateParticlePopup::onSelectParticleTexture @ 0x665778 ; > CreateParticlePopup::onPage @ 0x665b80 ; ; 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:55:39 +0000 ; PUSH.W {R4-R10,LR} ; +0x0, 0x664890 MOV R4, R0 ; +0x4, 0x664894 VPUSH {D8} ; +0x6, 0x664896 MOVS R5, #0 ; +0xa, 0x66489a LDR R3, =(__stack_chk_guard_ptr - 0x6648A2) ; +0xc, 0x66489c ADD R3, PC; __stack_chk_guard_ptr ; +0xe, 0x66489e LDR R3, [R3]; __stack_chk_guard ; +0x10, 0x6648a0 SUB SP, SP, #0x28 ; +0x12, 0x6648a2 LDR R2, [R3] ; +0x14, 0x6648a4 MOV R7, R3 ; +0x16, 0x6648a6 STR R2, [SP,#0x28+var_4] ; +0x18, 0x6648a8 LDR.W R2, [R0,#0x294] ; +0x1a, 0x6648aa CMP R2, #4 ; +0x1e, 0x6648ae ITT HI ; +0x20, 0x6648b0 MOVHI R3, #0 ; +0x22, 0x6648b2 STRHI.W R3, [R0,#0x294] ; +0x24, 0x6648b4 LDR.W R2, [R4,#0x284] ; +0x28, 0x6648b8 LDR.W R3, [R4,#0x288] ; +0x2c, 0x6648bc SUBS R3, R3, R2 ; +0x30, 0x6648c0 CMP.W R5, R3,ASR#2 ; +0x32, 0x6648c2 BGE loc_6648EE ; +0x36, 0x6648c6 MOV R0, R5 ; +0x38, 0x6648c8 MOVS R1, #0x58 ; 'X' ; +0x3a, 0x6648ca LDR.W R6, [R2,R5,LSL#2] ; +0x3c, 0x6648cc BLX __aeabi_idiv ; +0x40, 0x6648d0 LDR.W R1, [R4,#0x294] ; +0x44, 0x6648d4 ADDS R5, #1 ; +0x48, 0x6648d8 LDR.W R8, [R6] ; +0x4a, 0x6648da LDR.W R3, [R8,#0xAC] ; +0x4e, 0x6648de SUBS R2, R0, R1 ; +0x52, 0x6648e2 MOV R0, R6 ; +0x54, 0x6648e4 NEGS R1, R2 ; +0x56, 0x6648e6 ADCS R1, R2 ; +0x58, 0x6648e8 BLX R3 ; +0x5a, 0x6648ea B loc_6648B8 ; +0x5c, 0x6648ec BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5e, 0x6648ee ADD R6, SP, #0x28+var_1C ; +0x62, 0x6648f2 VMOV.F32 S16, #24.0 ; +0x64, 0x6648f4 MOV R1, R0 ; +0x68, 0x6648f8 ADD R0, SP, #0x28+var_24; this ; +0x6a, 0x6648fa BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x6c, 0x6648fc VMOV.F32 S15, #0.5 ; +0x70, 0x664900 VLDR S13, [SP,#0x28+var_24] ; +0x74, 0x664904 MOV R0, R6; this ; +0x78, 0x664908 VLDR S14, =56.0 ; +0x7a, 0x66490a VNMLS.F32 S14, S13, S15 ; +0x7e, 0x66490e VLDR S13, [SP,#0x28+var_20] ; +0x82, 0x664912 VMOV R1, S14; float ; +0x86, 0x664916 VLDR S14, =75.0 ; +0x8a, 0x66491a VMLA.F32 S14, S13, S15 ; +0x8e, 0x66491e VMOV R2, S14; float ; +0x92, 0x664922 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x96, 0x664926 LDR.W R9, [R4,#0x2B8] ; +0x9a, 0x66492a MOVS R1, #0x58 ; 'X' ; +0x9e, 0x66492e MOV R0, R9 ; +0xa0, 0x664930 BLX __aeabi_idivmod ; +0xa2, 0x664932 MOV R0, R9 ; +0xa6, 0x664936 LDR.W R8, [R4,#0x280] ; +0xa8, 0x664938 LDR.W R10, [R8] ; +0xac, 0x66493c MOV R5, R1 ; +0xb0, 0x664940 MOVS R1, #0x58 ; 'X' ; +0xb2, 0x664942 BLX __aeabi_idiv ; +0xb4, 0x664944 LDR.W R1, [R4,#0x294] ; +0xb8, 0x664948 SUBS R3, R0, R1 ; +0xbc, 0x66494c MOV R0, R8 ; +0xbe, 0x66494e NEGS R1, R3 ; +0xc0, 0x664950 ADD.W R8, SP, #0x28+var_C ; +0xc2, 0x664952 ADCS R1, R3 ; +0xc6, 0x664956 LDR.W R3, [R10,#0xAC] ; +0xc8, 0x664958 BLX R3 ; +0xcc, 0x66495c LDR.W R9, [R4,#0x280] ; +0xce, 0x66495e MOV R0, R5 ; +0xd2, 0x664962 MOVS R1, #0xB ; +0xd4, 0x664964 LDR.W R3, [R9] ; +0xd6, 0x664966 LDR.W R10, [R3,#0x5C] ; +0xda, 0x66496a BLX __aeabi_idivmod ; +0xde, 0x66496e MOV R0, R5 ; +0xe2, 0x664972 ADD R5, SP, #0x28+var_14 ; +0xe4, 0x664974 VMOV S15, R1 ; +0xe6, 0x664976 MOVS R1, #0xB ; +0xea, 0x66497a VCVT.F32.S32 S15, S15 ; +0xec, 0x66497c VMUL.F32 S16, S15, S16 ; +0xf0, 0x664980 BLX __aeabi_idiv ; +0xf4, 0x664984 VMOV R1, S16; float ; +0xf8, 0x664988 VMOV S15, R0 ; +0xfc, 0x66498c MOV R0, R5; this ; +0x100, 0x664990 VCVT.F32.S32 S14, S15 ; +0x102, 0x664992 VMOV.F32 S15, #-24.0 ; +0x106, 0x664996 VMUL.F32 S15, S14, S15 ; +0x10a, 0x66499a VMOV R2, S15; float ; +0x10e, 0x66499e BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x112, 0x6649a2 MOV R2, R5 ; +0x116, 0x6649a6 MOV R0, R8 ; +0x118, 0x6649a8 MOV R1, R6 ; +0x11a, 0x6649aa BL _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x11c, 0x6649ac MOV R0, R9 ; +0x120, 0x6649b0 MOV R1, R8 ; +0x122, 0x6649b2 BLX R10 ; +0x124, 0x6649b4 LDR.W R5, [R4,#0x290] ; +0x126, 0x6649b6 CBZ R5, loc_6649DC ; +0x12a, 0x6649ba LDR R3, [R5] ; +0x12c, 0x6649bc MOVS R2, #5 ; +0x12e, 0x6649be LDR.W R1, [R4,#0x294] ; +0x130, 0x6649c0 LDR R0, =(aII - 0x6649D0); "%i/%i" ; +0x134, 0x6649c4 ADDS R1, #1; char * ; +0x136, 0x6649c6 LDR.W R6, [R3,#0x1D0] ; +0x138, 0x6649c8 ADD R0, PC; "%i/%i" ; +0x13c, 0x6649cc BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x13e, 0x6649ce BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x142, 0x6649d2 MOV R1, R0 ; +0x146, 0x6649d6 MOV R0, R5 ; +0x148, 0x6649d8 BLX R6 ; +0x14a, 0x6649da LDR R2, [SP,#0x28+var_4] ; +0x14c, 0x6649dc LDR R3, [R7] ; +0x14e, 0x6649de CMP R2, R3 ; +0x150, 0x6649e0 BEQ loc_6649E8 ; +0x152, 0x6649e2 BLX __stack_chk_fail ; +0x154, 0x6649e4 ADD SP, SP, #0x28 ; '(' ; +0x158, 0x6649e8 VPOP {D8} ; +0x15a, 0x6649ea POP.W {R4-R10,PC} ; +0x15e, 0x6649ee