// // DeathMarkerSettingsPopup::init from 0x1004b698c to 0x1004b7720 (3476 bytes) // // 1 xrefs: // > DeathMarkerSettingsPopup::create @ 0x1004b6940 // // This function is hookable on this platform (idp: arm, 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 11:06:15 +0000 // __int64 __fastcall DeathMarkerSettingsPopup::init(__int64 a1, __int64 a2) { __int64 v4; // x19 __int64 v5; // x0 __int64 v6; // kr00_8 void *v7; // x21 void *v8; // x21 float v9; // s8 float v10; // s15 __int64 v11; // x22 const std::string::value_type *v12; // x1 char *v13; // x21 __int64 v14; // x22 void *v15; // x21 float v16; // s14 char *v17; // x21 __int64 v18; // x22 void *v19; // x0 __int64 v20; // x21 __int64 v21; // x21 __int64 v22; // x0 __int64 v23; // x21 __int64 v24; // x0 int IntGameVariable; // w0 int v26; // w8 int v27; // w8 int v28; // w21 __int64 v29; // x0 void *v30; // x21 float v31; // s10 char *v32; // x21 __int64 v33; // x22 void *v34; // x0 __int64 v35; // x21 __int64 v36; // x21 __int64 v37; // x0 __int64 v38; // x21 __int64 v39; // x0 int v40; // w0 int v41; // w8 __int64 v42; // x21 __int64 v43; // x26 void *v44; // x24 void *v45; // x0 char *v46; // x24 __int64 v47; // x0 _BOOL8 GameVariable; // x0 __int64 v49; // x25 float *v50; // x28 void *v51; // x24 char *v52; // x24 __int64 v53; // x25 void *v54; // x21 void *v55; // x21 __int64 v56; // x20 void *v58[2]; // [xsp+0h] [xbp-360h] BYREF char v59; // [xsp+17h] [xbp-349h] void *v60[2]; // [xsp+18h] [xbp-348h] BYREF char v61; // [xsp+2Fh] [xbp-331h] float v62; // [xsp+30h] [xbp-330h] BYREF void *v63[2]; // [xsp+38h] [xbp-328h] BYREF char v64; // [xsp+4Fh] [xbp-311h] void *v65[2]; // [xsp+50h] [xbp-310h] BYREF char v66; // [xsp+67h] [xbp-2F9h] void *v67[2]; // [xsp+68h] [xbp-2F8h] BYREF char v68; // [xsp+7Fh] [xbp-2E1h] void *v69[2]; // [xsp+80h] [xbp-2E0h] BYREF char v70; // [xsp+97h] [xbp-2C9h] __int64 v71; // [xsp+98h] [xbp-2C8h] BYREF std::string __dst; // [xsp+A0h] [xbp-2C0h] BYREF void *v73[2]; // [xsp+C0h] [xbp-2A0h] BYREF char v74; // [xsp+D7h] [xbp-289h] std::string v75; // [xsp+D8h] [xbp-288h] BYREF void *__p[2]; // [xsp+F0h] [xbp-270h] BYREF char v77; // [xsp+107h] [xbp-259h] __int64 v78; // [xsp+108h] [xbp-258h] BYREF _QWORD v79[4]; // [xsp+110h] [xbp-250h] BYREF float v80; // [xsp+130h] [xbp-230h] float v81; // [xsp+134h] [xbp-22Ch] _QWORD v82[5]; // [xsp+138h] [xbp-228h] float v83; // [xsp+160h] [xbp-200h] float v84; // [xsp+164h] [xbp-1FCh] const char *v85; // [xsp+168h] [xbp-1F8h] const char *v86; // [xsp+170h] [xbp-1F0h] const char *v87; // [xsp+178h] [xbp-1E8h] __int64 (__fastcall *v88)(); // [xsp+180h] [xbp-1E0h] __int64 v89; // [xsp+188h] [xbp-1D8h] float v90; // [xsp+190h] [xbp-1D0h] float v91; // [xsp+194h] [xbp-1CCh] const char *v92; // [xsp+198h] [xbp-1C8h] const char *v93; // [xsp+1A0h] [xbp-1C0h] const char *v94; // [xsp+1A8h] [xbp-1B8h] __int64 (__fastcall *v95)(); // [xsp+1B0h] [xbp-1B0h] __int64 v96; // [xsp+1B8h] [xbp-1A8h] float v97; // [xsp+1C0h] [xbp-1A0h] float v98; // [xsp+1C4h] [xbp-19Ch] const char *v99; // [xsp+1C8h] [xbp-198h] const char *v100; // [xsp+1D0h] [xbp-190h] const char *v101; // [xsp+1D8h] [xbp-188h] __int64 (__fastcall *v102)(); // [xsp+1E0h] [xbp-180h] __int64 v103; // [xsp+1E8h] [xbp-178h] float v104; // [xsp+1F0h] [xbp-170h] float v105; // [xsp+1F4h] [xbp-16Ch] const char *v106; // [xsp+1F8h] [xbp-168h] const char *v107; // [xsp+200h] [xbp-160h] const char *v108; // [xsp+208h] [xbp-158h] __int64 (__fastcall *v109)(); // [xsp+210h] [xbp-150h] __int64 v110; // [xsp+218h] [xbp-148h] float v111; // [xsp+220h] [xbp-140h] float v112; // [xsp+224h] [xbp-13Ch] const char *v113; // [xsp+228h] [xbp-138h] const char *v114; // [xsp+230h] [xbp-130h] const char *v115; // [xsp+238h] [xbp-128h] __int64 (__fastcall *v116)(); // [xsp+240h] [xbp-120h] __int64 v117; // [xsp+248h] [xbp-118h] float v118; // [xsp+250h] [xbp-110h] float v119; // [xsp+254h] [xbp-10Ch] const char *v120; // [xsp+258h] [xbp-108h] const char *v121; // [xsp+260h] [xbp-100h] const char *v122; // [xsp+268h] [xbp-F8h] __int64 (__fastcall *v123)(); // [xsp+270h] [xbp-F0h] __int64 v124; // [xsp+278h] [xbp-E8h] float v125; // [xsp+280h] [xbp-E0h] float v126; // [xsp+284h] [xbp-DCh] const char *v127; // [xsp+288h] [xbp-D8h] const char *v128; // [xsp+290h] [xbp-D0h] const char *v129; // [xsp+298h] [xbp-C8h] __int64 (__fastcall *v130)(); // [xsp+2A0h] [xbp-C0h] __int64 v131; // [xsp+2A8h] [xbp-B8h] float v132; // [xsp+2B0h] [xbp-B0h] float v133; // [xsp+2B4h] [xbp-ACh] const char *v134; // [xsp+2B8h] [xbp-A8h] v4 = SetupTriggerPopup::init(a1, 0, 0, 1, 360.0, 300.0, 0.0); if ( (_DWORD)v4 ) { *(_QWORD *)(a1 + 1056) = a2; v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5, &v78); v6 = v78; sub_100009900(__p, "Death Markers"); sub_1001ACA6C(a1, (__int64 *)__p); if ( v77 < 0 ) operator delete(__p[0]); v7 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_closeBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v7 + 160LL))(v7, 0.8); v8 = CCMenuItemSpriteExtra::create((__int64)v7, 0, a1, 1368, 1); CCMenuItemSpriteExtra::setSizeMult((__int64)v8, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v8); v9 = *(float *)&v6 * 0.5; v10 = (float)(*((float *)&v6 + 1) * 0.5) + 150.0; v11 = *(_QWORD *)(a1 + 552); sub_1000262BC((float *)&v75, (float)((float)(*(float *)&v6 * 0.5) + -180.0) + 8.0, v10 + -12.0); cocos2d::CCNode::convertToNodeSpace(v11, (__int64)&v75, v79); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v8 + 184LL))(v8, v79); sub_100009900( &v75, "Local Markers: Your deaths.\n" "Label counts your deaths near that spot.\n" " \n" "Global Markers: Online players.\n"); if ( *(_QWORD *)(GameManager::sharedState() + 544) && *(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1969LL) != 1 ) { v12 = "No Progress triggers in this level, less info:\n" "Skull% of all players died here.\n" "Wall% of the players that died here never beat the level."; } else { v12 = "Of the players that reached the spot:\nSkull% died here.\nWall% never got past it."; } std::string::append(&v75, v12); sub_100009900(v73, "Death Markers"); if ( SHIBYTE(v75.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v75.__r_.__value_.__l.__data_, v75.__r_.__value_.__l.__size_); else __dst = v75; v13 = InfoAlertButton::create((__int64)v73, (__int64)&__dst, 0.9); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( v74 < 0 ) operator delete(v73[0]); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v13); v14 = *(_QWORD *)(a1 + 552); sub_1000262BC((float *)&v71, (float)(v9 + 180.0) + -16.0, v10 + -16.0); cocos2d::CCNode::convertToNodeSpace(v14, (__int64)&v71, v79); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v13 + 184LL))(v13, v79); v15 = cocos2d::CCLabelBMFont::create_1("Frequency:", "goldFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v15 + 160LL))(v15, 0.45); sub_1000262BC((float *)v79, 1.0, 0.5); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v15 + 296LL))(v15, v79); v16 = v9 + -84.0; sub_1000262BC((float *)v79, (float)(v9 + -84.0) + 8.0, v10 + -44.0); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v15 + 184LL))(v15, v79); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v15, 1); sub_100009900(v69, "Frequency"); sub_100009900( v67, "How often markers show when you die.\n" "Lower settings only show them for new bests, repeated deaths at one spot, or spots deadly to e" "veryone.\n" "Always shows them on every death."); v17 = InfoAlertButton::create((__int64)v69, (__int64)v67, 0.5); if ( v68 < 0 ) operator delete(v67[0]); if ( v70 < 0 ) operator delete(v69[0]); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v17); v18 = *(_QWORD *)(a1 + 552); sub_1000262BC((float *)&v71, v16 + -62.0, v10 + -44.0); cocos2d::CCNode::convertToNodeSpace(v18, (__int64)&v71, v79); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v17 + 184LL))(v17, v79); v19 = cocos2d::CCLabelBMFont::create_1("Normal", "bigFont.fnt"); *(_QWORD *)(a1 + 1032) = v19; (*(void (__fastcall **)(void *, float))(*(_QWORD *)v19 + 160LL))(v19, 0.4); v20 = *(_QWORD *)(a1 + 1032); sub_1000262BC((float *)v79, 0.0, 0.5); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v20 + 296LL))(v20, v79); v21 = *(_QWORD *)(a1 + 1032); sub_1000262BC((float *)v79, v16 + 12.0, v10 + -44.0); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v21 + 184LL))(v21, v79); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1032), 1); v22 = Slider::create_1(a1, (__int64)sub_1004B7894, 0, 0.65); *(_QWORD *)(a1 + 1024) = v22; Slider::setBarVisibility(v22); sub_10038A98C(*(_QWORD *)(a1 + 1024), 0.2); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1024), 1); v23 = *(_QWORD *)(a1 + 1024); sub_1000262BC((float *)v79, v9 + -84.0, v10 + -70.0); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v23 + 184LL))(v23, v79); v24 = GameManager::sharedState(); IntGameVariable = GameManager::getIntGameVariable(v24, "0205"); if ( IntGameVariable >= 6 ) v26 = 6; else v26 = IntGameVariable; v27 = v26 - 1; if ( IntGameVariable <= 0 ) v28 = 2; else v28 = v27; Slider::setValue(*(_QWORD *)(a1 + 1024), (float)(unsigned int)v28 / 5.0); v29 = *(_QWORD *)(a1 + 1032); if ( v29 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v29 + 928LL))( v29, off_100982828[v28 & (unsigned int)~(v28 >> 31)]); v30 = cocos2d::CCLabelBMFont::create_1("Duration:", "goldFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v30 + 160LL))(v30, 0.45); sub_1000262BC((float *)v79, 1.0, 0.5); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v30 + 296LL))(v30, v79); v31 = v9 + 92.0; sub_1000262BC((float *)v79, (float)(v9 + 92.0) + 13.0, v10 + -44.0); (*(void (__fastcall **)(void *, _QWORD *))(*(_QWORD *)v30 + 184LL))(v30, v79); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v30, 1); sub_100009900(v65, "Display Duration"); sub_100009900( v63, "Increase or decrease the death marker display time.\n" "Animations are not affected."); v32 = InfoAlertButton::create((__int64)v65, (__int64)v63, 0.5); if ( v64 < 0 ) operator delete(v63[0]); if ( v66 < 0 ) operator delete(v65[0]); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v32); v33 = *(_QWORD *)(a1 + 552); sub_1000262BC((float *)&v71, v31 + -57.0, v10 + -44.0); cocos2d::CCNode::convertToNodeSpace(v33, (__int64)&v71, v79); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v32 + 184LL))(v32, v79); v34 = cocos2d::CCLabelBMFont::create_1("1.0x", "bigFont.fnt"); *(_QWORD *)(a1 + 1048) = v34; (*(void (__fastcall **)(void *, float))(*(_QWORD *)v34 + 160LL))(v34, 0.4); v35 = *(_QWORD *)(a1 + 1048); sub_1000262BC((float *)v79, 0.0, 0.5); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v35 + 296LL))(v35, v79); v36 = *(_QWORD *)(a1 + 1048); sub_1000262BC((float *)v79, v31 + 17.0, v10 + -44.0); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v36 + 184LL))(v36, v79); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1048), 1); v37 = Slider::create_1(a1, (__int64)sub_1004B797C, 0, 0.65); *(_QWORD *)(a1 + 1040) = v37; Slider::setBarVisibility(v37); sub_10038A98C(*(_QWORD *)(a1 + 1040), 0.066667); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1040), 1); v38 = *(_QWORD *)(a1 + 1040); sub_1000262BC((float *)v79, v9 + 92.0, v10 + -70.0); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v38 + 184LL))(v38, v79); v39 = GameManager::sharedState(); v40 = GameManager::getIntGameVariable(v39, "0211"); if ( v40 >= 200 ) v41 = 200; else v41 = v40; if ( v41 <= 50 ) v41 = 50; if ( v40 <= 0 ) v42 = 100; else v42 = (unsigned int)v41; Slider::setValue(*(_QWORD *)(a1 + 1040), (float)(unsigned int)(v42 - 50) / 150.0); sub_1004B7A4C(a1, v42); v43 = 0; v79[0] = "Local Markers"; v79[1] = "0200"; v79[2] = sub_1004B7ABC; v79[3] = 0; v80 = v9 + -130.0; v81 = v10 + -102.0; v82[0] = "Shows your own deaths as markers in the level."; v82[1] = "Global Markers"; v82[2] = "0202"; v82[3] = sub_1004B7AF8; v82[4] = 0; v83 = v9 + 26.0; v84 = v10 + -102.0; v85 = "Shows where all players die. Downloaded automatically for online levels."; v86 = "Switch Color"; v87 = "0204"; v88 = sub_1004B7B34; v89 = 0; v90 = v9 + -130.0; v91 = v10 + -134.0; v92 = "Tints your local markers with your primary color instead of your secondary color."; v93 = "Disable Anim"; v94 = "0201"; v95 = sub_1004B7B50; v96 = 0; v97 = v9 + 26.0; v98 = v10 + -134.0; v99 = "Markers appear instantly when you die, without the pop-in animation."; v100 = "Disable Sound"; v101 = "0206"; v102 = sub_1004B7B6C; v103 = 0; v104 = v9 + -130.0; v105 = v10 + -166.0; v106 = "Mutes the marker pop-in sound."; v107 = "Disable Markers"; v108 = "0207"; v109 = sub_1004B7B88; v110 = 0; v111 = v9 + 26.0; v112 = v10 + -166.0; v113 = "Hides all death markers."; v114 = "Hide Labels"; v115 = "0208"; v116 = sub_1004B7C40; v117 = 0; v118 = v9 + -130.0; v119 = v10 + -198.0; v120 = "Hides the count and rate labels."; v121 = "Limited Labels"; v122 = "0210"; v123 = sub_1004B7CC8; v124 = 0; v125 = v9 + 26.0; v126 = v10 + -198.0; v127 = "Only shows the global label where you died. Ignored in the editor."; v128 = "Live Practice Markers"; v129 = "0216"; v130 = sub_1004B7CE4; v131 = 0; v134 = "Death markers stay visible in Practice mode,\n" "from a Start pos, or in your local created levels.\n" "Normal runs use the Frequency setting."; v132 = v9 + -130.0; v133 = v10 + -230.0; do { v44 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOff_001.png"); v45 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOn_001.png"); v46 = CCMenuItemToggler::create((__int64)v44, (__int64)v45, a1, v79[v43 + 2], v79[v43 + 3]); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v46 + 160LL))(v46, 0.62); v47 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v47, (const std::string::value_type *)v79[v43 + 1]); CCMenuItemToggler::toggle((__int64)v46, GameVariable); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v46); v49 = *(_QWORD *)(a1 + 552); v50 = (float *)&v79[v43]; sub_1000262BC(&v62, *(float *)&v79[v43 + 4], *(float *)((char *)&v81 + v43 * 8)); cocos2d::CCNode::convertToNodeSpace(v49, (__int64)&v62, &v71); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v46 + 184LL))(v46, &v71); v51 = cocos2d::CCLabelBMFont::create_1((const char *)v79[v43], "bigFont.fnt"); sub_1000262BC((float *)&v71, 0.0, 0.5); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v51 + 296LL))(v51, &v71); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v51 + 160LL))(v51, 0.33); sub_1000262BC((float *)&v71, v50[8] + 20.0, v50[9]); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v51 + 184LL))(v51, &v71); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v51, 1); sub_100009900(v60, (char *)v79[v43]); sub_100009900(v58, (char *)v82[v43]); v52 = InfoAlertButton::create((__int64)v60, (__int64)v58, 0.5); if ( v59 < 0 ) operator delete(v58[0]); if ( v61 < 0 ) operator delete(v60[0]); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v52); v53 = *(_QWORD *)(a1 + 552); sub_1000262BC(&v62, v50[8] + -16.0, v50[9] + 13.0); cocos2d::CCNode::convertToNodeSpace(v53, (__int64)&v62, &v71); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v52 + 184LL))(v52, &v71); v43 += 6; } while ( v43 != 54 ); v54 = ButtonSprite::create_1( (__int64)"Clear Markers", 110, 0, 1, (__int64)"bigFont.fnt", (__int64)"GJ_button_06.png", 0.6, 30.0); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v54 + 160LL))(v54, 0.85); v55 = CCMenuItemSpriteExtra::create((__int64)v54, 0, a1, (__int64)sub_1004B7D20, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v55, 1.1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v55); v56 = *(_QWORD *)(a1 + 552); sub_1000262BC(&v62, v9, v10 + -266.0); cocos2d::CCNode::convertToNodeSpace(v56, (__int64)&v62, &v71); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v55 + 184LL))(v55, &v71); if ( SHIBYTE(v75.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v75.__r_.__value_.__l.__data_); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source