	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_adc_handle_irq
_mxs_lradc_adc_handle_irq:              ## @mxs_lradc_adc_handle_irq
	.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, %r12
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	16(%rax), %r15
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mxs_lradc_irq_mask
	testq	%rbx, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_iio_buffer_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	testq	%rbx, (%r15)
	je	LBB0_7
## %bb.4:
	movq	%r14, %r13
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %edi
	callq	_iio_trigger_poll
	movq	%r13, %rdi
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %r13
	callq	_spin_unlock_irqrestore
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	xorl	%edi, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	testq	%rbx, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_complete
LBB0_7:
	movq	%r15, %rdi
	callq	_mxs_lradc_irq_mask
	movq	(%r13), %rsi
	addq	(%r14), %rsi
	andq	%rax, %rbx
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LRADC_CTRL1,8,3                ## @LRADC_CTRL1
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mxs_lradc_adc_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_lradc_adc_handle_irq
_mxs_lradc_adc_handle_irq:              ; @mxs_lradc_adc_handle_irq
	.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	x22, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _LRADC_CTRL1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LRADC_CTRL1@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	mov	x0, x20
	bl	_mxs_lradc_irq_mask
	tst	x0, x21
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_iio_buffer_enabled
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	tst	x8, x21
	b.eq	LBB0_7
; %bb.3:
	add	x23, x19, #12
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w0, [x22]
	bl	_iio_trigger_poll
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	bl	_LRADC_CTRL1_LRADC_IRQ
	tst	x0, x21
	b.eq	LBB0_7
; %bb.6:
	add	x0, x19, #8
	bl	_complete
LBB0_7:
	mov	x0, x20
	bl	_mxs_lradc_irq_mask
	and	x0, x0, x21
	ldr	x8, [x19]
	ldr	x9, [x24]
Lloh4:
	adrp	x10, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LRADC_CTRL1,8,3                ; @LRADC_CTRL1
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mxs_lradc_adc_handle_irq
.subsections_via_symbols
