	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usX2Y_usbpcm_hw_free
_snd_usX2Y_usbpcm_hw_free:              ## @snd_usX2Y_usbpcm_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
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	movq	16(%rax,%rcx,8), %r12
	callq	_mutex_lock
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_snd_printdd
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.1:
	movslq	(%r15), %rax
	movq	(%rcx,%rax,8), %r15
	leaq	8(%rbx), %rdi
	movq	_state_STOPPED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_usX2Y_usbpcm_urbs_release
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STATE_PREPARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
LBB0_5:
	leaq	8(%r15), %rdi
	movl	(%r13), %esi
	callq	_atomic_set
	testq	%r12, %r12
	je	LBB0_10
LBB0_9:
	leaq	8(%r12), %rdi
	movq	_state_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	%r15, %rdi
	callq	_usX2Y_usbpcm_urbs_release
	movq	%r12, %r15
LBB0_10:
	movq	%r15, %rdi
	callq	_usX2Y_usbpcm_urbs_release
	jmp	LBB0_11
LBB0_6:
	movq	(%rcx,%rax,8), %rdi
	addq	$8, %rdi
	callq	_atomic_read
	movq	_state_PREPARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
## %bb.7:
	leaq	8(%rbx), %rdi
	movq	_state_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	%rbx, %r15
	testq	%r12, %r12
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	(%rbx), %rdi
	callq	_mutex_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	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_usX2Y_usbpcm_hw_free(%p)\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.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_usbpcm_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_usbpcm_hw_free
_snd_usX2Y_usbpcm_hw_free:              ; @snd_usX2Y_usbpcm_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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	ldr	x22, [x8, #16]
	bl	_mutex_lock
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_snd_printdd
Lloh4:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x10, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9, #8]
	cmp	x8, x10
	b.ne	LBB0_8
; %bb.1:
	ldrsw	x8, [x21]
	ldr	x21, [x9, x8, lsl #3]
	add	x0, x20, #8
Lloh7:
	adrp	x23, _state_STOPPED@GOTPAGE
Lloh8:
	ldr	x23, [x23, _state_STOPPED@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_atomic_set
	mov	x0, x20
	bl	_usX2Y_usbpcm_urbs_release
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SNDRV_PCM_STATE_PREPARED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_PCM_STATE_PREPARED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
LBB0_5:
	add	x0, x21, #8
	ldr	w1, [x23]
	bl	_atomic_set
	cbz	x22, LBB0_7
LBB0_6:
	add	x0, x22, #8
Lloh12:
	adrp	x8, _state_STOPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _state_STOPPED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_atomic_set
	mov	x0, x21
	bl	_usX2Y_usbpcm_urbs_release
	mov	x21, x22
LBB0_7:
	mov	x0, x21
	bl	_usX2Y_usbpcm_urbs_release
	b	LBB0_10
LBB0_8:
	ldr	x8, [x9, x8, lsl #3]
	add	x0, x8, #8
	bl	_atomic_read
Lloh15:
	adrp	x8, _state_PREPARED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _state_PREPARED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.9:
	add	x0, x20, #8
Lloh18:
	adrp	x8, _state_STOPPED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _state_STOPPED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_atomic_set
	mov	x21, x20
	cbnz	x22, LBB0_6
	b	LBB0_7
LBB0_10:
	ldr	x0, [x20]
	bl	_mutex_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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_usX2Y_usbpcm_hw_free(%p)\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.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_usbpcm_hw_free
.subsections_via_symbols
