	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccs811_read_raw
_ccs811_read_raw:                       ## @ccs811_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
	cmpq	$133, %r15
	je	LBB0_18
## %bb.1:
	cmpq	$134, %r15
	jne	LBB0_28
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_ccs811_get_measurement
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	4(%r13), %eax
	cmpl	$132, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$131, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.8:
	movl	12(%r14), %edi
	callq	_be16_to_cpu
	movq	_CCS811_VOLTAGE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_14
LBB0_18:
	movl	4(%r13), %eax
	cmpl	$132, %eax
	je	LBB0_24
## %bb.19:
	cmpl	$131, %eax
	je	LBB0_23
## %bb.20:
	cmpl	$128, %eax
	jne	LBB0_28
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$612903, (%rbx)                 ## imm = 0x95A27
	jmp	LBB0_22
LBB0_24:
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_27
## %bb.25:
	cmpl	$130, %eax
	jne	LBB0_28
## %bb.26:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$100, (%rbx)
	jmp	LBB0_22
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_23:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$1000, (%rbx)                   ## imm = 0x3E8
LBB0_22:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_27:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$100, (%rbx)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_10:
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.11:
	cmpl	$130, %eax
	jne	LBB0_16
## %bb.12:
	movl	8(%r14), %edi
	jmp	LBB0_13
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	movl	12(%r14), %edi
	callq	_be16_to_cpu
	sarl	$10, %eax
	jmp	LBB0_14
LBB0_15:
	movl	4(%r14), %edi
LBB0_13:
	callq	_be16_to_cpu
LBB0_14:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCS811_VOLTAGE_MASK,4,2        ## @CCS811_VOLTAGE_MASK
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_ccs811_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccs811_read_raw
_ccs811_read_raw:                       ; @ccs811_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	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	cmp	x24, #133
	b.eq	LBB0_8
; %bb.1:
	cmp	x24, #134
	b.ne	LBB0_15
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_30
; %bb.3:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	bl	_ccs811_get_measurement
	tbnz	w0, #31, LBB0_18
; %bb.4:
	ldr	w8, [x23, #4]
	cmp	w8, #132
	b.eq	LBB0_20
; %bb.5:
	cmp	w8, #131
	b.eq	LBB0_24
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_23
; %bb.7:
	ldr	w0, [x20, #12]
	bl	_be16_to_cpu
Lloh0:
	adrp	x8, _CCS811_VOLTAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCS811_VOLTAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	b	LBB0_25
LBB0_8:
	ldr	w8, [x23, #4]
	cmp	w8, #132
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #131
	b.eq	LBB0_16
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.11:
	mov	w8, #1
	str	w8, [x21]
	mov	w8, #23079
	movk	w8, #9, lsl #16
	b	LBB0_17
LBB0_12:
	ldr	w8, [x23]
	cmp	w8, #129
	b.eq	LBB0_19
; %bb.13:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.14:
	str	wzr, [x21]
	mov	w8, #100
	b	LBB0_17
LBB0_15:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_30
LBB0_16:
	str	wzr, [x21]
	mov	w8, #1000
LBB0_17:
	str	w8, [x22]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_30
LBB0_18:
	mov	x22, x0
	b	LBB0_29
LBB0_19:
	str	wzr, [x21]
	mov	w8, #100
	str	w8, [x22]
Lloh9:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_30
LBB0_20:
	ldr	w8, [x23]
	cmp	w8, #129
	b.eq	LBB0_26
; %bb.21:
	cmp	w8, #130
	b.ne	LBB0_23
; %bb.22:
	ldr	w0, [x20, #8]
	b	LBB0_27
LBB0_23:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_29
LBB0_24:
	ldr	w0, [x20, #12]
	bl	_be16_to_cpu
	asr	w8, w0, #10
LBB0_25:
	str	w8, [x21]
	b	LBB0_28
LBB0_26:
	ldr	w0, [x20, #4]
LBB0_27:
	bl	_be16_to_cpu
	str	w0, [x21]
LBB0_28:
Lloh15:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
LBB0_29:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_30:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CCS811_VOLTAGE_MASK,4,2        ; @CCS811_VOLTAGE_MASK
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_ccs811_read_raw
.subsections_via_symbols
