	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function determine_iv_cost
_determine_iv_cost:                     ## @determine_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	24(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	(%rax), %ebx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_force_var_cost
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TYPE_MODE
	movl	%eax, %edi
	callq	_add_cost
	movl	%eax, %ebx
	movq	_current_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVG_LOOP_NITER
	movl	%eax, %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%ebx, %eax
	movl	%eax, (%r15)
	movq	8(%r15), %rax
	movq	_IP_ORIGINAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	16(%r15), %edi
	callq	_SSA_NAME_VAR
	movl	%eax, %edi
	callq	_DECL_ARTIFICIAL
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	decl	(%r15)
LBB0_5:
	movq	8(%r15), %rax
	movq	_IP_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movl	(%r14), %edi
	callq	_ip_end_pos
	movl	%eax, %edi
	callq	_empty_block_p
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	(%r15)
	jmp	LBB0_8
LBB0_1:
	movl	$0, (%r15)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_loop,4,2               ## @current_loop
	.comm	_IP_ORIGINAL,8,3                ## @IP_ORIGINAL
	.comm	_IP_END,8,3                     ## @IP_END
	.no_dead_strip	_determine_iv_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function determine_iv_cost
_determine_iv_cost:                     ; @determine_iv_cost
	.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
	mov	x19, x1
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w21, [x8]
	mov	x1, x21
	mov	x2, #0
	bl	_force_var_cost
	mov	x22, x0
	mov	x0, x21
	bl	_TREE_TYPE
	bl	_TYPE_MODE
	bl	_add_cost
	mov	x21, x0
Lloh0:
	adrp	x8, _current_loop@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_loop@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVG_LOOP_NITER
	udiv	w8, w22, w0
	add	w8, w8, w21
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IP_ORIGINAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IP_ORIGINAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_SSA_NAME_VAR
	bl	_DECL_ARTIFICIAL
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_4:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _IP_END@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IP_END@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x20]
	bl	_ip_end_pos
	bl	_empty_block_p
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	str	wzr, [x19]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_current_loop,4,2               ; @current_loop
	.comm	_IP_ORIGINAL,8,3                ; @IP_ORIGINAL
	.comm	_IP_END,8,3                     ; @IP_END
	.no_dead_strip	_determine_iv_cost
.subsections_via_symbols
