	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_fdma_irq_handler
_st_fdma_irq_handler:                   ## @st_fdma_irq_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rsi), %rbx
	movq	_FDMA_INT_STA_OFST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_fdma_read
	testq	%rax, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	_FDMA_INT_STA_CH@GOTPCREL(%rip), %r14
	movq	_FDMA_INT_STA_ERR@GOTPCREL(%rip), %r15
	movq	%rax, %r12
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_list_del
	movq	8(%rbx), %rdi
	callq	_vchan_cookie_complete
	movq	$0, 8(%rbx)
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_st_fdma_xfer_desc
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	shrq	$2, %rax
	addq	$24, %rbx
	cmpq	$3, %r12
	movq	%rax, %r12
	jbe	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	orq	(%r14), %rax
	testq	%r12, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_st_fdma_ch_sta_update
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%rdi)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_vchan_cyclic_callback
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_10:
	movq	_FDMA_INT_CLR_OFST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_fdma_write
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_FDMA_INT_STA_OFST,4,2          ## @FDMA_INT_STA_OFST
	.comm	_FDMA_INT_STA_CH,8,3            ## @FDMA_INT_STA_CH
	.comm	_FDMA_INT_STA_ERR,8,3           ## @FDMA_INT_STA_ERR
	.comm	_DMA_COMPLETE,4,2               ## @DMA_COMPLETE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_FDMA_INT_CLR_OFST,4,2          ## @FDMA_INT_CLR_OFST
	.no_dead_strip	_st_fdma_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_fdma_irq_handler
_st_fdma_irq_handler:                   ; @st_fdma_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x21, [x1]
Lloh3:
	adrp	x8, _FDMA_INT_STA_OFST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDMA_INT_STA_OFST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fdma_read
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.1:
Lloh6:
	adrp	x24, _FDMA_INT_STA_CH@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FDMA_INT_STA_CH@GOTPAGEOFF]
Lloh8:
	adrp	x25, _FDMA_INT_STA_ERR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FDMA_INT_STA_ERR@GOTPAGEOFF]
Lloh10:
	adrp	x26, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x26, [x26, _IRQ_HANDLED@GOTPAGEOFF]
	mov	x22, x20
Lloh12:
	adrp	x27, _DMA_COMPLETE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _DMA_COMPLETE@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_list_del
	ldr	x0, [x21, #8]
	bl	_vchan_cookie_complete
	str	xzr, [x21, #8]
	ldr	w8, [x27]
	str	w8, [x21, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_st_fdma_xfer_desc
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_spin_unlock
	ldr	w23, [x26]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsr	x8, x22, #2
	add	x21, x21, #24
	cmp	x22, #3
	mov	x22, x8
	b.ls	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	orr	x8, x9, x8
	tst	x8, x22
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x21
	mov	x1, x22
	bl	_st_fdma_ch_sta_update
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_vchan_cyclic_callback
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_4
	b	LBB0_3
LBB0_10:
Lloh14:
	adrp	x8, _FDMA_INT_CLR_OFST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FDMA_INT_CLR_OFST@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_fdma_write
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_FDMA_INT_STA_OFST,4,2          ; @FDMA_INT_STA_OFST
	.comm	_FDMA_INT_STA_CH,8,3            ; @FDMA_INT_STA_CH
	.comm	_FDMA_INT_STA_ERR,8,3           ; @FDMA_INT_STA_ERR
	.comm	_DMA_COMPLETE,4,2               ; @DMA_COMPLETE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_FDMA_INT_CLR_OFST,4,2          ; @FDMA_INT_CLR_OFST
	.no_dead_strip	_st_fdma_irq_handler
.subsections_via_symbols
