	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cidr_next6
_cidr_next6:                            ## @cidr_next6
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_cidr_clone
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.2:
	leal	-1(%r9), %edx
	leal	6(%r9), %edi
	testl	%edx, %edx
	cmovsl	%edi, %edx
	sarl	$3, %edx
	movslq	%edx, %rdx
	movq	8(%rax), %rsi
	leaq	1(%rdx), %r8
	cmpl	$15, %edi
	jae	LBB0_4
## %bb.3:
	movl	$1, %edi
	jmp	LBB0_6
LBB0_4:
	movq	%r8, %rbx
	andq	$-2, %rbx
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	(%rsi,%rdx,8), %rdi
	cmpq	$256, %rdi                      ## imm = 0x100
	movq	%rdi, (%rsi,%rdx,8)
	movq	-8(%rsi,%rdx,8), %rcx
	sbbq	$-1, %rcx
	xorl	%edi, %edi
	cmpq	$256, %rcx                      ## imm = 0x100
	setae	%dil
	movq	%rcx, -8(%rsi,%rdx,8)
	addq	$-2, %rdx
	addq	$-2, %rbx
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	addq	(%rsi,%rdx,8), %rdi
	cmpq	$256, %rdi                      ## imm = 0x100
	movq	%rdi, (%rsi,%rdx,8)
	setae	%cl
	movl	%ecx, %edi
LBB0_8:
	testb	$1, %dil
	je	LBB0_9
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movl	%r9d, (%rax)
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overflow during 'next'\n"

	.no_dead_strip	_cidr_next6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cidr_next6
_cidr_next6:                            ; @cidr_next6
	.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, x1
	bl	_cidr_clone
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	sub	w9, w8, #1
	add	w10, w8, #6
	cmp	w9, #0
	csel	w9, w10, w9, lt
	sbfx	x9, x9, #3, #29
	ldr	x10, [x0, #8]
	mov	w11, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x9, #3
	ldr	x12, [x10, x13]
	add	x12, x12, x11
	cmp	x12, #255
	cset	w11, hi
	str	x12, [x10, x13]
	sub	x9, x9, #1
	cmn	x9, #1
	b.ne	LBB0_2
; %bb.3:
	cmp	x12, #256
	b.lo	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	str	w8, [x0]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overflow during 'next'\n"

	.no_dead_strip	_cidr_next6
.subsections_via_symbols
