// // SetupTriggerPopup::createPlusButton from 0x100220600 to 0x1002207ae (430 bytes) // // 4 xrefs: // > SetupSFXPopup::init @ 0x1004b2203 // > SetupSFXPopup::init @ 0x1004b272c // > SetupSFXPopup::init @ 0x1004b2799 // > SetupRotateGameplayPopup::init @ 0x100878a06 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 12:27:03 +0000 // __int64 __fastcall SetupTriggerPopup::createPlusButton( __int64 a1, unsigned int a2, __int64 a3, std::string *a4, unsigned int a5, int a6, float a7) { __int64 i; // rdi __int64 v12; // r13 __int64 v13; // rax __int64 v14; // r13 __int64 j; // rdi __int64 v16; // r12 __int64 v17; // rax __int64 v18; // r12 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v19; // al std::string::pointer data; // r14 __int64 v21; // r14 __int64 v22; // r14 _BYTE v24[8]; // [rsp+0h] [rbp-40h] BYREF __int64 v25; // [rsp+8h] [rbp-38h] unsigned int v26; // [rsp+10h] [rbp-30h] float v27; // [rsp+14h] [rbp-2Ch] v27 = a7; v25 = a3; v26 = a2; for ( i = *(_QWORD *)(a1 + 912); (unsigned int)sub_1007FEF90(i) <= a5; i = *(_QWORD *)(a1 + 912) ) { v12 = *(_QWORD *)(a1 + 912); v13 = sub_1007FE900(i); sub_1007FEBF0(v12, v13); } v14 = sub_1007FEFE0(*(_QWORD *)(a1 + 912), a5); for ( j = *(_QWORD *)(a1 + 928); (unsigned int)sub_1007FEF90(j) <= a6; j = *(_QWORD *)(a1 + 928) ) { v16 = *(_QWORD *)(a1 + 928); v17 = sub_1007FE900(j); sub_1007FEBF0(v16, v17); } v18 = sub_1007FEFE0(*(_QWORD *)(a1 + 928), (unsigned int)a6); v19 = a4->__r_.__value_.__s.0; if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) != 0 ) { if ( !a4->__r_.__value_.__l.__size_ ) goto LABEL_11; } else if ( !(*(unsigned __int8 *)&v19 >> 1) ) { LABEL_11: std::string::assign(a4, "GJ_plus2Btn_001.png"); if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_12; LABEL_10: data = a4->__r_.__value_.__s.__data_; goto LABEL_13; } if ( (*(_BYTE *)&v19 & 1) == 0 ) goto LABEL_10; LABEL_12: data = a4->__r_.__value_.__l.__data_; LABEL_13: v21 = cocos2d::CCSprite::createWithSpriteFrameName(data); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, v27); v22 = CCMenuItemSpriteExtra::create(v21, 0, a1, 1417, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v22 + 72LL))(v22, v26); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v22); cocos2d::CCNode::convertToNodeSpace(v24, *(_QWORD *)(a1 + 552), v25); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 184LL))(v22, v24); sub_1007FEBF0(v14, v22); if ( a6 > 0 ) sub_1007FEBF0(v18, v22); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source