	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_int_handler
_sdma_int_handler:                      ## @sdma_int_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, %r15
	movq	_SDMA_H_INTR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rsi), %rdi
	callq	_readl_relaxed
	movq	%rax, %rbx
	movq	(%r14), %rsi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	addq	8(%r15), %rsi
	movq	%rax, %rdi
	callq	_writel_relaxed
	andq	$-2, %rbx
	movq	%rbx, -48(%rbp)
	jne	LBB0_1
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_sdma_update_channel_loop
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	%r15d, %edi
	leaq	-48(%rbp), %rsi
	callq	___clear_bit
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_fls
	movl	%eax, %r15d
	movslq	%eax, %rbx
	decl	%r15d
	shlq	$4, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	leaq	(%rbx,%r13), %r12
	addq	$-12, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	-8(%rbx,%r13), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rbx, %r13
	addq	$-16, %r13
	movq	_IMX_DMA_SG_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_mxc_sdma_handle_channel_normal
	movq	%r14, %rdi
	callq	_vchan_cookie_complete
	movq	%r13, %rdi
	callq	_sdma_start_desc
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_H_INTR,8,3                ## @SDMA_H_INTR
	.comm	_IMX_DMA_SG_LOOP,4,2            ## @IMX_DMA_SG_LOOP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sdma_int_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_int_handler
_sdma_int_handler:                      ; @sdma_int_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x21, _SDMA_H_INTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SDMA_H_INTR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ands	x0, x20, #0xfffffffffffffffe
	str	x0, [sp, #8]
	b.eq	LBB0_7
; %bb.1:
Lloh2:
	adrp	x24, _IMX_DMA_SG_LOOP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IMX_DMA_SG_LOOP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_mxc_sdma_handle_channel_normal
	mov	x0, x23
	bl	_vchan_cookie_complete
	mov	x0, x22
	bl	_sdma_start_desc
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_spin_unlock
	add	x1, sp, #8
	mov	x0, x20
	bl	___clear_bit
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_fls
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x20, x8, #1
	ldr	x8, [x19]
	add	x22, x8, x20, lsl #4
	add	x21, x22, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	x23, [x22, #8]
	cbz	x23, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_sdma_update_channel_loop
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_H_INTR,8,3                ; @SDMA_H_INTR
	.comm	_IMX_DMA_SG_LOOP,4,2            ; @IMX_DMA_SG_LOOP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sdma_int_handler
.subsections_via_symbols
