; ; ButtonSprite::init from 0x14003ef60 to 0x14003f1b6 (598 bytes) ; ; 18 xrefs: ; > ButtonSprite::create @ 0x14003ef22 ; > LevelCell::loadCustomLevelCell @ 0x1400aeb93 ; > LevelCell::loadCustomLevelCell @ 0x1400aed8f ; > LevelCell::loadCustomLevelCell @ 0x1400aeea1 ; > EditorUI::menuItemFromObjectString @ 0x14010e899 ; > FRequestProfilePage::init @ 0x14013dfdb ; > InfoLayer::getSpriteButton @ 0x1402bca37 ; > LeaderboardsLayer::setupTabs @ 0x1402c2e08 ; > LevelBrowserLayer::init @ 0x1402c9842 ; > MessagesProfilePage::init @ 0x140336bd8 ; > MusicBrowser::init @ 0x140338fd3 ; > MusicBrowser::init @ 0x140339135 ; > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x14040d72b ; > SetupSpawnPopup::init @ 0x14045e977 ; > SetupSpawnPopup::init @ 0x14045ea9e ; > SFXBrowser::init @ 0x14047f001 ; > SFXBrowser::init @ 0x14047f152 ; > @ 0x1406c4158 ; ; 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, 0x14003ef60 mov [rsp+arg_8], rsi ; +0x5, 0x14003ef65 push rdi ; +0xa, 0x14003ef6a sub rsp, 60h ; +0xb, 0x14003ef6b mov esi, r8d ; +0xf, 0x14003ef6f mov rbx, rdx ; +0x12, 0x14003ef72 mov rdi, rcx ; +0x15, 0x14003ef75 call cs:__imp_?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0x18, 0x14003ef78 test al, al ; +0x1e, 0x14003ef7e jnz short loc_14003EF92 ; +0x20, 0x14003ef80 mov rbx, [rsp+68h+arg_0] ; +0x22, 0x14003ef82 mov rsi, [rsp+68h+arg_8] ; +0x27, 0x14003ef87 add rsp, 60h ; +0x2c, 0x14003ef8c pop rdi ; +0x30, 0x14003ef90 retn ; +0x31, 0x14003ef91 xor eax, eax ; +0x32, 0x14003ef92 movd xmm0, esi ; +0x34, 0x14003ef94 cvtdq2ps xmm0, xmm0 ; +0x38, 0x14003ef98 mov [rdi+258h], eax ; +0x3b, 0x14003ef9b mov r8d, 1 ; +0x41, 0x14003efa1 mov [rdi+260h], eax ; +0x47, 0x14003efa7 mov rdx, rbx ; +0x4d, 0x14003efad mov rax, [rdi] ; +0x50, 0x14003efb0 mov rcx, rdi ; +0x53, 0x14003efb3 mov byte ptr [rdi+26Ch], 1 ; +0x56, 0x14003efb6 movaps [rsp+68h+var_18], xmm6 ; +0x5d, 0x14003efbd movss dword ptr [rdi+25Ch], xmm0 ; +0x62, 0x14003efc2 movss xmm0, [rsp+68h+arg_28] ; +0x6a, 0x14003efca movss dword ptr [rdi+264h], xmm0 ; +0x73, 0x14003efd3 movaps [rsp+68h+var_28], xmm7 ; +0x7b, 0x14003efdb mov [rdi+278h], rbx ; +0x80, 0x14003efe0 call qword ptr [rax+1B8h] ; +0x87, 0x14003efe7 cmp [rsp+68h+arg_40], 0 ; +0x8d, 0x14003efed xorps xmm6, xmm6 ; +0x95, 0x14003eff5 jnz short loc_14003F072 ; +0x98, 0x14003eff8 movss xmm3, cs:dword_1406231B0 ; +0x9a, 0x14003effa lea rcx, [rsp+68h+var_38] ; +0xa2, 0x14003f002 xorps xmm2, xmm2 ; +0xa7, 0x14003f007 movss [rsp+68h+var_48], xmm3 ; +0xaa, 0x14003f00a xorps xmm1, xmm1 ; +0xb0, 0x14003f010 call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xb3, 0x14003f013 mov rcx, [rsp+68h+arg_38] ; +0xb9, 0x14003f019 mov rdx, rax ; +0xc1, 0x14003f021 call cs:?create@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEBDVCCRect@3@@Z; cocos2d::extension::CCScale9Sprite::create(char const *,cocos2d::CCRect) ; +0xc4, 0x14003f024 movss xmm1, cs:dword_1406230F8 ; +0xca, 0x14003f02a lea rcx, [rsp+68h+var_38] ; +0xd2, 0x14003f032 mov [rdi+288h], rax ; +0xd7, 0x14003f037 movaps xmm2, xmm1 ; +0xde, 0x14003f03e mov rbx, [rax] ; +0xe1, 0x14003f041 call cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0xe4, 0x14003f044 mov rcx, [rdi+288h] ; +0xea, 0x14003f04a mov rdx, rax ; +0xf1, 0x14003f051 call qword ptr [rbx+128h] ; +0xf4, 0x14003f054 mov rax, [rdi] ; +0xfa, 0x14003f05a xor r8d, r8d ; +0xfd, 0x14003f05d mov rdx, [rdi+288h] ; +0x100, 0x14003f060 mov rcx, rdi ; +0x107, 0x14003f067 call qword ptr [rax+1B8h] ; +0x10a, 0x14003f06a jmp short loc_14003F09A ; +0x110, 0x14003f070 mov rcx, [rsp+68h+arg_38] ; +0x112, 0x14003f072 call cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x11a, 0x14003f07a mov r9, [rdi] ; +0x120, 0x14003f080 xor r8d, r8d ; +0x123, 0x14003f083 mov rdx, rax ; +0x126, 0x14003f086 mov [rdi+280h], rax ; +0x129, 0x14003f089 mov rcx, rdi ; +0x130, 0x14003f090 call qword ptr [r9+1B8h] ; +0x133, 0x14003f093 movss xmm0, dword ptr [rdi+25Ch] ; +0x13a, 0x14003f09a comiss xmm0, xmm6 ; +0x142, 0x14003f0a2 jbe short loc_14003F0ED ; +0x145, 0x14003f0a5 mov rcx, [rdi+278h] ; +0x147, 0x14003f0a7 mov rax, [rcx] ; +0x14e, 0x14003f0ae call qword ptr [rax+130h] ; +0x151, 0x14003f0b1 movss xmm0, dword ptr [rax] ; +0x157, 0x14003f0b7 comiss xmm0, dword ptr [rdi+25Ch] ; +0x15b, 0x14003f0bb jbe short loc_14003F0ED ; +0x162, 0x14003f0c2 mov rcx, [rdi+278h] ; +0x164, 0x14003f0c4 mov rbx, [rcx] ; +0x16b, 0x14003f0cb call qword ptr [rbx+130h] ; +0x16e, 0x14003f0ce movss xmm1, dword ptr [rdi+25Ch] ; +0x174, 0x14003f0d4 mov rcx, [rdi+278h] ; +0x17c, 0x14003f0dc divss xmm1, dword ptr [rax] ; +0x183, 0x14003f0e3 call qword ptr [rbx+0A0h] ; +0x187, 0x14003f0e7 movss xmm7, [rsp+68h+arg_20] ; +0x18d, 0x14003f0ed comiss xmm7, xmm6 ; +0x196, 0x14003f0f6 jbe short loc_14003F167 ; +0x199, 0x14003f0f9 mov rcx, [rdi+278h] ; +0x19b, 0x14003f0fb mov rax, [rcx] ; +0x1a2, 0x14003f102 call qword ptr [rax+130h] ; +0x1a5, 0x14003f105 movss xmm0, dword ptr [rax+4] ; +0x1ab, 0x14003f10b comiss xmm0, xmm7 ; +0x1b0, 0x14003f110 jbe short loc_14003F167 ; +0x1b3, 0x14003f113 mov rcx, [rdi+278h] ; +0x1b5, 0x14003f115 mov rax, [rcx] ; +0x1bc, 0x14003f11c call qword ptr [rax+130h] ; +0x1bf, 0x14003f11f mov rcx, [rdi+278h] ; +0x1c5, 0x14003f125 movaps xmm6, xmm7 ; +0x1cc, 0x14003f12c divss xmm6, dword ptr [rax+4] ; +0x1cf, 0x14003f12f mov rax, [rcx] ; +0x1d4, 0x14003f134 call qword ptr [rax+0A8h] ; +0x1d7, 0x14003f137 comiss xmm0, xmm6 ; +0x1dd, 0x14003f13d jbe short loc_14003F167 ; +0x1e0, 0x14003f140 mov rcx, [rdi+278h] ; +0x1e2, 0x14003f142 mov rbx, [rcx] ; +0x1e9, 0x14003f149 call qword ptr [rbx+130h] ; +0x1ec, 0x14003f14c mov rcx, [rdi+278h] ; +0x1f2, 0x14003f152 divss xmm7, dword ptr [rax+4] ; +0x1f9, 0x14003f159 movaps xmm1, xmm7 ; +0x1fe, 0x14003f15e call qword ptr [rbx+0A0h] ; +0x201, 0x14003f161 mov rcx, [rdi+278h] ; +0x207, 0x14003f167 mov rax, [rcx] ; +0x20e, 0x14003f16e call qword ptr [rax+0A8h] ; +0x211, 0x14003f171 mov rcx, [rdi+278h] ; +0x217, 0x14003f177 minss xmm0, dword ptr [rdi+264h] ; +0x21e, 0x14003f17e mov rax, [rcx] ; +0x226, 0x14003f186 movaps xmm1, xmm0 ; +0x229, 0x14003f189 call qword ptr [rax+0A0h] ; +0x22c, 0x14003f18c mov rcx, rdi ; +0x232, 0x14003f192 call ButtonSprite__updateSpriteBGSize ; +0x235, 0x14003f195 movaps xmm7, [rsp+68h+var_28] ; +0x23a, 0x14003f19a mov al, 1 ; +0x23f, 0x14003f19f movaps xmm6, [rsp+68h+var_18] ; +0x241, 0x14003f1a1 mov rbx, [rsp+68h+arg_0] ; +0x246, 0x14003f1a6 mov rsi, [rsp+68h+arg_8] ; +0x24b, 0x14003f1ab add rsp, 60h ; +0x250, 0x14003f1b0 pop rdi ; +0x254, 0x14003f1b4 retn ; +0x255, 0x14003f1b5