	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_dma_irq
_omap_dma_irq:                          ## @omap_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	%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, %r12
	leaq	4(%rsi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_IRQSTATUS_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_omap_dma_glbl_read
	movl	%eax, %ebx
	andl	(%r12), %ebx
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_omap_dma_get_csr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQSTATUS_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_omap_dma_glbl_write
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_omap_dma_callback
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	bsfl	%ebx, %r13d
	movl	%r13d, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	%eax, %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %r15
	testq	%r15, %r15
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQSTATUS_L1,4,2               ## @IRQSTATUS_L1
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid channel %u\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_dma_irq
_omap_dma_irq:                          ; @omap_dma_irq
	.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	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x26, _IRQSTATUS_L1@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IRQSTATUS_L1@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_omap_dma_glbl_read
	ldr	w8, [x20]
	ands	w28, w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x27, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x27, [x27, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_omap_dma_get_csr
	mov	x25, x0
	ldr	w1, [x26]
	mov	x0, x20
	mov	x2, x22
	bl	_omap_dma_glbl_write
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	bl	_omap_dma_callback
	bic	w28, w28, w22
	cbz	w28, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	rbit	w8, w28
	clz	w23, w8
	mov	x0, x23
	bl	_BIT
	mov	x22, x0
	ldr	x8, [x20, #16]
	ldr	x24, [x8, w23, uxtw #3]
	cbnz	x24, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x21
	mov	x2, x23
	bl	_dev_err
	bic	w28, w28, w22
	cbnz	w28, LBB0_3
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x27, _IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IRQ_NONE@GOTPAGEOFF]
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x27]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQSTATUS_L1,4,2               ; @IRQSTATUS_L1
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid channel %u\n"

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