; ; ButtonSprite::updateSpriteBGSize from 0x1400430e0 to 0x140043547 (1127 bytes) ; ; 22 xrefs: ; > ButtonSprite::init @ 0x140042bb7 ; > ButtonSprite::updateBGImage @ 0x14004308a ; > EditorUI::getSpriteButton @ 0x1401adfcf ; > EditorUI::createCustomItems @ 0x1401f64d3 ; > EditorUI::createCustomItems @ 0x1401f6587 ; > EditorUI::createCustomItems @ 0x1401f6643 ; > EditorUI::createCustomItems @ 0x1401f66fe ; > InfoLayer::getSpriteButton @ 0x1403d009a ; > LeaderboardsLayer::setupTabs @ 0x1403dc02a ; > LevelLeaderboard::getSpriteButton @ 0x14042977a ; > MusicBrowser::init @ 0x14047ad6e ; > MusicBrowser::init @ 0x14047aee4 ; > MusicBrowser::init @ 0x14047b0be ; > MusicBrowser::init @ 0x14047b22a ; > MusicBrowser::init @ 0x14047b3e5 ; > SFXBrowser::init @ 0x1406170bc ; > SFXBrowser::init @ 0x14061748f ; > SFXBrowser::init @ 0x1406175fb ; > SFXBrowser::init @ 0x1406177b6 ; > @ 0x140884ff0 ; > @ 0x140885038 ; > @ 0x14090f698 ; ; 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:30 +0000 ; mov rax, rsp ; +0x0, 0x1400430e0 push rbx ; +0x3, 0x1400430e3 push rdi ; +0x4, 0x1400430e4 push r15 ; +0x5, 0x1400430e5 sub rsp, 0B0h ; +0x7, 0x1400430e7 cmp byte ptr [rcx+270h], 0 ; +0xe, 0x1400430ee mov r15, rcx ; +0x15, 0x1400430f5 movaps xmmword ptr [rax-68h], xmm8 ; +0x18, 0x1400430f8 mov [rax-28h], rsi ; +0x1d, 0x1400430fd mov [rax-30h], r14 ; +0x21, 0x140043101 lea r14, [rcx+280h] ; +0x25, 0x140043105 movaps xmmword ptr [rax-48h], xmm6 ; +0x2c, 0x14004310c movaps xmmword ptr [rax-58h], xmm7 ; +0x30, 0x140043110 movaps xmmword ptr [rax-78h], xmm9 ; +0x34, 0x140043114 jz short loc_140043126 ; +0x39, 0x140043119 movss xmm8, dword ptr [rcx+25Ch] ; +0x3b, 0x14004311b jmp short loc_140043180 ; +0x44, 0x140043124 mov rbx, [r14] ; +0x46, 0x140043126 mov rcx, rbx ; +0x49, 0x140043129 mov rax, [rbx] ; +0x4c, 0x14004312c call qword ptr [rax+140h] ; +0x4f, 0x14004312f movss xmm8, dword ptr [r15+260h] ; +0x55, 0x140043135 mov rcx, rbx ; +0x5e, 0x14004313e movss xmm6, dword ptr [rax] ; +0x61, 0x140043141 mov rax, [rbx] ; +0x65, 0x140043145 call qword ptr [rax+0A8h] ; +0x68, 0x140043148 mulss xmm0, xmm6 ; +0x6e, 0x14004314e comiss xmm8, xmm0 ; +0x72, 0x140043152 ja short loc_140043180 ; +0x76, 0x140043156 mov rbx, [r14] ; +0x78, 0x140043158 mov rcx, rbx ; +0x7b, 0x14004315b mov rax, [rbx] ; +0x7e, 0x14004315e call qword ptr [rax+140h] ; +0x81, 0x140043161 mov rcx, rbx ; +0x87, 0x140043167 movss xmm6, dword ptr [rax] ; +0x8a, 0x14004316a mov rax, [rbx] ; +0x8e, 0x14004316e call qword ptr [rax+0A8h] ; +0x91, 0x140043171 movaps xmm8, xmm0 ; +0x97, 0x140043177 mulss xmm8, xmm6 ; +0x9b, 0x14004317b lea rcx, [rsp+0C8h+arg_0] ; +0xa0, 0x140043180 mov [rsp+0C8h+var_20], rbp ; +0xa8, 0x140043188 call cs:??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void) ; +0xb0, 0x140043190 cmp qword ptr [r15+290h], 0 ; +0xb6, 0x140043196 xorps xmm9, xmm9 ; +0xbe, 0x14004319e jz loc_1400432EB ; +0xc2, 0x1400431a2 mov rbx, [r14] ; +0xc8, 0x1400431a8 mov rcx, rbx ; +0xcb, 0x1400431ab mov rax, [rbx] ; +0xce, 0x1400431ae call qword ptr [rax+140h] ; +0xd1, 0x1400431b1 mov rcx, rbx ; +0xd7, 0x1400431b7 movss xmm6, dword ptr [rax+4] ; +0xda, 0x1400431ba mov rax, [rbx] ; +0xdf, 0x1400431bf call qword ptr [rax+0A8h] ; +0xe2, 0x1400431c2 xorps xmm2, xmm2 ; +0xe8, 0x1400431c8 lea rcx, [rsp+0C8h+var_98] ; +0xeb, 0x1400431cb movaps xmm7, xmm0 ; +0xf0, 0x1400431d0 xorps xmm1, xmm1 ; +0xf3, 0x1400431d3 mulss xmm7, xmm6 ; +0xf6, 0x1400431d6 movss xmm6, cs:dword_140835674 ; +0xfa, 0x1400431da movaps xmm3, xmm6 ; +0x102, 0x1400431e2 movss [rsp+0C8h+var_A8], xmm6 ; +0x105, 0x1400431e5 addss xmm7, cs:dword_1408354D4 ; +0x10b, 0x1400431eb call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x113, 0x1400431f3 movss xmm0, dword ptr [rax+0Ch] ; +0x119, 0x1400431f9 comiss xmm0, xmm7 ; +0x11e, 0x1400431fe jbe short loc_140043224 ; +0x121, 0x140043201 movaps xmm3, xmm6 ; +0x123, 0x140043203 movss [rsp+0C8h+var_A8], xmm6 ; +0x126, 0x140043206 xorps xmm2, xmm2 ; +0x12c, 0x14004320c lea rcx, [rsp+0C8h+var_88] ; +0x12f, 0x14004320f xorps xmm1, xmm1 ; +0x134, 0x140043214 call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x137, 0x140043217 movss xmm0, dword ptr [rax+0Ch] ; +0x13d, 0x14004321d jmp short loc_140043250 ; +0x142, 0x140043222 mov rbx, [r14] ; +0x144, 0x140043224 mov rcx, rbx ; +0x147, 0x140043227 mov rax, [rbx] ; +0x14a, 0x14004322a call qword ptr [rax+140h] ; +0x14d, 0x14004322d mov rcx, rbx ; +0x153, 0x140043233 movss xmm6, dword ptr [rax+4] ; +0x156, 0x140043236 mov rax, [rbx] ; +0x15b, 0x14004323b call qword ptr [rax+0A8h] ; +0x15e, 0x14004323e mulss xmm0, xmm6 ; +0x164, 0x140043244 addss xmm0, cs:dword_1408354D4 ; +0x168, 0x140043248 movss xmm1, dword ptr [r15+268h] ; +0x170, 0x140043250 ucomiss xmm1, xmm9 ; +0x179, 0x140043259 jp short loc_140043261 ; +0x17d, 0x14004325d jz short loc_140043264 ; +0x17f, 0x14004325f movaps xmm0, xmm1 ; +0x181, 0x140043261 addss xmm8, cs:dword_1408354D4 ; +0x184, 0x140043264 mov rdi, [r15+290h] ; +0x18d, 0x14004326d lea rcx, [rsp+0C8h+arg_8] ; +0x194, 0x140043274 movaps xmm2, xmm0 ; +0x19c, 0x14004327c mov rbx, [rdi] ; +0x19f, 0x14004327f movaps xmm1, xmm8 ; +0x1a2, 0x140043282 call cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x1a6, 0x140043286 mov rdx, rax ; +0x1ac, 0x14004328c mov rcx, rdi ; +0x1af, 0x14004328f call qword ptr [rbx+138h] ; +0x1b2, 0x140043292 mov rbx, [r15+290h] ; +0x1b8, 0x140043298 mov rcx, rbx ; +0x1bf, 0x14004329f mov rax, [rbx] ; +0x1c2, 0x1400432a2 call qword ptr [rax+140h] ; +0x1c5, 0x1400432a5 mov rdx, [rbx] ; +0x1cb, 0x1400432ab mov rcx, rbx ; +0x1ce, 0x1400432ae mov rdi, rax ; +0x1d1, 0x1400432b1 call qword ptr [rdx+140h] ; +0x1d4, 0x1400432b4 movss xmm1, dword ptr [rdi] ; +0x1da, 0x1400432ba lea rcx, [rsp+0C8h+arg_8] ; +0x1de, 0x1400432be movss xmm2, dword ptr [rax+4] ; +0x1e6, 0x1400432c6 call cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x1eb, 0x1400432cb mov rdx, rax ; +0x1f1, 0x1400432d1 lea rcx, [rsp+0C8h+arg_0] ; +0x1f4, 0x1400432d4 call cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0x1fc, 0x1400432dc lea rbp, [r15+288h] ; +0x202, 0x1400432e2 jmp short loc_140043315 ; +0x209, 0x1400432e9 lea rbp, [r15+288h] ; +0x20b, 0x1400432eb mov rcx, [rbp+0] ; +0x212, 0x1400432f2 test rcx, rcx ; +0x216, 0x1400432f6 jz short loc_140043315 ; +0x219, 0x1400432f9 mov rax, [rcx] ; +0x21b, 0x1400432fb call qword ptr [rax+140h] ; +0x21e, 0x1400432fe mov rdx, rax ; +0x224, 0x140043304 lea rcx, [rsp+0C8h+arg_0] ; +0x227, 0x140043307 call cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0x22f, 0x14004330f mov rax, [r15] ; +0x235, 0x140043315 lea rdx, [rsp+0C8h+arg_0] ; +0x238, 0x140043318 mov rcx, r15 ; +0x240, 0x140043320 call qword ptr [rax+138h] ; +0x243, 0x140043323 movss xmm7, cs:width ; +0x249, 0x140043329 lea rcx, [rsp+0C8h+arg_8] ; +0x251, 0x140043331 movaps xmm2, xmm7 ; +0x259, 0x140043339 xorps xmm1, xmm1 ; +0x25c, 0x14004333c call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x25f, 0x14004333f mov rcx, [r15] ; +0x265, 0x140043345 mov rdi, rax ; +0x268, 0x140043348 mov rdx, [rcx+140h] ; +0x26b, 0x14004334b mov rcx, r15 ; +0x272, 0x140043352 call rdx ; +0x275, 0x140043355 mov rcx, [r15] ; +0x277, 0x140043357 mov rbx, rax ; +0x27a, 0x14004335a mov r14, [r14] ; +0x27d, 0x14004335d mov rdx, [rcx+140h] ; +0x280, 0x140043360 mov rcx, r15 ; +0x287, 0x140043367 mov rsi, [r14] ; +0x28a, 0x14004336a call rdx ; +0x28d, 0x14004336d movss xmm8, cs:dword_140834F20 ; +0x28f, 0x14004336f lea rcx, [rsp+0C8h+arg_10] ; +0x298, 0x140043378 movaps xmm2, xmm7 ; +0x2a0, 0x140043380 xorps xmm1, xmm1 ; +0x2a3, 0x140043383 movss xmm6, dword ptr [rax+4] ; +0x2a6, 0x140043386 mulss xmm6, xmm8 ; +0x2ab, 0x14004338b call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2b0, 0x140043390 movss xmm1, dword ptr [rbx] ; +0x2b6, 0x140043396 lea rcx, [rsp+0C8h+arg_18] ; +0x2ba, 0x14004339a mulss xmm1, xmm8 ; +0x2c2, 0x1400433a2 addss xmm6, dword ptr [rax+4] ; +0x2c7, 0x1400433a7 addss xmm1, dword ptr [rdi] ; +0x2cc, 0x1400433ac addss xmm6, dword ptr [r15+2A4h] ; +0x2d0, 0x1400433b0 addss xmm1, dword ptr [r15+2A0h] ; +0x2d9, 0x1400433b9 movaps xmm2, xmm6 ; +0x2e2, 0x1400433c2 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2e5, 0x1400433c5 mov rdx, rax ; +0x2eb, 0x1400433cb mov rcx, r14 ; +0x2ee, 0x1400433ce call qword ptr [rsi+0B8h] ; +0x2f1, 0x1400433d1 cmp qword ptr [r15+290h], 0 ; +0x2f7, 0x1400433d7 movaps xmm9, [rsp+0C8h+var_78] ; +0x2ff, 0x1400433df movaps xmm7, [rsp+0C8h+var_58] ; +0x305, 0x1400433e5 movaps xmm6, [rsp+0C8h+var_48] ; +0x30a, 0x1400433ea mov r14, [rsp+0C8h+var_30] ; +0x312, 0x1400433f2 jz short loc_140043411 ; +0x31a, 0x1400433fa mov rax, [r15] ; +0x31c, 0x1400433fc mov rcx, r15 ; +0x31f, 0x1400433ff call qword ptr [rax+140h] ; +0x322, 0x140043402 mov rsi, [r15+290h] ; +0x328, 0x140043408 jmp short loc_140043428 ; +0x32f, 0x14004340f cmp qword ptr [rbp+0], 0 ; +0x331, 0x140043411 jz short loc_14004346A ; +0x336, 0x140043416 mov rax, [r15] ; +0x338, 0x140043418 mov rcx, r15 ; +0x33b, 0x14004341b call qword ptr [rax+140h] ; +0x33e, 0x14004341e mov rsi, [rbp+0] ; +0x344, 0x140043424 mov rcx, [r15] ; +0x348, 0x140043428 mov rbx, rax ; +0x34b, 0x14004342b mov rdi, [rsi] ; +0x34e, 0x14004342e mov rdx, [rcx+140h] ; +0x351, 0x140043431 mov rcx, r15 ; +0x358, 0x140043438 call rdx ; +0x35b, 0x14004343b movss xmm1, dword ptr [rbx] ; +0x35d, 0x14004343d lea rcx, [rsp+0C8h+arg_8] ; +0x361, 0x140043441 mulss xmm1, xmm8 ; +0x369, 0x140043449 movss xmm2, dword ptr [rax+4] ; +0x36e, 0x14004344e mulss xmm2, xmm8 ; +0x373, 0x140043453 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x378, 0x140043458 mov rdx, rax ; +0x37e, 0x14004345e mov rcx, rsi ; +0x381, 0x140043461 call qword ptr [rdi+0B8h] ; +0x384, 0x140043464 mov rax, [r15] ; +0x38a, 0x14004346a mov rcx, r15 ; +0x38d, 0x14004346d call qword ptr [rax+1F8h] ; +0x390, 0x140043470 mov rsi, [rsp+0C8h+var_28] ; +0x396, 0x140043476 mov rbp, [rsp+0C8h+var_20] ; +0x39e, 0x14004347e test rax, rax ; +0x3a6, 0x140043486 jz loc_140043535 ; +0x3a9, 0x140043489 mov rax, [r15] ; +0x3af, 0x14004348f mov rcx, r15 ; +0x3b2, 0x140043492 call qword ptr [rax+1F8h] ; +0x3b5, 0x140043495 lea r9, ??_R0?AVCCMenuItemSpriteExtra@@@8; CCMenuItemSpriteExtra `RTTI Type Descriptor' ; +0x3bb, 0x14004349b mov [rsp+0C8h+var_A8], 0 ; +0x3c2, 0x1400434a2 mov rcx, rax ; +0x3ca, 0x1400434aa lea r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x3cd, 0x1400434ad xor edx, edx ; +0x3d4, 0x1400434b4 call __RTDynamicCast ; +0x3d6, 0x1400434b6 test rax, rax ; +0x3db, 0x1400434bb jz short loc_140043535 ; +0x3de, 0x1400434be mov rax, [r15] ; +0x3e0, 0x1400434c0 mov rcx, r15 ; +0x3e3, 0x1400434c3 call qword ptr [rax+1F8h] ; +0x3e6, 0x1400434c6 mov rcx, [r15] ; +0x3ec, 0x1400434cc mov rdi, rax ; +0x3ef, 0x1400434cf mov rbx, [rax] ; +0x3f2, 0x1400434d2 mov rdx, [rcx+140h] ; +0x3f5, 0x1400434d5 mov rcx, r15 ; +0x3fc, 0x1400434dc call rdx ; +0x3ff, 0x1400434df mov rdx, rax ; +0x401, 0x1400434e1 mov rcx, rdi ; +0x404, 0x1400434e4 call qword ptr [rbx+138h] ; +0x407, 0x1400434e7 mov rax, [r15] ; +0x40d, 0x1400434ed mov rcx, r15 ; +0x410, 0x1400434f0 call qword ptr [rax+140h] ; +0x413, 0x1400434f3 mov rdi, [r15] ; +0x419, 0x1400434f9 mov rcx, r15 ; +0x41c, 0x1400434fc mov rbx, rax ; +0x41f, 0x1400434ff call qword ptr [rdi+140h] ; +0x422, 0x140043502 movss xmm1, dword ptr [rbx] ; +0x428, 0x140043508 lea rcx, [rsp+0C8h+arg_8] ; +0x42c, 0x14004350c mulss xmm1, xmm8 ; +0x434, 0x140043514 movss xmm2, dword ptr [rax+4] ; +0x439, 0x140043519 mulss xmm2, xmm8 ; +0x43e, 0x14004351e call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x443, 0x140043523 mov rdx, rax ; +0x449, 0x140043529 mov rcx, r15 ; +0x44c, 0x14004352c call qword ptr [rdi+0B8h] ; +0x44f, 0x14004352f movaps xmm8, [rsp+0C8h+var_68] ; +0x455, 0x140043535 add rsp, 0B0h ; +0x45b, 0x14004353b pop r15 ; +0x462, 0x140043542 pop rdi ; +0x464, 0x140043544 pop rbx ; +0x465, 0x140043545 retn ; +0x466, 0x140043546