	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davinci_mcasp_remove
_davinci_mcasp_remove:                  ## @davinci_mcasp_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
	movq	(%rdi), %rbx
	movq	_davinci_mcasp_dai@GOTPCREL(%rip), %r15
	movq	(%rbx), %rdi
	shlq	$3, %rdi
	addq	(%r15), %rdi
	callq	_snd_soc_unregister_dai
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rdi
	callq	_clk_disable
	movq	(%rbx), %rdi
	callq	_clk_put
	movq	$0, (%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	subq	%rdi, %rsi
	incq	%rsi
	callq	_release_mem_region
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_davinci_mcasp_dai,8,3          ## @davinci_mcasp_dai
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.no_dead_strip	_davinci_mcasp_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davinci_mcasp_remove
_davinci_mcasp_remove:                  ; @davinci_mcasp_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
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _davinci_mcasp_dai@GOTPAGE
Lloh1:
	ldr	x21, [x21, _davinci_mcasp_dai@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #3
	bl	_snd_soc_unregister_dai
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x20, [x8, x9, lsl #3]
	ldr	x0, [x20]
	bl	_clk_disable
	ldr	x0, [x20]
	bl	_clk_put
	str	xzr, [x20]
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	ldp	x8, x9, [x0]
	sub	x9, x9, x8
	add	x1, x9, #1
	mov	x0, x8
	bl	_release_mem_region
	mov	x0, x20
	bl	_kfree
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_davinci_mcasp_dai,8,3          ; @davinci_mcasp_dai
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.no_dead_strip	_davinci_mcasp_remove
.subsections_via_symbols
