	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_codec_close
_soc_codec_close:                       ## @soc_codec_close
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rbx
	movq	16(%r14), %r13
	movq	_pcm_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, 48(%rbx)
	leaq	48(%r13), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	$0, 8(%rbx)
	leaq	8(%r13), %rdx
LBB0_3:
	movq	$0, (%rdx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	$0, 40(%rbx)
	movq	$0, 40(%r13)
LBB0_6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	decl	(%rdx)
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_snd_soc_dai_digital_mute
LBB0_8:
	movq	32(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*%rax
LBB0_10:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_12:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	*%rax
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	*%rax
LBB0_17:
	movq	$0, 24(%r13)
	movq	(%r12), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movl	$1, (%rbx)
	movq	_pmdown_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_20
LBB0_19:
	movl	16(%rbx), %esi
	movq	_SND_SOC_DAPM_STREAM_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_soc_dapm_stream_event
LBB0_20:
	movq	_pcm_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcm_mutex,4,2                  ## @pcm_mutex
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_pmdown_time,4,2                ## @pmdown_time
	.comm	_SND_SOC_DAPM_STREAM_STOP,4,2   ## @SND_SOC_DAPM_STREAM_STOP
	.no_dead_strip	_soc_codec_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_codec_close
_soc_codec_close:                       ; @soc_codec_close
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldp	x26, x9, [x8]
	ldr	x19, [x9]
	ldp	x20, x23, [x26, #8]
	ldp	x21, x25, [x19, #8]
Lloh0:
	adrp	x0, _pcm_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pcm_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x22]
Lloh2:
	adrp	x24, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20, #48]
	add	x10, x23, #48
	b	LBB0_3
LBB0_2:
	str	xzr, [x20, #8]
	add	x10, x23, #8
LBB0_3:
	str	xzr, [x10]
	ldr	x10, [x20, #48]
	cbnz	x10, LBB0_6
; %bb.4:
	ldr	x10, [x20, #8]
	cbnz	x10, LBB0_6
; %bb.5:
	str	xzr, [x20, #40]
	str	xzr, [x23, #40]
LBB0_6:
	ldr	w10, [x21]
	sub	w10, w10, #1
	str	w10, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #1
	bl	_snd_soc_dai_digital_mute
LBB0_8:
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, x23
	blr	x8
LBB0_10:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x20
	blr	x8
LBB0_12:
	ldr	x8, [x26]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x22
	blr	x8
LBB0_15:
	ldr	x8, [x25]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x22
	blr	x8
LBB0_17:
	str	xzr, [x23, #24]
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x20]
Lloh4:
	adrp	x8, _pmdown_time@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pmdown_time@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
	b	LBB0_20
LBB0_19:
	ldr	w1, [x20, #16]
Lloh7:
	adrp	x8, _SND_SOC_DAPM_STREAM_STOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SND_SOC_DAPM_STREAM_STOP@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_snd_soc_dapm_stream_event
LBB0_20:
Lloh10:
	adrp	x0, _pcm_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _pcm_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pcm_mutex,4,2                  ; @pcm_mutex
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_pmdown_time,4,2                ; @pmdown_time
	.comm	_SND_SOC_DAPM_STREAM_STOP,4,2   ; @SND_SOC_DAPM_STREAM_STOP
	.no_dead_strip	_soc_codec_close
.subsections_via_symbols
