; ; CCMenuItemToggler::create from 0x140045250 to 0x140045474 (548 bytes) ; ; 34 xrefs: ; > GameToolbox::createToggleButton @ 0x14006478d ; > CharacterColorPage::init @ 0x140088aba ; > ColorSelectPopup::init @ 0x14008ef5c ; > LevelCell::loadFromLevel @ 0x1400ae13a ; > GJRequestCell::loadFromScore @ 0x1400bc9e3 ; > GJMessageCell::loadFromMessage @ 0x1400bdbe9 ; > EditorUI::setupCreateMenu @ 0x14010db86 ; > FRequestProfilePage::init @ 0x14013e0e8 ; > GJGarageLayer::setupIconSelect @ 0x1402753fc ; > GJGarageLayer::setupIconSelect @ 0x14027548e ; > GJGarageLayer::setupIconSelect @ 0x140275523 ; > GJGarageLayer::setupIconSelect @ 0x1402755b8 ; > GJGarageLayer::setupIconSelect @ 0x14027564d ; > GJGarageLayer::setupIconSelect @ 0x1402756e2 ; > GJGarageLayer::setupIconSelect @ 0x140275777 ; > GJGarageLayer::setupIconSelect @ 0x14027580c ; > GJGarageLayer::setupIconSelect @ 0x1402758a1 ; > GJGarageLayer::setupIconSelect @ 0x140275936 ; > GJGarageLayer::setupIconSelect @ 0x1402759cb ; > GJAccountSettingsLayer::createToggleButton @ 0x140293b79 ; > LeaderboardsLayer::setupTabs @ 0x1402c273c ; > LeaderboardsLayer::setupTabs @ 0x1402c283d ; > LeaderboardsLayer::setupTabs @ 0x1402c293e ; > LeaderboardsLayer::setupTabs @ 0x1402c2a3f ; > LevelBrowserLayer::init @ 0x1402c9942 ; > MoreSearchLayer::createToggleButton @ 0x140317383 ; > LevelSettingsLayer::createToggleButton @ 0x140321402 ; > MessagesProfilePage::init @ 0x140336ce5 ; > VideoOptionsLayer::createToggleButton @ 0x140378a8f ; > ShareCommentLayer::init @ 0x14048d729 ; > ShareLevelSettingsLayer::init @ 0x1404915cd ; > ShareLevelSettingsLayer::init @ 0x14049181b ; > SupportLayer::createToggleButton @ 0x1404c91c2 ; > @ 0x1406c46f8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x140045250 mov [rsp+arg_8], rbp ; +0x5, 0x140045255 mov [rsp+arg_10], rsi ; +0xa, 0x14004525a mov [rsp+arg_18], rdi ; +0xf, 0x14004525f push r14 ; +0x14, 0x140045264 sub rsp, 50h ; +0x16, 0x140045266 movaps [rsp+58h+var_18], xmm6 ; +0x1a, 0x14004526a mov rbx, r9 ; +0x1f, 0x14004526f mov rdi, r8 ; +0x22, 0x140045272 mov rbp, rdx ; +0x25, 0x140045275 mov r14, rcx ; +0x28, 0x140045278 mov ecx, 190h; Size ; +0x2b, 0x14004527b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x30, 0x140045280 mov rsi, rax ; +0x35, 0x140045285 mov [rsp+58h+var_38], rax ; +0x38, 0x140045288 mov rcx, rax ; +0x3d, 0x14004528d call cs:??0CCMenuItem@cocos2d@@QEAA@XZ; cocos2d::CCMenuItem::CCMenuItem(void) ; +0x40, 0x140045290 lea rax, ??_7CCMenuItemToggler@@6B@; const CCMenuItemToggler::`vftable' ; +0x46, 0x140045296 mov [rsi], rax ; +0x4d, 0x14004529d lea rax, ??_7CCMenuItemToggler@@6B@_0; const CCMenuItemToggler::`vftable' ; +0x50, 0x1400452a0 mov [rsi+140h], rax ; +0x57, 0x1400452a7 mov qword ptr [rsi+178h], 0 ; +0x5e, 0x1400452ae mov qword ptr [rsi+180h], 0 ; +0x69, 0x1400452b9 mov word ptr [rsi+188h], 0 ; +0x74, 0x1400452c4 mov r8, rbx ; +0x7d, 0x1400452cd mov rdx, rdi ; +0x80, 0x1400452d0 mov rcx, rsi ; +0x83, 0x1400452d3 call cs:?initWithTarget@CCMenuItem@cocos2d@@QEAA_NPEAVCCObject@2@P832@EAAX0@Z@Z; cocos2d::CCMenuItem::initWithTarget(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x86, 0x1400452d6 test al, al ; +0x8c, 0x1400452dc jz loc_140045443 ; +0x8e, 0x1400452de lea r9, CCMenuItemToggler__normalTouch ; +0x94, 0x1400452e4 mov r8, rsi ; +0x9b, 0x1400452eb xor edx, edx ; +0x9e, 0x1400452ee mov rcx, r14 ; +0xa0, 0x1400452f0 call CCMenuItemSpriteExtra__create ; +0xa3, 0x1400452f3 mov [rsi+178h], rax ; +0xa8, 0x1400452f8 lea r9, CCMenuItemToggler__selectedTouch ; +0xaf, 0x1400452ff mov r8, rsi ; +0xb6, 0x140045306 xor edx, edx ; +0xb9, 0x140045309 mov rcx, rbp ; +0xbb, 0x14004530b call CCMenuItemSpriteExtra__create ; +0xbe, 0x14004530e mov [rsi+180h], rax ; +0xc3, 0x140045313 mov rax, [rsi] ; +0xca, 0x14004531a mov rdx, [rsi+178h] ; +0xcd, 0x14004531d mov rcx, rsi ; +0xd4, 0x140045324 call qword ptr [rax+1C0h] ; +0xd7, 0x140045327 mov rax, [rsi] ; +0xdd, 0x14004532d mov rdx, [rsi+180h] ; +0xe0, 0x140045330 mov rcx, rsi ; +0xe7, 0x140045337 call qword ptr [rax+1C0h] ; +0xea, 0x14004533a mov rcx, [rsi+178h] ; +0xf0, 0x140045340 mov rax, [rcx] ; +0xf7, 0x140045347 call qword ptr [rax+3A8h] ; +0xfa, 0x14004534a mov rbx, rax ; +0x100, 0x140045350 mov rdi, [rax] ; +0x103, 0x140045353 movss xmm6, cs:dword_140622B08 ; +0x106, 0x140045356 movaps xmm2, xmm6 ; +0x10e, 0x14004535e movaps xmm1, xmm6 ; +0x111, 0x140045361 lea rcx, [rsp+58h+var_38] ; +0x114, 0x140045364 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x119, 0x140045369 mov rdx, rax ; +0x11f, 0x14004536f mov rcx, rbx ; +0x122, 0x140045372 call qword ptr [rdi+110h] ; +0x125, 0x140045375 mov rcx, [rsi+180h] ; +0x12b, 0x14004537b mov rax, [rcx] ; +0x132, 0x140045382 call qword ptr [rax+3A8h] ; +0x135, 0x140045385 mov rbx, rax ; +0x13b, 0x14004538b mov rdi, [rax] ; +0x13e, 0x14004538e movaps xmm2, xmm6 ; +0x141, 0x140045391 movaps xmm1, xmm6 ; +0x144, 0x140045394 lea rcx, [rsp+58h+var_30] ; +0x147, 0x140045397 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x14c, 0x14004539c mov rdx, rax ; +0x152, 0x1400453a2 mov rcx, rbx ; +0x155, 0x1400453a5 call qword ptr [rdi+110h] ; +0x158, 0x1400453a8 mov rcx, [rsi+178h] ; +0x15e, 0x1400453ae mov rax, [rcx] ; +0x165, 0x1400453b5 call qword ptr [rax+3A8h] ; +0x168, 0x1400453b8 mov rbx, rax ; +0x16e, 0x1400453be mov rdi, [rax] ; +0x171, 0x1400453c1 lea r8, stru_1406C1348 ; +0x174, 0x1400453c4 lea rdx, [rsp+58h+var_28] ; +0x17b, 0x1400453cb mov rcx, [rsi+178h] ; +0x180, 0x1400453d0 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x187, 0x1400453d7 mov rdx, rax ; +0x18d, 0x1400453dd mov rcx, rbx ; +0x190, 0x1400453e0 call qword ptr [rdi+0B8h] ; +0x193, 0x1400453e3 mov rcx, [rsi+180h] ; +0x199, 0x1400453e9 mov rax, [rcx] ; +0x1a0, 0x1400453f0 call qword ptr [rax+3A8h] ; +0x1a3, 0x1400453f3 mov rbx, rax ; +0x1a9, 0x1400453f9 mov rdi, [rax] ; +0x1ac, 0x1400453fc lea r8, stru_1406C1348 ; +0x1af, 0x1400453ff lea rdx, [rsp+58h+var_20] ; +0x1b6, 0x140045406 mov rcx, [rsi+180h] ; +0x1bb, 0x14004540b call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1c2, 0x140045412 mov rdx, rax ; +0x1c8, 0x140045418 mov rcx, rbx ; +0x1cb, 0x14004541b call qword ptr [rdi+0B8h] ; +0x1ce, 0x14004541e mov byte ptr [rsi+189h], 0 ; +0x1d4, 0x140045424 xor edx, edx ; +0x1db, 0x14004542b mov rcx, rsi ; +0x1dd, 0x14004542d call CCMenuItemToggler__toggle ; +0x1e0, 0x140045430 mov rcx, rsi ; +0x1e5, 0x140045435 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1e8, 0x140045438 mov rax, rsi ; +0x1ee, 0x14004543e jmp short loc_140045454 ; +0x1f1, 0x140045441 mov r8, [rsi] ; +0x1f3, 0x140045443 mov edx, 1 ; +0x1f6, 0x140045446 mov rcx, rsi ; +0x1fb, 0x14004544b call qword ptr [r8+8] ; +0x1fe, 0x14004544e xor eax, eax ; +0x202, 0x140045452 mov rbx, [rsp+58h+arg_0] ; +0x204, 0x140045454 mov rbp, [rsp+58h+arg_8] ; +0x209, 0x140045459 mov rsi, [rsp+58h+arg_10] ; +0x20e, 0x14004545e mov rdi, [rsp+58h+arg_18] ; +0x213, 0x140045463 movaps xmm6, [rsp+58h+var_18] ; +0x218, 0x140045468 add rsp, 50h ; +0x21d, 0x14004546d pop r14 ; +0x221, 0x140045471 retn ; +0x223, 0x140045473