	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_pred_resets
_update_pred_resets:                    ## @update_pred_resets
	.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
	movl	$1, %esi
	callq	_update_counters
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	8(%r14), %r8
	xorl	%ecx, %ecx
	movl	$1, %edx
                                        ## implicit-def: $eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$3, %rdx
	cmpq	$31, %rdx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rdx,4), %edi
	movl	4(%r8,%rdx,4), %ebx
	cmpl	%ecx, %edi
	movl	%eax, %esi
	cmovgl	%edx, %esi
	cmovgl	%edi, %ecx
	leal	1(%rdx), %eax
	cmpl	%ecx, %ebx
	cmovlel	%esi, %eax
	movl	%ecx, %edi
	cmovgl	%ebx, %edi
	movl	8(%r8,%rdx,4), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%rdx), %eax
	jmp	LBB0_5
LBB0_6:
	movq	_PRED_RESET_MIN@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	cmovgl	%eax, %esi
	movl	%esi, (%r14)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRED_RESET_MIN,4,2             ## @PRED_RESET_MIN
	.no_dead_strip	_update_pred_resets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_pred_resets
_update_pred_resets:                    ; @update_pred_resets
	.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
	mov	w1, #1
	bl	_update_counters
	str	w0, [x19]
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w8, #0
	ldr	x9, [x19, #8]
	mov	w11, #1
                                        ; implicit-def: $w10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, x11, lsl #2]
	cmp	w12, w8
	csel	w10, w11, w10, gt
	csel	w8, w12, w8, gt
	add	x11, x11, #1
	cmp	x11, #31
	b.ne	LBB0_2
; %bb.3:
Lloh0:
	adrp	x9, _PRED_RESET_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PRED_RESET_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w10, wzr, gt
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PRED_RESET_MIN,4,2             ; @PRED_RESET_MIN
	.no_dead_strip	_update_pred_resets
.subsections_via_symbols
