	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_edma_irq_request
_dw_edma_irq_request:                   ## @dw_edma_irq_request
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	$1, -80(%rbp)
	movq	$1, -72(%rbp)
	movl	16(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_to_pci_dev
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	_dw_edma_interrupt_common@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	32(%r12), %ecx
	movq	24(%r12), %r8
	movl	%eax, %edi
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movl	$0, 16(%r12)
	jmp	LBB0_19
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_5:
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rbx
	addq	(%r12), %rbx
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	(%r15), %rax
	addq	%rsi, %rax
	cmpq	%rbx, %rax
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dw_edma_dec_irq_alloc
	movq	8(%r12), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dw_edma_dec_irq_alloc
	cmpl	$0, -44(%rbp)
	jne	LBB0_6
## %bb.8:
	movq	(%r13), %rsi
LBB0_9:
	movq	(%r12), %rdx
	leaq	-80(%rbp), %rdi
	callq	_dw_edma_add_irq_mask
	movq	(%r15), %rsi
	movq	8(%r12), %rdx
	leaq	-72(%rbp), %rdi
	callq	_dw_edma_add_irq_mask
	movq	(%r15), %rax
	xorl	%r14d, %r14d
	movl	$0, %ebx
	addq	(%r13), %rax
	jle	LBB0_16
## %bb.10:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movq	_dw_edma_interrupt_read@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%r13)
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_dw_edma_interrupt_write@GOTPCREL(%rip), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rcx), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	32(%r12), %ecx
	movq	24(%r12), %r8
	addq	%r14, %r8
	movl	%eax, %edi
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movq	24(%r12), %rsi
	addq	%r14, %rsi
	movl	%eax, %edi
	callq	_get_cached_msi_msg
	incq	%rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rbx, %rax
	jg	LBB0_11
## %bb.15:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%ebx, 16(%r12)
	jmp	LBB0_20
LBB0_17:
	movq	%rbx, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	24(%r12), %rsi
	movl	%eax, %edi
	callq	_get_cached_msi_msg
	jmp	LBB0_20
LBB0_18:
	movl	%ebx, 16(%r12)
LBB0_19:
	movl	%eax, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dw_edma_interrupt_common,4,2   ## @dw_edma_interrupt_common
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_dw_edma_interrupt_write,4,2    ## @dw_edma_interrupt_write
	.comm	_dw_edma_interrupt_read,4,2     ## @dw_edma_interrupt_read
	.no_dead_strip	_dw_edma_irq_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_edma_irq_request
_dw_edma_irq_request:                   ; @dw_edma_irq_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldp	x23, x19, [x0]
	mov	w8, #1
	stp	x8, x8, [sp, #16]
	ldr	w8, [x23, #16]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_to_pci_dev
	mov	w1, #0
	bl	_pci_irq_vector
Lloh0:
	adrp	x8, _dw_edma_interrupt_common@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dw_edma_interrupt_common@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x23, #32]
	ldr	x4, [x23, #24]
	bl	_request_irq
	cbz	w0, LBB0_13
; %bb.3:
	str	wzr, [x23, #16]
	b	LBB0_17
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_5:
	mov	x20, x2
	mov	x21, x1
	ldp	x9, x10, [x23]
	add	x22, x10, x9
	str	w8, [sp, #12]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21]
	ldr	x8, [x20]
	add	x8, x8, x1
	cmp	x8, x22
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x23]
	add	x0, sp, #12
	mov	x1, x21
	bl	_dw_edma_dec_irq_alloc
	ldr	x2, [x23, #8]
	add	x0, sp, #12
	mov	x1, x20
	bl	_dw_edma_dec_irq_alloc
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_6
; %bb.8:
	ldr	x1, [x21]
LBB0_9:
	ldr	x2, [x23]
	add	x0, sp, #24
	bl	_dw_edma_add_irq_mask
	ldr	x1, [x20]
	ldr	x2, [x23, #8]
	add	x0, sp, #16
	bl	_dw_edma_add_irq_mask
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x8, x9, x8
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x24, #0
	mov	x22, #0
Lloh9:
	adrp	x25, _dw_edma_interrupt_write@GOTPAGE
Lloh10:
	ldr	x25, [x25, _dw_edma_interrupt_write@GOTPAGEOFF]
Lloh11:
	adrp	x26, _dw_edma_interrupt_read@GOTPAGE
Lloh12:
	ldr	x26, [x26, _dw_edma_interrupt_read@GOTPAGEOFF]
Lloh13:
	adrp	x27, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x27, [x27, _IRQF_SHARED@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_to_pci_dev
	mov	x1, x22
	bl	_pci_irq_vector
	ldr	x8, [x21]
	cmp	x8, x22
	csel	x8, x25, x26, gt
	ldr	w1, [x8]
	ldr	w2, [x27]
	ldr	w3, [x23, #32]
	ldr	x8, [x23, #24]
	add	x4, x8, x24
	bl	_request_irq
	cbnz	w0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_to_pci_dev
	mov	x1, x22
	bl	_pci_irq_vector
	ldr	x8, [x23, #24]
	add	x1, x8, x24
	bl	_get_cached_msi_msg
	add	x22, x22, #1
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x24, x24, #4
	add	x8, x9, x8
	cmp	x8, x22
	b.gt	LBB0_11
	b	LBB0_15
LBB0_13:
	mov	x0, x19
	bl	_to_pci_dev
	mov	w1, #0
	bl	_pci_irq_vector
	ldr	x1, [x23, #24]
	bl	_get_cached_msi_msg
	mov	w0, #0
	b	LBB0_17
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	w0, #0
LBB0_16:
	str	w22, [x23, #16]
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dw_edma_interrupt_common,4,2   ; @dw_edma_interrupt_common
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_dw_edma_interrupt_write,4,2    ; @dw_edma_interrupt_write
	.comm	_dw_edma_interrupt_read,4,2     ; @dw_edma_interrupt_read
	.no_dead_strip	_dw_edma_irq_request
.subsections_via_symbols
