	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recalculate_min_counter_down
_recalculate_min_counter_down:          ## @recalculate_min_counter_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_1
## %bb.2:
	movq	16(%rdi), %r10
	leaq	-1(%r9), %rax
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.3:
	movl	$1073741824, %edx               ## imm = 0x40000000
	xorl	%eax, %eax
LBB0_12:
	testq	%r8, %r8
	je	LBB0_15
## %bb.13:
	leaq	(%r10,%rax,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rsi
	movq	(%rsi), %rsi
	cmpq	%rdx, %rsi
	cmovbq	%rsi, %rdx
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_14
	jmp	LBB0_15
LBB0_1:
	movl	$1073741824, %edx               ## imm = 0x40000000
LBB0_15:
	movq	%rdx, 8(%rdi)
	popq	%rbp
	retq
LBB0_4:
	andq	$-4, %r9
	movl	$1073741824, %edx               ## imm = 0x40000000
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rax
	cmpq	%rax, %r9
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rax,8), %rcx
	movq	8(%r10,%rax,8), %rsi
	movq	(%rcx), %rcx
	cmpq	%rdx, %rcx
	cmovbq	%rcx, %rdx
	movq	(%rsi), %rsi
	cmpq	%rdx, %rsi
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r10,%rax,8), %rcx
	movq	(%rcx), %rcx
	cmpq	%rsi, %rcx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r10,%rax,8), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_recalculate_min_counter_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recalculate_min_counter_down
_recalculate_min_counter_down:          ; @recalculate_min_counter_down
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x0, #16]
	cmp	x8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w11, #1073741824
	b	LBB0_7
LBB0_3:
	mov	w11, #1073741824
	str	x11, [x0, #8]
	ret
LBB0_4:
	and	x10, x8, #0xfffffffffffffffc
	add	x12, x9, #16
	mov	w11, #1073741824
	mov	x15, x10
	mov	w16, #1073741824
	mov	w14, #1073741824
	mov	w13, #1073741824
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x17, x1, [x12, #-16]
	ldp	x2, x3, [x12], #32
	ldr	x17, [x17]
	ldr	x1, [x1]
	ldr	x2, [x2]
	cmp	x17, x11
	csel	x11, x17, x11, lo
	cmp	x1, x16
	csel	x16, x1, x16, lo
	cmp	x2, x14
	csel	x14, x2, x14, lo
	ldr	x17, [x3]
	cmp	x17, x13
	csel	x13, x17, x13, lo
	subs	x15, x15, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x16
	csel	x11, x11, x16, lo
	cmp	x11, x14
	csel	x11, x11, x14, lo
	cmp	x11, x13
	csel	x11, x11, x13, lo
	cmp	x8, x10
	b.eq	LBB0_9
LBB0_7:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	ldr	x10, [x10]
	cmp	x10, x11
	csel	x11, x10, x11, lo
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	str	x11, [x0, #8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_recalculate_min_counter_down
.subsections_via_symbols
