	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dps310_calculate_temp
_dps310_calculate_temp:                 ## @dps310_calculate_temp
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_dps310_get_temp_k
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	imulq	16(%r14), %rdi
	movl	$2, %esi
	callq	_div_s64
	movq	(%r14), %rcx
	imulq	8(%r14), %rcx
	addq	%rax, %rcx
	imulq	$1000, %rcx, %rdi               ## imm = 0x3E8
	movl	%ebx, %esi
	callq	_div_s64
	movq	%rax, %rbx
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dps310_calculate_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dps310_calculate_temp
_dps310_calculate_temp:                 ; @dps310_calculate_temp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_dps310_get_temp_k
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w8, w19
	ldr	x9, [x20, #16]
	mul	x0, x9, x8
	mov	w1, #2
	bl	_div_s64
	ldp	x9, x8, [x20]
	madd	x8, x9, x8, x0
	mov	w9, #1000
	mul	x0, x8, x9
	mov	x1, x19
	bl	_div_s64
	mov	x19, x0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dps310_calculate_temp
.subsections_via_symbols
