	.file	"extr_t_zset.c_zslDeleteRangeByScore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zslDeleteRangeByScore
	.type	zslDeleteRangeByScore, @function
zslDeleteRangeByScore:
.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
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -80[rbp], rdx
	mov	QWORD PTR -72[rbp], rdi
	mov	rbx, 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	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L4:
	mov	rax, QWORD PTR -72[rbp]
	mov	r14, rsp
	mov	rdi, QWORD PTR 8[rax]
	movsx	rax, DWORD PTR [rax]
	mov	edx, eax
	mov	rcx, QWORD PTR 16[rdi]
	sub	edx, 1
	js	.L10
	movsx	rsi, edx
	mov	edx, edx
	sub	rax, rdx
	sal	rsi, 3
	lea	r10, -16[0+rax*8]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR [rcx+rsi]
	test	rax, rax
	je	.L7
	mov	r8, QWORD PTR 24[r13]
	mov	r9, QWORD PTR 0[r13]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L36:
	cmp	rdx, r9
	jg	.L32
.L9:
	mov	rcx, QWORD PTR 16[rax]
	mov	rdi, rax
	mov	rdx, QWORD PTR [rcx+rsi]
	test	rdx, rdx
	je	.L7
	mov	rax, rdx
.L11:
	mov	rdx, QWORD PTR [rax]
	test	r8, r8
	jne	.L36
	cmp	rdx, r9
	jl	.L9
.L32:
	mov	rcx, QWORD PTR 16[rdi]
.L7:
	mov	QWORD PTR [r14+rsi], rdi
	sub	rsi, 8
	cmp	rsi, r10
	jne	.L6
.L10:
	mov	r12, QWORD PTR [rcx]
	xor	r15d, r15d
	test	r12, r12
	jne	.L12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	cmp	rdx, rax
	jle	.L1
.L15:
	mov	rax, QWORD PTR 16[r12]
	mov	rdi, QWORD PTR -72[rbp]
	mov	rdx, r14
	mov	rsi, r12
	add	r15, 1
	mov	rbx, QWORD PTR [rax]
	call	zslDeleteNode@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, QWORD PTR -80[rbp]
	call	dictDelete@PLT
	mov	rdi, r12
	call	zslFreeNode@PLT
	test	rbx, rbx
	je	.L1
	mov	r12, rbx
.L12:
	cmp	QWORD PTR 16[r13], 0
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR 8[r13]
	jne	.L37
	cmp	rdx, rax
	jge	.L15
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	lea	rsp, -40[rbp]
	mov	rax, r15
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L35:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zslDeleteRangeByScore, .-zslDeleteRangeByScore
	.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_zslDeleteRangeByScore.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zslDeleteRangeByScore
	.syntax unified
	.arm
	.fpu softvfp
	.type	zslDeleteRangeByScore, %function
zslDeleteRangeByScore:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	mov	r7, r0
	ldr	r3, .L33
	ldr	ip, [r0]
	ldr	r3, [r3]
	subs	r0, ip, #1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L33+4
	mov	r5, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r8, sp
	ldr	lr, [r7, #4]
	bmi	.L2
	sub	ip, ip, #-1073741823
	add	r9, r8, ip, lsl #2
	ldr	ip, [lr, #8]
.L3:
	ldr	r3, [ip, r0, lsl #2]
	lsl	r1, r0, #2
	cmp	r3, #0
	beq	.L4
	ldr	r4, [r5, #12]
	ldr	r2, [r5]
	b	.L8
.L30:
	cmp	ip, r2
	bgt	.L28
.L6:
	ldr	ip, [r3, #8]
	mov	lr, r3
	ldr	r3, [ip, r1]
	cmp	r3, #0
	beq	.L4
.L8:
	cmp	r4, #0
	ldr	ip, [r3]
	bne	.L30
	cmp	ip, r2
	blt	.L6
.L28:
	ldr	ip, [lr, #8]
.L4:
	sub	r0, r0, #1
	cmn	r0, #1
	str	lr, [r9], #-4
	bne	.L3
.L7:
	ldr	r4, [ip]
	cmp	r4, #0
	moveq	r10, r4
	beq	.L1
	mov	r10, #0
	b	.L9
.L31:
	cmp	r3, r2
	ble	.L1
.L12:
	ldr	r3, [r4, #8]
	mov	r2, r8
	mov	r1, r4
	mov	r0, r7
	ldr	r9, [r3]
	bl	zslDeleteNode
	ldr	r1, [r4, #4]
	mov	r0, r6
	bl	dictDelete
	mov	r0, r4
	bl	zslFreeNode
	cmp	r9, #0
	add	r10, r10, #1
	beq	.L1
	mov	r4, r9
.L9:
	ldr	r3, [r5, #8]
	ldr	r2, [r4]
	cmp	r3, #0
	ldr	r3, [r5, #4]
	bne	.L31
	cmp	r3, r2
	bge	.L12
.L1:
	ldr	r3, .L33+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r10
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	ip, [lr, #8]
	b	.L7
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	ZSKIPLIST_MAXLEVEL
	.word	.LC0
	.size	zslDeleteRangeByScore, .-zslDeleteRangeByScore
	.comm	ZSKIPLIST_MAXLEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
