; ; GJScaleControl::init from 0x140129a70 to 0x140129eac (1084 bytes) ; ; 5 xrefs: ; > EditorUI::init @ 0x1400df7e7 ; > EditorUI::init @ 0x1400df7ee ; > EditorUI::init @ 0x1400df7d8 ; > @ 0x140553298 ; > @ 0x1406c9aa4 ; ; 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 ; push rdi ; +0x0, 0x140129a70 sub rsp, 60h ; +0x2, 0x140129a72 mov rdi, rcx ; +0x6, 0x140129a76 call cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x9, 0x140129a79 test al, al ; +0xf, 0x140129a7f jnz short loc_140129A89 ; +0x11, 0x140129a81 add rsp, 60h ; +0x13, 0x140129a83 pop rdi ; +0x17, 0x140129a87 retn ; +0x18, 0x140129a88 mov rax, [rdi] ; +0x19, 0x140129a89 mov dl, 1 ; +0x1c, 0x140129a8c mov [rsp+68h+arg_0], rbx ; +0x1e, 0x140129a8e mov rcx, rdi ; +0x23, 0x140129a93 mov [rsp+68h+var_10], rbp ; +0x26, 0x140129a96 mov [rsp+68h+var_18], rsi ; +0x2b, 0x140129a9b movaps [rsp+68h+var_28], xmm6 ; +0x30, 0x140129aa0 call qword ptr [rax+388h] ; +0x35, 0x140129aa5 mov rax, [rdi] ; +0x3b, 0x140129aab lea rdx, dword_1406C1AA8 ; +0x3e, 0x140129aae mov rcx, rdi ; +0x45, 0x140129ab5 call qword ptr [rax+110h] ; +0x48, 0x140129ab8 lea rcx, aWarplockoffbtn; "warpLockOffBtn_001.png" ; +0x4e, 0x140129abe call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x55, 0x140129ac5 lea r9, GJScaleControl__onToggleLockScale ; +0x5b, 0x140129acb mov r8, rdi ; +0x62, 0x140129ad2 mov rcx, rax ; +0x65, 0x140129ad5 xor edx, edx ; +0x68, 0x140129ad8 call CCMenuItemSpriteExtra__create ; +0x6a, 0x140129ada mov rcx, rax ; +0x6f, 0x140129adf mov [rdi+200h], rax ; +0x72, 0x140129ae2 call cs:?createWithItem@CCMenu@cocos2d@@SAPEAV12@PEAVCCMenuItem@2@@Z; cocos2d::CCMenu::createWithItem(cocos2d::CCMenuItem *) ; +0x79, 0x140129ae9 mov r9, [rdi] ; +0x7f, 0x140129aef mov r8d, 3 ; +0x82, 0x140129af2 mov rdx, rax ; +0x88, 0x140129af8 mov rcx, rdi ; +0x8b, 0x140129afb call qword ptr [r9+1B8h] ; +0x8e, 0x140129afe movss xmm6, cs:flt_140622C24 ; +0x95, 0x140129b05 lea rbp, aGjMovesbtnPng; "GJ_moveSBtn.png" ; +0x9d, 0x140129b0d movss [rsp+68h+var_38], xmm6 ; +0xa4, 0x140129b14 lea rsi, aGjMovebtnPng; "GJ_moveBtn.png" ; +0xaa, 0x140129b1a mov [rsp+68h+var_40], rbp ; +0xb1, 0x140129b21 lea r9, aSlidergroove02; "slidergroove_02.png" ; +0xb6, 0x140129b26 lea rdx, GJScaleControl__sliderChanged; Merged with: GJScaleControl::sliderChanged, MusicBrowser::sliderChanged ; +0xbd, 0x140129b2d mov [rsp+68h+var_48], rsi ; +0xc4, 0x140129b34 mov rcx, rdi ; +0xc9, 0x140129b39 call Slider__create ; +0xcc, 0x140129b3c mov [rdi+198h], rax ; +0xd1, 0x140129b41 xor edx, edx ; +0xd8, 0x140129b48 mov rcx, [rax+1A0h] ; +0xda, 0x140129b4a mov rax, [rcx] ; +0xe1, 0x140129b51 call qword ptr [rax+140h] ; +0xe4, 0x140129b54 mov rax, [rdi] ; +0xea, 0x140129b5a mov r8d, 2 ; +0xed, 0x140129b5d mov rdx, [rdi+198h] ; +0xf3, 0x140129b63 mov rcx, rdi ; +0xfa, 0x140129b6a call qword ptr [rax+1B8h] ; +0xfd, 0x140129b6d mov rax, [rdi+198h] ; +0x103, 0x140129b73 xor edx, edx ; +0x10a, 0x140129b7a mov rcx, [rax+198h] ; +0x10c, 0x140129b7c mov rax, [rcx] ; +0x113, 0x140129b83 call qword ptr [rax+388h] ; +0x116, 0x140129b86 mov rax, [rdi+198h] ; +0x11c, 0x140129b8c lea rcx, [rsp+68h+arg_8] ; +0x123, 0x140129b93 xorps xmm2, xmm2 ; +0x128, 0x140129b98 xorps xmm1, xmm1 ; +0x12b, 0x140129b9b mov rbx, [rax] ; +0x12e, 0x140129b9e call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x131, 0x140129ba1 mov rcx, [rdi+198h] ; +0x137, 0x140129ba7 mov rdx, rax ; +0x13e, 0x140129bae call qword ptr [rbx+0B8h] ; +0x141, 0x140129bb1 movss [rsp+68h+var_38], xmm6 ; +0x147, 0x140129bb7 lea r9, aSlidergroove02; "slidergroove_02.png" ; +0x14d, 0x140129bbd mov [rsp+68h+var_40], rbp ; +0x154, 0x140129bc4 lea rdx, GJScaleControl__sliderChanged; Merged with: GJScaleControl::sliderChanged, MusicBrowser::sliderChanged ; +0x159, 0x140129bc9 mov rcx, rdi ; +0x160, 0x140129bd0 mov [rsp+68h+var_48], rsi ; +0x163, 0x140129bd3 call Slider__create ; +0x168, 0x140129bd8 mov [rdi+1A0h], rax ; +0x16d, 0x140129bdd xor edx, edx ; +0x174, 0x140129be4 mov rcx, [rax+1A0h] ; +0x176, 0x140129be6 mov rax, [rcx] ; +0x17d, 0x140129bed call qword ptr [rax+140h] ; +0x180, 0x140129bf0 mov rax, [rdi] ; +0x186, 0x140129bf6 mov r8d, 2 ; +0x189, 0x140129bf9 mov rdx, [rdi+1A0h] ; +0x18f, 0x140129bff mov rcx, rdi ; +0x196, 0x140129c06 call qword ptr [rax+1B8h] ; +0x199, 0x140129c09 mov rax, [rdi+1A0h] ; +0x19f, 0x140129c0f mov rcx, [rax+198h] ; +0x1a6, 0x140129c16 mov rax, [rcx] ; +0x1ad, 0x140129c1d xor edx, edx ; +0x1b0, 0x140129c20 call qword ptr [rax+388h] ; +0x1b2, 0x140129c22 movss xmm2, cs:dword_140623210 ; +0x1b8, 0x140129c28 lea rcx, [rsp+68h+arg_10] ; +0x1c0, 0x140129c30 xorps xmm1, xmm1 ; +0x1c8, 0x140129c38 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1cb, 0x140129c3b mov rcx, [rdi+198h] ; +0x1d1, 0x140129c41 mov rbx, rax ; +0x1d8, 0x140129c48 mov rdx, [rcx] ; +0x1db, 0x140129c4b call qword ptr [rdx+0C8h] ; +0x1de, 0x140129c4e mov r8, rbx ; +0x1e4, 0x140129c54 lea rdx, [rsp+68h+arg_8] ; +0x1e7, 0x140129c57 mov rcx, rax ; +0x1ec, 0x140129c5c call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1ef, 0x140129c5f mov rcx, [rdi+1A0h] ; +0x1f5, 0x140129c65 lea rdx, [rsp+68h+arg_8] ; +0x1fc, 0x140129c6c mov rax, [rcx] ; +0x201, 0x140129c71 call qword ptr [rax+0B8h] ; +0x204, 0x140129c74 movss [rsp+68h+var_38], xmm6 ; +0x20a, 0x140129c7a lea r9, aSlidergroove02; "slidergroove_02.png" ; +0x210, 0x140129c80 mov [rsp+68h+var_40], rbp ; +0x217, 0x140129c87 lea rdx, GJScaleControl__sliderChanged; Merged with: GJScaleControl::sliderChanged, MusicBrowser::sliderChanged ; +0x21c, 0x140129c8c mov rcx, rdi ; +0x223, 0x140129c93 mov [rsp+68h+var_48], rsi ; +0x226, 0x140129c96 call Slider__create ; +0x22b, 0x140129c9b mov [rdi+1A8h], rax ; +0x230, 0x140129ca0 xor edx, edx ; +0x237, 0x140129ca7 mov rcx, [rax+1A0h] ; +0x239, 0x140129ca9 mov rax, [rcx] ; +0x240, 0x140129cb0 call qword ptr [rax+140h] ; +0x243, 0x140129cb3 mov rax, [rdi] ; +0x249, 0x140129cb9 mov r8d, 2 ; +0x24c, 0x140129cbc mov rdx, [rdi+1A8h] ; +0x252, 0x140129cc2 mov rcx, rdi ; +0x259, 0x140129cc9 call qword ptr [rax+1B8h] ; +0x25c, 0x140129ccc mov rax, [rdi+1A8h] ; +0x262, 0x140129cd2 xor edx, edx ; +0x269, 0x140129cd9 mov rcx, [rax+198h] ; +0x26b, 0x140129cdb mov rax, [rcx] ; +0x272, 0x140129ce2 call qword ptr [rax+388h] ; +0x275, 0x140129ce5 mov rax, [rdi+1A8h] ; +0x27b, 0x140129ceb mov rcx, [rdi+198h] ; +0x282, 0x140129cf2 mov rbx, [rax] ; +0x289, 0x140129cf9 mov rax, [rcx] ; +0x28c, 0x140129cfc call qword ptr [rax+0C8h] ; +0x28f, 0x140129cff mov rcx, [rdi+1A8h] ; +0x295, 0x140129d05 mov rdx, rax ; +0x29c, 0x140129d0c call qword ptr [rbx+0B8h] ; +0x29f, 0x140129d0f lea rdx, qword_14052A4D8 ; +0x2a5, 0x140129d15 mov dword ptr [rdi+1B0h], 0FFFFFFFFh ; +0x2ac, 0x140129d1c lea rcx, aScalex; "ScaleX:" ; +0x2b6, 0x140129d26 call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x2bd, 0x140129d2d mov r8, [rdi] ; +0x2c3, 0x140129d33 mov rcx, rdi ; +0x2c6, 0x140129d36 mov rdx, rax ; +0x2c9, 0x140129d39 mov [rdi+1D0h], rax ; +0x2cc, 0x140129d3c call qword ptr [r8+1C0h] ; +0x2d3, 0x140129d43 movss xmm6, cs:dword_140623164 ; +0x2da, 0x140129d4a lea rcx, [rsp+68h+arg_10] ; +0x2e2, 0x140129d52 movaps xmm2, xmm6 ; +0x2ea, 0x140129d5a xorps xmm1, xmm1 ; +0x2ed, 0x140129d5d call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2f0, 0x140129d60 mov rcx, [rdi+198h] ; +0x2f6, 0x140129d66 mov rbx, rax ; +0x2fd, 0x140129d6d mov rdx, [rcx] ; +0x300, 0x140129d70 call qword ptr [rdx+0C8h] ; +0x303, 0x140129d73 mov r8, rbx ; +0x309, 0x140129d79 lea rdx, [rsp+68h+arg_8] ; +0x30c, 0x140129d7c mov rcx, rax ; +0x311, 0x140129d81 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x314, 0x140129d84 mov rcx, [rdi+1D0h] ; +0x31a, 0x140129d8a lea rdx, [rsp+68h+arg_8] ; +0x321, 0x140129d91 mov rax, [rcx] ; +0x326, 0x140129d96 call qword ptr [rax+0B8h] ; +0x329, 0x140129d99 lea rdx, qword_14052A4D8 ; +0x32f, 0x140129d9f lea rcx, aScalex; "ScaleX:" ; +0x336, 0x140129da6 call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x33d, 0x140129dad mov r8, [rdi] ; +0x343, 0x140129db3 mov rcx, rdi ; +0x346, 0x140129db6 mov [rdi+1D8h], rax ; +0x349, 0x140129db9 mov rdx, rax ; +0x350, 0x140129dc0 call qword ptr [r8+1C0h] ; +0x353, 0x140129dc3 movaps xmm2, xmm6 ; +0x35a, 0x140129dca lea rcx, [rsp+68h+arg_10] ; +0x35d, 0x140129dcd xorps xmm1, xmm1 ; +0x365, 0x140129dd5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x368, 0x140129dd8 mov rcx, [rdi+1A0h] ; +0x36e, 0x140129dde mov rbx, rax ; +0x375, 0x140129de5 mov r8, [rcx] ; +0x378, 0x140129de8 call qword ptr [r8+0C8h] ; +0x37b, 0x140129deb mov r8, rbx ; +0x382, 0x140129df2 lea rdx, [rsp+68h+arg_8] ; +0x385, 0x140129df5 mov rcx, rax ; +0x38a, 0x140129dfa call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x38d, 0x140129dfd mov rcx, [rdi+1D8h] ; +0x393, 0x140129e03 lea rdx, [rsp+68h+arg_8] ; +0x39a, 0x140129e0a mov rax, [rcx] ; +0x39f, 0x140129e0f call qword ptr [rax+0B8h] ; +0x3a2, 0x140129e12 lea rdx, qword_14052A4D8 ; +0x3a8, 0x140129e18 lea rcx, aScale_0; "Scale:" ; +0x3af, 0x140129e1f call cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x3b6, 0x140129e26 mov r8, [rdi] ; +0x3bc, 0x140129e2c mov rcx, rdi ; +0x3bf, 0x140129e2f mov rdx, rax ; +0x3c2, 0x140129e32 mov [rdi+1E0h], rax ; +0x3c5, 0x140129e35 call qword ptr [r8+1C0h] ; +0x3cc, 0x140129e3c movaps xmm2, xmm6 ; +0x3d3, 0x140129e43 lea rcx, [rsp+68h+arg_10] ; +0x3d6, 0x140129e46 xorps xmm1, xmm1 ; +0x3de, 0x140129e4e call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3e1, 0x140129e51 mov rcx, [rdi+1A8h] ; +0x3e7, 0x140129e57 mov rbx, rax ; +0x3ee, 0x140129e5e mov rdx, [rcx] ; +0x3f1, 0x140129e61 call qword ptr [rdx+0C8h] ; +0x3f4, 0x140129e64 mov r8, rbx ; +0x3fa, 0x140129e6a lea rdx, [rsp+68h+arg_8] ; +0x3fd, 0x140129e6d mov rcx, rax ; +0x402, 0x140129e72 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x405, 0x140129e75 mov rcx, [rdi+1E0h] ; +0x40b, 0x140129e7b lea rdx, [rsp+68h+arg_8] ; +0x412, 0x140129e82 mov rax, [rcx] ; +0x417, 0x140129e87 call qword ptr [rax+0B8h] ; +0x41a, 0x140129e8a movaps xmm6, [rsp+68h+var_28] ; +0x420, 0x140129e90 mov al, 1 ; +0x425, 0x140129e95 mov rsi, [rsp+68h+var_18] ; +0x427, 0x140129e97 mov rbp, [rsp+68h+var_10] ; +0x42c, 0x140129e9c mov rbx, [rsp+68h+arg_0] ; +0x431, 0x140129ea1 add rsp, 60h ; +0x436, 0x140129ea6 pop rdi ; +0x43a, 0x140129eaa retn ; +0x43b, 0x140129eab