	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_adc_table_to_millicelcius
_cpcap_adc_table_to_millicelcius:       ## @cpcap_adc_table_to_millicelcius
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_temp_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_CPCAP_MAX_TEMP_LVL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	-8(%r10,%rcx,8), %rax
	cmpw	%di, (%rax)
	jae	LBB0_7
## %bb.1:
	movq	(%r10), %r9
	movzwl	(%r9), %edx
	cmpw	%di, %dx
	jbe	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.3:
	decq	%rcx
	movl	%ecx, %r8d
	movl	$1, %ecx
	cmpw	%di, %dx
	jb	LBB0_5
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r10,%rcx,8), %r9
	movzwl	(%r9), %edx
	incq	%rcx
	cmpw	%di, %dx
	jb	LBB0_5
LBB0_4:
	movq	(%r10,%rcx,8), %r11
	movzwl	(%r11), %esi
	cmpw	%di, %si
	jbe	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %r8
	jne	LBB0_6
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movzwl	2(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	cmpw	%di, %dx
	jne	LBB0_11
LBB0_9:
	movzwl	2(%r9), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_11:
	cmpw	%di, %si
	jne	LBB0_13
## %bb.12:
	movzwl	2(%r11), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_13:
	movzwl	%dx, %ecx
	subl	%ecx, %edi
	imull	$1000, %edi, %eax               ## imm = 0x3E8
	subl	%ecx, %esi
	cltd
	idivl	%esi
	movzwl	2(%r9), %ecx
	movzwl	2(%r11), %edx
	subl	%ecx, %edx
	imull	%eax, %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	addl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_temp_map,8,3                   ## @temp_map
	.comm	_CPCAP_MAX_TEMP_LVL,4,2         ## @CPCAP_MAX_TEMP_LVL
	.no_dead_strip	_cpcap_adc_table_to_millicelcius
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_adc_table_to_millicelcius
_cpcap_adc_table_to_millicelcius:       ; @cpcap_adc_table_to_millicelcius
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _temp_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _temp_map@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _CPCAP_MAX_TEMP_LVL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPCAP_MAX_TEMP_LVL@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	sub	w11, w12, #1
	ldr	x8, [x10, w11, sxtw #3]
	ldrh	w9, [x8]
	cmp	w9, w0
	b.hs	LBB0_10
; %bb.1:
	ldr	x8, [x10]
	ldrh	w9, [x8]
	cmp	w9, w0
	b.ls	LBB0_10
; %bb.2:
	cmp	w12, #2
	b.lt	LBB0_8
; %bb.3:
	add	x10, x10, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x11, x11, #1
	cmp	w9, w0
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x10]
	ldrh	w13, [x12]
	cmp	w13, w0
	b.ls	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x11, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x10], #8
	ldrh	w9, [x8]
	b	LBB0_4
LBB0_8:
	mov	w0, #0
	ret
LBB0_9:
	cmp	w9, w0
	b.ne	LBB0_11
LBB0_10:
	ldrh	w0, [x8, #2]
	ret
LBB0_11:
	cmp	w13, w0
	b.ne	LBB0_13
; %bb.12:
	ldrh	w0, [x12, #2]
	ret
LBB0_13:
	sub	w10, w0, w9
	mov	w11, #1000
	mul	w10, w10, w11
	sub	w9, w13, w9
	sdiv	w9, w10, w9
	ldrh	w8, [x8, #2]
	ldrh	w10, [x12, #2]
	sub	w10, w10, w8
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_temp_map,8,3                   ; @temp_map
	.comm	_CPCAP_MAX_TEMP_LVL,4,2         ; @CPCAP_MAX_TEMP_LVL
	.no_dead_strip	_cpcap_adc_table_to_millicelcius
.subsections_via_symbols
