	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_dma_remove
_omap_dma_remove:                       ## @omap_dma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_of_dma_controller_free
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_devm_free_irq
	movq	%r14, %rdi
	addq	$20, %rdi
	callq	_dma_async_device_unregister
	cmpl	$0, 16(%r14)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	callq	_dma_pool_destroy
LBB0_6:
	movq	%r14, %rdi
	callq	_omap_dma_free
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_IRQENABLE_L0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_omap_dma_glbl_write
	cmpq	$0, 8(%r14)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQENABLE_L0,4,2               ## @IRQENABLE_L0
	.no_dead_strip	_omap_dma_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_dma_remove
_omap_dma_remove:                       ; @omap_dma_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_of_dma_controller_free
LBB0_2:
	mov	x0, x20
	mov	w1, #1
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_devm_free_irq
	add	x0, x19, #20
	bl	_dma_async_device_unregister
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_dma_pool_destroy
LBB0_5:
	mov	x0, x19
	bl	_omap_dma_free
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh0:
	adrp	x8, _IRQENABLE_L0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQENABLE_L0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_omap_dma_glbl_write
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQENABLE_L0,4,2               ; @IRQENABLE_L0
	.no_dead_strip	_omap_dma_remove
.subsections_via_symbols
