	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsys01_read_temperature
_tsys01_read_temperature:               ## @tsys01_read_temperature
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_iio_priv
	movq	%rax, %r12
	leaq	16(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	20(%r12), %edi
	movq	_TSYS01_CONVERSION_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TSYS01_ADC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r8
	movl	$9000, %ecx                     ## imm = 0x2328
	callq	*(%r12)
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movl	-36(%rbp), %eax
	sarl	$8, %eax
	movl	%eax, -36(%rbp)
	movq	_coeff_mul@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	16(%rcx), %edi
	movq	8(%r12), %rcx
	imull	8(%rcx), %edi
	imull	%eax, %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_div64_s64
	movq	(%rbx), %rcx
	movl	12(%rcx), %edi
	movq	8(%r12), %rcx
	imull	16(%rcx), %edi
	addl	%eax, %edi
	imull	-36(%rbp), %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_div64_s64
	movq	(%rbx), %rcx
	movl	8(%rcx), %edi
	movq	8(%r12), %rcx
	imull	24(%rcx), %edi
	addl	%eax, %edi
	imull	-36(%rbp), %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_div64_s64
	movq	(%rbx), %rcx
	movl	4(%rcx), %edi
	movq	8(%r12), %rcx
	imull	32(%rcx), %edi
	addl	%eax, %edi
	imull	-36(%rbp), %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_div64_s64
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	8(%r12), %rdx
	imull	40(%rdx), %ecx
	leal	(%rcx,%rax,2), %edi
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_div64_s64
	movl	%eax, (%r14)
LBB0_2:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSYS01_CONVERSION_START,4,2    ## @TSYS01_CONVERSION_START
	.comm	_TSYS01_ADC_READ,4,2            ## @TSYS01_ADC_READ
	.comm	_coeff_mul,8,3                  ## @coeff_mul
	.no_dead_strip	_tsys01_read_temperature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsys01_read_temperature
_tsys01_read_temperature:               ; @tsys01_read_temperature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	bl	_iio_priv
	mov	x20, x0
	add	x22, x0, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	w0, [x20, #20]
Lloh0:
	adrp	x9, _TSYS01_CONVERSION_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSYS01_CONVERSION_START@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _TSYS01_ADC_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TSYS01_ADC_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	add	x4, sp, #12
	mov	w3, #9000
	blr	x8
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
	str	w8, [sp, #12]
Lloh6:
	adrp	x22, _coeff_mul@GOTPAGE
Lloh7:
	ldr	x22, [x22, _coeff_mul@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w9, [x9, #16]
	ldr	x10, [x20, #8]
	ldr	w10, [x10, #8]
	mul	w9, w9, w10
	mul	w0, w9, w8
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_div64_s64
	ldr	x8, [x22]
	ldr	w8, [x8, #12]
	ldr	x9, [x20, #8]
	ldr	w9, [x9, #16]
	madd	w8, w8, w9, w0
	ldr	w9, [sp, #12]
	mul	w0, w8, w9
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_div64_s64
	ldr	x8, [x22]
	ldr	w8, [x8, #8]
	ldr	x9, [x20, #8]
	ldr	w9, [x9, #24]
	madd	w8, w8, w9, w0
	ldr	w9, [sp, #12]
	mul	w0, w8, w9
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_div64_s64
	ldr	x8, [x22]
	ldr	w8, [x8, #4]
	ldr	x9, [x20, #8]
	ldr	w9, [x9, #32]
	madd	w8, w8, w9, w0
	ldr	w9, [sp, #12]
	mul	w0, w8, w9
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_div64_s64
	mov	w8, #10
	mul	w8, w0, w8
	ldr	x9, [x22]
	ldr	w9, [x9]
	ldr	x10, [x20, #8]
	ldr	w10, [x10, #40]
	madd	w0, w9, w10, w8
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_div64_s64
	str	w0, [x19]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TSYS01_CONVERSION_START,4,2    ; @TSYS01_CONVERSION_START
	.comm	_TSYS01_ADC_READ,4,2            ; @TSYS01_ADC_READ
	.comm	_coeff_mul,8,3                  ; @coeff_mul
	.no_dead_strip	_tsys01_read_temperature
.subsections_via_symbols
