	.file	"extr_iplist.c_iplist_setcurpos.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iplist_setcurpos
	.type	iplist_setcurpos, @function
iplist_setcurpos:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rsi, rsi
	js	.L2
	mov	rbp, rsi
	cmp	DWORD PTR [rdi], esi
	jbe	.L2
	mov	QWORD PTR 48[rdi], 0
	mov	DWORD PTR 8[rdi], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	add	DWORD PTR 8[rbx], eax
	sub	rbp, rax
.L7:
	mov	rdi, rbx
	call	iplist_nextrange@PLT
	mov	rax, QWORD PTR 32[rbx]
	movsx	rdx, eax
	cmp	rdx, rbp
	jle	.L5
	test	rbp, rbp
	jne	.L13
.L6:
	mov	eax, DWORD PTR 24[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 8[rbx], -1
	mov	DWORD PTR 24[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	DWORD PTR 8[rbx], ebp
	mov	rdi, QWORD PTR 40[rbx]
	mov	QWORD PTR 16[rbx], rbp
	add	rdi, rbp
	call	htonl@PLT
	mov	DWORD PTR 24[rbx], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	iplist_setcurpos, .-iplist_setcurpos
	.comm	INADDR_ANY,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_iplist.c_iplist_setcurpos.c"
	.text
	.align	2
	.global	iplist_setcurpos
	.syntax unified
	.arm
	.fpu softvfp
	.type	iplist_setcurpos, %function
iplist_setcurpos:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r1, #0
	mov	r4, r0
	blt	.L2
	ldr	r3, [r0]
	cmp	r3, r5
	movhi	r3, #0
	strhi	r3, [r0, #24]
	strhi	r3, [r0, #4]
	bhi	.L7
.L2:
	mvn	r2, #0
	ldr	r3, .L14
	str	r2, [r4, #4]
	ldr	r0, [r3]
	str	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r2, [r4, #4]
	sub	r5, r5, r3
	add	r3, r2, r3
	str	r3, [r4, #4]
.L7:
	mov	r0, r4
	bl	iplist_nextrange
	ldr	r3, [r4, #16]
	cmp	r3, r5
	ble	.L5
	cmp	r5, #0
	bne	.L13
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, [r4, #4]
	ldr	r0, [r4, #20]
	add	r3, r3, r5
	stmib	r4, {r3, r5}
	add	r0, r5, r0
	bl	htonl
	str	r0, [r4, #12]
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	INADDR_ANY
	.size	iplist_setcurpos, .-iplist_setcurpos
	.comm	INADDR_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
