	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcs3472_probe
_tcs3472_probe:                         ## @tcs3472_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	%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	%rdi, %r14
	leaq	12(%rdi), %r13
	movq	%r13, %rdi
	movl	$40, %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, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 24(%r15)
	leaq	32(%r15), %rdi
	callq	_mutex_init
	movq	%r13, 24(%r12)
	movq	_tcs3472_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_TCS3472_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_tcs3472_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	24(%r15), %rdi
	movq	_TCS3472_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.2:
	cmpl	$68, %ebx
	je	LBB0_6
## %bb.3:
	cmpl	$77, %ebx
	jne	LBB0_20
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_6:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%r13, %rdi
	callq	_dev_info
	movq	24(%r15), %rdi
	movq	_TCS3472_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.8:
	movl	%ebx, (%r15)
	movq	24(%r15), %rdi
	movq	_TCS3472_ATIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.9:
	movl	%ebx, 4(%r15)
	movq	24(%r15), %rdi
	movq	_TCS3472_AILT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.10:
	movl	%ebx, 8(%r15)
	movq	24(%r15), %rdi
	movq	_TCS3472_AIHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.11:
	movl	%ebx, 12(%r15)
	movl	$1, 16(%r15)
	movq	24(%r15), %rdi
	movq	_TCS3472_PERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movq	24(%r15), %rdi
	movq	_TCS3472_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.13:
	movq	_TCS3472_ENABLE_PON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	movq	_TCS3472_ENABLE_AEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TCS3472_ENABLE_AIEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, 20(%r15)
	movq	24(%r15), %rdi
	movl	(%r13), %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_23
## %bb.14:
	movq	_tcs3472_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_23
## %bb.15:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movq	_tcs3472_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	8(%r14), %r8d
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
LBB0_17:
	movq	%r12, %rdi
	callq	_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_22
## %bb.18:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_free_irq
	movl	%r15d, %ebx
LBB0_19:
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_22
LBB0_20:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tcs3472_info,4,2               ## @tcs3472_info
	.comm	_TCS3472_DRV_NAME,4,2           ## @TCS3472_DRV_NAME
	.comm	_tcs3472_channels,4,2           ## @tcs3472_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_TCS3472_ID,4,2                 ## @TCS3472_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TCS34721/34725 found\n"

L_.str.1:                               ## @.str.1
	.asciz	"TCS34723/34727 found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TCS3472_CONTROL,4,2            ## @TCS3472_CONTROL
	.comm	_TCS3472_ATIME,4,2              ## @TCS3472_ATIME
	.comm	_TCS3472_AILT,4,2               ## @TCS3472_AILT
	.comm	_TCS3472_AIHT,4,2               ## @TCS3472_AIHT
	.comm	_TCS3472_PERS,4,2               ## @TCS3472_PERS
	.comm	_TCS3472_ENABLE,4,2             ## @TCS3472_ENABLE
	.comm	_TCS3472_ENABLE_PON,4,2         ## @TCS3472_ENABLE_PON
	.comm	_TCS3472_ENABLE_AEN,4,2         ## @TCS3472_ENABLE_AEN
	.comm	_TCS3472_ENABLE_AIEN,4,2        ## @TCS3472_ENABLE_AIEN
	.comm	_tcs3472_trigger_handler,4,2    ## @tcs3472_trigger_handler
	.comm	_tcs3472_event_handler,4,2      ## @tcs3472_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.no_dead_strip	_tcs3472_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcs3472_probe
