; ; GJAccountSettingsLayer::createToggleButton from 0x140293ae0 to 0x140293ce3 (515 bytes) ; ; 9 xrefs: ; > GJAccountSettingsLayer::init @ 0x140292884 ; > GJAccountSettingsLayer::init @ 0x14029293f ; > GJAccountSettingsLayer::init @ 0x1402929eb ; > GJAccountSettingsLayer::init @ 0x140292c11 ; > GJAccountSettingsLayer::init @ 0x140292cb0 ; > GJAccountSettingsLayer::init @ 0x140292eba ; > GJAccountSettingsLayer::init @ 0x140292f6d ; > GJAccountSettingsLayer::init @ 0x140293011 ; > @ 0x1406d1a00 ; ; 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_18], rbx ; +0x0, 0x140293ae0 push rbp ; +0x5, 0x140293ae5 push rsi ; +0x6, 0x140293ae6 push rdi ; +0x7, 0x140293ae7 push r12 ; +0x8, 0x140293ae8 push r13 ; +0xa, 0x140293aea push r14 ; +0xc, 0x140293aec push r15 ; +0xe, 0x140293aee sub rsp, 50h ; +0x10, 0x140293af0 movaps [rsp+88h+var_48], xmm6 ; +0x14, 0x140293af4 mov rax, cs:__security_cookie ; +0x19, 0x140293af9 xor rax, rsp ; +0x20, 0x140293b00 mov [rsp+88h+var_50], rax ; +0x23, 0x140293b03 mov rdi, r8 ; +0x28, 0x140293b08 mov r14, rdx ; +0x2b, 0x140293b0b mov r13, rcx ; +0x2e, 0x140293b0e mov [rsp+88h+var_58], rdx ; +0x31, 0x140293b11 mov rsi, [rsp+88h+arg_20] ; +0x36, 0x140293b16 mov r12, [rsp+88h+arg_28] ; +0x3e, 0x140293b1e lea rcx, aGjCheckon001Pn; "GJ_checkOn_001.png" ; +0x46, 0x140293b26 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x4d, 0x140293b2d mov rbp, rax ; +0x53, 0x140293b33 lea rcx, aGjCheckoff001P; "GJ_checkOff_001.png" ; +0x56, 0x140293b36 call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x5d, 0x140293b3d mov rbx, rax ; +0x63, 0x140293b43 mov rdx, [rbp+0] ; +0x66, 0x140293b46 movss xmm6, cs:dword_140622B08 ; +0x6a, 0x140293b4a movaps xmm1, xmm6 ; +0x72, 0x140293b52 mov rcx, rbp ; +0x75, 0x140293b55 call qword ptr [rdx+0A0h] ; +0x78, 0x140293b58 mov rdx, [rbx] ; +0x7e, 0x140293b5e movaps xmm1, xmm6 ; +0x81, 0x140293b61 mov rcx, rbx ; +0x84, 0x140293b64 call qword ptr [rdx+0A0h] ; +0x87, 0x140293b67 mov r9, rdi ; +0x8d, 0x140293b6d mov r8, r13 ; +0x90, 0x140293b70 mov rdx, rbx ; +0x93, 0x140293b73 mov rcx, rbp ; +0x96, 0x140293b76 call CCMenuItemToggler__create ; +0x99, 0x140293b79 mov r15, rax ; +0x9e, 0x140293b7e mov dl, 1 ; +0xa1, 0x140293b81 mov rcx, rax ; +0xa3, 0x140293b83 call CCMenuItemToggler__toggle ; +0xa6, 0x140293b86 mov r8, [rsi] ; +0xab, 0x140293b8b mov rdx, r15 ; +0xae, 0x140293b8e mov rcx, rsi ; +0xb1, 0x140293b91 call qword ptr [r8+1C0h] ; +0xb4, 0x140293b94 mov rbx, [r15] ; +0xbb, 0x140293b9b mov r8, r12 ; +0xbe, 0x140293b9e lea rdx, [rsp+88h+var_68] ; +0xc1, 0x140293ba1 mov rcx, rsi ; +0xc6, 0x140293ba6 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xc9, 0x140293ba9 mov rdx, rax ; +0xcf, 0x140293baf mov rcx, r15 ; +0xd2, 0x140293bb2 call qword ptr [rbx+0B8h] ; +0xd5, 0x140293bb5 mov rax, [r15+178h] ; +0xdb, 0x140293bbb mov dword ptr [rax+174h], 3FC00000h ; +0xe2, 0x140293bc2 mov rax, [r15+180h] ; +0xec, 0x140293bcc mov dword ptr [rax+174h], 3FC00000h ; +0xf3, 0x140293bd3 movzx edx, byte ptr [r15+188h] ; +0xfd, 0x140293bdd mov rcx, r15 ; +0x105, 0x140293be5 call CCMenuItemToggler__toggle ; +0x108, 0x140293be8 mov rcx, r14 ; +0x10d, 0x140293bed cmp qword ptr [r14+18h], 0Fh ; +0x110, 0x140293bf0 jbe short loc_140293BFA ; +0x115, 0x140293bf5 mov rcx, [r14] ; +0x117, 0x140293bf7 lea rdx, qword_14052A4D8 ; +0x11a, 0x140293bfa call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x121, 0x140293c01 mov rdi, rax ; +0x127, 0x140293c07 mov rcx, [r13+240h] ; +0x12a, 0x140293c0a mov r8, [rcx] ; +0x131, 0x140293c11 mov rdx, rax ; +0x134, 0x140293c14 call qword ptr [r8+1C0h] ; +0x137, 0x140293c17 mov rbx, [rdi] ; +0x13e, 0x140293c1e movaps xmm2, xmm6 ; +0x141, 0x140293c21 xorps xmm1, xmm1 ; +0x144, 0x140293c24 lea rcx, [rsp+88h+var_68] ; +0x147, 0x140293c27 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x14c, 0x140293c2c mov rdx, rax ; +0x152, 0x140293c32 mov rcx, rdi ; +0x155, 0x140293c35 call qword ptr [rbx+110h] ; +0x158, 0x140293c38 mov rax, [rbp+0] ; +0x15e, 0x140293c3e mov rcx, rbp ; +0x162, 0x140293c42 call qword ptr [rax+130h] ; +0x165, 0x140293c45 movss xmm1, dword ptr [rax] ; +0x16b, 0x140293c4b mulss xmm1, xmm6 ; +0x16f, 0x140293c4f mulss xmm1, xmm6 ; +0x173, 0x140293c53 addss xmm1, cs:dword_140622FF0 ; +0x177, 0x140293c57 xorps xmm2, xmm2 ; +0x17f, 0x140293c5f lea rcx, [rsp+88h+var_60] ; +0x182, 0x140293c62 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x187, 0x140293c67 mov r8, rax ; +0x18d, 0x140293c6d lea rdx, [rsp+88h+var_68] ; +0x190, 0x140293c70 mov rcx, r12 ; +0x195, 0x140293c75 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x198, 0x140293c78 mov rax, [rdi] ; +0x19e, 0x140293c7e lea rdx, [rsp+88h+var_68] ; +0x1a1, 0x140293c81 mov rcx, rdi ; +0x1a6, 0x140293c86 call qword ptr [rax+0B8h] ; +0x1a9, 0x140293c89 xorps xmm3, xmm3 ; +0x1af, 0x140293c8f movss xmm2, [rsp+88h+arg_38] ; +0x1b2, 0x140293c92 movss xmm1, [rsp+88h+arg_30] ; +0x1bb, 0x140293c9b mov rcx, rdi ; +0x1c4, 0x140293ca4 call cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x1c7, 0x140293ca7 nop ; +0x1cd, 0x140293cad mov rcx, r14 ; +0x1ce, 0x140293cae call sub_14003A830 ; +0x1d1, 0x140293cb1 mov rax, r15 ; +0x1d6, 0x140293cb6 mov rcx, [rsp+88h+var_50] ; +0x1d9, 0x140293cb9 xor rcx, rsp; StackCookie ; +0x1de, 0x140293cbe call __security_check_cookie ; +0x1e1, 0x140293cc1 mov rbx, [rsp+88h+arg_18] ; +0x1e6, 0x140293cc6 movaps xmm6, [rsp+88h+var_48] ; +0x1ee, 0x140293cce add rsp, 50h ; +0x1f3, 0x140293cd3 pop r15 ; +0x1f7, 0x140293cd7 pop r14 ; +0x1f9, 0x140293cd9 pop r13 ; +0x1fb, 0x140293cdb pop r12 ; +0x1fd, 0x140293cdd pop rdi ; +0x1ff, 0x140293cdf pop rsi ; +0x200, 0x140293ce0 pop rbp ; +0x201, 0x140293ce1 retn ; +0x202, 0x140293ce2