	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_rl_interrupt
_at91_adc_rl_interrupt:                 ## @at91_adc_rl_interrupt
	.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	%rsi, %r15
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	24(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_adc_readl
	movl	%eax, %r13d
	movq	_AT91_ADC_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_adc_readl
	movl	%eax, %ebx
	andl	%r13d, %ebx
	movq	40(%r14), %rdi
	decq	%rdi
	xorl	%esi, %esi
	callq	_GENMASK
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_handle_adc_eoc_trigger
LBB0_2:
	movq	_AT91RL_ADC_IER_PEN@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_AT91_ADC_MR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_at91_adc_readl
	movq	_AT91_ADC_PENDBC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_at91_adc_writel
	movq	_AT91_ADC_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_at91_adc_writel
	movq	_AT91_ADC_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_AT91RL_ADC_IER_NOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$3, %edi
	callq	_AT91_ADC_EOC
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_at91_adc_writel
	movq	24(%r14), %rax
	movl	(%rax), %r15d
	movq	_AT91_ADC_TRGR_MOD_PERIOD_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	36(%r14), %edi
	callq	_AT91_ADC_TRGR_TRGPER_
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_at91_adc_writel
	jmp	LBB0_12
LBB0_4:
	movq	_AT91RL_ADC_IER_NOPEN@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_6
## %bb.5:
	movq	_AT91_ADC_MR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_at91_adc_readl
	movl	%eax, %ebx
	movl	32(%r14), %edi
	callq	_AT91_ADC_PENDBC_
	movq	_AT91_ADC_PENDBC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_at91_adc_writel
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movq	_AT91_ADC_TRGR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_at91_adc_writel
	movq	_AT91_ADC_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r13), %ebx
	movl	$3, %edi
	callq	_AT91_ADC_EOC
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_at91_adc_writel
	movq	_AT91_ADC_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_at91_adc_writel
	movl	$0, (%r14)
	movq	16(%r14), %rdi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	16(%r14), %rdi
	callq	_input_sync
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$3, %edi
	callq	_AT91_ADC_EOC
	testl	%ebx, %eax
	je	LBB0_12
## %bb.7:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_input_report_abs
	movq	16(%r14), %rdi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	callq	_input_report_abs
	movq	16(%r14), %rdi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	movq	16(%r14), %rdi
	callq	_input_sync
	jmp	LBB0_11
LBB0_10:
	movl	$1, (%r14)
