	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_ac97c_playback_open
_atmel_ac97c_playback_open:             ## @atmel_ac97c_playback_open
	.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
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%r14), %rbx
	movq	_opened_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	incl	24(%r15)
	movq	_atmel_ac97c_hw@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbx)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
LBB0_2:
	movl	(%r15), %ecx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	%rax, (%rbx)
LBB0_4:
	movq	_opened_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r14, 8(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_opened_mutex,4,2               ## @opened_mutex
	.comm	_atmel_ac97c_hw,24,3            ## @atmel_ac97c_hw
	.no_dead_strip	_atmel_ac97c_playback_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_ac97c_playback_open
_atmel_ac97c_playback_open:             ; @atmel_ac97c_playback_open
	.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	x21, [x19]
Lloh0:
	adrp	x0, _opened_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _opened_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w8, [x20, #24]
	add	w8, w8, #1
Lloh2:
	adrp	x9, _atmel_ac97c_hw@GOTPAGE
Lloh3:
	ldr	x9, [x9, _atmel_ac97c_hw@GOTPAGEOFF]
	str	w8, [x20, #24]
	ldr	q0, [x9]
	ldr	x8, [x9, #16]
	str	x8, [x21, #16]
	str	q0, [x21]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	stp	x8, x8, [x21, #8]
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w9, #1
	lsl	x8, x9, x8
	str	x8, [x21]
LBB0_4:
Lloh4:
	adrp	x0, _opened_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _opened_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	str	x19, [x20, #8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_opened_mutex,4,2               ; @opened_mutex
	.comm	_atmel_ac97c_hw,24,3            ; @atmel_ac97c_hw
	.no_dead_strip	_atmel_ac97c_playback_open
.subsections_via_symbols
