	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_vadc_scale_therm
_qcom_vadc_scale_therm:                 ## @qcom_vadc_scale_therm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movl	%edx, %ebx
	movl	$0, -20(%rbp)
	leaq	-20(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rcx
	callq	_qcom_vadc_scale_calib
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	-20(%rbp), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div64_s64
	movl	%eax, -20(%rbp)
LBB0_2:
	movq	_adcmap_100k_104ef_104fb@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	-20(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_qcom_vadc_map_voltage_temp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	imull	$1000, (%r14), %ecx             ## imm = 0x3E8
	movl	%ecx, (%r14)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adcmap_100k_104ef_104fb,4,2    ## @adcmap_100k_104ef_104fb
	.no_dead_strip	_qcom_vadc_scale_therm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_vadc_scale_therm
_qcom_vadc_scale_therm:                 ; @qcom_vadc_scale_therm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x4
	mov	x1, x3
	mov	x20, x2
	str	wzr, [sp, #12]
	add	x3, sp, #12
	bl	_qcom_vadc_scale_calib
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	mov	w1, #1000
	bl	_div64_s64
	str	w0, [sp, #12]
LBB0_2:
Lloh0:
	adrp	x8, _adcmap_100k_104ef_104fb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adcmap_100k_104ef_104fb@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x3, x19
	bl	_qcom_vadc_map_voltage_temp
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_adcmap_100k_104ef_104fb,4,2    ; @adcmap_100k_104ef_104fb
	.no_dead_strip	_qcom_vadc_scale_therm
.subsections_via_symbols
