	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c8sectpfe_remove
_c8sectpfe_remove:                      ## @c8sectpfe_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
	callq	_platform_get_drvdata
	movq	%rax, %r14
	leaq	48(%rax), %rdi
	callq	_wait_for_completion
	movq	40(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_c8sectpfe_tuner_unregister_frontend
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_free_input_block
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_c8sectpfe_debugfs_exit
	movl	24(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_DMA_CPU_RUN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rsi
	addq	16(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_5:
	movq	_SYS_INPUT_CLKEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rsi
	addq	16(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_7:
	movq	_SYS_OTHER_CLKEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rsi
	addq	16(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_9:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_clk_disable_unprepare
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopping memdma SLIM core\n"

	.comm	_DMA_CPU_RUN,8,3                ## @DMA_CPU_RUN
	.comm	_SYS_INPUT_CLKEN,8,3            ## @SYS_INPUT_CLKEN
	.comm	_SYS_OTHER_CLKEN,8,3            ## @SYS_OTHER_CLKEN
	.no_dead_strip	_c8sectpfe_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c8sectpfe_remove
_c8sectpfe_remove:                      ; @c8sectpfe_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
	bl	_platform_get_drvdata
	mov	x19, x0
	add	x0, x0, #48
	bl	_wait_for_completion
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_c8sectpfe_tuner_unregister_frontend
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	bl	_free_input_block
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_c8sectpfe_debugfs_exit
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x20, _DMA_CPU_RUN@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DMA_CPU_RUN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_5:
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x20, _SYS_INPUT_CLKEN@GOTPAGE
Lloh5:
	ldr	x20, [x20, _SYS_INPUT_CLKEN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_7:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x20, _SYS_OTHER_CLKEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SYS_OTHER_CLKEN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_9:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_clk_disable_unprepare
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopping memdma SLIM core\n"

	.comm	_DMA_CPU_RUN,8,3                ; @DMA_CPU_RUN
	.comm	_SYS_INPUT_CLKEN,8,3            ; @SYS_INPUT_CLKEN
	.comm	_SYS_OTHER_CLKEN,8,3            ; @SYS_OTHER_CLKEN
	.no_dead_strip	_c8sectpfe_remove
.subsections_via_symbols
