	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads1015_event_handler
_ads1015_event_handler:                 ## @ads1015_event_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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	12(%rax), %edi
	movq	_ADS1015_CONV_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_ads1015_event_channel_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rbx), %rax
	movq	_ADS1015_CFG_COMP_MODE_TRAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IIO_EV_DIR_EITHER@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iio_push_event
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADS1015_CONV_REG,4,2           ## @ADS1015_CONV_REG
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ADS1015_CFG_COMP_MODE_TRAD,8,3 ## @ADS1015_CFG_COMP_MODE_TRAD
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_EITHER,4,2          ## @IIO_EV_DIR_EITHER
	.comm	_IIO_VOLTAGE,4,2                ## @IIO_VOLTAGE
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.no_dead_strip	_ads1015_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads1015_event_handler
_ads1015_event_handler:                 ; @ads1015_event_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _ADS1015_CONV_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADS1015_CONV_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_ads1015_event_channel_enabled
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _ADS1015_CFG_COMP_MODE_TRAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADS1015_CFG_COMP_MODE_TRAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IIO_EV_DIR_RISING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh8:
	adrp	x11, _IIO_EV_DIR_EITHER@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IIO_EV_DIR_EITHER@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
Lloh10:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
	ldr	w3, [x8]
Lloh12:
	ldr	w0, [x9]
	ldr	w1, [x20, #8]
Lloh13:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x20, x0
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iio_push_event
LBB0_3:
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ADS1015_CONV_REG,4,2           ; @ADS1015_CONV_REG
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ADS1015_CFG_COMP_MODE_TRAD,8,3 ; @ADS1015_CFG_COMP_MODE_TRAD
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_EITHER,4,2          ; @IIO_EV_DIR_EITHER
	.comm	_IIO_VOLTAGE,4,2                ; @IIO_VOLTAGE
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.no_dead_strip	_ads1015_event_handler
.subsections_via_symbols
