	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xadc_axi_interrupt_handler
_xadc_axi_interrupt_handler:            ## @xadc_axi_interrupt_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	_XADC_AXI_REG_IPISR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	callq	_xadc_read_reg
	movq	_XADC_AXI_REG_IPIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_xadc_read_reg
	movl	-28(%rbp), %edx
	andl	-32(%rbp), %edx
	movl	%edx, -28(%rbp)
	je	LBB0_1
## %bb.2:
	movq	_XADC_AXI_INT_EOS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_iio_trigger_poll
	movl	-28(%rbp), %edx
LBB0_5:
	movq	_XADC_AXI_INT_ALARM_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	%edx, %eax
	shrl	%eax
	andl	$7, %eax
	movl	%edx, %ecx
	andl	$1, %ecx
	leal	(%rax,%rcx,8), %eax
	shrl	$6, %edx
	andl	$240, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_xadc_handle_events
	movl	-28(%rbp), %edx
LBB0_7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_xadc_write_reg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XADC_AXI_REG_IPISR,4,2         ## @XADC_AXI_REG_IPISR
	.comm	_XADC_AXI_REG_IPIER,4,2         ## @XADC_AXI_REG_IPIER
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_XADC_AXI_INT_EOS,4,2           ## @XADC_AXI_INT_EOS
	.comm	_XADC_AXI_INT_ALARM_MASK,4,2    ## @XADC_AXI_INT_ALARM_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_xadc_axi_interrupt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xadc_axi_interrupt_handler
_xadc_axi_interrupt_handler:            ; @xadc_axi_interrupt_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _XADC_AXI_REG_IPISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XADC_AXI_REG_IPISR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_xadc_read_reg
Lloh2:
	adrp	x8, _XADC_AXI_REG_IPIER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XADC_AXI_REG_IPIER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_xadc_read_reg
	ldp	w8, w9, [sp, #8]
	ands	w2, w9, w8
	str	w2, [sp, #12]
	b.eq	LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _XADC_AXI_INT_EOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XADC_AXI_INT_EOS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_iio_trigger_poll
	ldr	w2, [sp, #12]
LBB0_4:
Lloh8:
	adrp	x8, _XADC_AXI_INT_ALARM_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XADC_AXI_INT_ALARM_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
	ubfiz	w8, w2, #3, #1
	bfxil	w8, w2, #1, #3
	lsr	w9, w2, #6
	and	w9, w9, #0xf0
	orr	w1, w8, w9
	mov	x0, x20
	bl	_xadc_handle_events
	ldr	w2, [sp, #12]
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_xadc_write_reg
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XADC_AXI_REG_IPISR,4,2         ; @XADC_AXI_REG_IPISR
	.comm	_XADC_AXI_REG_IPIER,4,2         ; @XADC_AXI_REG_IPIER
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_XADC_AXI_INT_EOS,4,2           ; @XADC_AXI_INT_EOS
	.comm	_XADC_AXI_INT_ALARM_MASK,4,2    ; @XADC_AXI_INT_ALARM_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_xadc_axi_interrupt_handler
.subsections_via_symbols
