	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsldma_ctrl_irq
_fsldma_ctrl_irq:                       ## @fsldma_ctrl_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
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	_FSL_DMA_BIG_ENDIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	16(%rsi), %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	callq	_in_be32
	jmp	LBB0_3
LBB0_2:
	callq	_in_le32
LBB0_3:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	_FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	xorl	%r14d, %r14d
	movl	$-16777216, %r13d               ## imm = 0xFF000000
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %ecx
	notl	%ecx
	andl	%ecx, %ebx
	sarl	$8, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rcx
	movq	(%rcx,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%ebx, %r13d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rdx), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_fsldma_chan_irq
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incl	%r15d
	movq	_FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_4:
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_DMA_BIG_ENDIAN,4,2         ## @FSL_DMA_BIG_ENDIAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ: gsr 0x%.8x\n"

	.comm	_FSL_DMA_MAX_CHANS_PER_DEVICE,4,2 ## @FSL_DMA_MAX_CHANS_PER_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"IRQ: chan %d\n"

	.no_dead_strip	_fsldma_ctrl_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsldma_ctrl_irq
_fsldma_ctrl_irq:                       ; @fsldma_ctrl_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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _FSL_DMA_BIG_ENDIAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FSL_DMA_BIG_ENDIAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w0, [x1, #16]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_in_be32
	b	LBB0_3
LBB0_2:
	bl	_in_le32
LBB0_3:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
Lloh5:
	adrp	x25, _FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x26, #0
	mov	w22, #0
	mov	w27, #-16777216
Lloh7:
	adrp	x23, l_.str.1@PAGE
Lloh8:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bic	w21, w21, w27
	asr	w27, w27, #8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x24, [x9, x26, lsl #3]
	cbz	x24, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	tst	w27, w21
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #4]
	ldr	w2, [x24]
	mov	x1, x23
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x24
	bl	_fsldma_chan_irq
	add	w22, w22, #1
	ldr	w8, [x25]
	b	LBB0_5
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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
	b	_IRQ_RETVAL
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_DMA_BIG_ENDIAN,4,2         ; @FSL_DMA_BIG_ENDIAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ: gsr 0x%.8x\n"

	.comm	_FSL_DMA_MAX_CHANS_PER_DEVICE,4,2 ; @FSL_DMA_MAX_CHANS_PER_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"IRQ: chan %d\n"

	.no_dead_strip	_fsldma_ctrl_irq
.subsections_via_symbols
