	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads1015_trigger_handler
_ads1015_trigger_handler:               ## @ads1015_trigger_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_find_first_bit
	leaq	-68(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ads1015_get_adc_result
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-68(%rbp), %eax
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_iio_push_to_buffers_with_timestamp
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_3:
	movl	(%rbx), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ads1015_trigger_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads1015_trigger_handler
_ads1015_trigger_handler:               ; @ads1015_trigger_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x19, [x1]
	mov	x0, x19
	bl	_iio_priv
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x20
	bl	_mutex_lock
	ldp	w1, w0, [x19, #4]
	bl	_find_first_bit
	mov	x1, x0
	add	x2, sp, #4
	mov	x0, x20
	bl	_ads1015_get_adc_result
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [sp, #4]
	str	w8, [sp, #8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_iio_push_to_buffers_with_timestamp
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_3:
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ads1015_trigger_handler
.subsections_via_symbols
