	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmp_pdma_remove
_mmp_pdma_remove:                       ## @mmp_pdma_remove
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %r15
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_platform_get_irq
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setg	%cl
	addl	%ecx, %r12d
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.3:
	cmpl	%eax, %r12d
	jne	LBB0_8
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r12
	addq	%r13, %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_platform_get_irq
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_devm_free_irq
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_7:
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_devm_free_irq
LBB0_9:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_dma_async_device_unregister
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mmp_pdma_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmp_pdma_remove
_mmp_pdma_remove:                       ; @mmp_pdma_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w22, #0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_platform_get_irq
	cmp	w0, #0
	cinc	w22, w22, gt
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_2
; %bb.3:
	cmp	w22, w8
	b.ne	LBB0_8
; %bb.4:
	cbz	w22, LBB0_9
; %bb.5:
	mov	x23, #0
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x22, x8, x23
	mov	x0, x20
	mov	x1, x21
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_devm_free_irq
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x23, x23, #16
	cmp	x21, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_7:
	cbz	w8, LBB0_9
LBB0_8:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_devm_free_irq
LBB0_9:
	add	x0, x19, #4
	bl	_dma_async_device_unregister
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mmp_pdma_remove
.subsections_via_symbols
