	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_dcp_remove
_mxs_dcp_remove:                        ## @mxs_dcp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_MXS_DCP_CAPABILITY1_SHA256@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_dcp_sha256_alg@GOTPCREL(%rip), %rdi
	callq	_crypto_unregister_ahash
	movl	(%rbx), %eax
LBB0_2:
	movq	_MXS_DCP_CAPABILITY1_SHA1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_dcp_sha1_alg@GOTPCREL(%rip), %rdi
	callq	_crypto_unregister_ahash
	movl	(%rbx), %eax
LBB0_4:
	movq	_MXS_DCP_CAPABILITY1_AES128@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_dcp_aes_algs@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_crypto_unregister_algs
LBB0_6:
	movq	8(%rbx), %rax
	movq	_DCP_CHAN_HASH_SHA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_kthread_stop
	movq	8(%rbx), %rax
	movq	_DCP_CHAN_CRYPTO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_kthread_stop
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
	movq	_global_sdcp@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXS_DCP_CAPABILITY1_SHA256,4,2 ## @MXS_DCP_CAPABILITY1_SHA256
	.comm	_dcp_sha256_alg,4,2             ## @dcp_sha256_alg
	.comm	_MXS_DCP_CAPABILITY1_SHA1,4,2   ## @MXS_DCP_CAPABILITY1_SHA1
	.comm	_dcp_sha1_alg,4,2               ## @dcp_sha1_alg
	.comm	_MXS_DCP_CAPABILITY1_AES128,4,2 ## @MXS_DCP_CAPABILITY1_AES128
	.comm	_dcp_aes_algs,4,2               ## @dcp_aes_algs
	.comm	_DCP_CHAN_HASH_SHA,8,3          ## @DCP_CHAN_HASH_SHA
	.comm	_DCP_CHAN_CRYPTO,8,3            ## @DCP_CHAN_CRYPTO
	.comm	_global_sdcp,8,3                ## @global_sdcp
	.no_dead_strip	_mxs_dcp_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_dcp_remove
_mxs_dcp_remove:                        ; @mxs_dcp_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MXS_DCP_CAPABILITY1_SHA256@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MXS_DCP_CAPABILITY1_SHA256@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, _dcp_sha256_alg@GOTPAGE
Lloh4:
	ldr	x0, [x0, _dcp_sha256_alg@GOTPAGEOFF]
	bl	_crypto_unregister_ahash
	ldr	w8, [x20]
LBB0_2:
Lloh5:
	adrp	x9, _MXS_DCP_CAPABILITY1_SHA1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MXS_DCP_CAPABILITY1_SHA1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, _dcp_sha1_alg@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dcp_sha1_alg@GOTPAGEOFF]
	bl	_crypto_unregister_ahash
	ldr	w8, [x20]
LBB0_4:
Lloh10:
	adrp	x9, _MXS_DCP_CAPABILITY1_AES128@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MXS_DCP_CAPABILITY1_AES128@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _dcp_aes_algs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dcp_aes_algs@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	bl	_crypto_unregister_algs
LBB0_6:
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _DCP_CHAN_HASH_SHA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DCP_CHAN_HASH_SHA@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_kthread_stop
	ldr	x8, [x20, #8]
Lloh19:
	adrp	x9, _DCP_CHAN_CRYPTO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DCP_CHAN_CRYPTO@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_kthread_stop
	ldr	w0, [x20, #4]
	bl	_clk_disable_unprepare
	mov	x0, x19
	mov	x1, #0
	bl	_platform_set_drvdata
Lloh22:
	adrp	x8, _global_sdcp@GOTPAGE
Lloh23:
	ldr	x8, [x8, _global_sdcp@GOTPAGEOFF]
Lloh24:
	str	xzr, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MXS_DCP_CAPABILITY1_SHA256,4,2 ; @MXS_DCP_CAPABILITY1_SHA256
	.comm	_dcp_sha256_alg,4,2             ; @dcp_sha256_alg
	.comm	_MXS_DCP_CAPABILITY1_SHA1,4,2   ; @MXS_DCP_CAPABILITY1_SHA1
	.comm	_dcp_sha1_alg,4,2               ; @dcp_sha1_alg
	.comm	_MXS_DCP_CAPABILITY1_AES128,4,2 ; @MXS_DCP_CAPABILITY1_AES128
	.comm	_dcp_aes_algs,4,2               ; @dcp_aes_algs
	.comm	_DCP_CHAN_HASH_SHA,8,3          ; @DCP_CHAN_HASH_SHA
	.comm	_DCP_CHAN_CRYPTO,8,3            ; @DCP_CHAN_CRYPTO
	.comm	_global_sdcp,8,3                ; @global_sdcp
	.no_dead_strip	_mxs_dcp_remove
.subsections_via_symbols
