; ; GJGameLevel::handleStatsConflict from 0x14016fb60 to 0x14016ff38 (984 bytes) ; ; 6 xrefs: ; > GameLevelManager::dataLoaded @ 0x14014b552 ; > GameLevelManager::dataLoaded @ 0x14014b77a ; > GameLevelManager::dataLoaded @ 0x14014b93a ; > GameLevelManager::dataLoaded @ 0x14014bb0a ; > LocalLevelManager::dataLoaded @ 0x140330edf ; > @ 0x1406cae54 ; ; 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 rax, rsp ; +0x0, 0x14016fb60 mov [rax+10h], rbx ; +0x3, 0x14016fb63 mov [rax+18h], rbp ; +0x7, 0x14016fb67 mov [rax+20h], rsi ; +0xb, 0x14016fb6b push rdi ; +0xf, 0x14016fb6f sub rsp, 0A0h ; +0x10, 0x14016fb70 movaps xmmword ptr [rax-18h], xmm6 ; +0x17, 0x14016fb77 movaps xmmword ptr [rax-28h], xmm7 ; +0x1b, 0x14016fb7b mov rsi, rdx ; +0x1f, 0x14016fb7f mov rdi, rcx ; +0x22, 0x14016fb82 mov eax, [rdx+2F0h] ; +0x25, 0x14016fb85 sub eax, [rdx+2F4h] ; +0x2b, 0x14016fb8b mov ebx, [rcx+2F0h] ; +0x31, 0x14016fb91 sub ebx, [rcx+2F4h] ; +0x37, 0x14016fb97 cmp ebx, eax ; +0x3d, 0x14016fb9d cmovle ebx, eax ; +0x3f, 0x14016fb9f mov [rcx+2F8h], ebx ; +0x42, 0x14016fba2 call cs:rand ; +0x48, 0x14016fba8 movd xmm0, eax ; +0x4e, 0x14016fbae cvtdq2ps xmm0, xmm0 ; +0x52, 0x14016fbb2 movss xmm6, cs:dword_140623644 ; +0x55, 0x14016fbb5 divss xmm0, xmm6 ; +0x5d, 0x14016fbbd movss xmm7, cs:dword_14062350C ; +0x61, 0x14016fbc1 mulss xmm0, xmm7 ; +0x69, 0x14016fbc9 cvttss2si eax, xmm0 ; +0x6d, 0x14016fbcd mov [rdi+2F4h], eax ; +0x71, 0x14016fbd1 add eax, ebx ; +0x77, 0x14016fbd7 mov [rdi+2F0h], eax ; +0x79, 0x14016fbd9 mov eax, [rsi+2FCh] ; +0x7f, 0x14016fbdf sub eax, [rsi+300h] ; +0x85, 0x14016fbe5 mov ebx, [rdi+2FCh] ; +0x8b, 0x14016fbeb sub ebx, [rdi+300h] ; +0x91, 0x14016fbf1 cmp ebx, eax ; +0x97, 0x14016fbf7 cmovle ebx, eax ; +0x99, 0x14016fbf9 mov [rdi+304h], ebx ; +0x9c, 0x14016fbfc call cs:rand ; +0xa2, 0x14016fc02 movd xmm0, eax ; +0xa8, 0x14016fc08 cvtdq2ps xmm0, xmm0 ; +0xac, 0x14016fc0c divss xmm0, xmm6 ; +0xaf, 0x14016fc0f mulss xmm0, xmm7 ; +0xb3, 0x14016fc13 cvttss2si eax, xmm0 ; +0xb7, 0x14016fc17 mov [rdi+300h], eax ; +0xbb, 0x14016fc1b add eax, ebx ; +0xc1, 0x14016fc21 mov [rdi+2FCh], eax ; +0xc3, 0x14016fc23 mov eax, [rsi+308h] ; +0xc9, 0x14016fc29 sub eax, [rsi+30Ch] ; +0xcf, 0x14016fc2f mov ebx, [rdi+308h] ; +0xd5, 0x14016fc35 sub ebx, [rdi+30Ch] ; +0xdb, 0x14016fc3b cmp ebx, eax ; +0xe1, 0x14016fc41 cmovle ebx, eax ; +0xe3, 0x14016fc43 mov [rdi+310h], ebx ; +0xe6, 0x14016fc46 call cs:rand ; +0xec, 0x14016fc4c movd xmm0, eax ; +0xf2, 0x14016fc52 cvtdq2ps xmm0, xmm0 ; +0xf6, 0x14016fc56 divss xmm0, xmm6 ; +0xf9, 0x14016fc59 mulss xmm0, xmm7 ; +0xfd, 0x14016fc5d cvttss2si eax, xmm0 ; +0x101, 0x14016fc61 mov [rdi+30Ch], eax ; +0x105, 0x14016fc65 add eax, ebx ; +0x10b, 0x14016fc6b mov [rdi+308h], eax ; +0x10d, 0x14016fc6d mov eax, [rsi+330h] ; +0x113, 0x14016fc73 sub eax, [rsi+32Ch] ; +0x119, 0x14016fc79 mov ebx, [rdi+330h] ; +0x11f, 0x14016fc7f sub ebx, [rdi+32Ch] ; +0x125, 0x14016fc85 cmp ebx, eax ; +0x12b, 0x14016fc8b cmovle ebx, eax ; +0x12d, 0x14016fc8d mov [rdi+328h], ebx ; +0x130, 0x14016fc90 call cs:rand ; +0x136, 0x14016fc96 movd xmm0, eax ; +0x13c, 0x14016fc9c cvtdq2ps xmm0, xmm0 ; +0x140, 0x14016fca0 divss xmm0, xmm6 ; +0x143, 0x14016fca3 mulss xmm0, xmm7 ; +0x147, 0x14016fca7 cvttss2si eax, xmm0 ; +0x14b, 0x14016fcab mov [rdi+32Ch], eax ; +0x14f, 0x14016fcaf add eax, ebx ; +0x155, 0x14016fcb5 mov [rdi+330h], eax ; +0x157, 0x14016fcb7 mov eax, [rsi+334h] ; +0x15d, 0x14016fcbd sub eax, [rsi+338h] ; +0x163, 0x14016fcc3 mov ebx, [rdi+334h] ; +0x169, 0x14016fcc9 sub ebx, [rdi+338h] ; +0x16f, 0x14016fccf cmp ebx, eax ; +0x175, 0x14016fcd5 cmovle ebx, eax ; +0x177, 0x14016fcd7 mov [rdi+33Ch], ebx ; +0x17a, 0x14016fcda call cs:rand ; +0x180, 0x14016fce0 movd xmm0, eax ; +0x186, 0x14016fce6 cvtdq2ps xmm0, xmm0 ; +0x18a, 0x14016fcea divss xmm0, xmm6 ; +0x18d, 0x14016fced mulss xmm0, xmm7 ; +0x191, 0x14016fcf1 cvttss2si eax, xmm0 ; +0x195, 0x14016fcf5 mov [rdi+338h], eax ; +0x199, 0x14016fcf9 add eax, ebx ; +0x19f, 0x14016fcff mov [rdi+334h], eax ; +0x1a1, 0x14016fd01 mov ebp, [rdi+340h] ; +0x1a7, 0x14016fd07 sub ebp, [rdi+344h] ; +0x1ad, 0x14016fd0d mov ebx, [rsi+340h] ; +0x1b3, 0x14016fd13 sub ebx, [rsi+344h] ; +0x1b9, 0x14016fd19 lea rdx, [rsi+528h] ; +0x1bf, 0x14016fd1f lea rcx, [rsp+0A8h+var_48] ; +0x1c6, 0x14016fd26 call sub_14003BDB0 ; +0x1cb, 0x14016fd2b mov [rsp+0A8h+var_70], 0 ; +0x1d0, 0x14016fd30 mov [rsp+0A8h+var_78], rax ; +0x1d5, 0x14016fd35 mov eax, [rsi+520h] ; +0x1da, 0x14016fd3a mov [rsp+0A8h+var_80], eax ; +0x1e0, 0x14016fd40 mov eax, [rsi+51Ch] ; +0x1e4, 0x14016fd44 mov [rsp+0A8h+var_88], eax ; +0x1ea, 0x14016fd4a mov r9d, [rsi+518h] ; +0x1ee, 0x14016fd4e xor r8d, r8d ; +0x1f5, 0x14016fd55 mov edx, [rsi+514h] ; +0x1f8, 0x14016fd58 mov rcx, rdi ; +0x1fe, 0x14016fd5e call GJGameLevel__saveNewScore ; +0x201, 0x14016fd61 test al, al ; +0x206, 0x14016fd66 jz short loc_14016FD77 ; +0x208, 0x14016fd68 movzx eax, byte ptr [rsi+5C0h] ; +0x20a, 0x14016fd6a mov [rdi+5C0h], al ; +0x211, 0x14016fd71 lea rdx, [rsi+558h] ; +0x217, 0x14016fd77 lea rcx, [rsp+0A8h+var_48] ; +0x21e, 0x14016fd7e call sub_14003BDB0 ; +0x223, 0x14016fd83 mov [rsp+0A8h+var_70], 0 ; +0x228, 0x14016fd88 mov [rsp+0A8h+var_78], rax ; +0x22d, 0x14016fd8d mov eax, [rsi+554h] ; +0x232, 0x14016fd92 mov [rsp+0A8h+var_80], eax ; +0x238, 0x14016fd98 mov eax, [rsi+550h] ; +0x23c, 0x14016fd9c mov [rsp+0A8h+var_88], eax ; +0x242, 0x14016fda2 mov r9d, [rsi+54Ch] ; +0x246, 0x14016fda6 mov r8d, 1 ; +0x24d, 0x14016fdad mov edx, [rsi+548h] ; +0x253, 0x14016fdb3 mov rcx, rdi ; +0x259, 0x14016fdb9 call GJGameLevel__saveNewScore ; +0x25c, 0x14016fdbc test al, al ; +0x261, 0x14016fdc1 jz short loc_14016FDD2 ; +0x263, 0x14016fdc3 movzx eax, byte ptr [rsi+5C1h] ; +0x265, 0x14016fdc5 mov [rdi+5C1h], al ; +0x26c, 0x14016fdcc cmp ebx, ebp ; +0x272, 0x14016fdd2 jle loc_14016FEE7 ; +0x274, 0x14016fdd4 mov [rdi+348h], ebx ; +0x27a, 0x14016fdda call cs:rand ; +0x280, 0x14016fde0 movd xmm0, eax ; +0x286, 0x14016fde6 cvtdq2ps xmm0, xmm0 ; +0x28a, 0x14016fdea divss xmm0, xmm6 ; +0x28d, 0x14016fded mulss xmm0, xmm7 ; +0x291, 0x14016fdf1 cvttss2si eax, xmm0 ; +0x295, 0x14016fdf5 mov [rdi+344h], eax ; +0x299, 0x14016fdf9 add eax, ebx ; +0x29f, 0x14016fdff mov [rdi+340h], eax ; +0x2a1, 0x14016fe01 mov ebx, [rsi+308h] ; +0x2a7, 0x14016fe07 sub ebx, [rsi+30Ch] ; +0x2ad, 0x14016fe0d mov [rdi+310h], ebx ; +0x2b3, 0x14016fe13 call cs:rand ; +0x2b9, 0x14016fe19 movd xmm0, eax ; +0x2bf, 0x14016fe1f cvtdq2ps xmm0, xmm0 ; +0x2c3, 0x14016fe23 divss xmm0, xmm6 ; +0x2c6, 0x14016fe26 mulss xmm0, xmm7 ; +0x2ca, 0x14016fe2a cvttss2si eax, xmm0 ; +0x2ce, 0x14016fe2e mov [rdi+30Ch], eax ; +0x2d2, 0x14016fe32 add eax, ebx ; +0x2d8, 0x14016fe38 mov [rdi+308h], eax ; +0x2da, 0x14016fe3a mov ebx, [rsi+314h] ; +0x2e0, 0x14016fe40 sub ebx, [rsi+318h] ; +0x2e6, 0x14016fe46 mov [rdi+31Ch], ebx ; +0x2ec, 0x14016fe4c call cs:rand ; +0x2f2, 0x14016fe52 movd xmm0, eax ; +0x2f8, 0x14016fe58 cvtdq2ps xmm0, xmm0 ; +0x2fc, 0x14016fe5c divss xmm0, xmm6 ; +0x2ff, 0x14016fe5f mulss xmm0, xmm7 ; +0x303, 0x14016fe63 cvttss2si eax, xmm0 ; +0x307, 0x14016fe67 mov [rdi+318h], eax ; +0x30b, 0x14016fe6b add eax, ebx ; +0x311, 0x14016fe71 mov [rdi+314h], eax ; +0x313, 0x14016fe73 mov eax, [rsi+320h] ; +0x319, 0x14016fe79 mov [rdi+320h], eax ; +0x31f, 0x14016fe7f lea rdx, [rsi+4A8h] ; +0x325, 0x14016fe85 lea rcx, [rsp+0A8h+Src] ; +0x32c, 0x14016fe8c call sub_14003BDB0 ; +0x331, 0x14016fe91 lea rax, [rsp+0A8h+Src] ; +0x336, 0x14016fe96 mov [rsp+0A8h+arg_0], rax ; +0x33b, 0x14016fe9b lea rcx, [rdi+4A8h]; void * ; +0x343, 0x14016fea3 lea rax, [rsp+0A8h+Src] ; +0x34a, 0x14016feaa cmp rcx, rax ; +0x34f, 0x14016feaf jz short loc_14016FED0 ; +0x352, 0x14016feb2 lea rdx, [rsp+0A8h+Src] ; +0x354, 0x14016feb4 cmp [rsp+0A8h+var_50], 0Fh ; +0x359, 0x14016feb9 cmova rdx, [rsp+0A8h+Src]; Src ; +0x35f, 0x14016febf mov r8, [rsp+0A8h+Size]; Size ; +0x365, 0x14016fec5 call sub_14003CCE0 ; +0x36a, 0x14016feca nop ; +0x36f, 0x14016fecf lea rcx, [rsp+0A8h+Src] ; +0x370, 0x14016fed0 call sub_14003A830 ; +0x375, 0x14016fed5 movzx eax, byte ptr [rsi+324h] ; +0x37a, 0x14016feda mov [rdi+324h], al ; +0x381, 0x14016fee1 mov ecx, [rdi+34Ch] ; +0x387, 0x14016fee7 mov eax, [rsi+34Ch] ; +0x38d, 0x14016feed cmp ecx, eax ; +0x393, 0x14016fef3 cmovle ecx, eax ; +0x395, 0x14016fef5 mov [rdi+34Ch], ecx ; +0x398, 0x14016fef8 mov ecx, [rdi+2B8h] ; +0x39e, 0x14016fefe mov eax, [rsi+2B8h] ; +0x3a4, 0x14016ff04 cmp ecx, eax ; +0x3aa, 0x14016ff0a cmovle ecx, eax ; +0x3ac, 0x14016ff0c mov [rdi+2B8h], ecx ; +0x3af, 0x14016ff0f lea r11, [rsp+0A8h+var_8] ; +0x3b5, 0x14016ff15 mov rbx, [r11+18h] ; +0x3bd, 0x14016ff1d mov rbp, [r11+20h] ; +0x3c1, 0x14016ff21 mov rsi, [r11+28h] ; +0x3c5, 0x14016ff25 movaps xmm6, xmmword ptr [r11-10h] ; +0x3c9, 0x14016ff29 movaps xmm7, xmmword ptr [r11-20h] ; +0x3ce, 0x14016ff2e mov rsp, r11 ; +0x3d3, 0x14016ff33 pop rdi ; +0x3d6, 0x14016ff36 retn ; +0x3d7, 0x14016ff37