	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iplist_setcurpos               ## -- Begin function iplist_setcurpos
	.p2align	4, 0x90
_iplist_setcurpos:                      ## @iplist_setcurpos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	js	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpl	%ebx, (%r14)
	jbe	LBB0_2
## %bb.3:
	movq	$0, 48(%r14)
	movl	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_iplist_nextrange
	movq	32(%r14), %rax
	movslq	%eax, %rcx
	cmpq	%rbx, %rcx
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	subq	%rax, %rbx
	addl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_iplist_nextrange
	movq	32(%r14), %rax
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.7:
	movq	%rbx, 16(%r14)
	addl	%ebx, 8(%r14)
	addq	40(%r14), %rbx
	movq	%rbx, %rdi
	callq	_htonl
	jmp	LBB0_8
LBB0_2:
	movl	$-1, 8(%r14)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movl	%eax, 24(%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	24(%r14), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iplist_setcurpos               ; -- Begin function iplist_setcurpos
	.p2align	2
_iplist_setcurpos:                      ; @iplist_setcurpos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	tbnz	x1, #63, LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	w8, [x19]
	cmp	w8, w20
	b.ls	LBB0_5
; %bb.2:
	str	xzr, [x19, #48]
	str	wzr, [x19, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_iplist_nextrange
	ldr	x8, [x19, #32]
	cmp	x20, w8, sxtw
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x20, x20, x8
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_5:
	mov	w8, #-1
	str	w8, [x19, #8]
Lloh0:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
	cbz	x20, LBB0_10
; %bb.7:
	str	x20, [x19, #16]
	ldr	w8, [x19, #8]
	add	w8, w8, w20
	str	w8, [x19, #8]
	ldr	x8, [x19, #40]
	add	x0, x8, x20
	bl	_htonl
LBB0_8:
	str	w0, [x19, #24]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x19, #24]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
.subsections_via_symbols
