	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si7020_read_raw
_si7020_read_raw:                       ## @si7020_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_7
## %bb.3:
	movq	(%rax), %rdi
	movl	(%r15), %eax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.4:
	movq	_SI7020CMD_TEMP_HOLD@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movl	(%r15), %eax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$175720, %eax                   ## imm = 0x2AE68
	movl	$125000, %ecx                   ## imm = 0x1E848
	cmovel	%eax, %ecx
	movl	%ecx, (%r14)
	movl	$16384, (%r12)                  ## imm = 0x4000
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movl	(%r15), %eax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$-4368, %eax                    ## imm = 0xEEF0
	movl	$-786, %ecx                     ## imm = 0xFCEE
	cmovel	%eax, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_12
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_8:
	movq	_SI7020CMD_RH_HOLD@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_swapped
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	shrl	$2, %eax
	movl	%eax, (%r14)
	movl	(%r15), %ecx
	movq	_IIO_HUMIDITYRELATIVE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
## %bb.11:
	movl	%eax, %edi
	movl	$786, %esi                      ## imm = 0x312
	movl	$13893, %edx                    ## imm = 0x3645
	callq	_clamp_val
	movl	%eax, (%r14)
LBB0_12:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_TEMP,4,2                   ## @IIO_TEMP
	.comm	_SI7020CMD_TEMP_HOLD,4,2        ## @SI7020CMD_TEMP_HOLD
	.comm	_SI7020CMD_RH_HOLD,4,2          ## @SI7020CMD_RH_HOLD
	.comm	_IIO_HUMIDITYRELATIVE,4,2       ## @IIO_HUMIDITYRELATIVE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si7020_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si7020_read_raw
_si7020_read_raw:                       ; @si7020_read_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	cmp	x22, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	x22, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	x22, #129
	b.ne	LBB0_9
; %bb.3:
	ldr	x0, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SI7020CMD_TEMP_HOLD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SI7020CMD_TEMP_HOLD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _SI7020CMD_RH_HOLD@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SI7020CMD_RH_HOLD@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_swapped
	tbnz	w0, #31, LBB0_10
; %bb.4:
	lsr	w0, w0, #2
	str	w0, [x19]
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _IIO_HUMIDITYRELATIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IIO_HUMIDITYRELATIVE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	mov	w1, #786
	mov	w2, #13893
	bl	_clamp_val
	str	w0, [x19]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _IIO_TEMP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_TEMP@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh12:
	ldr	w8, [x8]
	mov	w10, #59464
	movk	w10, #1, lsl #16
	mov	w11, #44648
	movk	w11, #2, lsl #16
	cmp	w9, w8
	csel	w8, w11, w10, eq
	str	w8, [x19]
	mov	w8, #16384
	str	w8, [x21]
Lloh13:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x20]
Lloh16:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	w10, #-786
	mov	w11, #-4368
	cmp	w8, w9
	csel	w8, w11, w10, eq
	str	w8, [x19]
LBB0_8:
Lloh19:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_TEMP,4,2                   ; @IIO_TEMP
	.comm	_SI7020CMD_TEMP_HOLD,4,2        ; @SI7020CMD_TEMP_HOLD
	.comm	_SI7020CMD_RH_HOLD,4,2          ; @SI7020CMD_RH_HOLD
	.comm	_IIO_HUMIDITYRELATIVE,4,2       ; @IIO_HUMIDITYRELATIVE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si7020_read_raw
.subsections_via_symbols
