	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function azx_pcm_close
_azx_pcm_close:                         ## @azx_pcm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	16(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_get_azx_dev
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_azx_release_device
	movl	(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	*(%rdi)
	movl	(%rbx), %edi
	callq	_snd_hda_power_down
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_azx_pcm_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function azx_pcm_close
_azx_pcm_close:                         ; @azx_pcm_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldp	x21, x9, [x0, #8]
	ldr	x22, [x9, x8, lsl #3]
	mov	x0, x19
	bl	_get_azx_dev
	mov	x23, x0
	mov	x0, x21
	bl	_mutex_lock
	add	x24, x21, #4
	mov	x0, x24
	bl	_spin_lock_irqsave
	stp	xzr, xzr, [x23]
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	bl	_azx_release_device
	ldr	x8, [x22]
	ldr	w1, [x20]
	mov	x0, x22
	mov	x2, x19
	blr	x8
	ldr	w0, [x20]
	bl	_snd_hda_power_down
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_azx_pcm_close
.subsections_via_symbols
