; ; GJEffectManager::calculateLightBGColor from 0x14036e270 to 0x14036e46a (506 bytes) ; ; 6 xrefs: ; > LevelEditorLayer::updateVisibility @ 0x1403f656d ; > LevelEditorLayer::transferDefaultColors @ 0x1403fa93b ; > LevelEditorLayer::updateGameObjects @ 0x1403fb16c ; > LevelEditorLayer::postUpdate @ 0x14040093b ; > PlayLayer::updateVisibility @ 0x14050df8d ; > @ 0x140921a64 ; ; 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:58 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x14036e270 push rbp ; +0x5, 0x14036e275 push rsi ; +0x6, 0x14036e276 push rdi ; +0x7, 0x14036e277 push r14 ; +0x8, 0x14036e278 push r15 ; +0xa, 0x14036e27a sub rsp, 60h ; +0xc, 0x14036e27c mov r15, rdx ; +0x10, 0x14036e280 movaps [rsp+88h+var_38], xmm6 ; +0x13, 0x14036e283 mov edx, 3E8h ; +0x18, 0x14036e288 mov r14, rcx ; +0x1d, 0x14036e28d call GJEffectManager__getColorSprite ; +0x20, 0x14036e290 test rax, rax ; +0x25, 0x14036e295 jz short loc_14036E2AA ; +0x28, 0x14036e298 movzx ebx, word ptr [rax+147h] ; +0x2a, 0x14036e29a movzx edi, byte ptr [rax+149h] ; +0x31, 0x14036e2a1 jmp short loc_14036E2B8 ; +0x38, 0x14036e2a8 movzx ebx, cs:word_140703460 ; +0x3a, 0x14036e2aa movzx edi, cs:byte_140703462 ; +0x41, 0x14036e2b1 mov word ptr [rsp+88h+var_3C], 101h ; +0x48, 0x14036e2b8 lea r8, [rsp+88h+var_58] ; +0x4f, 0x14036e2bf movss xmm0, [rsp+88h+var_3C] ; +0x54, 0x14036e2c4 lea rdx, [rsp+88h+arg_10] ; +0x5a, 0x14036e2ca lea rcx, [rsp+88h+arg_18] ; +0x62, 0x14036e2d2 movss [rsp+88h+var_4C], xmm0 ; +0x6a, 0x14036e2da mov [rsp+88h+arg_12], dil ; +0x70, 0x14036e2e0 xorps xmm6, xmm6 ; +0x78, 0x14036e2e8 mov [rsp+88h+arg_10], bx ; +0x7b, 0x14036e2eb mov [rsp+88h+var_58], 0 ; +0x83, 0x14036e2f3 mov [rsp+88h+var_54], 0BE4CCCCDh ; +0x8b, 0x14036e2fb mov [rsp+88h+var_50], 3E4CCCCDh ; +0x93, 0x14036e303 call GameToolbox__transformColor ; +0x9b, 0x14036e30b movzx eax, byte ptr [rsp+88h+arg_10+1] ; +0xa0, 0x14036e310 movss xmm0, cs:dword_14083585C ; +0xa8, 0x14036e318 movzx esi, [rsp+88h+arg_18] ; +0xb0, 0x14036e320 movzx ebp, [rsp+88h+arg_1A] ; +0xb8, 0x14036e328 movzx ecx, dil ; +0xc0, 0x14036e330 add ecx, eax ; +0xc4, 0x14036e334 mov [rsp+88h+var_68], si ; +0xc6, 0x14036e336 movzx eax, bl ; +0xcb, 0x14036e33b add ecx, eax ; +0xce, 0x14036e33e movd xmm5, ecx ; +0xd0, 0x14036e340 cvtdq2ps xmm5, xmm5 ; +0xd4, 0x14036e344 comiss xmm0, xmm5 ; +0xd7, 0x14036e347 jbe loc_14036E41B ; +0xda, 0x14036e34a movzx ecx, word ptr [r15] ; +0xe0, 0x14036e350 xorps xmm3, xmm3 ; +0xe4, 0x14036e354 movss xmm1, cs:flt_140835080 ; +0xe7, 0x14036e357 xorps xmm4, xmm4 ; +0xef, 0x14036e35f divss xmm5, xmm0 ; +0xf2, 0x14036e362 movzx eax, sil ; +0xf6, 0x14036e366 mov [rsp+88h+arg_10], cx ; +0xfa, 0x14036e36a xorps xmm0, xmm0 ; +0x102, 0x14036e372 xorps xmm2, xmm2 ; +0x105, 0x14036e375 cvtsi2ss xmm3, eax ; +0x108, 0x14036e378 movzx eax, cl ; +0x10c, 0x14036e37c subss xmm1, xmm5 ; +0x10f, 0x14036e37f cvtsi2ss xmm0, eax ; +0x113, 0x14036e383 movzx eax, byte ptr [rsp+88h+arg_18+1] ; +0x117, 0x14036e387 cvtsi2ss xmm2, eax ; +0x11f, 0x14036e38f movzx eax, byte ptr [rsp+88h+arg_10+1] ; +0x123, 0x14036e393 mulss xmm0, xmm1 ; +0x12b, 0x14036e39b cvtsi2ss xmm4, ebp ; +0x12f, 0x14036e39f mulss xmm3, xmm5 ; +0x133, 0x14036e3a3 mulss xmm4, xmm5 ; +0x137, 0x14036e3a7 addss xmm3, xmm0 ; +0x13b, 0x14036e3ab mulss xmm2, xmm5 ; +0x13f, 0x14036e3af xorps xmm0, xmm0 ; +0x143, 0x14036e3b3 cvtsi2ss xmm0, eax ; +0x146, 0x14036e3b6 movzx eax, byte ptr [r15+2] ; +0x14a, 0x14036e3ba mulss xmm0, xmm1 ; +0x14f, 0x14036e3bf addss xmm2, xmm0 ; +0x153, 0x14036e3c3 xorps xmm0, xmm0 ; +0x157, 0x14036e3c7 cvtsi2ss xmm0, eax ; +0x15a, 0x14036e3ca mulss xmm0, xmm1 ; +0x15e, 0x14036e3ce movss xmm1, cs:dword_140835964 ; +0x162, 0x14036e3d2 addss xmm4, xmm0 ; +0x16a, 0x14036e3da minss xmm4, xmm1 ; +0x16e, 0x14036e3de comiss xmm6, xmm4 ; +0x172, 0x14036e3e2 jbe short loc_14036E3EA ; +0x175, 0x14036e3e5 xorps xmm4, xmm4 ; +0x177, 0x14036e3e7 minss xmm2, xmm1 ; +0x17a, 0x14036e3ea comiss xmm6, xmm2 ; +0x17e, 0x14036e3ee jbe short loc_14036E3F6 ; +0x181, 0x14036e3f1 xorps xmm2, xmm2 ; +0x183, 0x14036e3f3 minss xmm3, xmm1 ; +0x186, 0x14036e3f6 comiss xmm6, xmm3 ; +0x18a, 0x14036e3fa ja short loc_14036E402 ; +0x18d, 0x14036e3fd movaps xmm6, xmm3 ; +0x18f, 0x14036e3ff cvttss2si eax, xmm6 ; +0x192, 0x14036e402 cvttss2si ebp, xmm4 ; +0x196, 0x14036e406 mov byte ptr [rsp+88h+var_68], al ; +0x19a, 0x14036e40a cvttss2si eax, xmm2 ; +0x19e, 0x14036e40e mov byte ptr [rsp+88h+var_68+1], al ; +0x1a2, 0x14036e412 movzx esi, [rsp+88h+var_68] ; +0x1a6, 0x14036e416 mov edx, 3EFh ; +0x1ab, 0x14036e41b mov rcx, r14 ; +0x1b0, 0x14036e420 call GJEffectManager__getColorSprite ; +0x1b3, 0x14036e423 mov edx, 3EFh ; +0x1b8, 0x14036e428 mov rcx, r14 ; +0x1bd, 0x14036e42d mov [rax+144h], si ; +0x1c0, 0x14036e430 mov [rax+146h], bpl ; +0x1c7, 0x14036e437 call GJEffectManager__getColorSprite ; +0x1ce, 0x14036e43e mov rbx, [rsp+88h+arg_0] ; +0x1d3, 0x14036e443 movaps xmm6, [rsp+88h+var_38] ; +0x1db, 0x14036e44b mov [rax+147h], si ; +0x1e0, 0x14036e450 mov [rax+149h], bpl ; +0x1e7, 0x14036e457 add rsp, 60h ; +0x1ee, 0x14036e45e pop r15 ; +0x1f2, 0x14036e462 pop r14 ; +0x1f4, 0x14036e464 pop rdi ; +0x1f6, 0x14036e466 pop rsi ; +0x1f7, 0x14036e467 pop rbp ; +0x1f8, 0x14036e468 retn ; +0x1f9, 0x14036e469