	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcs3472_read_event
_tcs3472_read_event:                    ## @tcs3472_read_event
	.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	%r9, %r14
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rax, %r13
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	cmpl	$129, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r12d, (%rax)
	setne	%cl
	movl	(%r15,%rcx,4), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	$256, %eax                      ## imm = 0x100
	subl	20(%r15), %eax
	movq	_tcs3472_intr_pers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r15), %rdx
	imull	(%rcx,%rdx,4), %eax
	imull	$2400, %eax, %ecx               ## imm = 0x960
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
	movl	%eax, (%r14)
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
	movq	16(%rbp), %rax
	movl	%edx, (%rax)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_tcs3472_intr_pers,8,3          ## @tcs3472_intr_pers
	.comm	_USEC_PER_SEC,4,2               ## @USEC_PER_SEC
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tcs3472_read_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcs3472_read_event
_tcs3472_read_event:                    ; @tcs3472_read_event
	.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	x21, x6
	mov	x20, x5
	mov	x24, x4
	mov	x23, x3
	bl	_iio_priv
	mov	x22, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	cmp	w24, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w24, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w8, ne
	ldr	w8, [x22, w8, uxtw #2]
	str	w8, [x20]
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x22, #20]
	mov	w9, #256
	sub	w8, w9, w8
Lloh6:
	adrp	x9, _tcs3472_intr_pers@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tcs3472_intr_pers@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x10, [x22, #8]
	ldr	w9, [x9, x10, lsl #2]
	mul	w8, w8, w9
	mov	w9, #2400
	mul	w8, w8, w9
Lloh9:
	adrp	x9, _USEC_PER_SEC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USEC_PER_SEC@GOTPAGEOFF]
	ldr	w10, [x9]
	udiv	w10, w8, w10
	str	w10, [x20]
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x21]
Lloh11:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_tcs3472_intr_pers,8,3          ; @tcs3472_intr_pers
	.comm	_USEC_PER_SEC,4,2               ; @USEC_PER_SEC
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tcs3472_read_event
.subsections_via_symbols
