	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dps310_read_temp
_dps310_read_temp:                      ## @dps310_read_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	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$130, %rcx
	je	LBB0_8
## %bb.1:
	cmpq	$129, %rcx
	je	LBB0_6
## %bb.2:
	cmpq	$128, %rcx
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_dps310_get_temp_samp_freq
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_dps310_get_temp_precision
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_dps310_read_temp_raw
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_dps310_calculate_temp
	testl	%eax, %eax
	js	LBB0_10
LBB0_5:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dps310_read_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dps310_read_temp
_dps310_read_temp:                      ; @dps310_read_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	x19, x1
	mov	x20, x0
	cmp	x3, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	x3, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	x3, #128
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_dps310_get_temp_samp_freq
	tbz	w0, #31, LBB0_7
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_dps310_get_temp_precision
	tbz	w0, #31, LBB0_7
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_dps310_read_temp_raw
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_dps310_calculate_temp
	tbnz	w0, #31, LBB0_9
LBB0_7:
	str	w0, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dps310_read_temp
.subsections_via_symbols
