; ; DeathMarkerLayer::updateVisibility from 0x1008becd0 to 0x1008bf43f (1903 bytes) ; ; 7 xrefs: ; > LevelEditorLayer::updateEditor @ 0x1000ac909 ; > LevelEditorLayer::updateEditor @ 0x1000ac91e ; > LevelEditorLayer::postUpdate @ 0x1000c7420 ; > LevelEditorLayer::postUpdate @ 0x1000c7435 ; > DeathMarkerLayer::init @ 0x1008bd224 ; > PlayLayer::dtUpdateLiveMarkers @ 0x100961406 ; > PlayLayer::dtUpdateLiveMarkers @ 0x10096141b ; ; 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 12:37:28 +0000 ; push rbp ; +0x0, 0x1008becd0 mov rbp, rsp ; +0x1, 0x1008becd1 push r15 ; +0x4, 0x1008becd4 push r14 ; +0x6, 0x1008becd6 push r13 ; +0x8, 0x1008becd8 push r12 ; +0xa, 0x1008becda push rbx ; +0xc, 0x1008becdc sub rsp, 48h ; +0xd, 0x1008becdd mov rbx, rdi ; +0x11, 0x1008bece1 xorps xmm0, xmm0 ; +0x14, 0x1008bece4 ucomiss xmm0, dword ptr [rsi+8] ; +0x17, 0x1008bece7 jnb loc_1008BEDD2 ; +0x1b, 0x1008beceb mov r14, rsi ; +0x21, 0x1008becf1 ucomiss xmm0, dword ptr [rsi+0Ch] ; +0x24, 0x1008becf4 jnb loc_1008BEDD2 ; +0x28, 0x1008becf8 mov rdi, r14 ; +0x2e, 0x1008becfe call sub_1002788E0 ; +0x31, 0x1008bed01 divss xmm0, cs:dword_100A03EF4 ; +0x36, 0x1008bed06 cvttss2si r12d, xmm0 ; +0x3e, 0x1008bed0e mov rdi, r14 ; +0x43, 0x1008bed13 call sub_1002788A0 ; +0x46, 0x1008bed16 divss xmm0, cs:dword_100A03EF4 ; +0x4b, 0x1008bed1b cvttss2si eax, xmm0 ; +0x53, 0x1008bed23 mov [rbp+var_70], rax ; +0x57, 0x1008bed27 lea r13d, [rax+1] ; +0x5b, 0x1008bed2b mov rdi, r14 ; +0x5f, 0x1008bed2f call sub_100278930 ; +0x62, 0x1008bed32 divss xmm0, cs:dword_100A03EF4 ; +0x67, 0x1008bed37 mov r15, rbx ; +0x6f, 0x1008bed3f cvttss2si ebx, xmm0 ; +0x72, 0x1008bed42 mov rdi, r14 ; +0x76, 0x1008bed46 mov r14d, r12d ; +0x79, 0x1008bed49 call sub_1002788F0 ; +0x7c, 0x1008bed4c divss xmm0, cs:dword_100A03EF4 ; +0x81, 0x1008bed51 cvttss2si eax, xmm0 ; +0x89, 0x1008bed59 mov qword ptr [rbp+var_30], rax ; +0x8d, 0x1008bed5d cmp r12d, 2 ; +0x91, 0x1008bed61 mov eax, 1 ; +0x95, 0x1008bed65 cmovl r14d, eax ; +0x9a, 0x1008bed6a dec r14d ; +0x9e, 0x1008bed6e cmp ebx, 2 ; +0xa1, 0x1008bed71 cmovge eax, ebx ; +0xa4, 0x1008bed74 mov [rbp+var_58], rax ; +0xa7, 0x1008bed77 mov rbx, r15 ; +0xab, 0x1008bed7b cmp byte ptr [r15+190h], 0 ; +0xae, 0x1008bed7e mov [rbp+var_4C], r14d ; +0xb6, 0x1008bed86 jz loc_1008BEE48 ; +0xba, 0x1008bed8a mov r14, [rbx+168h] ; +0xc0, 0x1008bed90 test r14, r14 ; +0xc7, 0x1008bed97 jz short loc_1008BEDB4 ; +0xca, 0x1008bed9a nop dword ptr [rax+00h] ; +0xcc, 0x1008bed9c mov esi, [r14+10h] ; +0xd0, 0x1008beda0 mov rdi, rbx ; +0xd4, 0x1008beda4 call sub_1008C1820 ; +0xd7, 0x1008beda7 mov r14, [r14] ; +0xdc, 0x1008bedac test r14, r14 ; +0xdf, 0x1008bedaf jnz short loc_1008BEDA0 ; +0xe2, 0x1008bedb2 mov byte ptr [rbx+190h], 0 ; +0xe4, 0x1008bedb4 movaps xmm0, cs:xmmword_100A13660 ; +0xeb, 0x1008bedbb movups xmmword ptr [rbx+180h], xmm0 ; +0xf2, 0x1008bedc2 xor r12d, r12d ; +0xf9, 0x1008bedc9 mov r14d, [rbp+var_4C] ; +0xfc, 0x1008bedcc jmp short loc_1008BEE4F ; +0x100, 0x1008bedd0 cmp byte ptr [rbx+190h], 0 ; +0x102, 0x1008bedd2 jnz loc_1008BEF63 ; +0x109, 0x1008bedd9 mov r10d, [rbx+180h] ; +0x10f, 0x1008beddf mov eax, [rbx+184h] ; +0x116, 0x1008bede6 cmp r10d, eax ; +0x11c, 0x1008bedec jg short loc_1008BEE03 ; +0x11f, 0x1008bedef mov edi, [rbx+18Ch] ; +0x121, 0x1008bedf1 cmp [rbx+188h], edi ; +0x127, 0x1008bedf7 jle loc_1008BF1D1 ; +0x12d, 0x1008bedfd mov r14, [rbx+168h] ; +0x133, 0x1008bee03 test r14, r14 ; +0x13a, 0x1008bee0a jz short loc_1008BEE24 ; +0x13d, 0x1008bee0d nop ; +0x13f, 0x1008bee0f mov esi, [r14+10h] ; +0x140, 0x1008bee10 mov rdi, rbx ; +0x144, 0x1008bee14 call sub_1008C0CD0 ; +0x147, 0x1008bee17 mov r14, [r14] ; +0x14c, 0x1008bee1c test r14, r14 ; +0x14f, 0x1008bee1f jnz short loc_1008BEE10 ; +0x152, 0x1008bee22 mov byte ptr [rbx+190h], 1 ; +0x154, 0x1008bee24 mov rax, 0FFFFFFFF00000000h ; +0x15b, 0x1008bee2b mov [rbx+180h], rax ; +0x165, 0x1008bee35 mov eax, 0FFFFFFFFh ; +0x16c, 0x1008bee3c xor ecx, ecx ; +0x171, 0x1008bee41 jmp loc_1008BEF57 ; +0x173, 0x1008bee43 mov r12d, [rbx+180h] ; +0x178, 0x1008bee48 mov rax, qword ptr [rbp+var_30] ; +0x17f, 0x1008bee4f lea r10d, [rax+1] ; +0x183, 0x1008bee53 mov rax, [rbp+var_58] ; +0x187, 0x1008bee57 lea r11d, [rax-1] ; +0x18b, 0x1008bee5b mov ecx, r14d ; +0x18f, 0x1008bee5f xor ecx, r12d ; +0x192, 0x1008bee62 mov eax, [rbx+184h] ; +0x195, 0x1008bee65 mov edx, eax ; +0x19b, 0x1008bee6b xor edx, r13d ; +0x19d, 0x1008bee6d or edx, ecx ; +0x1a0, 0x1008bee70 jnz short loc_1008BEE90 ; +0x1a2, 0x1008bee72 mov eax, r13d ; +0x1a4, 0x1008bee74 cmp r11d, [rbx+188h] ; +0x1a7, 0x1008bee77 jnz short loc_1008BEE90 ; +0x1ae, 0x1008bee7e mov eax, r13d ; +0x1b0, 0x1008bee80 cmp r10d, [rbx+18Ch] ; +0x1b3, 0x1008bee83 jz loc_1008BEF63 ; +0x1ba, 0x1008bee8a cmp r12d, eax ; +0x1c0, 0x1008bee90 mov [rbp+var_50], r13d ; +0x1c3, 0x1008bee93 mov [rbp+var_48], r10d ; +0x1c7, 0x1008bee97 mov [rbp+var_44], r11d ; +0x1cb, 0x1008bee9b jg short loc_1008BEEB3 ; +0x1cf, 0x1008bee9f mov edi, [rbx+18Ch] ; +0x1d1, 0x1008beea1 cmp [rbx+188h], edi ; +0x1d7, 0x1008beea7 jle loc_1008BEF97 ; +0x1dd, 0x1008beead cmp r14d, r13d ; +0x1e3, 0x1008beeb3 jg loc_1008BEF41 ; +0x1e6, 0x1008beeb6 mov eax, [rbp+var_44] ; +0x1ec, 0x1008beebc cmp eax, [rbp+var_48] ; +0x1ef, 0x1008beebf jg short loc_1008BEF41 ; +0x1f2, 0x1008beec2 mov rax, [rbp+var_58] ; +0x1f4, 0x1008beec4 add eax, 0FFFFFFFEh ; +0x1f8, 0x1008beec8 mov [rbp+var_58], rax ; +0x1fb, 0x1008beecb mov r15d, r14d ; +0x1ff, 0x1008beecf nop word ptr [rax+rax+00000000h] ; +0x202, 0x1008beed2 mov r12d, r15d ; +0x210, 0x1008beee0 shl r12d, 10h ; +0x213, 0x1008beee3 mov rax, [rbp+var_58] ; +0x217, 0x1008beee7 mov r13d, eax ; +0x21b, 0x1008beeeb xchg ax, ax ; +0x21e, 0x1008beeee inc r13d ; +0x220, 0x1008beef0 cmp r15d, [rbx+180h] ; +0x223, 0x1008beef3 jl short loc_1008BEF20 ; +0x22a, 0x1008beefa cmp r15d, [rbx+184h] ; +0x22c, 0x1008beefc jg short loc_1008BEF20 ; +0x233, 0x1008bef03 cmp r13d, [rbx+188h] ; +0x235, 0x1008bef05 jl short loc_1008BEF20 ; +0x23c, 0x1008bef0c cmp r13d, [rbx+18Ch] ; +0x23e, 0x1008bef0e jle short loc_1008BEF2E ; +0x245, 0x1008bef15 nop word ptr [rax+rax+00000000h] ; +0x247, 0x1008bef17 mov esi, r13d ; +0x250, 0x1008bef20 or esi, r12d ; +0x253, 0x1008bef23 mov rdi, rbx ; +0x256, 0x1008bef26 call sub_1008C0CD0 ; +0x259, 0x1008bef29 cmp r13d, [rbp+var_30] ; +0x25e, 0x1008bef2e jle short loc_1008BEEF0 ; +0x262, 0x1008bef32 lea eax, [r15+1] ; +0x264, 0x1008bef34 cmp r15d, dword ptr [rbp+var_70] ; +0x268, 0x1008bef38 mov r15d, eax ; +0x26c, 0x1008bef3c jle short loc_1008BEEE0 ; +0x26f, 0x1008bef3f mov [rbx+180h], r14d ; +0x271, 0x1008bef41 mov eax, [rbp+var_50] ; +0x278, 0x1008bef48 mov [rbx+184h], eax ; +0x27b, 0x1008bef4b mov eax, [rbp+var_48] ; +0x281, 0x1008bef51 mov ecx, [rbp+var_44] ; +0x284, 0x1008bef54 mov [rbx+188h], ecx ; +0x287, 0x1008bef57 mov [rbx+18Ch], eax ; +0x28d, 0x1008bef5d add rsp, 48h ; +0x293, 0x1008bef63 pop rbx ; +0x297, 0x1008bef67 pop r12 ; +0x298, 0x1008bef68 pop r13 ; +0x29a, 0x1008bef6a pop r14 ; +0x29c, 0x1008bef6c pop r15 ; +0x29e, 0x1008bef6e pop rbp ; +0x2a0, 0x1008bef70 retn ; +0x2a1, 0x1008bef71 align 20h ; +0x2a2, 0x1008bef72 mov eax, [rbx+184h] ; +0x2b0, 0x1008bef80 lea ecx, [r12+1] ; +0x2b6, 0x1008bef86 cmp r12d, eax ; +0x2bb, 0x1008bef8b mov r12d, ecx ; +0x2be, 0x1008bef8e jge loc_1008BEEB3 ; +0x2c1, 0x1008bef91 mov ecx, [rbx+188h] ; +0x2c7, 0x1008bef97 cmp ecx, edi ; +0x2cd, 0x1008bef9d jg short loc_1008BEF86 ; +0x2cf, 0x1008bef9f cmp r12d, r14d ; +0x2d1, 0x1008befa1 setl al ; +0x2d4, 0x1008befa4 cmp r12d, r13d ; +0x2d7, 0x1008befa7 setnle dl ; +0x2da, 0x1008befaa or dl, al ; +0x2dd, 0x1008befad mov eax, r12d ; +0x2df, 0x1008befaf shl eax, 10h ; +0x2e2, 0x1008befb2 mov [rbp+var_5C], eax ; +0x2e5, 0x1008befb5 mov byte ptr [rbp+var_38], dl ; +0x2e8, 0x1008befb8 jmp short loc_1008BEFF1 ; +0x2eb, 0x1008befbb mov edi, [rbx+18Ch] ; +0x2ed, 0x1008befbd mov r14d, [rbp+var_4C] ; +0x2f3, 0x1008befc3 mov r13d, [rbp+var_50] ; +0x2f7, 0x1008befc7 mov r10d, [rbp+var_48] ; +0x2fb, 0x1008befcb mov r11d, [rbp+var_44] ; +0x2ff, 0x1008befcf mov r12, [rbp+var_68] ; +0x303, 0x1008befd3 nop word ptr [rax+rax+00000000h] ; +0x307, 0x1008befd7 mov rcx, [rbp+var_40] ; +0x310, 0x1008befe0 movzx edx, byte ptr [rbp+var_38] ; +0x314, 0x1008befe4 lea eax, [rcx+1] ; +0x318, 0x1008befe8 cmp ecx, edi ; +0x31b, 0x1008befeb mov ecx, eax ; +0x31d, 0x1008befed jge short loc_1008BEF80 ; +0x31f, 0x1008befef cmp ecx, r11d ; +0x321, 0x1008beff1 setl al ; +0x324, 0x1008beff4 or al, dl ; +0x327, 0x1008beff7 jnz short loc_1008BF000 ; +0x329, 0x1008beff9 cmp ecx, r10d ; +0x32b, 0x1008beffb jle short loc_1008BEFE8 ; +0x32e, 0x1008beffe mov r8, [rbx+160h] ; +0x330, 0x1008bf000 test r8, r8 ; +0x337, 0x1008bf007 jz short loc_1008BEFE8 ; +0x33a, 0x1008bf00a mov [rbp+var_40], rcx ; +0x33c, 0x1008bf00c or ecx, [rbp+var_5C] ; +0x340, 0x1008bf010 mov rax, r8 ; +0x343, 0x1008bf013 shr rax, 1 ; +0x346, 0x1008bf016 mov rdx, 5555555555555555h ; +0x349, 0x1008bf019 and rax, rdx ; +0x353, 0x1008bf023 mov rdx, r8 ; +0x356, 0x1008bf026 sub rdx, rax ; +0x359, 0x1008bf029 mov rax, rdx ; +0x35c, 0x1008bf02c mov rsi, 3333333333333333h ; +0x35f, 0x1008bf02f and rax, rsi ; +0x369, 0x1008bf039 shr rdx, 2 ; +0x36c, 0x1008bf03c and rdx, rsi ; +0x370, 0x1008bf040 add rdx, rax ; +0x373, 0x1008bf043 mov r9, rdx ; +0x376, 0x1008bf046 shr r9, 4 ; +0x379, 0x1008bf049 add r9, rdx ; +0x37d, 0x1008bf04d mov rax, 0F0F0F0F0F0F0F0Fh ; +0x380, 0x1008bf050 and r9, rax ; +0x38a, 0x1008bf05a mov rax, 101010101010101h ; +0x38d, 0x1008bf05d imul r9, rax ; +0x397, 0x1008bf067 shr r9, 38h ; +0x39b, 0x1008bf06b cmp r9, 1 ; +0x39f, 0x1008bf06f ja short loc_1008BF083 ; +0x3a3, 0x1008bf073 mov eax, 0FFFFFFFFh ; +0x3a5, 0x1008bf075 add eax, r8d ; +0x3aa, 0x1008bf07a mov esi, ecx ; +0x3ad, 0x1008bf07d and esi, eax ; +0x3af, 0x1008bf07f jmp short loc_1008BF094 ; +0x3b1, 0x1008bf081 mov rsi, rcx ; +0x3b3, 0x1008bf083 cmp r8, rcx ; +0x3b6, 0x1008bf086 ja short loc_1008BF094 ; +0x3b9, 0x1008bf089 mov eax, ecx ; +0x3bb, 0x1008bf08b xor edx, edx ; +0x3bd, 0x1008bf08d div r8d ; +0x3bf, 0x1008bf08f mov esi, edx ; +0x3c2, 0x1008bf092 mov rax, [rbx+158h] ; +0x3c4, 0x1008bf094 mov rax, [rax+rsi*8] ; +0x3cb, 0x1008bf09b test rax, rax ; +0x3cf, 0x1008bf09f jz loc_1008BEFE0 ; +0x3d2, 0x1008bf0a2 mov r15, [rax] ; +0x3d8, 0x1008bf0a8 test r15, r15 ; +0x3db, 0x1008bf0ab jz loc_1008BEFE0 ; +0x3de, 0x1008bf0ae cmp r9d, 2 ; +0x3e4, 0x1008bf0b4 jnb short loc_1008BF0D2 ; +0x3e8, 0x1008bf0b8 dec r8 ; +0x3ea, 0x1008bf0ba jmp short loc_1008BF122 ; +0x3ed, 0x1008bf0bd align 20h ; +0x3ef, 0x1008bf0bf cmp [r15+10h], ecx ; +0x3f0, 0x1008bf0c0 jz short loc_1008BF138 ; +0x3f4, 0x1008bf0c4 mov r15, [r15] ; +0x3f6, 0x1008bf0c6 test r15, r15 ; +0x3f9, 0x1008bf0c9 jz loc_1008BEFE0 ; +0x3fc, 0x1008bf0cc mov rax, [r15+8] ; +0x402, 0x1008bf0d2 cmp rax, rcx ; +0x406, 0x1008bf0d6 jz short loc_1008BF0C0 ; +0x409, 0x1008bf0d9 cmp rax, r8 ; +0x40b, 0x1008bf0db jb short loc_1008BF0F4 ; +0x40e, 0x1008bf0de mov rdx, rax ; +0x410, 0x1008bf0e0 or rdx, r8 ; +0x413, 0x1008bf0e3 shr rdx, 20h ; +0x416, 0x1008bf0e6 jz short loc_1008BF0FE ; +0x41a, 0x1008bf0ea xor edx, edx ; +0x41c, 0x1008bf0ec div r8 ; +0x41e, 0x1008bf0ee mov rax, rdx ; +0x421, 0x1008bf0f1 cmp rax, rsi ; +0x424, 0x1008bf0f4 jz short loc_1008BF0C6 ; +0x427, 0x1008bf0f7 jmp loc_1008BEFE0 ; +0x429, 0x1008bf0f9 xor edx, edx ; +0x42e, 0x1008bf0fe div r8d ; +0x430, 0x1008bf100 mov eax, edx ; +0x433, 0x1008bf103 cmp rax, rsi ; +0x435, 0x1008bf105 jz short loc_1008BF0C6 ; +0x438, 0x1008bf108 jmp loc_1008BEFE0 ; +0x43a, 0x1008bf10a align 10h ; +0x43f, 0x1008bf10f cmp [r15+10h], ecx ; +0x440, 0x1008bf110 jz short loc_1008BF138 ; +0x444, 0x1008bf114 mov r15, [r15] ; +0x446, 0x1008bf116 test r15, r15 ; +0x449, 0x1008bf119 jz loc_1008BEFE0 ; +0x44c, 0x1008bf11c mov rax, [r15+8] ; +0x452, 0x1008bf122 cmp rax, rcx ; +0x456, 0x1008bf126 jz short loc_1008BF110 ; +0x459, 0x1008bf129 and rax, r8 ; +0x45b, 0x1008bf12b cmp rax, rsi ; +0x45e, 0x1008bf12e jz short loc_1008BF116 ; +0x461, 0x1008bf131 jmp loc_1008BEFE0 ; +0x463, 0x1008bf133 mov rax, [r15+18h] ; +0x468, 0x1008bf138 cmp [r15+20h], rax ; +0x46c, 0x1008bf13c mov rcx, [rbp+var_40] ; +0x470, 0x1008bf140 movzx edx, byte ptr [rbp+var_38] ; +0x474, 0x1008bf144 jz loc_1008BEFE8 ; +0x478, 0x1008bf148 mov [rbp+var_68], r12 ; +0x47e, 0x1008bf14e xor r13d, r13d ; +0x482, 0x1008bf152 jmp short loc_1008BF17B ; +0x485, 0x1008bf155 align 20h ; +0x487, 0x1008bf157 inc r13 ; +0x490, 0x1008bf160 mov rax, [r15+18h] ; +0x493, 0x1008bf163 mov rcx, [r15+20h] ; +0x497, 0x1008bf167 sub rcx, rax ; +0x49b, 0x1008bf16b sar rcx, 2 ; +0x49e, 0x1008bf16e cmp r13, rcx ; +0x4a2, 0x1008bf172 jnb loc_1008BEFBD ; +0x4a5, 0x1008bf175 movsxd rax, dword ptr [rax+r13*4] ; +0x4ab, 0x1008bf17b mov r14, [rbx+140h] ; +0x4af, 0x1008bf17f mov r12, rbx ; +0x4b6, 0x1008bf186 lea rbx, [rax+rax*4] ; +0x4b9, 0x1008bf189 shl rbx, 4 ; +0x4bd, 0x1008bf18d mov rsi, [r14+rbx+40h] ; +0x4c1, 0x1008bf191 test rsi, rsi ; +0x4c6, 0x1008bf196 jz short loc_1008BF1AE ; +0x4c9, 0x1008bf199 mov rdi, [r12+198h] ; +0x4cb, 0x1008bf19b mov rax, [rdi] ; +0x4d3, 0x1008bf1a3 xor edx, edx ; +0x4d6, 0x1008bf1a6 call qword ptr [rax+228h] ; +0x4d8, 0x1008bf1a8 add r14, rbx ; +0x4de, 0x1008bf1ae mov rsi, [r14+48h] ; +0x4e1, 0x1008bf1b1 test rsi, rsi ; +0x4e5, 0x1008bf1b5 mov rbx, r12 ; +0x4e8, 0x1008bf1b8 jz short loc_1008BF160 ; +0x4eb, 0x1008bf1bb mov rdi, [rbx+1A0h] ; +0x4ed, 0x1008bf1bd mov rax, [rdi] ; +0x4f4, 0x1008bf1c4 xor edx, edx ; +0x4f7, 0x1008bf1c7 call qword ptr [rax+228h] ; +0x4f9, 0x1008bf1c9 jmp short loc_1008BF160 ; +0x4ff, 0x1008bf1cf mov r11d, 0FFFFFFFFh ; +0x501, 0x1008bf1d1 mov r15, 5555555555555555h ; +0x507, 0x1008bf1d7 mov r12, 3333333333333333h ; +0x511, 0x1008bf1e1 mov r13, 0F0F0F0F0F0F0F0Fh ; +0x51b, 0x1008bf1eb jmp short loc_1008BF216 ; +0x525, 0x1008bf1f5 align 20h ; +0x527, 0x1008bf1f7 mov eax, [rbx+184h] ; +0x530, 0x1008bf200 lea ecx, [r10+1] ; +0x536, 0x1008bf206 cmp r10d, eax ; +0x53a, 0x1008bf20a mov r10d, ecx ; +0x53d, 0x1008bf20d jge loc_1008BEE03 ; +0x540, 0x1008bf210 mov ecx, [rbx+188h] ; +0x546, 0x1008bf216 cmp ecx, edi ; +0x54c, 0x1008bf21c jg short loc_1008BF206 ; +0x54e, 0x1008bf21e mov r8, [rbx+160h] ; +0x550, 0x1008bf220 test r8, r8 ; +0x557, 0x1008bf227 jz short loc_1008BF206 ; +0x55a, 0x1008bf22a mov eax, r10d ; +0x55c, 0x1008bf22c shl eax, 10h ; +0x55f, 0x1008bf22f mov dword ptr [rbp+var_40], eax ; +0x562, 0x1008bf232 mov [rbp+var_38], r10 ; +0x565, 0x1008bf235 test r8, r8 ; +0x569, 0x1008bf239 jz loc_1008BF423 ; +0x56c, 0x1008bf23c nop word ptr [rax+rax+00000000h] ; +0x572, 0x1008bf242 mov [rbp+var_30], ecx ; +0x580, 0x1008bf250 or ecx, dword ptr [rbp+var_40] ; +0x583, 0x1008bf253 mov rax, r8 ; +0x586, 0x1008bf256 shr rax, 1 ; +0x589, 0x1008bf259 and rax, r15 ; +0x58c, 0x1008bf25c mov rdx, r8 ; +0x58f, 0x1008bf25f sub rdx, rax ; +0x592, 0x1008bf262 mov rax, rdx ; +0x595, 0x1008bf265 and rax, r12 ; +0x598, 0x1008bf268 shr rdx, 2 ; +0x59b, 0x1008bf26b and rdx, r12 ; +0x59f, 0x1008bf26f add rdx, rax ; +0x5a2, 0x1008bf272 mov r9, rdx ; +0x5a5, 0x1008bf275 shr r9, 4 ; +0x5a8, 0x1008bf278 add r9, rdx ; +0x5ac, 0x1008bf27c and r9, r13 ; +0x5af, 0x1008bf27f mov rax, 101010101010101h ; +0x5b2, 0x1008bf282 imul r9, rax ; +0x5bc, 0x1008bf28c shr r9, 38h ; +0x5c0, 0x1008bf290 cmp r9, 1 ; +0x5c4, 0x1008bf294 ja short loc_1008BF2B0 ; +0x5c8, 0x1008bf298 lea eax, [r8+r11] ; +0x5ca, 0x1008bf29a mov esi, ecx ; +0x5ce, 0x1008bf29e and esi, eax ; +0x5d0, 0x1008bf2a0 jmp short loc_1008BF2C1 ; +0x5d2, 0x1008bf2a2 align 10h ; +0x5d4, 0x1008bf2a4 mov rsi, rcx ; +0x5e0, 0x1008bf2b0 cmp r8, rcx ; +0x5e3, 0x1008bf2b3 ja short loc_1008BF2C1 ; +0x5e6, 0x1008bf2b6 mov eax, ecx ; +0x5e8, 0x1008bf2b8 xor edx, edx ; +0x5ea, 0x1008bf2ba div r8d ; +0x5ec, 0x1008bf2bc mov esi, edx ; +0x5ef, 0x1008bf2bf mov rax, [rbx+158h] ; +0x5f1, 0x1008bf2c1 mov rax, [rax+rsi*8] ; +0x5f8, 0x1008bf2c8 test rax, rax ; +0x5fc, 0x1008bf2cc jz loc_1008BF420 ; +0x5ff, 0x1008bf2cf mov r14, [rax] ; +0x605, 0x1008bf2d5 test r14, r14 ; +0x608, 0x1008bf2d8 jz loc_1008BF420 ; +0x60b, 0x1008bf2db cmp r9d, 2 ; +0x611, 0x1008bf2e1 jnb short loc_1008BF302 ; +0x615, 0x1008bf2e5 dec r8 ; +0x617, 0x1008bf2e7 jmp short loc_1008BF352 ; +0x61a, 0x1008bf2ea align 10h ; +0x61c, 0x1008bf2ec cmp [r14+10h], ecx ; +0x620, 0x1008bf2f0 jz short loc_1008BF368 ; +0x624, 0x1008bf2f4 mov r14, [r14] ; +0x626, 0x1008bf2f6 test r14, r14 ; +0x629, 0x1008bf2f9 jz loc_1008BF420 ; +0x62c, 0x1008bf2fc mov rax, [r14+8] ; +0x632, 0x1008bf302 cmp rax, rcx ; +0x636, 0x1008bf306 jz short loc_1008BF2F0 ; +0x639, 0x1008bf309 cmp rax, r8 ; +0x63b, 0x1008bf30b jb short loc_1008BF324 ; +0x63e, 0x1008bf30e mov rdx, rax ; +0x640, 0x1008bf310 or rdx, r8 ; +0x643, 0x1008bf313 shr rdx, 20h ; +0x646, 0x1008bf316 jz short loc_1008BF32E ; +0x64a, 0x1008bf31a xor edx, edx ; +0x64c, 0x1008bf31c div r8 ; +0x64e, 0x1008bf31e mov rax, rdx ; +0x651, 0x1008bf321 cmp rax, rsi ; +0x654, 0x1008bf324 jz short loc_1008BF2F6 ; +0x657, 0x1008bf327 jmp loc_1008BF420 ; +0x659, 0x1008bf329 xor edx, edx ; +0x65e, 0x1008bf32e div r8d ; +0x660, 0x1008bf330 mov eax, edx ; +0x663, 0x1008bf333 cmp rax, rsi ; +0x665, 0x1008bf335 jz short loc_1008BF2F6 ; +0x668, 0x1008bf338 jmp loc_1008BF420 ; +0x66a, 0x1008bf33a align 20h ; +0x66f, 0x1008bf33f cmp [r14+10h], ecx ; +0x670, 0x1008bf340 jz short loc_1008BF368 ; +0x674, 0x1008bf344 mov r14, [r14] ; +0x676, 0x1008bf346 test r14, r14 ; +0x679, 0x1008bf349 jz loc_1008BF420 ; +0x67c, 0x1008bf34c mov rax, [r14+8] ; +0x682, 0x1008bf352 cmp rax, rcx ; +0x686, 0x1008bf356 jz short loc_1008BF340 ; +0x689, 0x1008bf359 and rax, r8 ; +0x68b, 0x1008bf35b cmp rax, rsi ; +0x68e, 0x1008bf35e jz short loc_1008BF346 ; +0x691, 0x1008bf361 jmp loc_1008BF420 ; +0x693, 0x1008bf363 mov rax, [r14+18h] ; +0x698, 0x1008bf368 cmp [r14+20h], rax ; +0x69c, 0x1008bf36c mov ecx, [rbp+var_30] ; +0x6a0, 0x1008bf370 jz loc_1008BF423 ; +0x6a3, 0x1008bf373 xor r13d, r13d ; +0x6a9, 0x1008bf379 jmp short loc_1008BF397 ; +0x6ac, 0x1008bf37c align 20h ; +0x6ae, 0x1008bf37e inc r13 ; +0x6b0, 0x1008bf380 mov rax, [r14+18h] ; +0x6b3, 0x1008bf383 mov rcx, [r14+20h] ; +0x6b7, 0x1008bf387 sub rcx, rax ; +0x6bb, 0x1008bf38b sar rcx, 2 ; +0x6be, 0x1008bf38e cmp r13, rcx ; +0x6c2, 0x1008bf392 jnb short loc_1008BF3ED ; +0x6c5, 0x1008bf395 movsxd rax, dword ptr [rax+r13*4] ; +0x6c7, 0x1008bf397 mov r12, [rbx+140h] ; +0x6cb, 0x1008bf39b mov r15, rbx ; +0x6d2, 0x1008bf3a2 lea rbx, [rax+rax*4] ; +0x6d5, 0x1008bf3a5 shl rbx, 4 ; +0x6d9, 0x1008bf3a9 mov rsi, [r12+rbx+40h] ; +0x6dd, 0x1008bf3ad test rsi, rsi ; +0x6e2, 0x1008bf3b2 jz short loc_1008BF3C9 ; +0x6e5, 0x1008bf3b5 mov rdi, [r15+198h] ; +0x6e7, 0x1008bf3b7 mov rax, [rdi] ; +0x6ee, 0x1008bf3be xor edx, edx ; +0x6f1, 0x1008bf3c1 call qword ptr [rax+228h] ; +0x6f3, 0x1008bf3c3 add r12, rbx ; +0x6f9, 0x1008bf3c9 mov rsi, [r12+48h] ; +0x6fc, 0x1008bf3cc test rsi, rsi ; +0x701, 0x1008bf3d1 mov rbx, r15 ; +0x704, 0x1008bf3d4 jz short loc_1008BF380 ; +0x707, 0x1008bf3d7 mov rdi, [rbx+1A0h] ; +0x709, 0x1008bf3d9 mov rax, [rdi] ; +0x710, 0x1008bf3e0 xor edx, edx ; +0x713, 0x1008bf3e3 call qword ptr [rax+228h] ; +0x715, 0x1008bf3e5 jmp short loc_1008BF380 ; +0x71b, 0x1008bf3eb mov edi, [rbx+18Ch] ; +0x71d, 0x1008bf3ed mov r10, [rbp+var_38] ; +0x723, 0x1008bf3f3 mov r11d, 0FFFFFFFFh ; +0x727, 0x1008bf3f7 mov r15, 5555555555555555h ; +0x72d, 0x1008bf3fd mov r12, 3333333333333333h ; +0x737, 0x1008bf407 mov r13, 0F0F0F0F0F0F0F0Fh ; +0x741, 0x1008bf411 nop dword ptr [rax+rax+00h] ; +0x74b, 0x1008bf41b mov ecx, [rbp+var_30] ; +0x750, 0x1008bf420 cmp ecx, edi ; +0x753, 0x1008bf423 jge loc_1008BF200 ; +0x755, 0x1008bf425 inc ecx ; +0x75b, 0x1008bf42b mov r8, [rbx+160h] ; +0x75d, 0x1008bf42d test r8, r8 ; +0x764, 0x1008bf434 jnz loc_1008BF250 ; +0x767, 0x1008bf437 jmp short loc_1008BF423 ; +0x76d, 0x1008bf43d