	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcs3414_probe
_tcs3414_probe:                         ## @tcs3414_probe
	.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	%rdi, %r15
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 8(%r14)
	movq	%r15, 24(%r12)
	movq	_tcs3414_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_TCS3414_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_tcs3414_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	8(%r14), %rdi
	movq	_TCS3414_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	andb	$-16, %bl
	je	LBB0_6
## %bb.3:
	cmpb	$16, %bl
	jne	LBB0_13
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%r15, %rdi
	callq	_dev_info
	movq	_TCS3414_CONTROL_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 20(%r14)
	movq	8(%r14), %rdi
	movq	_TCS3414_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movq	_TCS3414_INTEG_12MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 16(%r14)
	movq	8(%r14), %rdi
	movq	_TCS3414_TIMING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movq	8(%r14), %rdi
	movq	_TCS3414_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movl	%ebx, (%r14)
	movq	_tcs3414_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tcs3414_buffer_setup_ops@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movq	%r12, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_15
## %bb.12:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
	movl	%r14d, %ebx
	jmp	LBB0_15
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tcs3414_info,4,2               ## @tcs3414_info
	.comm	_TCS3414_DRV_NAME,4,2           ## @TCS3414_DRV_NAME
	.comm	_tcs3414_channels,4,2           ## @tcs3414_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_TCS3414_ID,4,2                 ## @TCS3414_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TCS3404 found\n"

L_.str.1:                               ## @.str.1
	.asciz	"TCS3413/14/15/16 found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TCS3414_CONTROL_POWER,4,2      ## @TCS3414_CONTROL_POWER
	.comm	_TCS3414_CONTROL,4,2            ## @TCS3414_CONTROL
	.comm	_TCS3414_INTEG_12MS,4,2         ## @TCS3414_INTEG_12MS
	.comm	_TCS3414_TIMING,4,2             ## @TCS3414_TIMING
	.comm	_TCS3414_GAIN,4,2               ## @TCS3414_GAIN
	.comm	_tcs3414_trigger_handler,4,2    ## @tcs3414_trigger_handler
	.comm	_tcs3414_buffer_setup_ops,4,2   ## @tcs3414_buffer_setup_ops
	.no_dead_strip	_tcs3414_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcs3414_probe
_tcs3414_probe:                         ; @tcs3414_probe
	.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	x21, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x21, [x20, #8]
Lloh0:
	adrp	x8, _tcs3414_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcs3414_info@GOTPAGEOFF]
	stp	x8, x21, [x19, #16]
Lloh2:
	adrp	x8, _TCS3414_DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TCS3414_DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _tcs3414_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tcs3414_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #8]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x19]
	ldr	x0, [x20, #8]
Lloh11:
	adrp	x8, _TCS3414_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCS3414_ID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.2:
	ands	w8, w22, #0xf0
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #16
	b.ne	LBB0_14
; %bb.4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x21
	bl	_dev_info
Lloh20:
	adrp	x8, _TCS3414_CONTROL_POWER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCS3414_CONTROL_POWER@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	str	w2, [x20, #20]
	ldr	x0, [x20, #8]
Lloh23:
	adrp	x8, _TCS3414_CONTROL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCS3414_CONTROL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_13
; %bb.8:
Lloh26:
	adrp	x8, _TCS3414_INTEG_12MS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TCS3414_INTEG_12MS@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	str	w2, [x20, #16]
	ldr	x0, [x20, #8]
Lloh29:
	adrp	x8, _TCS3414_TIMING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TCS3414_TIMING@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	x0, [x20, #8]
Lloh32:
	adrp	x8, _TCS3414_GAIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TCS3414_GAIN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.10:
	str	w22, [x20]
Lloh35:
	adrp	x8, _tcs3414_trigger_handler@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tcs3414_trigger_handler@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x3, _tcs3414_buffer_setup_ops@GOTPAGE
Lloh39:
	ldr	x3, [x3, _tcs3414_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_17
; %bb.12:
	mov	w22, #0
	b	LBB0_16
LBB0_13:
	mov	x22, x0
	b	LBB0_16
LBB0_14:
Lloh40:
	adrp	x8, _ENODEV@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	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
LBB0_17:
	mov	x22, x0
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tcs3414_info,4,2               ; @tcs3414_info
	.comm	_TCS3414_DRV_NAME,4,2           ; @TCS3414_DRV_NAME
	.comm	_tcs3414_channels,4,2           ; @tcs3414_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_TCS3414_ID,4,2                 ; @TCS3414_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TCS3404 found\n"

l_.str.1:                               ; @.str.1
	.asciz	"TCS3413/14/15/16 found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TCS3414_CONTROL_POWER,4,2      ; @TCS3414_CONTROL_POWER
	.comm	_TCS3414_CONTROL,4,2            ; @TCS3414_CONTROL
	.comm	_TCS3414_INTEG_12MS,4,2         ; @TCS3414_INTEG_12MS
	.comm	_TCS3414_TIMING,4,2             ; @TCS3414_TIMING
	.comm	_TCS3414_GAIN,4,2               ; @TCS3414_GAIN
	.comm	_tcs3414_trigger_handler,4,2    ; @tcs3414_trigger_handler
	.comm	_tcs3414_buffer_setup_ops,4,2   ; @tcs3414_buffer_setup_ops
	.no_dead_strip	_tcs3414_probe
.subsections_via_symbols
