	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_btemp_res_to_temp
_ab8500_btemp_res_to_temp:              ## @ab8500_btemp_res_to_temp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	movl	(%rsi), %ecx
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	jl	LBB0_5
## %bb.1:
	movslq	%edx, %rdi
	cmpl	%eax, -8(%rsi,%rdi,8)
	jge	LBB0_6
## %bb.2:
	leaq	8(%rsi), %rdx
	movl	$-1, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edi
	cmpl	%eax, %ecx
	movl	(%rdx), %ecx
	leaq	8(%rdx), %rdx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ecx
	jge	LBB0_3
	jmp	LBB0_5
LBB0_6:
	addl	$-2, %edx
	movl	%edx, %edi
LBB0_5:
	movslq	%edi, %rcx
	movl	(%rsi,%rcx,8), %edx
	movl	4(%rsi,%rcx,8), %r8d
	movl	12(%rsi,%rcx,8), %edi
	subl	%r8d, %edi
	subl	%edx, %eax
	imull	%edi, %eax
	movl	8(%rsi,%rcx,8), %ecx
	subl	%edx, %ecx
	cltd
	idivl	%ecx
	addl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ab8500_btemp_res_to_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_btemp_res_to_temp
_ab8500_btemp_res_to_temp:              ; @ab8500_btemp_res_to_temp
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, w3
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #0
	b	LBB0_7
LBB0_2:
	add	x9, x1, w2, sxtw #3
	ldur	w9, [x9, #-8]
	cmp	w9, w3
	b.ge	LBB0_6
; %bb.3:
	add	x10, x1, #8
	mov	w9, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x8
	ldr	w8, [x10], #8
	add	w9, w9, #1
	cmp	w11, w3
	b.lt	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w3
	b.ge	LBB0_4
	b	LBB0_7
LBB0_6:
	sub	w9, w2, #2
LBB0_7:
	add	x8, x1, w9, sxtw #3
	ldp	w10, w9, [x8]
	ldp	w8, w11, [x8, #8]
	sub	w11, w11, w9
	sub	w12, w3, w10
	mul	w11, w12, w11
	sub	w8, w8, w10
	sdiv	w8, w11, w8
	add	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ab8500_btemp_res_to_temp
.subsections_via_symbols
