	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_improve_iv_set
_try_improve_iv_set:                    ## @try_improve_iv_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_iv_ca_cost
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	$0, -64(%rbp)
	movq	%r12, %rdi
	callq	_n_iv_cands
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_iv_ca_delta_free
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	%r12, %rdi
	callq	_n_iv_cands
	cmpl	%eax, %ebx
	jae	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_iv_cand
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_iv_ca_cand_used_p
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	leaq	-56(%rbp), %rcx
	leaq	-68(%rbp), %r8
	callq	_iv_ca_extend
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	movl	-68(%rbp), %eax
	movq	_ALWAYS_PRUNE_CAND_SET_BOUND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_iv_ca_delta_commit
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	leaq	-80(%rbp), %rcx
	callq	_iv_ca_prune
	movl	%eax, %r15d
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_iv_ca_delta_commit
	movq	-56(%rbp), %rdi
	movq	-80(%rbp), %rsi
	callq	_iv_ca_delta_join
	movq	%rax, -56(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	callq	_iv_ca_delta_free
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_9
LBB0_10:
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	jne	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_iv_ca_prune
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
LBB0_12:
	movl	$1, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_iv_ca_delta_commit
	movq	%r14, %rdi
	callq	_iv_ca_cost
	xorl	%edi, %edi
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	sete	%dil
	callq	_gcc_assert
	leaq	-64(%rbp), %rdi
	callq	_iv_ca_delta_free
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALWAYS_PRUNE_CAND_SET_BOUND,4,2 ## @ALWAYS_PRUNE_CAND_SET_BOUND
	.no_dead_strip	_try_improve_iv_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_improve_iv_set
_try_improve_iv_set:                    ; @try_improve_iv_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_iv_ca_cost
	mov	x21, x0
	str	xzr, [sp, #16]
	mov	x0, x20
	bl	_n_iv_cands
	cbz	w0, LBB0_11
; %bb.1:
	mov	w22, #0
Lloh0:
	adrp	x25, _ALWAYS_PRUNE_CAND_SET_BOUND@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ALWAYS_PRUNE_CAND_SET_BOUND@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	bl	_iv_ca_delta_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	mov	x0, x20
	bl	_n_iv_cands
	cmp	w22, w0
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_iv_cand
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_iv_ca_cand_used_p
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #8
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_iv_ca_extend
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	w8, [sp, #28]
	ldr	w9, [x25]
	cmp	w8, w9
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_iv_ca_delta_commit
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_iv_ca_prune
	mov	x23, x0
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_iv_ca_delta_commit
	ldp	x1, x0, [sp]
	bl	_iv_ca_delta_join
	str	x0, [sp, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, w21
	b.hs	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	bl	_iv_ca_delta_free
	ldr	x8, [sp, #8]
	str	x8, [sp, #16]
	mov	x21, x23
	b	LBB0_3
LBB0_10:
	ldr	x2, [sp, #16]
	cbnz	x2, LBB0_13
LBB0_11:
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_iv_ca_prune
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_14
; %bb.12:
	mov	x21, x0
LBB0_13:
	mov	w22, #1
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_iv_ca_delta_commit
	mov	x0, x19
	bl	_iv_ca_cost
	cmp	w21, w0
	cset	w0, eq
	bl	_gcc_assert
	add	x0, sp, #16
	bl	_iv_ca_delta_free
	b	LBB0_15
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ALWAYS_PRUNE_CAND_SET_BOUND,4,2 ; @ALWAYS_PRUNE_CAND_SET_BOUND
	.no_dead_strip	_try_improve_iv_set
.subsections_via_symbols
