{"type": "func", "start": 7842968, "end": 7843076, "name": "EditorCommandsPopup::addCommandButton", "pseudocode": "// \n// EditorCommandsPopup::addCommandButton from 0x77ac98 to 0x77ad04 (108 bytes)\n// \n// 19 xrefs:\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77ae5a\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77ae66\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77ae72\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77ae7e\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77ae8a\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77ae96\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aea2\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aeae\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aeba\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aec6\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aed2\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aede\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aeea\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77aef6\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77af02\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77af0e\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77af1a\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77af26\n// > EditorCommandsPopup::onBuildWindowContent @ 0x77af32\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:59:23 +0000\n// \n\nint __fastcall EditorCommandsPopup::addCommandButton(int a1, ButtonSprite *this, int a3)\n{\n  ButtonSprite *v5; // r4\n  int v6; // r4\n  float v8; // [sp+10h] [bp-8h]\n\n  v5 = ButtonSprite::create(\n         this,\n         (const char *)&dword_104,\n         0,\n         0.8,\n         1,\n         \"bigFont.fnt\",\n         \"GJ_button_04.png\",\n         (const char *)0x42000000,\n         v8);\n  (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v5 + 80))(v5, 1056964608);\n  v6 = CCMenuItemSpriteExtra::create((int)v5, 0, a1, (int)EditorCommandsPopup::onCommand, 0);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 36))(v6, a3);\n  return (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 728) + 228))(*(_DWORD *)(a1 + 728), v6);\n}", "assembly": "; \n; EditorCommandsPopup::addCommandButton from 0x77ac98 to 0x77ad04 (108 bytes)\n; \n; 19 xrefs:\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77ae5a\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77ae66\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77ae72\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77ae7e\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77ae8a\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77ae96\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aea2\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aeae\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aeba\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aec6\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aed2\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aede\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aeea\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77aef6\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77af02\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77af0e\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77af1a\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77af26\n; > EditorCommandsPopup::onBuildWindowContent @ 0x77af32\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:59:23 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x77ac98\nSUB             SP, SP, #0x18                                          ; +0x2, 0x77ac9a\nMOVS            R3, #1                                                 ; +0x4, 0x77ac9c\nMOV             R5, R0                                                 ; +0x6, 0x77ac9e\nSTR             R3, [SP,#0x18+var_18]; float                           ; +0x8, 0x77aca0\nMOV             R6, R2                                                 ; +0xa, 0x77aca2\nLDR             R3, =(aBigfontFnt - 0x77ACB2); \"bigFont.fnt\"           ; +0xc, 0x77aca4\nMOVS            R2, #0; int                                            ; +0xe, 0x77aca6\nMOV             R0, R1; this                                           ; +0x10, 0x77aca8\nMOV.W           R1, #dword_104; char *                                 ; +0x12, 0x77acaa\nADD             R3, PC; \"bigFont.fnt\"                                  ; +0x16, 0x77acae\nSTR             R3, [SP,#0x18+var_14]; char *                          ; +0x18, 0x77acb0\nLDR             R3, =(aGjButton04Png - 0x77ACB8); \"GJ_button_04.png\"   ; +0x1a, 0x77acb2\nADD             R3, PC; \"GJ_button_04.png\"                             ; +0x1c, 0x77acb4\nSTR             R3, [SP,#0x18+var_10]; char *                          ; +0x1e, 0x77acb6\nMOV.W           R3, #0x42000000                                        ; +0x20, 0x77acb8\nSTR             R3, [SP,#0x18+var_C]; char *                           ; +0x24, 0x77acbc\nLDR             R3, =0x3F4CCCCD; int                                   ; +0x26, 0x77acbe\nBL              _ZN12ButtonSprite6createEPKciifbS1_S1_f; ButtonSprite::create(char const*,int,int,float,bool,char const*,char const*,float) ; +0x28, 0x77acc0\nMOV.W           R1, #0x3F000000                                        ; +0x2c, 0x77acc4\nLDR             R3, [R0]                                               ; +0x30, 0x77acc8\nMOV             R4, R0                                                 ; +0x32, 0x77acca\nLDR             R3, [R3,#0x50]                                         ; +0x34, 0x77accc\nBLX             R3                                                     ; +0x36, 0x77acce\nLDR             R3, =(_ZN19EditorCommandsPopup9onCommandEPN7cocos2d8CCObjectE_ptr - 0x77ACDA) ; +0x38, 0x77acd0\nMOVS            R1, #0                                                 ; +0x3a, 0x77acd2\nMOV             R2, R5                                                 ; +0x3c, 0x77acd4\nADD             R3, PC; _ZN19EditorCommandsPopup9onCommandEPN7cocos2d8CCObjectE_ptr ; +0x3e, 0x77acd6\nLDR             R3, [R3]; EditorCommandsPopup::onCommand(cocos2d::CCObject *) ; +0x40, 0x77acd8\nSTR             R1, [SP,#0x18+var_18]                                  ; +0x42, 0x77acda\nMOV             R0, R4                                                 ; +0x44, 0x77acdc\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x46, 0x77acde\nSTR             R1, [SP,#0x18+var_4]                                   ; +0x48, 0x77ace0\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x4a, 0x77ace2\nMOV             R1, R6                                                 ; +0x4e, 0x77ace6\nLDR             R3, [R0]                                               ; +0x50, 0x77ace8\nMOV             R4, R0                                                 ; +0x52, 0x77acea\nLDR             R3, [R3,#0x24]                                         ; +0x54, 0x77acec\nBLX             R3                                                     ; +0x56, 0x77acee\nLDR.W           R0, [R5,#0x2D8]                                        ; +0x58, 0x77acf0\nMOV             R1, R4                                                 ; +0x5c, 0x77acf4\nLDR             R3, [R0]                                               ; +0x5e, 0x77acf6\nLDR.W           R3, [R3,#0xE4]                                         ; +0x60, 0x77acf8\nADD             SP, SP, #0x18                                          ; +0x64, 0x77acfc\nPOP.W           {R4-R6,LR}                                             ; +0x66, 0x77acfe\nBX              R3                                                     ; +0x6a, 0x77ad02", "xrefs": ["EditorCommandsPopup::onBuildWindowContent @ 0x77ae5a", "EditorCommandsPopup::onBuildWindowContent @ 0x77ae66", "EditorCommandsPopup::onBuildWindowContent @ 0x77ae72", "EditorCommandsPopup::onBuildWindowContent @ 0x77ae7e", "EditorCommandsPopup::onBuildWindowContent @ 0x77ae8a", "EditorCommandsPopup::onBuildWindowContent @ 0x77ae96", "EditorCommandsPopup::onBuildWindowContent @ 0x77aea2", "EditorCommandsPopup::onBuildWindowContent @ 0x77aeae", "EditorCommandsPopup::onBuildWindowContent @ 0x77aeba", "EditorCommandsPopup::onBuildWindowContent @ 0x77aec6", "EditorCommandsPopup::onBuildWindowContent @ 0x77aed2", "EditorCommandsPopup::onBuildWindowContent @ 0x77aede", "EditorCommandsPopup::onBuildWindowContent @ 0x77aeea", "EditorCommandsPopup::onBuildWindowContent @ 0x77aef6", "EditorCommandsPopup::onBuildWindowContent @ 0x77af02", "EditorCommandsPopup::onBuildWindowContent @ 0x77af0e", "EditorCommandsPopup::onBuildWindowContent @ 0x77af1a", "EditorCommandsPopup::onBuildWindowContent @ 0x77af26", "EditorCommandsPopup::onBuildWindowContent @ 0x77af32"], "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"}