	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_use_iv_cost
_get_use_iv_cost:                       ## @get_use_iv_cost
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	movq	8(%rsi), %rcx
	movslq	(%rdx), %rdx
	leaq	(%rcx,%rdx,8), %rax
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	cmoveq	%rcx, %rax
	popq	%rbp
	retq
LBB0_3:
	movl	(%rsi), %edi
	leal	-1(%rdi), %r8d
	andl	(%rdx), %r8d
	cmpl	$1, %edi
	jb	LBB0_7
## %bb.4:
	leaq	(,%r8,8), %rax
	addq	8(%rsi), %rax
	movq	%r8, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	addq	$8, %rax
	cmpq	%rdi, %rcx
	jb	LBB0_5
LBB0_7:
	testl	%r8d, %r8d
	je	LBB0_11
## %bb.8:
	movq	8(%rsi), %rax
	movl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$8, %rax
	decq	%rcx
	jne	LBB0_9
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_use_iv_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_use_iv_cost
_get_use_iv_cost:                       ; @get_use_iv_cost
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_11
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x1, #8]
	ldrsw	x9, [x2]
	add	x8, x8, x9, lsl #3
	ldr	x9, [x8]
	cmp	x9, #0
	csel	x0, xzr, x8, eq
	ret
LBB0_3:
	ldr	w8, [x2]
	ldr	w9, [x1]
	sub	w10, w9, #1
	and	w8, w10, w8
	cbz	w9, LBB0_7
; %bb.4:
	ldr	x10, [x1, #8]
	add	x0, x10, x8, lsl #3
	mov	x10, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0]
	cmp	x11, x2
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	add	x0, x0, #8
	cmp	x10, x9
	b.lo	LBB0_5
LBB0_7:
	cbz	w8, LBB0_11
; %bb.8:
	ldr	x0, [x1, #8]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0]
	cmp	x9, x2
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x0, #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_11:
	mov	x0, #0
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_use_iv_cost
.subsections_via_symbols
