	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usX2Y_pcm_hw_free
_snd_usX2Y_pcm_hw_free:                 ## @snd_usX2Y_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	callq	_mutex_lock
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_snd_printdd
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	(%r14), %rcx
	jne	LBB0_5
## %bb.1:
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	leaq	8(%rbx), %rdi
	movq	_state_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_usX2Y_urbs_release
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STATE_PREPARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	(%rax,%rcx,8), %rdi
	addq	$8, %rdi
	callq	_atomic_read
	movq	_state_PREPARED@GOTPCREL(%rip), %rcx
	movq	%rbx, %r15
	cmpq	(%rcx), %rax
	jge	LBB0_8
LBB0_7:
	leaq	8(%r15), %rdi
	movq	_state_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	%r15, %rdi
	callq	_usX2Y_urbs_release
LBB0_8:
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_free_pages         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_usX2Y_hw_free(%p)\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_state_STOPPED,4,2              ## @state_STOPPED
	.comm	_SNDRV_PCM_STATE_PREPARED,8,3   ## @SNDRV_PCM_STATE_PREPARED
	.comm	_state_PREPARED,8,3             ## @state_PREPARED
	.no_dead_strip	_snd_usX2Y_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 snd_usX2Y_pcm_hw_free
_snd_usX2Y_pcm_hw_free:                 ; @snd_usX2Y_pcm_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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x0, [x20]
	bl	_mutex_lock
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_snd_printdd
Lloh2:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldr	x10, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh5:
	adrp	x22, _state_STOPPED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _state_STOPPED@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.1:
Lloh7:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
	add	x0, x20, #8
	ldr	w1, [x22]
	bl	_atomic_set
	mov	x0, x20
	bl	_usX2Y_urbs_release
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _SNDRV_PCM_STATE_PREPARED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SNDRV_PCM_STATE_PREPARED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
	b	LBB0_7
LBB0_5:
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #8
	bl	_atomic_read
Lloh13:
	adrp	x8, _state_PREPARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _state_PREPARED@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	mov	x21, x20
	cmp	x0, x8
	b.ge	LBB0_7
LBB0_6:
	add	x0, x21, #8
	ldr	w1, [x22]
	bl	_atomic_set
	mov	x0, x21
	bl	_usX2Y_urbs_release
LBB0_7:
	ldr	x0, [x20]
	bl	_mutex_unlock
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_usX2Y_hw_free(%p)\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_state_STOPPED,4,2              ; @state_STOPPED
	.comm	_SNDRV_PCM_STATE_PREPARED,8,3   ; @SNDRV_PCM_STATE_PREPARED
	.comm	_state_PREPARED,8,3             ; @state_PREPARED
	.no_dead_strip	_snd_usX2Y_pcm_hw_free
.subsections_via_symbols
