{"type": "func", "start": 5373380912, "end": 5373381175, "name": "SetupTriggerPopup::addCloseButton", "pseudocode": "// \n// SetupTriggerPopup::addCloseButton from 0x140474930 to 0x140474a37 (263 bytes)\n// \n// 69 xrefs:\n// > CustomizeObjectSettingsPopup::init @ 0x1400aa1c7\n// > SetupMoveCommandPopup::init @ 0x140280a8b\n// > SetupEnterTriggerPopup::init @ 0x14028f34d\n// > EditGameObjectPopup::init @ 0x14029b002\n// > UISaveLoadLayer::init @ 0x1402a41bb\n// > SetupRotateCommandPopup::init @ 0x1402a7ee0\n// > SetupObjectOptions2Popup::init @ 0x140400b87\n// > SetItemIDLayer::init @ 0x14040123a\n// > SetTargetIDLayer::init @ 0x140401f6a\n// > SetupAdvFollowPopup::init @ 0x1404025d7\n// > SetupAdvFollowEditPhysicsPopup::init @ 0x1404073d8\n// > SetupAdvFollowRetargetPopup::init @ 0x140408330\n// > SetupAnimSettingsPopup::init @ 0x14040a391\n// > SetupAreaMoveTriggerPopup::init @ 0x14040b5d6\n// > SetupAreaTransformTriggerPopup::init @ 0x14040e1dc\n// > SetupAreaRotateTriggerPopup::init @ 0x14040ea93\n// > SetupAreaFadeTriggerPopup::init @ 0x14040f1e2\n// > SetupAreaTintTriggerPopup::init @ 0x14040f9f6\n// > SetupAreaTriggerPopup::init @ 0x14041098f\n// > SetupAreaAnimTriggerPopup::init @ 0x140410f78\n// > SetupCameraRotatePopup2::init @ 0x140417bef\n// > SetupInstantCollisionTriggerPopup::init @ 0x14041a049\n// > SetupCollisionStateTriggerPopup::init @ 0x14041aaa5\n// > SetupPlatformerEndPopup::init @ 0x14041dc54\n// > SetupEnterEffectPopup::init @ 0x14041e30d\n// > SetupInteractObjectPopup::init @ 0x140423ba8\n// > SetupKeyframeAnimPopup::init @ 0x1404248ff\n// > SetupKeyframePopup::init @ 0x140425572\n// > SetupBGSpeedTrigger::init @ 0x140428c74\n// > SetupGravityTriggerPopup::init @ 0x14042931b\n// > SetupObjectTogglePopup::init @ 0x140429ecb\n// > SetupOptionsTriggerPopup::init @ 0x140435fce\n// > SetupPickupTriggerPopup::init @ 0x140436c16\n// > SetupRotateGameplayPopup::init @ 0x140441636\n// > SetupGameplayOffsetPopup::init @ 0x14044212e\n// > SetupRotatePopup::init @ 0x140442b66\n// > SetupReverbPopup::init @ 0x140446904\n// > SetupSFXPopup::init @ 0x140447367\n// > SetupSFXEditPopup::init @ 0x14044963b\n// > SetupShaderEffectPopup::init @ 0x14044a34f\n// > SetupSongTriggerPopup::init @ 0x14045cb44\n// > SetupSpawnPopup::init @ 0x14045e1be\n// > SetupStaticCameraPopup::init @ 0x14045ff09\n// > SetupTeleportPopup::init @ 0x140460ac6\n// > SetupTimerTriggerPopup::init @ 0x140461f03\n// > SetupTimerEventTriggerPopup::init @ 0x14046289c\n// > SetupTimerControlTriggerPopup::init @ 0x140462eef\n// > SetupTransformPopup::init @ 0x140465189\n// > SetupEventLinkPopup::init @ 0x140466029\n// > SelectEventLayer::init @ 0x1404667ab\n// > SetupPlayerControlPopup::init @ 0x140467e70\n// > SetupSpawnParticlePopup::init @ 0x140468553\n// > SetupCheckpointPopup::init @ 0x140469072\n// > MultiTriggerPopup::init @ 0x1404696c1\n// > UIObjectSettingsPopup::init @ 0x140469a8f\n// > SetupResetTriggerPopup::init @ 0x14046a819\n// > SetupItemEditTriggerPopup::init @ 0x14046acce\n// > SetupItemCompareTriggerPopup::init @ 0x14046d500\n// > SetupCoinLayer::init @ 0x14046f646\n// > SetupPersistentItemTriggerPopup::init @ 0x14046faff\n// > SetupAudioLineGuidePopup::init @ 0x140470092\n// > SetupCameraGuidePopup::init @ 0x1404709ff\n// > SetupForceBlockPopup::init @ 0x1404710e4\n// > SetupArtSwitchPopup::init @ 0x140471fc7\n// > SetupStopTriggerPopup::init @ 0x14047271d\n// > SetupObjectControlPopup::init @ 0x140473009\n// > SetupDashRingPopup::init @ 0x1404732c0\n// > SetupZoomTriggerPopup::init @ 0x14047e23d\n// > <???> @ 0x1406db4a4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall SetupTriggerPopup::addCloseButton(__int64 a1, const char *a2)\n{\n  const char *v4; // rsi\n  ButtonSprite *v5; // rdi\n  CCMenuItemSpriteExtra *v6; // rax\n  ButtonSprite *v7; // [rsp+50h] [rbp-38h]\n\n  v4 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v4 = *(const char **)a2;\n  v7 = (ButtonSprite *)operator new(0x2C0u);\n  v5 = ButtonSprite::ButtonSprite(v7);\n  if ( v5 )\n  {\n    if ( ButtonSprite::init_1(v5, v4, 40, 0, 0.80000001, 1, \"goldFont.fnt\", \"GJ_button_01.png\", 30.0) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n    }\n    else\n    {\n      ((void (__fastcall *)(ButtonSprite *, __int64))v5->~ButtonSprite)(v5, 1);\n      v5 = nullptr;\n    }\n  }\n  v6 = CCMenuItemSpriteExtra::create(v5, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler *)sub_14009BEF0);\n  (*(void (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)(a1 + 544) + 448LL))(*(_QWORD *)(a1 + 544), v6);\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; SetupTriggerPopup::addCloseButton from 0x140474930 to 0x140474a37 (263 bytes)\n; \n; 69 xrefs:\n; > CustomizeObjectSettingsPopup::init @ 0x1400aa1c7\n; > SetupMoveCommandPopup::init @ 0x140280a8b\n; > SetupEnterTriggerPopup::init @ 0x14028f34d\n; > EditGameObjectPopup::init @ 0x14029b002\n; > UISaveLoadLayer::init @ 0x1402a41bb\n; > SetupRotateCommandPopup::init @ 0x1402a7ee0\n; > SetupObjectOptions2Popup::init @ 0x140400b87\n; > SetItemIDLayer::init @ 0x14040123a\n; > SetTargetIDLayer::init @ 0x140401f6a\n; > SetupAdvFollowPopup::init @ 0x1404025d7\n; > SetupAdvFollowEditPhysicsPopup::init @ 0x1404073d8\n; > SetupAdvFollowRetargetPopup::init @ 0x140408330\n; > SetupAnimSettingsPopup::init @ 0x14040a391\n; > SetupAreaMoveTriggerPopup::init @ 0x14040b5d6\n; > SetupAreaTransformTriggerPopup::init @ 0x14040e1dc\n; > SetupAreaRotateTriggerPopup::init @ 0x14040ea93\n; > SetupAreaFadeTriggerPopup::init @ 0x14040f1e2\n; > SetupAreaTintTriggerPopup::init @ 0x14040f9f6\n; > SetupAreaTriggerPopup::init @ 0x14041098f\n; > SetupAreaAnimTriggerPopup::init @ 0x140410f78\n; > SetupCameraRotatePopup2::init @ 0x140417bef\n; > SetupInstantCollisionTriggerPopup::init @ 0x14041a049\n; > SetupCollisionStateTriggerPopup::init @ 0x14041aaa5\n; > SetupPlatformerEndPopup::init @ 0x14041dc54\n; > SetupEnterEffectPopup::init @ 0x14041e30d\n; > SetupInteractObjectPopup::init @ 0x140423ba8\n; > SetupKeyframeAnimPopup::init @ 0x1404248ff\n; > SetupKeyframePopup::init @ 0x140425572\n; > SetupBGSpeedTrigger::init @ 0x140428c74\n; > SetupGravityTriggerPopup::init @ 0x14042931b\n; > SetupObjectTogglePopup::init @ 0x140429ecb\n; > SetupOptionsTriggerPopup::init @ 0x140435fce\n; > SetupPickupTriggerPopup::init @ 0x140436c16\n; > SetupRotateGameplayPopup::init @ 0x140441636\n; > SetupGameplayOffsetPopup::init @ 0x14044212e\n; > SetupRotatePopup::init @ 0x140442b66\n; > SetupReverbPopup::init @ 0x140446904\n; > SetupSFXPopup::init @ 0x140447367\n; > SetupSFXEditPopup::init @ 0x14044963b\n; > SetupShaderEffectPopup::init @ 0x14044a34f\n; > SetupSongTriggerPopup::init @ 0x14045cb44\n; > SetupSpawnPopup::init @ 0x14045e1be\n; > SetupStaticCameraPopup::init @ 0x14045ff09\n; > SetupTeleportPopup::init @ 0x140460ac6\n; > SetupTimerTriggerPopup::init @ 0x140461f03\n; > SetupTimerEventTriggerPopup::init @ 0x14046289c\n; > SetupTimerControlTriggerPopup::init @ 0x140462eef\n; > SetupTransformPopup::init @ 0x140465189\n; > SetupEventLinkPopup::init @ 0x140466029\n; > SelectEventLayer::init @ 0x1404667ab\n; > SetupPlayerControlPopup::init @ 0x140467e70\n; > SetupSpawnParticlePopup::init @ 0x140468553\n; > SetupCheckpointPopup::init @ 0x140469072\n; > MultiTriggerPopup::init @ 0x1404696c1\n; > UIObjectSettingsPopup::init @ 0x140469a8f\n; > SetupResetTriggerPopup::init @ 0x14046a819\n; > SetupItemEditTriggerPopup::init @ 0x14046acce\n; > SetupItemCompareTriggerPopup::init @ 0x14046d500\n; > SetupCoinLayer::init @ 0x14046f646\n; > SetupPersistentItemTriggerPopup::init @ 0x14046faff\n; > SetupAudioLineGuidePopup::init @ 0x140470092\n; > SetupCameraGuidePopup::init @ 0x1404709ff\n; > SetupForceBlockPopup::init @ 0x1404710e4\n; > SetupArtSwitchPopup::init @ 0x140471fc7\n; > SetupStopTriggerPopup::init @ 0x14047271d\n; > SetupObjectControlPopup::init @ 0x140473009\n; > SetupDashRingPopup::init @ 0x1404732c0\n; > SetupZoomTriggerPopup::init @ 0x14047e23d\n; > <???> @ 0x1406db4a4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140474930\npush    rbp                                                            ; +0x5, 0x140474935\npush    rsi                                                            ; +0x6, 0x140474936\npush    rdi                                                            ; +0x7, 0x140474937\nsub     rsp, 70h                                                       ; +0x8, 0x140474938\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14047493c\nxor     rax, rsp                                                       ; +0x13, 0x140474943\nmov     [rsp+88h+var_28], rax                                          ; +0x16, 0x140474946\nmov     rbx, rdx                                                       ; +0x1b, 0x14047494b\nmov     rbp, rcx                                                       ; +0x1e, 0x14047494e\nmov     [rsp+88h+var_30], rdx                                          ; +0x21, 0x140474951\nmov     rsi, rdx                                                       ; +0x26, 0x140474956\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x29, 0x140474959\njbe     short loc_140474963                                            ; +0x2e, 0x14047495e\nmov     rsi, [rdx]                                                     ; +0x30, 0x140474960\nmov     ecx, 2C0h; Size                                                ; +0x33, 0x140474963\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x38, 0x140474968\nmov     [rsp+88h+var_38], rax                                          ; +0x3d, 0x14047496d\nmov     rcx, rax                                                       ; +0x42, 0x140474972\ncall    ButtonSprite__ButtonSprite                                     ; +0x45, 0x140474975\nmov     rdi, rax                                                       ; +0x4a, 0x14047497a\ntest    rax, rax                                                       ; +0x4d, 0x14047497d\njz      short loc_1404749E9                                            ; +0x50, 0x140474980\nmovss   xmm0, cs:dword_140623164                                       ; +0x52, 0x140474982\nmovss   [rsp+88h+var_48], xmm0                                         ; +0x5a, 0x14047498a\nlea     rax, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x60, 0x140474990\nmov     [rsp+88h+var_50], rax                                          ; +0x67, 0x140474997\nlea     rax, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x6c, 0x14047499c\nmov     [rsp+88h+var_58], rax                                          ; +0x73, 0x1404749a3\nmov     [rsp+88h+var_60], 1                                            ; +0x78, 0x1404749a8\nmovss   xmm0, cs:dword_140622BA4                                       ; +0x7d, 0x1404749ad\nmovss   [rsp+88h+var_68], xmm0                                         ; +0x85, 0x1404749b5\nxor     r9d, r9d                                                       ; +0x8b, 0x1404749bb\nlea     r8d, [r9+28h]                                                  ; +0x8e, 0x1404749be\nmov     rdx, rsi                                                       ; +0x92, 0x1404749c2\nmov     rcx, rdi                                                       ; +0x95, 0x1404749c5\ncall    ButtonSprite__init_1                                           ; +0x98, 0x1404749c8\nmov     rcx, rdi                                                       ; +0x9d, 0x1404749cd\ntest    al, al                                                         ; +0xa0, 0x1404749d0\njz      short loc_1404749DC                                            ; +0xa2, 0x1404749d2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa4, 0x1404749d4\njmp     short loc_1404749E9                                            ; +0xaa, 0x1404749da\nmov     rax, [rdi]                                                     ; +0xac, 0x1404749dc\nmov     edx, 1                                                         ; +0xaf, 0x1404749df\ncall    qword ptr [rax+8]                                              ; +0xb4, 0x1404749e4\nxor     edi, edi                                                       ; +0xb7, 0x1404749e7\nlea     r9, sub_14009BEF0                                              ; +0xb9, 0x1404749e9\nmov     r8, rbp                                                        ; +0xc0, 0x1404749f0\nxor     edx, edx                                                       ; +0xc3, 0x1404749f3\nmov     rcx, rdi                                                       ; +0xc5, 0x1404749f5\ncall    CCMenuItemSpriteExtra__create                                  ; +0xc8, 0x1404749f8\nmov     rcx, [rbp+220h]                                                ; +0xcd, 0x1404749fd\nmov     r8, [rcx]                                                      ; +0xd4, 0x140474a04\nmov     rdx, rax                                                       ; +0xd7, 0x140474a07\ncall    qword ptr [r8+1C0h]                                            ; +0xda, 0x140474a0a\nnop                                                                    ; +0xe1, 0x140474a11\nmov     rcx, rbx                                                       ; +0xe2, 0x140474a12\ncall    sub_14003A830                                                  ; +0xe5, 0x140474a15\nmov     rcx, [rsp+88h+var_28]                                          ; +0xea, 0x140474a1a\nxor     rcx, rsp; StackCookie                                          ; +0xef, 0x140474a1f\ncall    __security_check_cookie                                        ; +0xf2, 0x140474a22\nmov     rbx, [rsp+88h+arg_10]                                          ; +0xf7, 0x140474a27\nadd     rsp, 70h                                                       ; +0xff, 0x140474a2f\npop     rdi                                                            ; +0x103, 0x140474a33\npop     rsi                                                            ; +0x104, 0x140474a34\npop     rbp                                                            ; +0x105, 0x140474a35\nretn                                                                   ; +0x106, 0x140474a36", "xrefs": ["CustomizeObjectSettingsPopup::init @ 0x1400aa1c7", "SetupMoveCommandPopup::init @ 0x140280a8b", "SetupEnterTriggerPopup::init @ 0x14028f34d", "EditGameObjectPopup::init @ 0x14029b002", "UISaveLoadLayer::init @ 0x1402a41bb", "SetupRotateCommandPopup::init @ 0x1402a7ee0", "SetupObjectOptions2Popup::init @ 0x140400b87", "SetItemIDLayer::init @ 0x14040123a", "SetTargetIDLayer::init @ 0x140401f6a", "SetupAdvFollowPopup::init @ 0x1404025d7", "SetupAdvFollowEditPhysicsPopup::init @ 0x1404073d8", "SetupAdvFollowRetargetPopup::init @ 0x140408330", "SetupAnimSettingsPopup::init @ 0x14040a391", "SetupAreaMoveTriggerPopup::init @ 0x14040b5d6", "SetupAreaTransformTriggerPopup::init @ 0x14040e1dc", "SetupAreaRotateTriggerPopup::init @ 0x14040ea93", "SetupAreaFadeTriggerPopup::init @ 0x14040f1e2", "SetupAreaTintTriggerPopup::init @ 0x14040f9f6", "SetupAreaTriggerPopup::init @ 0x14041098f", "SetupAreaAnimTriggerPopup::init @ 0x140410f78", "SetupCameraRotatePopup2::init @ 0x140417bef", "SetupInstantCollisionTriggerPopup::init @ 0x14041a049", "SetupCollisionStateTriggerPopup::init @ 0x14041aaa5", "SetupPlatformerEndPopup::init @ 0x14041dc54", "SetupEnterEffectPopup::init @ 0x14041e30d", "SetupInteractObjectPopup::init @ 0x140423ba8", "SetupKeyframeAnimPopup::init @ 0x1404248ff", "SetupKeyframePopup::init @ 0x140425572", "SetupBGSpeedTrigger::init @ 0x140428c74", "SetupGravityTriggerPopup::init @ 0x14042931b", "SetupObjectTogglePopup::init @ 0x140429ecb", "SetupOptionsTriggerPopup::init @ 0x140435fce", "SetupPickupTriggerPopup::init @ 0x140436c16", "SetupRotateGameplayPopup::init @ 0x140441636", "SetupGameplayOffsetPopup::init @ 0x14044212e", "SetupRotatePopup::init @ 0x140442b66", "SetupReverbPopup::init @ 0x140446904", "SetupSFXPopup::init @ 0x140447367", "SetupSFXEditPopup::init @ 0x14044963b", "SetupShaderEffectPopup::init @ 0x14044a34f", "SetupSongTriggerPopup::init @ 0x14045cb44", "SetupSpawnPopup::init @ 0x14045e1be", "SetupStaticCameraPopup::init @ 0x14045ff09", "SetupTeleportPopup::init @ 0x140460ac6", "SetupTimerTriggerPopup::init @ 0x140461f03", "SetupTimerEventTriggerPopup::init @ 0x14046289c", "SetupTimerControlTriggerPopup::init @ 0x140462eef", "SetupTransformPopup::init @ 0x140465189", "SetupEventLinkPopup::init @ 0x140466029", "SelectEventLayer::init @ 0x1404667ab", "SetupPlayerControlPopup::init @ 0x140467e70", "SetupSpawnParticlePopup::init @ 0x140468553", "SetupCheckpointPopup::init @ 0x140469072", "MultiTriggerPopup::init @ 0x1404696c1", "UIObjectSettingsPopup::init @ 0x140469a8f", "SetupResetTriggerPopup::init @ 0x14046a819", "SetupItemEditTriggerPopup::init @ 0x14046acce", "SetupItemCompareTriggerPopup::init @ 0x14046d500", "SetupCoinLayer::init @ 0x14046f646", "SetupPersistentItemTriggerPopup::init @ 0x14046faff", "SetupAudioLineGuidePopup::init @ 0x140470092", "SetupCameraGuidePopup::init @ 0x1404709ff", "SetupForceBlockPopup::init @ 0x1404710e4", "SetupArtSwitchPopup::init @ 0x140471fc7", "SetupStopTriggerPopup::init @ 0x14047271d", "SetupObjectControlPopup::init @ 0x140473009", "SetupDashRingPopup::init @ 0x1404732c0", "SetupZoomTriggerPopup::init @ 0x14047e23d", "<???> @ 0x1406db4a4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}