	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iv_ca_set_cp
_iv_ca_set_cp:                          ## @iv_ca_set_cp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %r12d
	movq	32(%rsi), %rax
	movq	(%rax,%r12,8), %rax
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.1:
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iv_ca_set_no_cp
LBB0_3:
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	movq	16(%r15), %rax
	movl	(%rax), %esi
	decl	40(%rbx)
	movq	32(%rbx), %rax
	movq	%r15, (%rax,%r12,8)
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax,%rsi,4)
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.5:
	movl	24(%rbx), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_bitmap_set_bit
	movq	16(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.6:
	incl	20(%rbx)
LBB0_7:
	incl	16(%rbx)
	movl	8(%rax), %ecx
	addl	%ecx, 12(%rbx)
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_iv_ca_set_add_invariants
LBB0_8:
	movl	8(%r15), %eax
	addl	%eax, 8(%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_iv_ca_set_add_invariants
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iv_ca_recount_cost             ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iv_ca_set_cp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iv_ca_set_cp
_iv_ca_set_cp:                          ; @iv_ca_set_cp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w22, [x2]
	ldr	x8, [x1, #32]
	ldr	x8, [x8, x22, lsl #3]
	cmp	x8, x3
	b.eq	LBB0_9
; %bb.1:
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_iv_ca_set_no_cp
LBB0_3:
	cbz	x21, LBB0_9
; %bb.4:
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
	ldr	w8, [x19, #40]
	sub	w8, w8, #1
	str	w8, [x19, #40]
	ldr	x8, [x19, #32]
	str	x21, [x8, x22, lsl #3]
	ldr	x8, [x19]
	lsl	x9, x1, #2
	ldr	w10, [x8, x9]
	add	w11, w10, #1
	str	w11, [x8, x9]
	cbnz	w10, LBB0_8
; %bb.5:
	ldr	w0, [x19, #24]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_bitmap_set_bit
	ldr	x8, [x21, #16]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w9, [x19, #20]
	add	w9, w9, #1
	str	w9, [x19, #20]
LBB0_7:
	add	x9, x8, #8
	ldur	d0, [x19, #12]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x9]
	add.2s	v0, v0, v1
	stur	d0, [x19, #12]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_iv_ca_set_add_invariants
LBB0_8:
	ldr	w8, [x21, #8]
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_iv_ca_set_add_invariants
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iv_ca_recount_cost
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_iv_ca_set_cp
.subsections_via_symbols