_tcs3472_probe:                         ; @tcs3472_probe
	.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	x20, x0
	add	x23, x0, #12
	mov	x0, x23
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x20, [x21, #24]
	add	x0, x21, #32
	bl	_mutex_init
Lloh0:
	adrp	x8, _tcs3472_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcs3472_info@GOTPAGEOFF]
	stp	x8, x23, [x19, #16]
Lloh2:
	adrp	x8, _TCS3472_DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TCS3472_DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _tcs3472_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tcs3472_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, [x21, #24]
Lloh11:
	adrp	x8, _TCS3472_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCS3472_ID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.2:
	cmp	w22, #68
	b.eq	LBB0_6
; %bb.3:
	cmp	w22, #77
	b.ne	LBB0_19
; %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_20
LBB0_6:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x23
	bl	_dev_info
	ldr	x0, [x21, #24]
Lloh20:
	adrp	x8, _TCS3472_CONTROL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCS3472_CONTROL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.8:
	str	w22, [x21]
	ldr	x0, [x21, #24]
Lloh23:
	adrp	x8, _TCS3472_ATIME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCS3472_ATIME@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.9:
	str	w22, [x21, #4]
	ldr	x0, [x21, #24]
Lloh26:
	adrp	x8, _TCS3472_AILT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TCS3472_AILT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.10:
	str	w22, [x21, #8]
	ldr	x0, [x21, #24]
Lloh29:
	adrp	x8, _TCS3472_AIHT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TCS3472_AIHT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.11:
	mov	w8, #1
	stp	w22, w8, [x21, #12]
	ldr	x0, [x21, #24]
Lloh32:
	adrp	x8, _TCS3472_PERS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TCS3472_PERS@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_22
; %bb.12:
	ldr	x0, [x21, #24]
Lloh35:
	adrp	x23, _TCS3472_ENABLE@GOTPAGE
Lloh36:
	ldr	x23, [x23, _TCS3472_ENABLE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.13:
Lloh37:
	adrp	x8, _TCS3472_ENABLE_PON@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TCS3472_ENABLE_PON@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w8, w8, w22
Lloh40:
	adrp	x9, _TCS3472_ENABLE_AEN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TCS3472_ENABLE_AEN@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
Lloh43:
	adrp	x10, _TCS3472_ENABLE_AIEN@GOTPAGE
Lloh44:
	ldr	x10, [x10, _TCS3472_ENABLE_AIEN@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh45:
	ldr	w9, [x10]
	bic	w2, w8, w9
	str	w2, [x21, #20]
	ldr	x0, [x21, #24]
	ldr	w1, [x23]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_22
; %bb.14:
Lloh46:
	adrp	x8, _tcs3472_trigger_handler@GOTPAGE
Lloh47:
	ldr	x8, [x8, _tcs3472_trigger_handler@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_22
; %bb.15:
	ldr	x0, [x20]
	cbz	x0, LBB0_17
; %bb.16:
Lloh49:
	adrp	x8, _tcs3472_event_handler@GOTPAGE
Lloh50:
	ldr	x8, [x8, _tcs3472_event_handler@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh56:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh58:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh59:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w4, [x20, #8]
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x22, x0
	cbnz	w0, LBB0_24
LBB0_17:
	mov	x0, x19
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_23
; %bb.18:
	mov	w22, #0
	b	LBB0_21
LBB0_19:
Lloh61:
	adrp	x8, _ENODEV@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_21:
	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
LBB0_22:
	mov	x22, x0
	b	LBB0_21
LBB0_23:
	mov	x22, x0
	ldr	x0, [x20]
	mov	x1, x19
	bl	_free_irq
LBB0_24:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_21
	.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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tcs3472_info,4,2               ; @tcs3472_info
	.comm	_TCS3472_DRV_NAME,4,2           ; @TCS3472_DRV_NAME
	.comm	_tcs3472_channels,4,2           ; @tcs3472_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_TCS3472_ID,4,2                 ; @TCS3472_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TCS34721/34725 found\n"

l_.str.1:                               ; @.str.1
	.asciz	"TCS34723/34727 found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TCS3472_CONTROL,4,2            ; @TCS3472_CONTROL
	.comm	_TCS3472_ATIME,4,2              ; @TCS3472_ATIME
	.comm	_TCS3472_AILT,4,2               ; @TCS3472_AILT
	.comm	_TCS3472_AIHT,4,2               ; @TCS3472_AIHT
	.comm	_TCS3472_PERS,4,2               ; @TCS3472_PERS
	.comm	_TCS3472_ENABLE,4,2             ; @TCS3472_ENABLE
	.comm	_TCS3472_ENABLE_PON,4,2         ; @TCS3472_ENABLE_PON
	.comm	_TCS3472_ENABLE_AEN,4,2         ; @TCS3472_ENABLE_AEN
	.comm	_TCS3472_ENABLE_AIEN,4,2        ; @TCS3472_ENABLE_AIEN
	.comm	_tcs3472_trigger_handler,4,2    ; @tcs3472_trigger_handler
	.comm	_tcs3472_event_handler,4,2      ; @tcs3472_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.no_dead_strip	_tcs3472_probe
.subsections_via_symbols