LBB0_11:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_AT91_ADC_CHAN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_adc_readl
	movq	_MAX_RLPOS_BITS@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	shll	%cl, %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_AT91_ADC_CHAN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_adc_readl
	movl	%eax, %ecx
	movl	4(%r14), %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_AT91_ADC_CHAN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_adc_readl
	movb	(%rbx), %cl
	shll	%cl, %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_AT91_ADC_CHAN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at91_adc_readl
	movl	%eax, %ecx
	movl	8(%r14), %eax
	cltd
	idivl	%ecx
	movl	%eax, 8(%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_ADC_IMR,4,2               ## @AT91_ADC_IMR
	.comm	_AT91RL_ADC_IER_PEN,4,2         ## @AT91RL_ADC_IER_PEN
	.comm	_AT91_ADC_MR,4,2                ## @AT91_ADC_MR
	.comm	_AT91_ADC_PENDBC,4,2            ## @AT91_ADC_PENDBC
	.comm	_AT91_ADC_IDR,4,2               ## @AT91_ADC_IDR
	.comm	_AT91_ADC_IER,4,2               ## @AT91_ADC_IER
	.comm	_AT91RL_ADC_IER_NOPEN,4,2       ## @AT91RL_ADC_IER_NOPEN
	.comm	_AT91_ADC_TRGR_MOD_PERIOD_TRIG,4,2 ## @AT91_ADC_TRGR_MOD_PERIOD_TRIG
	.comm	_AT91_ADC_TRGR_NONE,4,2         ## @AT91_ADC_TRGR_NONE
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_MAX_RLPOS_BITS,4,2             ## @MAX_RLPOS_BITS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_at91_adc_rl_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_rl_interrupt
_at91_adc_rl_interrupt:                 ; @at91_adc_rl_interrupt
	.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, x1
	mov	x21, x0
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w1, [x8, #4]
	bl	_at91_adc_readl
	mov	x22, x0
Lloh0:
	adrp	x8, _AT91_ADC_IMR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_ADC_IMR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
	and	w23, w0, w22
	ldr	x8, [x19, #40]
	sub	x0, x8, #1
	mov	w1, #0
	bl	_GENMASK
	tst	w0, w23
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_handle_adc_eoc_trigger
LBB0_2:
Lloh3:
	adrp	x21, _AT91RL_ADC_IER_PEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AT91RL_ADC_IER_PEN@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x20, _AT91_ADC_MR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _AT91_ADC_MR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_at91_adc_readl
Lloh7:
	adrp	x8, _AT91_ADC_PENDBC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AT91_ADC_PENDBC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_at91_adc_writel
Lloh10:
	adrp	x8, _AT91_ADC_IDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AT91_ADC_IDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_at91_adc_writel
Lloh13:
	adrp	x8, _AT91_ADC_IER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AT91_ADC_IER@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x8, _AT91RL_ADC_IER_NOPEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AT91RL_ADC_IER_NOPEN@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	w0, #3
	bl	_AT91_ADC_EOC
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_at91_adc_writel
	ldr	x8, [x19, #24]
	ldr	w20, [x8]
Lloh19:
	adrp	x8, _AT91_ADC_TRGR_MOD_PERIOD_TRIG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT91_ADC_TRGR_MOD_PERIOD_TRIG@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	ldr	w0, [x19, #36]
	bl	_AT91_ADC_TRGR_TRGPER_
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_at91_adc_writel
	b	LBB0_6
LBB0_4:
Lloh22:
	adrp	x22, _AT91RL_ADC_IER_NOPEN@GOTPAGE
Lloh23:
	ldr	x22, [x22, _AT91RL_ADC_IER_NOPEN@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.5:
Lloh24:
	adrp	x23, _AT91_ADC_MR@GOTPAGE
Lloh25:
	ldr	x23, [x23, _AT91_ADC_MR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_at91_adc_readl
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_AT91_ADC_PENDBC_
Lloh26:
	adrp	x8, _AT91_ADC_PENDBC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AT91_ADC_PENDBC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w2, w8, w20
	ldr	w1, [x23]
	mov	x0, x19
	bl	_at91_adc_writel
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _AT91_ADC_TRGR_NONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AT91_ADC_TRGR_NONE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_at91_adc_writel
Lloh32:
	adrp	x8, _AT91_ADC_IDR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AT91_ADC_IDR@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
	ldr	w22, [x22]
	mov	w0, #3
	bl	_AT91_ADC_EOC
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x20
	bl	_at91_adc_writel
Lloh35:
	adrp	x8, _AT91_ADC_IER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AT91_ADC_IER@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_at91_adc_writel
	str	wzr, [x19]
	ldr	x0, [x19, #16]
Lloh38:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	x0, [x19, #16]
	bl	_input_sync
LBB0_6:
Lloh41:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	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
LBB0_7:
	mov	w0, #3
	bl	_AT91_ADC_EOC
	tst	w0, w23
	b.eq	LBB0_6
; %bb.8:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.9:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
Lloh44:
	adrp	x8, _ABS_X@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	bl	_input_report_abs
	ldr	x0, [x19, #16]
Lloh47:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	bl	_input_report_abs
	ldr	x0, [x19, #16]
Lloh50:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	ldr	x0, [x19, #16]
	bl	_input_sync
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	mov	x0, x19
	mov	w1, #3
	bl	_AT91_ADC_CHAN
	mov	x1, x0
	mov	x0, x19
	bl	_at91_adc_readl
Lloh53:
	adrp	x20, _MAX_RLPOS_BITS@GOTPAGE
Lloh54:
	ldr	x20, [x20, _MAX_RLPOS_BITS@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w8, w0, w8
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #2
	bl	_AT91_ADC_CHAN
	mov	x1, x0
	mov	x0, x19
	bl	_at91_adc_readl
	ldr	w8, [x19, #4]
	sdiv	w8, w8, w0
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_AT91_ADC_CHAN
	mov	x1, x0
	mov	x0, x19
	bl	_at91_adc_readl
	ldr	w8, [x20]
	lsl	w8, w0, w8
	str	w8, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_AT91_ADC_CHAN
	mov	x1, x0
	mov	x0, x19
	bl	_at91_adc_readl
	ldr	w8, [x19, #8]
	sdiv	w8, w8, w0
	str	w8, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_ADC_IMR,4,2               ; @AT91_ADC_IMR
	.comm	_AT91RL_ADC_IER_PEN,4,2         ; @AT91RL_ADC_IER_PEN
	.comm	_AT91_ADC_MR,4,2                ; @AT91_ADC_MR
	.comm	_AT91_ADC_PENDBC,4,2            ; @AT91_ADC_PENDBC
	.comm	_AT91_ADC_IDR,4,2               ; @AT91_ADC_IDR
	.comm	_AT91_ADC_IER,4,2               ; @AT91_ADC_IER
	.comm	_AT91RL_ADC_IER_NOPEN,4,2       ; @AT91RL_ADC_IER_NOPEN
	.comm	_AT91_ADC_TRGR_MOD_PERIOD_TRIG,4,2 ; @AT91_ADC_TRGR_MOD_PERIOD_TRIG
	.comm	_AT91_ADC_TRGR_NONE,4,2         ; @AT91_ADC_TRGR_NONE
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_MAX_RLPOS_BITS,4,2             ; @MAX_RLPOS_BITS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_at91_adc_rl_interrupt
.subsections_via_symbols
