; ; CCMenuItemToggler::create from 0x140048f70 to 0x140049197 (551 bytes) ; ; 48 xrefs: ; > GameToolbox::createNotifyToggles @ 0x14006df5e ; > GameToolbox::createToggleButton @ 0x14006e69a ; > CharacterColorPage::init @ 0x1400a134a ; > AccountReviewPopup::buildReportedRows @ 0x1400b43ab ; > AccountReviewPopup::buildFilterRows @ 0x1400b5be7 ; > ReportPopup::buildReasonRows @ 0x1400bed5d ; > AutoBackupPopup::buildRows @ 0x1400cb0d8 ; > LevelPickerPopup::init @ 0x1400e96e4 ; > DeathMarkerSettingsPopup::init @ 0x14011d06a ; > DeathTrackerOptionsPopup::init @ 0x14011fdd0 ; > ColorSelectPopup::init @ 0x140127e58 ; > LevelCell::loadFromLevel @ 0x140148b7e ; > CommentCell::loadFromComment @ 0x14015447c ; > GJRequestCell::loadFromScore @ 0x140159002 ; > GJThreadCell::loadFromThread @ 0x14015a718 ; > GJMessageCell::loadFromMessage @ 0x14015d1ae ; > EditorUI::setupCreateMenu @ 0x1401f0534 ; > GJGarageLayer::setupIconSelect @ 0x14037dc7b ; > GJGarageLayer::setupIconSelect @ 0x14037dd12 ; > GJGarageLayer::setupIconSelect @ 0x14037ddad ; > GJGarageLayer::setupIconSelect @ 0x14037de48 ; > GJGarageLayer::setupIconSelect @ 0x14037dee3 ; > GJGarageLayer::setupIconSelect @ 0x14037df7e ; > GJGarageLayer::setupIconSelect @ 0x14037e019 ; > GJGarageLayer::setupIconSelect @ 0x14037e0b4 ; > GJGarageLayer::setupIconSelect @ 0x14037e14f ; > GJGarageLayer::setupIconSelect @ 0x14037e1ea ; > GJGarageLayer::setupIconSelect @ 0x14037e285 ; > GJAccountSettingsLayer::createToggleButton @ 0x14039e82f ; > LeaderboardsLayer::setupTabs @ 0x1403db8e7 ; > LeaderboardsLayer::setupTabs @ 0x1403db9eb ; > LeaderboardsLayer::setupTabs @ 0x1403dbaef ; > LeaderboardsLayer::setupTabs @ 0x1403dbbf3 ; > MoreSearchLayer::createToggleButton @ 0x140440589 ; > KeybindCapturePopup::init @ 0x14044da88 ; > PlatformerControlsPopup::init @ 0x14044f358 ; > PlatformerControlsPopup::init @ 0x14044f8cb ; > PlatformerControlsPopup::init @ 0x14044f9b3 ; > PlatformerControlsPopup::init @ 0x14044fa9b ; > LevelSettingsLayer::createToggleButton @ 0x14045a608 ; > VideoOptionsLayer::createToggleButton @ 0x1404ce805 ; > ParentalOptionsLayer::init @ 0x1404d18e0 ; > ShareCommentLayer::init @ 0x14062e843 ; > ShareLevelSettingsLayer::init @ 0x140633058 ; > ShareLevelSettingsLayer::init @ 0x1406332b1 ; > SupportLayer::createToggleButton @ 0x14066a948 ; > TimeSpeedControl::init @ 0x14066dbaa ; > @ 0x14090fbf0 ; ; 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 11:25:32 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140048f70 mov [rsp+arg_8], rbp ; +0x5, 0x140048f75 mov [rsp+arg_10], rsi ; +0xa, 0x140048f7a mov [rsp+arg_18], rdi ; +0xf, 0x140048f7f push r14 ; +0x14, 0x140048f84 sub rsp, 40h ; +0x16, 0x140048f86 movaps [rsp+48h+var_18], xmm6 ; +0x1a, 0x140048f8a mov rbx, r9 ; +0x1f, 0x140048f8f mov rdi, r8 ; +0x22, 0x140048f92 mov rbp, rdx ; +0x25, 0x140048f95 mov r14, rcx ; +0x28, 0x140048f98 mov ecx, 190h; Size ; +0x2b, 0x140048f9b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x30, 0x140048fa0 mov rsi, rax ; +0x35, 0x140048fa5 mov [rsp+48h+var_28], rax ; +0x38, 0x140048fa8 mov rcx, rax ; +0x3d, 0x140048fad call cs:??0CCMenuItem@cocos2d@@QEAA@XZ; cocos2d::CCMenuItem::CCMenuItem(void) ; +0x40, 0x140048fb0 lea rax, ??_7CCMenuItemToggler@@6B@; const CCMenuItemToggler::`vftable' ; +0x46, 0x140048fb6 mov [rsi], rax ; +0x4d, 0x140048fbd lea rax, ??_7CCMenuItemToggler@@6B@_0; const CCMenuItemToggler::`vftable' ; +0x50, 0x140048fc0 mov [rsi+140h], rax ; +0x57, 0x140048fc7 mov qword ptr [rsi+178h], 0 ; +0x5e, 0x140048fce mov qword ptr [rsi+180h], 0 ; +0x69, 0x140048fd9 mov word ptr [rsi+188h], 0 ; +0x74, 0x140048fe4 mov r8, rbx ; +0x7d, 0x140048fed mov rdx, rdi ; +0x80, 0x140048ff0 mov rcx, rsi ; +0x83, 0x140048ff3 call cs:?initWithTarget@CCMenuItem@cocos2d@@QEAA_NPEAVCCObject@2@P832@EAAX0@Z@Z; cocos2d::CCMenuItem::initWithTarget(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x86, 0x140048ff6 test al, al ; +0x8c, 0x140048ffc jz loc_140049163 ; +0x8e, 0x140048ffe lea r9, CCMenuItemToggler__normalTouch ; +0x94, 0x140049004 mov r8, rsi ; +0x9b, 0x14004900b xor edx, edx ; +0x9e, 0x14004900e mov rcx, r14 ; +0xa0, 0x140049010 call CCMenuItemSpriteExtra__create ; +0xa3, 0x140049013 mov [rsi+178h], rax ; +0xa8, 0x140049018 lea r9, CCMenuItemToggler__selectedTouch ; +0xaf, 0x14004901f mov r8, rsi ; +0xb6, 0x140049026 xor edx, edx ; +0xb9, 0x140049029 mov rcx, rbp ; +0xbb, 0x14004902b call CCMenuItemSpriteExtra__create ; +0xbe, 0x14004902e mov [rsi+180h], rax ; +0xc3, 0x140049033 mov rax, [rsi] ; +0xca, 0x14004903a mov rdx, [rsi+178h] ; +0xcd, 0x14004903d mov rcx, rsi ; +0xd4, 0x140049044 call qword ptr [rax+1D0h] ; +0xd7, 0x140049047 mov rax, [rsi] ; +0xdd, 0x14004904d mov rdx, [rsi+180h] ; +0xe0, 0x140049050 mov rcx, rsi ; +0xe7, 0x140049057 call qword ptr [rax+1D0h] ; +0xea, 0x14004905a mov rcx, [rsi+178h] ; +0xf0, 0x140049060 mov rax, [rcx] ; +0xf7, 0x140049067 call qword ptr [rax+3B8h] ; +0xfa, 0x14004906a mov rdi, rax ; +0x100, 0x140049070 mov rbx, [rax] ; +0x103, 0x140049073 movss xmm6, cs:dword_140834F20 ; +0x106, 0x140049076 movaps xmm2, xmm6 ; +0x10e, 0x14004907e movaps xmm1, xmm6 ; +0x111, 0x140049081 lea rcx, [rsp+48h+var_28] ; +0x114, 0x140049084 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x119, 0x140049089 mov rdx, rax ; +0x11f, 0x14004908f mov rcx, rdi ; +0x122, 0x140049092 call qword ptr [rbx+120h] ; +0x125, 0x140049095 mov rcx, [rsi+180h] ; +0x12b, 0x14004909b mov rax, [rcx] ; +0x132, 0x1400490a2 call qword ptr [rax+3B8h] ; +0x135, 0x1400490a5 mov rdi, rax ; +0x13b, 0x1400490ab mov rbx, [rax] ; +0x13e, 0x1400490ae movaps xmm2, xmm6 ; +0x141, 0x1400490b1 movaps xmm1, xmm6 ; +0x144, 0x1400490b4 lea rcx, [rsp+48h+var_28] ; +0x147, 0x1400490b7 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x14c, 0x1400490bc mov rdx, rax ; +0x152, 0x1400490c2 mov rcx, rdi ; +0x155, 0x1400490c5 call qword ptr [rbx+120h] ; +0x158, 0x1400490c8 mov rcx, [rsi+178h] ; +0x15e, 0x1400490ce mov rax, [rcx] ; +0x165, 0x1400490d5 call qword ptr [rax+3B8h] ; +0x168, 0x1400490d8 mov rdi, rax ; +0x16e, 0x1400490de mov rbx, [rax] ; +0x171, 0x1400490e1 lea r8, unk_140909A80 ; +0x174, 0x1400490e4 lea rdx, [rsp+48h+var_28] ; +0x17b, 0x1400490eb mov rcx, [rsi+178h] ; +0x180, 0x1400490f0 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x187, 0x1400490f7 mov rdx, rax ; +0x18d, 0x1400490fd mov rcx, rdi ; +0x190, 0x140049100 call qword ptr [rbx+0B8h] ; +0x193, 0x140049103 mov rcx, [rsi+180h] ; +0x199, 0x140049109 mov rax, [rcx] ; +0x1a0, 0x140049110 call qword ptr [rax+3B8h] ; +0x1a3, 0x140049113 mov rdi, rax ; +0x1a9, 0x140049119 mov rbx, [rax] ; +0x1ac, 0x14004911c lea r8, unk_140909A80 ; +0x1af, 0x14004911f lea rdx, [rsp+48h+var_28] ; +0x1b6, 0x140049126 mov rcx, [rsi+180h] ; +0x1bb, 0x14004912b call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1c2, 0x140049132 mov rdx, rax ; +0x1c8, 0x140049138 mov rcx, rdi ; +0x1cb, 0x14004913b call qword ptr [rbx+0B8h] ; +0x1ce, 0x14004913e mov byte ptr [rsi+189h], 0 ; +0x1d4, 0x140049144 xor edx, edx ; +0x1db, 0x14004914b mov rcx, rsi ; +0x1dd, 0x14004914d call CCMenuItemToggler__toggle ; +0x1e0, 0x140049150 mov rcx, rsi ; +0x1e5, 0x140049155 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1e8, 0x140049158 mov rax, rsi ; +0x1ee, 0x14004915e jmp short loc_140049177 ; +0x1f1, 0x140049161 mov rcx, [rsi] ; +0x1f3, 0x140049163 mov r8, [rcx+8] ; +0x1f6, 0x140049166 mov edx, 1 ; +0x1fa, 0x14004916a mov rcx, rsi ; +0x1ff, 0x14004916f call r8 ; +0x202, 0x140049172 xor eax, eax ; +0x205, 0x140049175 mov rbx, [rsp+48h+arg_0] ; +0x207, 0x140049177 mov rbp, [rsp+48h+arg_8] ; +0x20c, 0x14004917c mov rsi, [rsp+48h+arg_10] ; +0x211, 0x140049181 mov rdi, [rsp+48h+arg_18] ; +0x216, 0x140049186 movaps xmm6, [rsp+48h+var_18] ; +0x21b, 0x14004918b add rsp, 40h ; +0x220, 0x140049190 pop r14 ; +0x224, 0x140049194 retn ; +0x226, 0x140049196