	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs5535audio_hw_free
_snd_cs5535audio_hw_free:               ## @snd_cs5535audio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %r15
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.1:
	movl	(%r14), %edi
	cmpq	%rbx, 8(%r14)
	jne	LBB0_2
## %bb.3:
	movq	_AC97_PCM_FRONT_DAC_RATE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_AC97_PCM_LR_ADC_RATE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_snd_ac97_update_power
	movq	$0, (%r15)
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_cs5535audio_clear_dma_packets
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_free_pages         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_PCM_FRONT_DAC_RATE,4,2    ## @AC97_PCM_FRONT_DAC_RATE
	.comm	_AC97_PCM_LR_ADC_RATE,4,2       ## @AC97_PCM_LR_ADC_RATE
	.no_dead_strip	_snd_cs5535audio_hw_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs5535audio_hw_free
_snd_cs5535audio_hw_free:               ; @snd_cs5535audio_hw_free
	.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	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x21, [x8]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _AC97_PCM_FRONT_DAC_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC97_PCM_FRONT_DAC_RATE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x10, _AC97_PCM_LR_ADC_RATE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AC97_PCM_LR_ADC_RATE@GOTPAGEOFF]
	cmp	x8, x19
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_snd_ac97_update_power
	str	xzr, [x21]
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_cs5535audio_clear_dma_packets
	mov	x0, x19
	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
	b	_snd_pcm_lib_free_pages
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_PCM_FRONT_DAC_RATE,4,2    ; @AC97_PCM_FRONT_DAC_RATE
	.comm	_AC97_PCM_LR_ADC_RATE,4,2       ; @AC97_PCM_LR_ADC_RATE
	.no_dead_strip	_snd_cs5535audio_hw_free
.subsections_via_symbols
