	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_sub_range
_next_sub_range:                        ## @next_sub_range
	.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, %rbx
	movl	8(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	16(%rbx), %r14
	movl	24(%rbx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	%r14, %rax
	shrq	$63, %rax
	addq	%r14, %rax
	shrq	%rax
	addl	28(%rbx), %eax
	subl	%eax, %edi
	movl	%r14d, %esi
	callq	_min
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovgq	%rax, %rdx
	movq	%rdx, 16(%rbx)
	addq	%r14, %rdx
	movq	%rdx, %rcx
	shrq	$63, %rcx
	addq	%rdx, %rcx
	shrq	%rcx
	addl	28(%rbx), %ecx
	movl	%ecx, 28(%rbx)
	movl	8(%rbx), %eax
	jmp	LBB0_3
LBB0_1:
	movl	28(%rbx), %ecx
LBB0_3:
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rbx), %rcx
	movq	%rcx, 32(%rbx)
	negl	%eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_next_sub_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_sub_range
_next_sub_range:                        ; @next_sub_range
	.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
	ldr	w8, [x0, #8]
	cmp	w8, #0
	b.le	LBB0_2
; %bb.1:
	ldr	x20, [x19, #16]
	ldp	w8, w9, [x19, #24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x20, #0
	cinc	x10, x20, lt
	lsr	x10, x10, #1
	add	w9, w10, w9
	sub	w0, w8, w9
	mov	x1, x20
	bl	_min
	cmp	x0, #0
	csel	x8, x0, xzr, gt
	str	x8, [x19, #16]
	add	x8, x8, x20
	cmp	x8, #0
	cinc	x8, x8, lt
	lsr	x8, x8, #1
	ldr	w9, [x19, #28]
	add	w9, w9, w8
	str	w9, [x19, #28]
	ldr	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #28]
LBB0_3:
	ldr	x10, [x19]
	mul	w9, w9, w8
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w11, asr #6
	add	x9, x10, w9, sxtw
	str	x9, [x19, #32]
	neg	w8, w8
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_next_sub_range
.subsections_via_symbols
