	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_dma_irq
_s3c24xx_dma_irq:                       ## @s3c24xx_dma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %r14
	movq	8(%rsi), %rax
	movq	(%rax), %rdi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_s3c24xx_dma_terminate_phy
	jmp	LBB0_13
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_list_is_last
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.10:
	leaq	16(%rbx), %rdi
	callq	_vchan_cyclic_callback
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_11
LBB0_4:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.5:
	leaq	16(%rbx), %rdi
	callq	_vchan_cyclic_callback
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_s3c24xx_dma_start_next_sg
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_13:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	$0, 8(%r14)
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_vchan_cookie_complete
	movq	%r14, %rdi
	callq	_vchan_next_desc
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_s3c24xx_dma_start_next_txd
	jmp	LBB0_12
LBB0_9:
	callq	_s3c24xx_dma_phy_free
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt on channel %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"interrupt on unused channel %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s3c24xx_dma_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_dma_irq
_s3c24xx_dma_irq:                       ; @s3c24xx_dma_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldp	x8, x19, [x1, #8]
	ldr	x0, [x8]
	ldr	w2, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	ldr	w2, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_s3c24xx_dma_terminate_phy
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_spin_lock
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_9
; %bb.3:
	ldr	x0, [x20, #8]
	mov	x1, x20
	bl	_list_is_last
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.5:
	add	x0, x20, #16
	bl	_vchan_cyclic_callback
	ldr	x8, [x20]
	str	x8, [x20, #8]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x8, [x20, #8]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, x20, #16
	bl	_vchan_cyclic_callback
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_s3c24xx_dma_start_next_sg
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
LBB0_10:
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	str	xzr, [x19, #8]
	add	x0, x20, #16
	bl	_vchan_cookie_complete
	mov	x0, x19
	bl	_vchan_next_desc
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_s3c24xx_dma_start_next_txd
	b	LBB0_9
LBB0_13:
	mov	x0, x19
	bl	_s3c24xx_dma_phy_free
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt on channel %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"interrupt on unused channel %d\n"

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