	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_interrupt
_at91_adc_interrupt:                    ## @at91_adc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	_AT91_SAMA5D2_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_at91_adc_readl
	movq	%rax, %rbx
	movq	_AT91_SAMA5D2_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_at91_adc_readl
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movq	_AT91_SAMA5D2_IER_PEN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_at91_adc_pen_detect_interrupt
	jmp	LBB0_11
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_4:
	movq	_AT91_SAMA5D2_IER_NOPEN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_at91_adc_no_pen_detect_interrupt
	jmp	LBB0_11
LBB0_6:
	movq	_AT91_SAMA5D2_ISR_PENS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_9
## %bb.7:
	movq	_AT91_SAMA5D2_IER_XRDY@GOTPCREL(%rip), %rcx
	movq	_AT91_SAMA5D2_IER_YRDY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_AT91_SAMA5D2_IER_PRDY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, %ecx
	andl	%ebx, %ecx
	cmpl	%edx, %ecx
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_at91_adc_touch_data_handler
	jmp	LBB0_11
LBB0_9:
	testl	%ebx, %eax
	je	LBB0_13
## %bb.10:
	movq	_AT91_SAMA5D2_XPOSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_at91_adc_readl
	movq	_AT91_SAMA5D2_YPOSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_at91_adc_readl
	movq	_AT91_SAMA5D2_PRESSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_at91_adc_readl
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_12:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_iio_buffer_enabled
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	cmpq	$0, 24(%r12)
	je	LBB0_20
LBB0_15:
	movq	%r14, %rdi
	callq	_iio_buffer_enabled
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpq	$0, 24(%r12)
	je	LBB0_18
## %bb.17:
	movl	%r15d, %edi
	callq	_disable_irq_nosync
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_11
LBB0_18:
	movq	%r14, %rdi
	callq	_iio_buffer_enabled
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.19:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_at91_adc_readl
	movq	%rax, 16(%r12)
	movl	$1, (%r12)
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_12
LBB0_20:
	movl	%r15d, %edi
	callq	_disable_irq_nosync
	movl	(%r14), %edi
	callq	_iio_trigger_poll
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_SAMA5D2_ISR,4,2           ## @AT91_SAMA5D2_ISR
	.comm	_AT91_SAMA5D2_IMR,4,2           ## @AT91_SAMA5D2_IMR
	.comm	_AT91_SAMA5D2_IER_XRDY,4,2      ## @AT91_SAMA5D2_IER_XRDY
	.comm	_AT91_SAMA5D2_IER_YRDY,4,2      ## @AT91_SAMA5D2_IER_YRDY
	.comm	_AT91_SAMA5D2_IER_PRDY,4,2      ## @AT91_SAMA5D2_IER_PRDY
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_AT91_SAMA5D2_IER_PEN,4,2       ## @AT91_SAMA5D2_IER_PEN
	.comm	_AT91_SAMA5D2_IER_NOPEN,4,2     ## @AT91_SAMA5D2_IER_NOPEN
	.comm	_AT91_SAMA5D2_ISR_PENS,4,2      ## @AT91_SAMA5D2_ISR_PENS
	.comm	_AT91_SAMA5D2_XPOSR,4,2         ## @AT91_SAMA5D2_XPOSR
	.comm	_AT91_SAMA5D2_YPOSR,4,2         ## @AT91_SAMA5D2_YPOSR
	.comm	_AT91_SAMA5D2_PRESSR,4,2        ## @AT91_SAMA5D2_PRESSR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected irq occurred\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_at91_adc_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_interrupt
_at91_adc_interrupt:                    ; @at91_adc_interrupt
	.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	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _AT91_SAMA5D2_ISR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_SAMA5D2_ISR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_at91_adc_readl
	mov	x22, x0
Lloh3:
	adrp	x8, _AT91_SAMA5D2_IMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91_SAMA5D2_IMR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
	tst	w0, w22
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _AT91_SAMA5D2_IER_PEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AT91_SAMA5D2_IER_PEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_at91_adc_pen_detect_interrupt
	b	LBB0_10
LBB0_3:
Lloh9:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _AT91_SAMA5D2_IER_NOPEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT91_SAMA5D2_IER_NOPEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_at91_adc_no_pen_detect_interrupt
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, _AT91_SAMA5D2_IER_XRDY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AT91_SAMA5D2_IER_XRDY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _AT91_SAMA5D2_IER_YRDY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AT91_SAMA5D2_IER_YRDY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _AT91_SAMA5D2_IER_PRDY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AT91_SAMA5D2_IER_PRDY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _AT91_SAMA5D2_ISR_PENS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AT91_SAMA5D2_ISR_PENS@GOTPAGEOFF]
	orr	w9, w8, w9
Lloh25:
	ldr	w8, [x10]
	and	w8, w8, w22
	and	w10, w9, w22
	cmp	w8, #0
	ccmp	w10, w9, #0, ne
	b.eq	LBB0_9
; %bb.7:
	cbz	w8, LBB0_12
; %bb.8:
Lloh26:
	adrp	x8, _AT91_SAMA5D2_XPOSR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AT91_SAMA5D2_XPOSR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
Lloh29:
	adrp	x8, _AT91_SAMA5D2_YPOSR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AT91_SAMA5D2_YPOSR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
Lloh32:
	adrp	x8, _AT91_SAMA5D2_PRESSR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AT91_SAMA5D2_PRESSR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_at91_adc_touch_data_handler
LBB0_10:
Lloh35:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
LBB0_12:
	mov	x0, x20
	bl	_iio_buffer_enabled
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_19
LBB0_14:
	mov	x0, x20
	bl	_iio_buffer_enabled
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_disable_irq_nosync
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_10
LBB0_17:
	mov	x0, x20
	bl	_iio_buffer_enabled
	cbnz	x0, LBB0_10
; %bb.18:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
	str	x0, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #4
	bl	_wake_up_interruptible
	b	LBB0_10
LBB0_19:
	mov	x0, x21
	bl	_disable_irq_nosync
	ldr	w0, [x20]
	bl	_iio_trigger_poll
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_SAMA5D2_ISR,4,2           ; @AT91_SAMA5D2_ISR
	.comm	_AT91_SAMA5D2_IMR,4,2           ; @AT91_SAMA5D2_IMR
	.comm	_AT91_SAMA5D2_IER_XRDY,4,2      ; @AT91_SAMA5D2_IER_XRDY
	.comm	_AT91_SAMA5D2_IER_YRDY,4,2      ; @AT91_SAMA5D2_IER_YRDY
	.comm	_AT91_SAMA5D2_IER_PRDY,4,2      ; @AT91_SAMA5D2_IER_PRDY
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_AT91_SAMA5D2_IER_PEN,4,2       ; @AT91_SAMA5D2_IER_PEN
	.comm	_AT91_SAMA5D2_IER_NOPEN,4,2     ; @AT91_SAMA5D2_IER_NOPEN
	.comm	_AT91_SAMA5D2_ISR_PENS,4,2      ; @AT91_SAMA5D2_ISR_PENS
	.comm	_AT91_SAMA5D2_XPOSR,4,2         ; @AT91_SAMA5D2_XPOSR
	.comm	_AT91_SAMA5D2_YPOSR,4,2         ; @AT91_SAMA5D2_YPOSR
	.comm	_AT91_SAMA5D2_PRESSR,4,2        ; @AT91_SAMA5D2_PRESSR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected irq occurred\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_at91_adc_interrupt
.subsections_via_symbols
