; ; CreateMenuItem::create from 0x6e7d10 to 0x6e7e72 (354 bytes) ; ; 3 xrefs: ; > EditorUI::getCreateMenuItemButton @ 0x4817ce ; > EditorUI::menuItemFromObjectString @ 0x6f612a ; > EditorUI::getCreateBtn @ 0x6f829e ; ; 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:57:25 +0000 ; SUB SP, SP, #8 ; +0x0, 0x6e7d10 PUSH.W {R0,R1,R4-R8,LR} ; +0x2, 0x6e7d12 MOV R8, R0 ; +0x6, 0x6e7d16 MOV.W R0, #0x1A0; unsigned int ; +0x8, 0x6e7d18 MOV R7, R1 ; +0xc, 0x6e7d1c MOV R6, R2 ; +0xe, 0x6e7d1e STR R3, [SP,#8+varg_r3] ; +0x10, 0x6e7d20 BL _Znwj; operator new(uint) ; +0x12, 0x6e7d22 MOV R4, R0 ; +0x16, 0x6e7d26 BL _ZN7cocos2d10CCNodeRGBAC2Ev; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x18, 0x6e7d28 MOVS R3, #0 ; +0x1c, 0x6e7d2c LDR R2, =(_ZTV21CCMenuItemSpriteExtra_ptr - 0x6E7D3E) ; +0x1e, 0x6e7d2e STRB.W R3, [R4,#0x116] ; +0x20, 0x6e7d30 MOVS R1, #0 ; +0x24, 0x6e7d34 STRB.W R3, [R4,#0x117] ; +0x26, 0x6e7d36 ADD R2, PC; _ZTV21CCMenuItemSpriteExtra_ptr ; +0x2a, 0x6e7d3a LDR R2, [R2]; `vtable for'CCMenuItemSpriteExtra ... ; +0x2c, 0x6e7d3c STR.W R3, [R4,#0x118] ; +0x2e, 0x6e7d3e ADD.W R0, R2, #8 ; +0x32, 0x6e7d42 STR.W R3, [R4,#0x11C] ; +0x36, 0x6e7d46 ADD.W R2, R2, #0x244 ; +0x3a, 0x6e7d4a STR.W R3, [R4,#0x120] ; +0x3e, 0x6e7d4e STR.W R3, [R4,#0x124] ; +0x42, 0x6e7d52 STR.W R3, [R4,#0x12C] ; +0x46, 0x6e7d56 STR.W R3, [R4,#0x130] ; +0x4a, 0x6e7d5a STR.W R3, [R4,#0x134] ; +0x4e, 0x6e7d5e STRB.W R3, [R4,#0x140] ; +0x52, 0x6e7d62 STRB.W R3, [R4,#0x141] ; +0x56, 0x6e7d66 STR.W R3, [R4,#0x148] ; +0x5a, 0x6e7d6a STR.W R3, [R4,#0x14C] ; +0x5e, 0x6e7d6e STR.W R3, [R4,#0x150] ; +0x62, 0x6e7d72 STR.W R3, [R4,#0x154] ; +0x66, 0x6e7d76 STR.W R3, [R4,#0x158] ; +0x6a, 0x6e7d7a STR.W R3, [R4,#0x15C] ; +0x6e, 0x6e7d7e LDR R3, =0x3F48C8C9 ; +0x72, 0x6e7d82 STR R0, [R4] ; +0x74, 0x6e7d84 ADD.W R0, R4, #0x164; this ; +0x76, 0x6e7d86 STR.W R2, [R4,#0x108] ; +0x7a, 0x6e7d8a MOV.W R2, #0x3F800000 ; +0x7e, 0x6e7d8e STR.W R1, [R4,#0x128] ; +0x82, 0x6e7d92 STR.W R2, [R4,#0x138] ; +0x86, 0x6e7d96 STR.W R1, [R4,#0x13C] ; +0x8a, 0x6e7d9a STR.W R2, [R4,#0x144] ; +0x8e, 0x6e7d9e STR.W R3, [R4,#0x160] ; +0x92, 0x6e7da2 BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x96, 0x6e7da6 LDR R3, =0x3E99999A ; +0x9a, 0x6e7daa MOVS R5, #0 ; +0x9c, 0x6e7dac ADD.W R0, R4, #0x178; this ; +0x9e, 0x6e7dae STR.W R5, [R4,#0x174] ; +0xa2, 0x6e7db2 STR.W R3, [R4,#0x16C] ; +0xa6, 0x6e7db6 LDR R3, =0x3ECCCCCD ; +0xaa, 0x6e7dba STR.W R3, [R4,#0x170] ; +0xac, 0x6e7dbc BL _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0xb0, 0x6e7dc0 LDR R3, =(_ZTV14CreateMenuItem_ptr - 0x6E7DCE) ; +0xb4, 0x6e7dc4 STR.W R5, [R4,#0x180] ; +0xb6, 0x6e7dc6 ADD R3, PC; _ZTV14CreateMenuItem_ptr ; +0xba, 0x6e7dca LDR R3, [R3]; `vtable for'CreateMenuItem ... ; +0xbc, 0x6e7dcc STRB.W R5, [R4,#0x184] ; +0xbe, 0x6e7dce ADD.W R2, R3, #8 ; +0xc2, 0x6e7dd2 ADD.W R3, R3, #0x244 ; +0xc6, 0x6e7dd6 STR.W R3, [R4,#0x108] ; +0xca, 0x6e7dda ADD R3, SP, #8+varg_r3 ; +0xce, 0x6e7dde STR R2, [R4] ; +0xd0, 0x6e7de0 MOV R2, R7 ; +0xd2, 0x6e7de2 LDM.W R3, {R0,R1} ; +0xd4, 0x6e7de4 MOV R3, R6 ; +0xd8, 0x6e7de8 STR.W R5, [R4,#0x188] ; +0xda, 0x6e7dea STR.W R5, [R4,#0x18C] ; +0xde, 0x6e7dee STR.W R5, [R4,#0x190] ; +0xe2, 0x6e7df2 STR.W R5, [R4,#0x198] ; +0xe6, 0x6e7df6 STR.W R5, [R4,#0x19C] ; +0xea, 0x6e7dfa STMEA.W SP, {R0,R1} ; +0xee, 0x6e7dfe MOV R0, R4 ; +0xf2, 0x6e7e02 MOV R1, R8 ; +0xf4, 0x6e7e04 BL _ZN14CreateMenuItem4initEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CreateMenuItem::init(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xf6, 0x6e7e06 MOV R5, R0 ; +0xfa, 0x6e7e0a CBZ R0, loc_6E7E5C ; +0xfc, 0x6e7e0c MOV R0, R4; this ; +0xfe, 0x6e7e0e BL _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x100, 0x6e7e10 B loc_6E7E66 ; +0x104, 0x6e7e14 LDRB.W R3, [R4,#0x154] ; +0x106, 0x6e7e16 LSLS R2, R3, #0x1F ; +0x10a, 0x6e7e1a BPL loc_6E7E26 ; +0x10c, 0x6e7e1c LDR.W R0, [R4,#0x15C]; void * ; +0x10e, 0x6e7e1e BL _ZdlPv; operator delete(void *) ; +0x112, 0x6e7e22 LDRB.W R3, [R4,#0x148] ; +0x116, 0x6e7e26 LSLS R3, R3, #0x1F ; +0x11a, 0x6e7e2a BPL loc_6E7E36 ; +0x11c, 0x6e7e2c LDR.W R0, [R4,#0x150]; void * ; +0x11e, 0x6e7e2e BL _ZdlPv; operator delete(void *) ; +0x122, 0x6e7e32 LDR R3, =(_ZTVN7cocos2d16CCMenuItemSpriteE_ptr - 0x6E7E3E) ; +0x126, 0x6e7e36 MOV R0, R4; this ; +0x128, 0x6e7e38 ADD R3, PC; _ZTVN7cocos2d16CCMenuItemSpriteE_ptr ; +0x12a, 0x6e7e3a LDR R3, [R3]; `vtable for'cocos2d::CCMenuItemSprite ... ; +0x12c, 0x6e7e3c ADD.W R2, R3, #8 ; +0x12e, 0x6e7e3e ADD.W R3, R3, #0x244 ; +0x132, 0x6e7e42 STR R2, [R4] ; +0x136, 0x6e7e46 STR.W R3, [R4,#0x108] ; +0x138, 0x6e7e48 BL _ZN7cocos2d10CCMenuItemD2Ev; cocos2d::CCMenuItem::~CCMenuItem() ; +0x13c, 0x6e7e4c B loc_6E7E52 ; +0x140, 0x6e7e50 MOV R0, R4; void * ; +0x142, 0x6e7e52 BL _ZdlPv; operator delete(void *) ; +0x144, 0x6e7e54 BL __cxa_end_cleanup ; +0x148, 0x6e7e58 LDR R3, [R4] ; +0x14c, 0x6e7e5c MOV R0, R4 ; +0x14e, 0x6e7e5e MOV R4, R5 ; +0x150, 0x6e7e60 LDR R3, [R3,#8] ; +0x152, 0x6e7e62 BLX R3 ; +0x154, 0x6e7e64 MOV R0, R4 ; +0x156, 0x6e7e66 ADD SP, SP, #8 ; +0x158, 0x6e7e68 POP.W {R4-R8,LR} ; +0x15a, 0x6e7e6a ADD SP, SP, #8 ; +0x15e, 0x6e7e6e BX LR ; +0x160, 0x6e7e70