	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_dma_request_irqs
_xgene_dma_request_irqs:                ## @xgene_dma_request_irqs
	.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	%rdi, %r14
	movl	12(%rdi), %edi
	movl	24(%r14), %esi
	movq	_xgene_dma_err_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %r8
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	12(%r14), %edi
	movl	24(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%ebx, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_XGENE_DMA_MAX_CHANNEL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, %eax
	jle	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	movq	_IRQ_DISABLE_UNLAZY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r14
	leaq	(%r14,%rbx), %r12
	movl	8(%r14,%rbx), %edi
	movq	%rax, %r15
	movl	(%rax), %esi
	callq	_irq_set_status_flags
	movl	12(%r14,%rbx), %edi
	movl	8(%r14,%rbx), %esi
	movq	_xgene_dma_chan_ring_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14,%rbx), %r8
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	_XGENE_DMA_MAX_CHANNEL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rax
	jl	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_8:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r14,%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_chan_err
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %edi
	movl	24(%rdx), %esi
	callq	_devm_free_irq
	testl	%r13d, %r13d
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r14
	leaq	(%r14,%rbx), %r12
	movl	8(%r14,%rbx), %edi
	movl	(%r15), %esi
	callq	_irq_clear_status_flags
	movl	8(%r14,%rbx), %esi
	movl	12(%r14,%rbx), %edi
	movq	%r12, %rdx
	callq	_devm_free_irq
	decl	%r13d
	jne	LBB0_9
LBB0_11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_xgene_dma_err_isr,4,2          ## @xgene_dma_err_isr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_error"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to register error IRQ %d\n"

	.comm	_XGENE_DMA_MAX_CHANNEL,4,2      ## @XGENE_DMA_MAX_CHANNEL
	.comm	_IRQ_DISABLE_UNLAZY,4,2         ## @IRQ_DISABLE_UNLAZY
	.comm	_xgene_dma_chan_ring_isr,4,2    ## @xgene_dma_chan_ring_isr
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register Rx IRQ %d\n"

	.no_dead_strip	_xgene_dma_request_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_dma_request_irqs
_xgene_dma_request_irqs:                ; @xgene_dma_request_irqs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #24]
Lloh0:
	adrp	x8, _xgene_dma_err_isr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xgene_dma_err_isr@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x4, l_.str@PAGE
Lloh4:
	add	x4, x4, l_.str@PAGEOFF
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #12]
	ldr	w2, [x19, #24]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_2:
Lloh7:
	adrp	x25, _XGENE_DMA_MAX_CHANNEL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _XGENE_DMA_MAX_CHANNEL@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	x23, #0
Lloh9:
	adrp	x24, _IRQ_DISABLE_UNLAZY@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IRQ_DISABLE_UNLAZY@GOTPAGEOFF]
Lloh11:
	adrp	x26, _xgene_dma_chan_ring_isr@GOTPAGE
Lloh12:
	ldr	x26, [x26, _xgene_dma_chan_ring_isr@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x21, x8, x22
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	bl	_irq_set_status_flags
	ldp	w1, w0, [x21, #8]
	ldr	w2, [x26]
	ldr	x4, [x21]
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x25]
	add	x22, x22, #32
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
	mov	x20, x0
	ldr	w2, [x21, #8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_chan_err
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #24]
	mov	x2, x19
	bl	_devm_free_irq
	cbz	w23, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x21, x8, x22
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	bl	_irq_clear_status_flags
	ldp	w1, w0, [x21, #8]
	mov	x2, x21
	bl	_devm_free_irq
	subs	w23, w23, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_xgene_dma_err_isr,4,2          ; @xgene_dma_err_isr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_error"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to register error IRQ %d\n"

	.comm	_XGENE_DMA_MAX_CHANNEL,4,2      ; @XGENE_DMA_MAX_CHANNEL
	.comm	_IRQ_DISABLE_UNLAZY,4,2         ; @IRQ_DISABLE_UNLAZY
	.comm	_xgene_dma_chan_ring_isr,4,2    ; @xgene_dma_chan_ring_isr
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register Rx IRQ %d\n"

	.no_dead_strip	_xgene_dma_request_irqs
.subsections_via_symbols
