	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads1015_read_event
_ads1015_read_event:                    ## @ads1015_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, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movq	%rsi, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%rax, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	$129, %r14d
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r14d
	jne	LBB0_4
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	movq	16(%rbx), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rdx
	leaq	4(%rax,%rcx,4), %rax
	cmoveq	%rdx, %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movq	24(%rbx), %rax
	movq	(%r15), %rcx
	movslq	(%rax,%rcx,4), %rsi
	movq	(%rbx), %rdi
	movq	16(%rbx), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %eax
	movq	_ads1015_comp_queue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	movl	(%rcx,%rax,4), %eax
	imull	%ebx, %eax
	cltd
	idivl	(%rdi,%rsi,4)
	movl	%eax, %ecx
	cltd
	idivl	%ebx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movl	%ecx, %eax
	cltd
	idivl	(%r8)
	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	%r12, %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	_ads1015_comp_queue,8,3         ## @ads1015_comp_queue
	.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	_ads1015_read_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads1015_read_event
_ads1015_read_event:                    ; @ads1015_read_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x20, x5
	mov	x25, x4
	mov	x23, x3
	mov	x24, x1
	bl	_iio_priv
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	cmp	w25, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w25, #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]
	ldr	x9, [x22, #16]
	ldr	x10, [x24]
	mov	w11, #12
	madd	x9, x10, x11, x9
	add	x10, x9, #4
	cmp	w8, w23
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	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	x8, [x24]
	ldp	x10, x9, [x22, #16]
	ldrsw	x9, [x9, x8, lsl #2]
	mov	w11, #12
	madd	x8, x8, x11, x10
	ldr	w8, [x8, #8]
Lloh6:
	adrp	x10, _ads1015_comp_queue@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ads1015_comp_queue@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	w8, [x10, x8, lsl #2]
Lloh9:
	adrp	x10, _USEC_PER_SEC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USEC_PER_SEC@GOTPAGEOFF]
	ldr	w11, [x10]
	mul	w8, w11, w8
	ldr	x12, [x22]
	ldr	w9, [x12, x9, lsl #2]
	sdiv	w8, w8, w9
	sdiv	w9, w8, w11
	str	w9, [x20]
	ldr	w9, [x10]
	sdiv	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, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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	_ads1015_comp_queue,8,3         ; @ads1015_comp_queue
	.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	_ads1015_read_event
.subsections_via_symbols
