	.file	"extr_t_zset.c_zslUpdateScore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zslUpdateScore
	.type	zslUpdateScore, @function
zslUpdateScore:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, esi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	movsd	QWORD PTR -80[rbp], xmm1
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ZSKIPLIST_MAXLEVEL[rip]
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L43:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L43
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L44
.L4:
	mov	rax, QWORD PTR -88[rbp]
	mov	r13, rsp
	mov	rbx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	mov	r12d, eax
	mov	DWORD PTR -72[rbp], eax
	mov	rdx, QWORD PTR 16[rbx]
	sub	r12d, 1
	js	.L11
	movsx	r12, r12d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR [rdx+r12*8]
	lea	r15, 0[0+r12*8]
	test	rax, rax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movsd	xmm1, QWORD PTR [rax]
	comisd	xmm0, xmm1
	ja	.L8
	ucomisd	xmm1, xmm0
	jp	.L41
	jne	.L41
	mov	rdi, QWORD PTR 8[rax]
	mov	esi, r14d
	movsd	QWORD PTR -72[rbp], xmm0
	call	sdscmp@PLT
	movsd	xmm0, QWORD PTR -72[rbp]
	test	rax, rax
	jns	.L41
.L8:
	mov	rax, QWORD PTR 16[rbx]
	add	rax, r15
	mov	rbx, QWORD PTR [rax]
	mov	rdx, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rdx+r15]
	test	rax, rax
	jne	.L12
.L7:
	mov	QWORD PTR 0[r13+r12*8], rbx
	sub	r12, 1
	test	r12d, r12d
	jns	.L6
.L11:
	mov	r12, QWORD PTR [rdx]
	xor	edi, edi
	test	r12, r12
	je	.L13
	ucomisd	xmm0, QWORD PTR [r12]
	jnp	.L45
.L23:
	xor	edi, edi
.L13:
	call	serverAssert@PLT
	mov	rax, QWORD PTR 24[r12]
	test	rax, rax
	je	.L15
	movsd	xmm2, QWORD PTR -80[rbp]
	comisd	xmm2, QWORD PTR [rax]
	jbe	.L16
.L15:
	mov	rax, QWORD PTR 16[r12]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -80[rbp]
	ja	.L18
.L16:
	mov	rbx, QWORD PTR -88[rbp]
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbx
	call	zslDeleteNode@PLT
	mov	rsi, QWORD PTR 8[r12]
	movsd	xmm0, QWORD PTR -80[rbp]
	mov	rdi, rbx
	call	zslInsert@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[r12], 0
	mov	r13, rax
	call	zslFreeNode@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	lea	rsp, -40[rbp]
	mov	rax, r13
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L45:
	.cfi_restore_state
	jne	.L23
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, r14d
	call	sdscmp@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 0[r13+r12*8], rbx
	sub	r12, 1
	test	r12d, r12d
	jns	.L6
	jmp	.L11
.L18:
	movsd	xmm4, QWORD PTR -80[rbp]
	mov	r13, r12
	movsd	QWORD PTR [r12], xmm4
	jmp	.L1
.L44:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zslUpdateScore, .-zslUpdateScore
	.comm	ZSKIPLIST_MAXLEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_t_zset.c_zslUpdateScore.c"
	.text
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpeq
	.global	__aeabi_dcmpgt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zslUpdateScore
	.syntax unified
	.arm
	.fpu softvfp
	.type	zslUpdateScore, %function
zslUpdateScore:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	ip, r0
	mov	r1, r3
	str	r0, [fp, #-60]
	mov	r0, r2
	ldr	r3, .L43
	ldr	r2, [ip]
	ldr	r3, [r3]
	subs	lr, r2, #1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L43+4
	str	lr, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	add	r3, sp, #8
	mov	r9, r0
	mov	r10, r1
	ldr	r5, [ip, #4]
	str	r3, [fp, #-56]
	bmi	.L2
	sub	r2, r2, #-1073741823
	add	r3, r3, r2, lsl #2
	str	r3, [fp, #-52]
	ldr	r3, [r5, #12]
.L3:
	ldr	r2, [fp, #-48]
	ldr	r4, [r3, r2, lsl #2]
	lsl	r8, r2, #2
	cmp	r4, #0
	beq	.L4
.L8:
	ldmia	r4, {r6-r7}
	mov	r2, r9
	mov	r3, r10
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmplt
	cmp	r0, #0
	bne	.L5
	mov	r0, r6
	mov	r1, r7
	mov	r2, r9
	mov	r3, r10
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	beq	.L39
	ldr	r0, [r4, #8]
	ldr	r1, [fp, #4]
	bl	sdscmp
	cmp	r0, #0
	bge	.L39
.L5:
	ldr	r3, [r5, #12]
	ldr	r5, [r3, r8]
	ldr	r3, [r5, #12]
	ldr	r4, [r3, r8]
	cmp	r4, #0
	bne	.L8
.L4:
	ldr	r2, [fp, #-48]
	sub	r2, r2, #1
	str	r2, [fp, #-48]
	cmn	r2, #1
	ldr	r2, [fp, #-52]
	str	r5, [r2], #-4
	str	r2, [fp, #-52]
	bne	.L3
.L7:
	ldr	r4, [r3]
	cmp	r4, #0
	moveq	r0, r4
	beq	.L9
	ldmia	r4, {r0-r1}
	mov	r2, r9
	mov	r3, r10
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	bne	.L41
.L9:
	bl	serverAssert
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L11
	ldmia	r3, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmplt
	cmp	r0, #0
	bne	.L11
.L12:
	ldr	r5, [fp, #-60]
	mov	r1, r4
	ldr	r2, [fp, #-56]
	mov	r0, r5
	bl	zslDeleteNode
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #8]
	mov	r0, r5
	str	r1, [sp]
	bl	zslInsert
	mov	r2, #0
	mov	r3, r0
	str	r2, [r4, #8]
	mov	r0, r4
	mov	r4, r3
	bl	zslFreeNode
.L1:
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldmia	r3, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L12
.L14:
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r4, {r2-r3}
	b	.L1
.L39:
	ldr	r3, [r5, #12]
	b	.L4
.L41:
	ldr	r1, [fp, #4]
	ldr	r0, [r4, #8]
	bl	sdscmp
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L9
.L2:
	ldr	r3, [r5, #12]
	b	.L7
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	ZSKIPLIST_MAXLEVEL
	.word	.LC0
	.size	zslUpdateScore, .-zslUpdateScore
	.comm	ZSKIPLIST_MAXLEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
