	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_interrupt_handler
_axi_dmac_interrupt_handler:            ## @axi_dmac_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	_AXI_DMAC_REG_IRQ_PENDING@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_axi_dmac_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_axi_dmac_write
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_AXI_DMAC_IRQ_EOT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_AXI_DMAC_REG_TRANSFER_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_axi_dmac_read
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_axi_dmac_transfer_done
	testl	%eax, %eax
	setne	%al
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	_AXI_DMAC_IRQ_SOT@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_7
## %bb.6:
	testb	%al, %al
	je	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_axi_dmac_start_transfer
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXI_DMAC_REG_IRQ_PENDING,4,2   ## @AXI_DMAC_REG_IRQ_PENDING
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_AXI_DMAC_IRQ_EOT,4,2           ## @AXI_DMAC_IRQ_EOT
	.comm	_AXI_DMAC_REG_TRANSFER_DONE,4,2 ## @AXI_DMAC_REG_TRANSFER_DONE
	.comm	_AXI_DMAC_IRQ_SOT,4,2           ## @AXI_DMAC_IRQ_SOT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_axi_dmac_interrupt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_interrupt_handler
_axi_dmac_interrupt_handler:            ; @axi_dmac_interrupt_handler
	.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	x19, x1
Lloh0:
	adrp	x21, _AXI_DMAC_REG_IRQ_PENDING@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AXI_DMAC_REG_IRQ_PENDING@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_axi_dmac_read
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_axi_dmac_write
	mov	x0, x19
	bl	_spin_lock
Lloh2:
	adrp	x8, _AXI_DMAC_IRQ_EOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AXI_DMAC_IRQ_EOT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _AXI_DMAC_REG_TRANSFER_DONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AXI_DMAC_REG_TRANSFER_DONE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_axi_dmac_read
	mov	x1, x0
	mov	x0, x19
	bl	_axi_dmac_transfer_done
	cmp	w0, #0
	cset	w8, ne
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh10:
	adrp	x9, _AXI_DMAC_IRQ_SOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AXI_DMAC_IRQ_SOT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w20
	cmp	w9, #0
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_axi_dmac_start_transfer
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AXI_DMAC_REG_IRQ_PENDING,4,2   ; @AXI_DMAC_REG_IRQ_PENDING
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_AXI_DMAC_IRQ_EOT,4,2           ; @AXI_DMAC_IRQ_EOT
	.comm	_AXI_DMAC_REG_TRANSFER_DONE,4,2 ; @AXI_DMAC_REG_TRANSFER_DONE
	.comm	_AXI_DMAC_IRQ_SOT,4,2           ; @AXI_DMAC_IRQ_SOT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_axi_dmac_interrupt_handler
.subsections_via_symbols
