	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcs3414_read_raw
_tcs3414_read_raw:                      ## @tcs3414_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, %r14
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$128, %r14
	je	LBB0_8
## %bb.1:
	cmpq	$130, %r14
	je	LBB0_9
## %bb.2:
	cmpq	$129, %r14
	jne	LBB0_11
## %bb.3:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r15, %rdi
	callq	_tcs3414_req_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	16(%r15), %edi
	movl	(%r13), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	movq	_TCS3414_GAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movq	_TCS3414_GAIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_tcs3414_scales@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_tcs3414_times@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TCS3414_INTEG_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	8(%r15), %rcx
	imull	$1000, (%rax,%rcx,4), %eax      ## imm = 0x3E8
LBB0_10:
	movl	%eax, (%rbx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_TCS3414_GAIN_MASK,4,2          ## @TCS3414_GAIN_MASK
	.comm	_TCS3414_GAIN_SHIFT,4,2         ## @TCS3414_GAIN_SHIFT
	.comm	_tcs3414_scales,8,3             ## @tcs3414_scales
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_tcs3414_times,8,3              ## @tcs3414_times
	.comm	_TCS3414_INTEG_MASK,8,3         ## @TCS3414_INTEG_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tcs3414_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcs3414_read_raw
_tcs3414_read_raw:                      ; @tcs3414_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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x23, x0
	cmp	x24, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	x24, #130
	b.eq	LBB0_8
; %bb.2:
	cmp	x24, #129
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_iio_device_claim_direct_mode
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x23
	bl	_tcs3414_req_data
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	w0, [x23, #16]
	ldr	w1, [x22]
	bl	_i2c_smbus_read_word_data
	mov	x21, x0
	mov	x0, x20
	bl	_iio_device_release_direct_mode
	tbnz	w21, #31, LBB0_11
; %bb.6:
	str	w21, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_7:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _TCS3414_GAIN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCS3414_GAIN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _TCS3414_GAIN_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCS3414_GAIN_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh9:
	adrp	x9, _tcs3414_scales@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tcs3414_scales@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	b	LBB0_9
LBB0_8:
	str	wzr, [x19]
Lloh12:
	adrp	x8, _tcs3414_times@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tcs3414_times@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x23, #8]
Lloh15:
	adrp	x10, _TCS3414_INTEG_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TCS3414_INTEG_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	and	x9, x10, x9
	ldr	w8, [x8, x9, lsl #2]
	mov	w9, #1000
	mul	w8, w8, w9
LBB0_9:
	str	w8, [x21]
Lloh18:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	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
LBB0_12:
	mov	x21, x0
	mov	x0, x20
	bl	_iio_device_release_direct_mode
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_TCS3414_GAIN_MASK,4,2          ; @TCS3414_GAIN_MASK
	.comm	_TCS3414_GAIN_SHIFT,4,2         ; @TCS3414_GAIN_SHIFT
	.comm	_tcs3414_scales,8,3             ; @tcs3414_scales
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_tcs3414_times,8,3              ; @tcs3414_times
	.comm	_TCS3414_INTEG_MASK,8,3         ; @TCS3414_INTEG_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tcs3414_read_raw
.subsections_via_symbols
