	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp206c_read_raw
_hp206c_read_raw:                       ## @hp206c_read_raw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpq	$130, %r15
	je	LBB0_6
## %bb.1:
	cmpq	$131, %r15
	je	LBB0_9
## %bb.2:
	cmpq	$132, %r15
	jne	LBB0_13
## %bb.3:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.4:
	cmpl	$128, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_14
## %bb.5:
	movq	_hp206c_osr_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_6:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_17
## %bb.7:
	cmpl	$128, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_14
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$10000, (%r13)                  ## imm = 0x2710
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_9:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_18
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.11:
	movq	_hp206c_osr_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	_HP206C_CMD_ADC_CVT@GOTPCREL(%rip), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	8(%rax,%rcx,4), %ecx
	orl	(%rdx), %esi
	movq	_HP206C_CMD_ADC_CVT_CHNL_T@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HP206C_CMD_READ_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_hp206c_conv_and_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.12:
	movl	%ebx, %edi
	movl	$19, %esi
	callq	_sign_extend32
	jmp	LBB0_16
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_15:
	movq	_hp206c_osr_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_20
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$1000, (%r13)                   ## imm = 0x3E8
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_hp206c_osr_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	_HP206C_CMD_ADC_CVT@GOTPCREL(%rip), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	4(%rax,%rcx,4), %ecx
	orl	(%rdx), %esi
	movq	_HP206C_CMD_ADC_CVT_CHNL_PT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HP206C_CMD_READ_P@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_hp206c_conv_and_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
LBB0_20:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ebx
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hp206c_osr_rates,8,3           ## @hp206c_osr_rates
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_hp206c_osr_settings,8,3        ## @hp206c_osr_settings
	.comm	_HP206C_CMD_ADC_CVT,4,2         ## @HP206C_CMD_ADC_CVT
	.comm	_HP206C_CMD_ADC_CVT_CHNL_T,4,2  ## @HP206C_CMD_ADC_CVT_CHNL_T
	.comm	_HP206C_CMD_READ_T,4,2          ## @HP206C_CMD_READ_T
	.comm	_HP206C_CMD_ADC_CVT_CHNL_PT,4,2 ## @HP206C_CMD_ADC_CVT_CHNL_PT
	.comm	_HP206C_CMD_READ_P,4,2          ## @HP206C_CMD_READ_P
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_hp206c_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp206c_read_raw
_hp206c_read_raw:                       ; @hp206c_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	bl	_iio_priv
	mov	x22, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	cmp	x25, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	x25, #131
	b.eq	LBB0_9
; %bb.2:
	cmp	x25, #132
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x24]
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.5:
Lloh0:
	adrp	x8, _hp206c_osr_rates@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hp206c_osr_rates@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	b	LBB0_15
LBB0_6:
	ldr	w8, [x24]
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.8:
	str	wzr, [x20]
	mov	w8, #10000
	b	LBB0_17
LBB0_9:
	ldr	w8, [x24]
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.11:
Lloh3:
	adrp	x8, _hp206c_osr_settings@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hp206c_osr_settings@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh6:
	adrp	x10, _HP206C_CMD_ADC_CVT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HP206C_CMD_ADC_CVT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mov	w11, #12
	madd	x8, x9, x11, x8
	ldr	w9, [x8]
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _HP206C_CMD_ADC_CVT_CHNL_T@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HP206C_CMD_ADC_CVT_CHNL_T@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w1, w9, w10
Lloh12:
	adrp	x9, _HP206C_CMD_READ_T@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HP206C_CMD_READ_T@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	ldr	w3, [x8, #8]
	mov	x0, x21
	bl	_hp206c_conv_and_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_22
; %bb.12:
	mov	x0, x21
	mov	w1, #19
	bl	_sign_extend32
	str	w0, [x20]
	b	LBB0_20
LBB0_13:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_22
LBB0_14:
Lloh18:
	adrp	x8, _hp206c_osr_rates@GOTPAGE
Lloh19:
	ldr	x8, [x8, _hp206c_osr_rates@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
LBB0_15:
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x20]
	b	LBB0_20
LBB0_16:
	str	wzr, [x20]
	mov	w8, #1000
LBB0_17:
	str	w8, [x23]
Lloh21:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
Lloh23:
	adrp	x8, _hp206c_osr_settings@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hp206c_osr_settings@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
Lloh26:
	adrp	x10, _HP206C_CMD_ADC_CVT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HP206C_CMD_ADC_CVT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	mov	w11, #12
	madd	x8, x9, x11, x8
Lloh29:
	adrp	x9, _HP206C_CMD_ADC_CVT_CHNL_PT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _HP206C_CMD_ADC_CVT_CHNL_PT@GOTPAGEOFF]
	ldp	w11, w3, [x8]
	orr	w8, w11, w10
Lloh31:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh32:
	adrp	x8, _HP206C_CMD_READ_P@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HP206C_CMD_READ_P@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hp206c_conv_and_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_22
; %bb.19:
	str	w21, [x20]
LBB0_20:
Lloh35:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_21:
	ldr	w21, [x8]
LBB0_22:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_hp206c_osr_rates,8,3           ; @hp206c_osr_rates
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_hp206c_osr_settings,8,3        ; @hp206c_osr_settings
	.comm	_HP206C_CMD_ADC_CVT,4,2         ; @HP206C_CMD_ADC_CVT
	.comm	_HP206C_CMD_ADC_CVT_CHNL_T,4,2  ; @HP206C_CMD_ADC_CVT_CHNL_T
	.comm	_HP206C_CMD_READ_T,4,2          ; @HP206C_CMD_READ_T
	.comm	_HP206C_CMD_ADC_CVT_CHNL_PT,4,2 ; @HP206C_CMD_ADC_CVT_CHNL_PT
	.comm	_HP206C_CMD_READ_P,4,2          ; @HP206C_CMD_READ_P
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_hp206c_read_raw
.subsections_via_symbols
