	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcs3472_write_raw
_tcs3472_write_raw:                     ## @tcs3472_write_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, %r12
	movl	%ecx, %ebx
	movl	%edx, %r15d
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$128, %r12
	je	LBB0_8
## %bb.1:
	cmpq	$129, %r12
	jne	LBB0_20
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.3:
	movq	_tcs3472_agains@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_20
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r15d, (%rdi,%rbx,4)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_20
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	addl	$-616800, %ebx                  ## imm = 0xFFF696A0
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$-2400, %ebx                    ## imm = 0xF6A0
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$-4800, %ebx                    ## imm = 0xED40
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$-7200, %ebx                    ## imm = 0xE3E0
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$9600, %ebx                     ## imm = 0x2580
	je	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$4, %edx
	cmpl	$256, %edx                      ## imm = 0x100
	jne	LBB0_10
	jmp	LBB0_20
LBB0_6:
	movq	_TCS3472_CONTROL_AGAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	movl	8(%r14), %edi
	movq	_TCS3472_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	jmp	LBB0_18
LBB0_16:
	incl	%edx
	jmp	LBB0_17
LBB0_15:
	addl	$2, %edx
	jmp	LBB0_17
LBB0_14:
	addl	$3, %edx
LBB0_17:
	movl	%edx, 4(%r14)
	movl	8(%r14), %edi
	movq	_TCS3472_ATIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tcs3472_agains,8,3             ## @tcs3472_agains
	.comm	_TCS3472_CONTROL_AGAIN_MASK,4,2 ## @TCS3472_CONTROL_AGAIN_MASK
	.comm	_TCS3472_CONTROL,4,2            ## @TCS3472_CONTROL
	.comm	_TCS3472_ATIME,4,2              ## @TCS3472_ATIME
	.no_dead_strip	_tcs3472_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcs3472_write_raw
_tcs3472_write_raw:                     ; @tcs3472_write_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	x20, x2
	bl	_iio_priv
	mov	x19, x0
	cmp	x22, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_11
; %bb.2:
	cbnz	w21, LBB0_11
; %bb.3:
Lloh0:
	adrp	x21, _tcs3472_agains@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tcs3472_agains@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x22, lsl #2]
	cmp	w8, w20
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
	b	LBB0_11
LBB0_7:
	cbnz	w20, LBB0_11
; %bb.8:
	mov	w2, #0
	sub	w8, w21, #150, lsl #12          ; =614400
	sub	w8, w8, #2400
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	adds	w8, w8, #2400
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w2, w2, #1
	cmp	w2, #256
	b.ne	LBB0_9
LBB0_11:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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_12:
	str	w2, [x19, #4]
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _TCS3472_ATIME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCS3472_ATIME@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x8, _TCS3472_CONTROL_AGAIN_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TCS3472_CONTROL_AGAIN_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	orr	w2, w8, w22
	str	w2, [x19]
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x8, _TCS3472_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCS3472_CONTROL@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	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
	b	_i2c_smbus_write_byte_data
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tcs3472_agains,8,3             ; @tcs3472_agains
	.comm	_TCS3472_CONTROL_AGAIN_MASK,4,2 ; @TCS3472_CONTROL_AGAIN_MASK
	.comm	_TCS3472_CONTROL,4,2            ; @TCS3472_CONTROL
	.comm	_TCS3472_ATIME,4,2              ; @TCS3472_ATIME
	.no_dead_strip	_tcs3472_write_raw
.subsections_via_symbols
