	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_thermal_read_sensor
_mv_thermal_read_sensor:                ## @mv_thermal_read_sensor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_mv_thermal_select_sensor
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RD4
	movq	%rax, %rbx
	movq	_STATUS_TEMP_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%rdi, %rbx
	movq	(%r15), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_3
## %bb.2:
	callq	_fls
	leaq	-1(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sign_extend
	movq	%rax, %rbx
	movq	(%r15), %rax
LBB0_3:
	imulq	(%rax), %rbx
	subq	8(%rax), %rbx
	movq	16(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_STATUS_TEMP_MASK,8,3           ## @STATUS_TEMP_MASK
	.no_dead_strip	_mv_thermal_read_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_thermal_read_sensor
_mv_thermal_read_sensor:                ; @mv_thermal_read_sensor
	.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, x2
	mov	x20, x0
	bl	_mv_thermal_select_sensor
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RD4
	mov	x8, x0
Lloh3:
	adrp	x9, _STATUS_TEMP_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_TEMP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	and	x21, x0, x8
	ldr	x8, [x20]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_3
; %bb.2:
	bl	_fls
	sub	x1, x0, #1
	mov	x0, x21
	bl	_sign_extend
	mov	x21, x0
	ldr	x8, [x20]
LBB0_3:
	mov	w0, #0
	ldp	x9, x10, [x8]
	neg	x10, x10
	madd	x9, x9, x21, x10
	ldr	x8, [x8, #16]
	sdiv	x8, x9, x8
	str	w8, [x19]
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_STATUS_TEMP_MASK,8,3           ; @STATUS_TEMP_MASK
	.no_dead_strip	_mv_thermal_read_sensor
.subsections_via_symbols
