	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltr501_read_event
_ltr501_read_event:                     ## @ltr501_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rsi, %rbx
	cmpl	$129, %r8d
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r8d
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rsi
	movl	$128, %r8d
	movq	%r14, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ltr501_read_thresh             ## TAILCALL
LBB0_3:
	movq	16(%rbp), %r15
	callq	_iio_priv
	movl	(%rbx), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_ltr501_read_intr_prst
	movslq	(%r15), %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	movl	%ecx, (%r14)
	movslq	(%r15), %rcx
	imulq	$1125899907, %rcx, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$50, %rdx
	addl	%esi, %edx
	imull	$1000000, %edx, %edx            ## imm = 0xF4240
	subl	%edx, %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ltr501_read_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltr501_read_event
_ltr501_read_event:                     ; @ltr501_read_event
	.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	x19, x6
	mov	x20, x5
	mov	x21, x1
	cmp	w4, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w4, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x1, x21
	mov	x5, x20
	mov	x6, x19
	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	_ltr501_read_thresh
LBB0_3:
	bl	_iio_priv
	ldr	w1, [x21]
	mov	x2, x19
	bl	_ltr501_read_intr_prst
	ldrsw	x8, [x19]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x10, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w10
	str	w8, [x20]
	ldrsw	x8, [x19]
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w10
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w8, w9, w10, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ltr501_read_event
.subsections_via_symbols
