	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2772_read_event_value
_tsl2772_read_event_value:              ## @tsl2772_read_event_value
	.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	%r9, %r14
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rsi, %r12
	callq	_iio_priv
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_12
## %bb.2:
	movl	(%r12), %ecx
	movq	_IIO_INTENSITY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.3:
	cmpl	$131, %r15d
	je	LBB0_15
## %bb.4:
	cmpl	$130, %r15d
	jne	LBB0_12
## %bb.5:
	movl	8(%rax), %eax
	jmp	LBB0_17
LBB0_6:
	movq	16(%rbp), %rcx
	movl	(%r12), %edx
	movq	_IIO_INTENSITY@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_13
## %bb.7:
	movl	24(%rax), %edx
	movl	36(%rax), %esi
	cmpl	$4, %edx
	jl	LBB0_14
## %bb.8:
	leal	(%rdx,%rdx,4), %edx
	addl	$-15, %edx
	jmp	LBB0_14
LBB0_9:
	cmpl	$131, %r15d
	je	LBB0_16
## %bb.10:
	cmpl	$130, %r15d
	jne	LBB0_12
## %bb.11:
	movl	16(%rax), %eax
	jmp	LBB0_17
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_13:
	movl	28(%rax), %edx
	movl	32(%rax), %esi
LBB0_14:
	movl	$256, %edi                      ## imm = 0x100
	subl	%esi, %edi
	imull	%edx, %edi
	movq	_tsl2772_int_time_avail@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rax
	imull	12(%rax), %edi
	movslq	%edi, %rax
	imulq	$1125899907, %rax, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$50, %rdx
	addl	%esi, %edx
	movl	%edx, (%r14)
	imull	$1000000, %edx, %edx            ## imm = 0xF4240
	subl	%edx, %eax
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movl	12(%rax), %eax
	jmp	LBB0_17
LBB0_16:
	movl	20(%rax), %eax
LBB0_17:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_INTENSITY,4,2              ## @IIO_INTENSITY
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tsl2772_int_time_avail,8,3     ## @tsl2772_int_time_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_tsl2772_read_event_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2772_read_event_value
_tsl2772_read_event_value:              ; @tsl2772_read_event_value
	.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, x6
	mov	x19, x5
	mov	x23, x4
	mov	x21, x3
	mov	x22, x1
	bl	_iio_priv
	cmp	w23, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w23, #128
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IIO_INTENSITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_INTENSITY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.3:
	cmp	w21, #131
	b.eq	LBB0_14
; %bb.4:
	cmp	w21, #130
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x0, #8]
	b	LBB0_16
LBB0_6:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _IIO_INTENSITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IIO_INTENSITY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
	ldr	w8, [x0, #36]
	ldr	w9, [x0, #24]
	add	w10, w9, w9, lsl #2
	sub	w10, w10, #15
	cmp	w9, #4
	csel	w9, w9, w10, lt
	b	LBB0_13
LBB0_8:
	cmp	w21, #131
	b.eq	LBB0_15
; %bb.9:
	cmp	w21, #130
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x0, #16]
	b	LBB0_16
LBB0_11:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_12:
	ldp	w9, w8, [x0, #28]
LBB0_13:
	mov	w10, #256
	sub	w8, w10, w8
	mul	w8, w8, w9
Lloh9:
	adrp	x9, _tsl2772_int_time_avail@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tsl2772_int_time_avail@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x10, [x0]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w9, [x9, #12]
	mul	w8, w8, w9
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w10
	str	w9, [x19]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w8, w9, w10, w8
	str	w8, [x20]
Lloh12:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	ldr	w8, [x0, #12]
	b	LBB0_16
LBB0_15:
	ldr	w8, [x0, #20]
LBB0_16:
	str	w8, [x19]
Lloh14:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_INTENSITY,4,2              ; @IIO_INTENSITY
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tsl2772_int_time_avail,8,3     ; @tsl2772_int_time_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_tsl2772_read_event_value
.subsections_via_symbols
