	.file	"extr_sds.c_sdsrange.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sdsrange
	.type	sdsrange, @function
sdsrange:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sdslen@PLT
	test	rax, rax
	je	.L1
	test	r12d, r12d
	js	.L16
	test	ebx, ebx
	js	.L17
.L4:
	cmp	r12d, ebx
	jle	.L18
.L10:
	mov	rbx, r13
	xor	ebp, ebp
.L5:
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sdssetlen@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cmp	eax, r12d
	jle	.L10
	cmp	eax, ebx
	jle	.L6
	sub	ebx, r12d
	lea	ebp, 1[rbx]
	movsx	rbp, ebp
.L7:
	lea	rbx, 0[r13+rbp*8]
	test	r12d, r12d
	je	.L5
	movsx	r12, r12d
	mov	rdx, rbp
	mov	rdi, r13
	lea	rsi, 0[r13+r12*8]
	call	memmove@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	add	ebx, eax
	mov	edx, 0
	cmovs	ebx, edx
	cmp	r12d, ebx
	jg	.L10
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	add	r12d, eax
	mov	edx, 0
	cmovs	r12d, edx
	test	ebx, ebx
	jns	.L4
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sub	eax, 1
	cmp	r12d, eax
	jg	.L10
	sub	eax, r12d
	lea	ebp, 1[rax]
	movsx	rbp, ebp
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sdsrange, .-sdsrange
	.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_sds.c_sdsrange.c"
	.text
	.align	2
	.global	sdsrange
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdsrange, %function
sdsrange:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r2
	mov	r6, r0
	bl	sdslen
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	cmp	r5, #0
	addlt	r5, r5, r0
	biclt	r5, r5, r5, asr #31
	cmp	r4, #0
	addlt	r4, r4, r0
	biclt	r4, r4, r4, asr #31
	cmp	r5, r4
	ble	.L17
.L10:
	mov	r7, r6
	mov	r4, #0
.L5:
	mov	r3, #0
	mov	r1, r4
	mov	r0, r6
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	sdssetlen
.L17:
	cmp	r0, r5
	ble	.L10
	cmp	r0, r4
	bgt	.L15
	sub	r4, r0, #1
	cmp	r5, r4
	bgt	.L10
.L15:
	sub	r4, r4, r5
	add	r4, r4, #1
	cmp	r5, #0
	add	r7, r6, r4, lsl #2
	beq	.L5
	mov	r2, r4
	mov	r0, r6
	add	r1, r6, r5, lsl #2
	bl	memmove
	b	.L5
	.size	sdsrange, .-sdsrange
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
