; ; GJEffectManager::processColors from 0x140365640 to 0x140365752 (274 bytes) ; ; 9 xrefs: ; > GJBaseGameLayer::loadUpToPosition @ 0x14033e9b3 ; > LevelEditorLayer::updateGameObjects @ 0x1403fb118 ; > LevelEditorLayer::updateGameObjects @ 0x1403fb5c6 ; > LevelEditorLayer::onPlaytest @ 0x1403fea52 ; > LevelEditorLayer::postUpdate @ 0x1404008ed ; > PlayLayer::updateVisibility @ 0x14050df39 ; > @ 0x1408baa58 ; > @ 0x1408baa68 ; > @ 0x140921608 ; ; 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:30:54 +0000 ; push rbp ; +0x0, 0x140365640 push rdi ; +0x2, 0x140365642 push r15 ; +0x3, 0x140365643 sub rsp, 20h ; +0x5, 0x140365645 mov rdi, rcx ; +0x9, 0x140365649 call GJEffectManager__calculateBaseActiveColors ; +0xc, 0x14036564c mov r8, [rdi+158h] ; +0x11, 0x140365651 mov r15, 0E38E38E38E38E39h ; +0x18, 0x140365658 mov rdx, [rdi+160h] ; +0x22, 0x140365662 mov rax, r15 ; +0x29, 0x140365669 sub rdx, r8 ; +0x2c, 0x14036566c xor ebp, ebp ; +0x2f, 0x14036566f imul rdx ; +0x31, 0x140365671 sar rdx, 2 ; +0x34, 0x140365674 mov rax, rdx ; +0x38, 0x140365678 shr rax, 3Fh ; +0x3b, 0x14036567b add rdx, rax ; +0x3f, 0x14036567f jz loc_14036573A ; +0x42, 0x140365682 mov [rsp+38h+arg_10], rsi ; +0x48, 0x140365688 mov [rsp+38h+arg_18], r14 ; +0x4d, 0x14036568d mov r14d, ebp ; +0x52, 0x140365692 mov [rsp+38h+arg_8], rbx ; +0x55, 0x140365695 nop word ptr [rax+rax+00h] ; +0x5a, 0x14036569a mov edx, [r14+r8+14h] ; +0x60, 0x1403656a0 lea rsi, [r14+r8] ; +0x65, 0x1403656a5 mov rcx, rdi ; +0x69, 0x1403656a9 call GJEffectManager__getColorAction ; +0x6c, 0x1403656ac cmp dword ptr [rsi+34h], 0 ; +0x71, 0x1403656b1 jnz short loc_1403656F4 ; +0x75, 0x1403656b5 test rax, rax ; +0x77, 0x1403656b7 jz short loc_1403656C2 ; +0x7a, 0x1403656ba cmp dword ptr [rax+78h], 0 ; +0x7c, 0x1403656bc jnz short loc_1403656F4 ; +0x80, 0x1403656c0 mov rbx, [rax+90h] ; +0x82, 0x1403656c2 lea rdx, [rsp+38h+arg_0] ; +0x89, 0x1403656c9 mov r9, rsi ; +0x8e, 0x1403656ce mov rcx, rdi ; +0x91, 0x1403656d1 lea r8, [rbx+147h] ; +0x94, 0x1403656d4 call GJEffectManager__colorForPulseEffect ; +0x9b, 0x1403656db movzx ecx, word ptr [rax] ; +0xa0, 0x1403656e0 mov [rbx+147h], cx ; +0xa3, 0x1403656e3 movzx eax, byte ptr [rax+2] ; +0xaa, 0x1403656ea mov [rbx+149h], al ; +0xae, 0x1403656ee mov r8, [rdi+158h] ; +0xb4, 0x1403656f4 inc ebp ; +0xbb, 0x1403656fb mov rcx, [rdi+160h] ; +0xbd, 0x1403656fd mov rax, r15 ; +0xc4, 0x140365704 sub rcx, r8 ; +0xc7, 0x140365707 add r14, 48h ; 'H' ; +0xca, 0x14036570a imul rcx ; +0xce, 0x14036570e sar rdx, 2 ; +0xd1, 0x140365711 mov rax, rdx ; +0xd5, 0x140365715 shr rax, 3Fh ; +0xd8, 0x140365718 add rdx, rax ; +0xdc, 0x14036571c movsxd rax, ebp ; +0xdf, 0x14036571f cmp rax, rdx ; +0xe2, 0x140365722 jb loc_1403656A0 ; +0xe5, 0x140365725 mov r14, [rsp+38h+arg_18] ; +0xeb, 0x14036572b mov rsi, [rsp+38h+arg_10] ; +0xf0, 0x140365730 mov rbx, [rsp+38h+arg_8] ; +0xf5, 0x140365735 mov rcx, rdi ; +0xfa, 0x14036573a call GJEffectManager__processInheritedColors ; +0xfd, 0x14036573d mov rcx, rdi ; +0x102, 0x140365742 add rsp, 20h ; +0x105, 0x140365745 pop r15 ; +0x109, 0x140365749 pop rdi ; +0x10b, 0x14036574b pop rbp ; +0x10c, 0x14036574c jmp GJEffectManager__processCopyColorPulseActions ; +0x10d, 0x14036574d