{"type": "func", "start": 4295391396, "end": 4295391596, "name": "ButtonSprite::create", "pseudocode": "// \n// ButtonSprite::create from 0x1000678a4 to 0x10006796c (200 bytes)\n// \n// 28 xrefs:\n// > sub_100038870 @ 0x100039488\n// > SetupSpawnPopup::init @ 0x10011caa0\n// > SetupSpawnPopup::init @ 0x10011cb8c\n// > LevelCell::loadCustomLevelCell @ 0x100133cc8\n// > LevelCell::loadCustomLevelCell @ 0x10013402c\n// > LevelCell::loadCustomLevelCell @ 0x10013410c\n// > LevelCell::loadCustomLevelCell @ 0x1001341e8\n// > EditorUI::getCreateBtn @ 0x10018462c\n// > EditorUI::menuItemFromObjectString @ 0x100185230\n// > SFXBrowser::init @ 0x1001f1e78\n// > SFXBrowser::init @ 0x1001f1f74\n// > SFXBrowser::init @ 0x1001f2158\n// > SFXBrowser::init @ 0x1001f2278\n// > SFXBrowser::init @ 0x1001f2394\n// > sub_1002113A0 @ 0x100211b1c\n// > SetupSequenceTriggerPopup::init @ 0x10026a9bc\n// > sub_1002ED39C @ 0x1002ed438\n// > sub_1003F01F0 @ 0x1003f0250\n// > sub_10045800C @ 0x1004584b4\n// > sub_100467BDC @ 0x10046849c\n// > sub_100467BDC @ 0x100468594\n// > sub_100467BDC @ 0x1004686d4\n// > sub_100467BDC @ 0x1004687f4\n// > sub_100467BDC @ 0x100468908\n// > sub_100467BDC @ 0x100468abc\n// > EditorUI::getSpriteButton @ 0x100474bc4\n// > EditorUI::getCreateMenuItemButton @ 0x100474cc4\n// > EditorSFXActionConfigLayer::init @ 0x1004c629c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:56 +0000\n// \n\nvoid *__fastcall ButtonSprite::create(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        float a7,\n        float a8,\n        float a9)\n{\n  void *v18; // x19\n\n  v18 = operator new(0x2B8u);\n  ButtonSprite::ButtonSprite();\n  if ( (unsigned int)ButtonSprite::init(v18, a1, a2, a3, a4, a5, a6, a7, a8, a9) )\n  {\n    cocos2d::CCObject::autorelease(v18);\n  }\n  else\n  {\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v18 + 16LL))(v18);\n    return nullptr;\n  }\n  return v18;\n}", "assembly": "; \n; ButtonSprite::create from 0x1000678a4 to 0x10006796c (200 bytes)\n; \n; 28 xrefs:\n; > sub_100038870 @ 0x100039488\n; > SetupSpawnPopup::init @ 0x10011caa0\n; > SetupSpawnPopup::init @ 0x10011cb8c\n; > LevelCell::loadCustomLevelCell @ 0x100133cc8\n; > LevelCell::loadCustomLevelCell @ 0x10013402c\n; > LevelCell::loadCustomLevelCell @ 0x10013410c\n; > LevelCell::loadCustomLevelCell @ 0x1001341e8\n; > EditorUI::getCreateBtn @ 0x10018462c\n; > EditorUI::menuItemFromObjectString @ 0x100185230\n; > SFXBrowser::init @ 0x1001f1e78\n; > SFXBrowser::init @ 0x1001f1f74\n; > SFXBrowser::init @ 0x1001f2158\n; > SFXBrowser::init @ 0x1001f2278\n; > SFXBrowser::init @ 0x1001f2394\n; > sub_1002113A0 @ 0x100211b1c\n; > SetupSequenceTriggerPopup::init @ 0x10026a9bc\n; > sub_1002ED39C @ 0x1002ed438\n; > sub_1003F01F0 @ 0x1003f0250\n; > sub_10045800C @ 0x1004584b4\n; > sub_100467BDC @ 0x10046849c\n; > sub_100467BDC @ 0x100468594\n; > sub_100467BDC @ 0x1004686d4\n; > sub_100467BDC @ 0x1004687f4\n; > sub_100467BDC @ 0x100468908\n; > sub_100467BDC @ 0x100468abc\n; > EditorUI::getSpriteButton @ 0x100474bc4\n; > EditorUI::getCreateMenuItemButton @ 0x100474cc4\n; > EditorSFXActionConfigLayer::init @ 0x1004c629c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:56 +0000\n; \nSTP             D11, D10, [SP,#-0x10+var_60]!                          ; +0x0, 0x1000678a4\nSTP             D9, D8, [SP,#0x60+var_50]                              ; +0x4, 0x1000678a8\nSTP             X26, X25, [SP,#0x60+var_40]                            ; +0x8, 0x1000678ac\nSTP             X24, X23, [SP,#0x60+var_30]                            ; +0xc, 0x1000678b0\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x10, 0x1000678b4\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x14, 0x1000678b8\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x18, 0x1000678bc\nADD             X29, SP, #0x60                                         ; +0x1c, 0x1000678c0\nFMOV            S8, S2                                                 ; +0x20, 0x1000678c4\nMOV             X20, X5                                                ; +0x24, 0x1000678c8\nMOV             X21, X4                                                ; +0x28, 0x1000678cc\nMOV             X22, X3                                                ; +0x2c, 0x1000678d0\nFMOV            S9, S1                                                 ; +0x30, 0x1000678d4\nFMOV            S10, S0                                                ; +0x34, 0x1000678d8\nMOV             X23, X2                                                ; +0x38, 0x1000678dc\nMOV             X24, X1                                                ; +0x3c, 0x1000678e0\nMOV             X25, X0                                                ; +0x40, 0x1000678e4\nMOV             W0, #0x2B8; __sz                                       ; +0x44, 0x1000678e8\nBL              __Znwm; operator new(ulong)                            ; +0x48, 0x1000678ec\nMOV             X19, X0                                                ; +0x4c, 0x1000678f0\nBL              ButtonSprite__ButtonSprite                             ; +0x50, 0x1000678f4\nMOV             X0, X19                                                ; +0x54, 0x1000678f8\nMOV             X1, X25                                                ; +0x58, 0x1000678fc\nMOV             X2, X24                                                ; +0x5c, 0x100067900\nMOV             X3, X23                                                ; +0x60, 0x100067904\nFMOV            S0, S10                                                ; +0x64, 0x100067908\nFMOV            S1, S9                                                 ; +0x68, 0x10006790c\nMOV             X4, X22                                                ; +0x6c, 0x100067910\nMOV             X5, X21                                                ; +0x70, 0x100067914\nMOV             X6, X20                                                ; +0x74, 0x100067918\nFMOV            S2, S8                                                 ; +0x78, 0x10006791c\nBL              ButtonSprite__init                                     ; +0x7c, 0x100067920\nCBZ             W0, loc_100067934                                      ; +0x80, 0x100067924\nMOV             X0, X19                                                ; +0x84, 0x100067928\nBL              cocos2d__CCObject__autorelease                         ; +0x88, 0x10006792c\nB               loc_100067948                                          ; +0x8c, 0x100067930\nLDR             X8, [X19]                                              ; +0x90, 0x100067934\nLDR             X8, [X8,#0x10]                                         ; +0x94, 0x100067938\nMOV             X0, X19                                                ; +0x98, 0x10006793c\nBLR             X8                                                     ; +0x9c, 0x100067940\nMOV             X19, #0                                                ; +0xa0, 0x100067944\nMOV             X0, X19                                                ; +0xa4, 0x100067948\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0xa8, 0x10006794c\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0xac, 0x100067950\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0xb0, 0x100067954\nLDP             X24, X23, [SP,#0x60+var_30]                            ; +0xb4, 0x100067958\nLDP             X26, X25, [SP,#0x60+var_40]                            ; +0xb8, 0x10006795c\nLDP             D9, D8, [SP,#0x60+var_50]                              ; +0xbc, 0x100067960\nLDP             D11, D10, [SP+0x60+var_60],#0x70                       ; +0xc0, 0x100067964\nRET                                                                    ; +0xc4, 0x100067968", "xrefs": ["sub_100038870 @ 0x100039488", "SetupSpawnPopup::init @ 0x10011caa0", "SetupSpawnPopup::init @ 0x10011cb8c", "LevelCell::loadCustomLevelCell @ 0x100133cc8", "LevelCell::loadCustomLevelCell @ 0x10013402c", "LevelCell::loadCustomLevelCell @ 0x10013410c", "LevelCell::loadCustomLevelCell @ 0x1001341e8", "EditorUI::getCreateBtn @ 0x10018462c", "EditorUI::menuItemFromObjectString @ 0x100185230", "SFXBrowser::init @ 0x1001f1e78", "SFXBrowser::init @ 0x1001f1f74", "SFXBrowser::init @ 0x1001f2158", "SFXBrowser::init @ 0x1001f2278", "SFXBrowser::init @ 0x1001f2394", "sub_1002113A0 @ 0x100211b1c", "SetupSequenceTriggerPopup::init @ 0x10026a9bc", "sub_1002ED39C @ 0x1002ed438", "sub_1003F01F0 @ 0x1003f0250", "sub_10045800C @ 0x1004584b4", "sub_100467BDC @ 0x10046849c", "sub_100467BDC @ 0x100468594", "sub_100467BDC @ 0x1004686d4", "sub_100467BDC @ 0x1004687f4", "sub_100467BDC @ 0x100468908", "sub_100467BDC @ 0x100468abc", "EditorUI::getSpriteButton @ 0x100474bc4", "EditorUI::getCreateMenuItemButton @ 0x100474cc4", "EditorSFXActionConfigLayer::init @ 0x1004c629c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}