	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdc100x_read_raw
_hdc100x_read_raw:                      ## @hdc100x_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
	pushq	%rax
	.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, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_iio_priv
	addq	$-128, %r15
	cmpq	$3, %r15
	ja	LBB0_16
## %bb.1:
	movq	%rax, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movl	8(%r13), %eax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$165000, (%rax)                 ## imm = 0x28488
	jmp	LBB0_12
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_2:
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%r13), %eax
	movq	_IIO_CURRENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_hdc100x_get_heater_status
	movl	%eax, %ebx
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-15887, (%rax)                 ## imm = 0xC1F1
	movl	$515151, (%rbx)                 ## imm = 0x7DC4F
	jmp	LBB0_15
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%rbx)
LBB0_15:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$100, (%rax)
LBB0_12:
	movl	$65536, (%rbx)                  ## imm = 0x10000
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_4:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_hdc100x_get_measurement
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	jns	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_IIO_CURRENT,4,2                ## @IIO_CURRENT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_TEMP,4,2                   ## @IIO_TEMP
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdc100x_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdc100x_read_raw
_hdc100x_read_raw:                      ; @hdc100x_read_raw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_iio_priv
	sub	x8, x21, #128
	cmp	x8, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.3:
	mov	w8, #33928
	movk	w8, #2, lsl #16
	b	LBB0_12
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_5:
	add	x20, x24, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x22, #8]
Lloh8:
	adrp	x9, _IIO_CURRENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IIO_CURRENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.6:
	mov	x0, x24
	bl	_hdc100x_get_heater_status
	mov	x21, x0
LBB0_7:
	str	w21, [x19]
Lloh11:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_8:
	mov	w8, #-15887
	str	w8, [x19]
	mov	w8, #56399
	movk	w8, #7, lsl #16
	b	LBB0_10
LBB0_9:
	str	wzr, [x19]
	ldr	x8, [x24]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
LBB0_10:
	str	w8, [x20]
Lloh14:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_11:
	mov	w8, #100
LBB0_12:
	str	w8, [x19]
	mov	w8, #65536
	str	w8, [x20]
Lloh17:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_13:
	mov	x0, x23
	bl	_iio_device_claim_direct_mode
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
	b	LBB0_16
LBB0_15:
	mov	x0, x24
	mov	x1, x22
	bl	_hdc100x_get_measurement
	mov	x21, x0
	mov	x0, x23
	bl	_iio_device_release_direct_mode
	tbz	w21, #31, LBB0_7
LBB0_16:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_17:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_CURRENT,4,2                ; @IIO_CURRENT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_TEMP,4,2                   ; @IIO_TEMP
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdc100x_read_raw
.subsections_via_symbols
