{"type": "func", "start": 7268864, "end": 7268916, "name": "ControlMenuTouch::addMenu", "pseudocode": "// \n// ControlMenuTouch::addMenu from 0x6eea00 to 0x6eea34 (52 bytes)\n// \n// 5 xrefs:\n// > GJRotationControl::init @ 0x6ef24c\n// > GJRotationControl::init @ 0x6ef3f8\n// > GJScaleControl::init @ 0x6ef518\n// > GJScaleControl::init @ 0x6ef6bc\n// > GJTransformControl::init @ 0x6efa44\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:57:34 +0000\n// \n\nvoid __fastcall ControlMenuTouch::addMenu(ControlMenuTouch *this, cocos2d::CCMenu *a2)\n{\n  cocos2d::CCMenu **v3; // r3\n  cocos2d::CCMenu *v4; // [sp+4h] [bp-4h] BYREF\n\n  v4 = a2;\n  (*(void (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)a2 + 500))(a2, 0);\n  v3 = *((cocos2d::CCMenu ***)this + 1);\n  if ( v3 == *((cocos2d::CCMenu ***)this + 2) )\n  {\n    std::vector<cocos2d::CCMenu *>::__push_back_slow_path<cocos2d::CCMenu * const&>((int)this, &v4);\n  }\n  else\n  {\n    if ( v3 )\n      *v3 = v4;\n    *((_DWORD *)this + 1) += 4;\n  }\n}", "assembly": "; \n; ControlMenuTouch::addMenu from 0x6eea00 to 0x6eea34 (52 bytes)\n; \n; 5 xrefs:\n; > GJRotationControl::init @ 0x6ef24c\n; > GJRotationControl::init @ 0x6ef3f8\n; > GJScaleControl::init @ 0x6ef518\n; > GJScaleControl::init @ 0x6ef6bc\n; > GJTransformControl::init @ 0x6efa44\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:57:34 +0000\n; \nPUSH            {R0,R1,R4,LR}                                          ; +0x0, 0x6eea00\nMOV             R4, R0                                                 ; +0x2, 0x6eea02\nSTR             R1, [SP,#8+var_4]                                      ; +0x4, 0x6eea04\nMOV             R0, R1                                                 ; +0x6, 0x6eea06\nLDR             R3, [R1]                                               ; +0x8, 0x6eea08\nMOVS            R1, #0                                                 ; +0xa, 0x6eea0a\nLDR.W           R3, [R3,#0x1F4]                                        ; +0xc, 0x6eea0c\nBLX             R3                                                     ; +0x10, 0x6eea10\nLDR             R3, [R4,#4]                                            ; +0x12, 0x6eea12\nLDR             R2, [R4,#8]                                            ; +0x14, 0x6eea14\nCMP             R3, R2                                                 ; +0x16, 0x6eea16\nBEQ             loc_6EEA28                                             ; +0x18, 0x6eea18\nLDR             R2, [SP,#8+var_4]                                      ; +0x1a, 0x6eea1a\nCBZ             R3, loc_6EEA20                                         ; +0x1c, 0x6eea1c\nSTR             R2, [R3]                                               ; +0x1e, 0x6eea1e\nLDR             R3, [R4,#4]                                            ; +0x20, 0x6eea20\nADDS            R3, #4                                                 ; +0x22, 0x6eea22\nSTR             R3, [R4,#4]                                            ; +0x24, 0x6eea24\nB               loc_6EEA30                                             ; +0x26, 0x6eea26\nMOV             R0, R4                                                 ; +0x28, 0x6eea28\nADD             R1, SP, #8+var_4                                       ; +0x2a, 0x6eea2a\nBL              _ZNSt6__ndk16vectorIPN7cocos2d6CCMenuENS_9allocatorIS3_EEE21__push_back_slow_pathIRKS3_EEvOT_; std::vector<cocos2d::CCMenu *>::__push_back_slow_path<cocos2d::CCMenu * const&>(cocos2d::CCMenu * const&) ; +0x2c, 0x6eea2c\nADD             SP, SP, #8                                             ; +0x30, 0x6eea30\nPOP             {R4,PC}                                                ; +0x32, 0x6eea32", "xrefs": ["GJRotationControl::init @ 0x6ef24c", "GJRotationControl::init @ 0x6ef3f8", "GJScaleControl::init @ 0x6ef518", "GJScaleControl::init @ 0x6ef6bc", "GJTransformControl::init @ 0x6efa44"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}