	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function azx_pcm_hw_free
_azx_pcm_hw_free:                       ## @azx_pcm_hw_free
	.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, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_get_azx_dev
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	16(%r15), %r12
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	%rbx, %rdi
	callq	_dsp_lock
	movq	%rbx, %rdi
	callq	_dsp_is_locked
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SD_BDLPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_azx_sd_writel
	movq	_SD_BDLPU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_azx_sd_writel
	movq	_SD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_azx_sd_writel
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
LBB0_2:
	movl	(%r15), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_snd_hda_codec_cleanup
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_mark_runtime_wc
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_dsp_unlock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_free_pages         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_BDLPL,4,2                   ## @SD_BDLPL
	.comm	_SD_BDLPU,4,2                   ## @SD_BDLPU
	.comm	_SD_CTL,4,2                     ## @SD_CTL
	.no_dead_strip	_azx_pcm_hw_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function azx_pcm_hw_free
_azx_pcm_hw_free:                       ; @azx_pcm_hw_free
	.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	x22, x0
	mov	x0, x19
	bl	_get_azx_dev
	mov	x20, x0
	ldp	x8, x21, [x22, #8]
	ldr	x9, [x19]
	ldr	x23, [x8, x9, lsl #3]
	bl	_dsp_lock
	mov	x0, x20
	bl	_dsp_is_locked
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SD_BDLPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_BDLPL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_azx_sd_writel
Lloh3:
	adrp	x8, _SD_BDLPU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_BDLPU@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_azx_sd_writel
Lloh6:
	adrp	x8, _SD_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SD_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_azx_sd_writel
	stp	xzr, xzr, [x20, #16]
	str	xzr, [x20, #8]
LBB0_2:
	ldr	w0, [x22]
	mov	x1, x23
	mov	x2, x19
	bl	_snd_hda_codec_cleanup
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_mark_runtime_wc
	str	xzr, [x20]
	mov	x0, x20
	bl	_dsp_unlock
	mov	x0, x19
	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
	b	_snd_pcm_lib_free_pages
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_BDLPL,4,2                   ; @SD_BDLPL
	.comm	_SD_BDLPU,4,2                   ; @SD_BDLPU
	.comm	_SD_CTL,4,2                     ; @SD_CTL
	.no_dead_strip	_azx_pcm_hw_free
.subsections_via_symbols
