	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vt1724_pcm_hw_params
_snd_vt1724_pcm_hw_params:              ## @snd_vt1724_pcm_hw_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_params_channels
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpq	%r15, 24(%rbx)
	je	LBB0_8
## %bb.1:
	movq	16(%rbx), %rax
	cmpq	%r15, (%rax)
	je	LBB0_2
## %bb.26:
	cmpq	%r15, 8(%rax)
	je	LBB0_27
## %bb.28:
	cmpq	%r15, 16(%rax)
	jne	LBB0_6
## %bb.29:
	movl	$2, %eax
	jmp	LBB0_3
LBB0_8:
	xorl	%eax, %eax
	cmpl	$4, %r12d
	jl	LBB0_16
## %bb.9:
	shrl	%r12d
	movl	%r12d, %eax
	decl	%eax
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, (%rdx,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%r15, %rsi
	je	LBB0_14
	jmp	LBB0_12
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_27:
	movl	$1, %eax
LBB0_3:
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	cmpq	%r15, %rdx
	je	LBB0_5
LBB0_12:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_5:
	movq	%r15, (%rcx,%rax,8)
	jmp	LBB0_6
LBB0_15:
	cmpl	$2, %eax
	ja	LBB0_6
LBB0_16:
	movl	%eax, %ecx
	movl	$1, %edx
	subl	%eax, %edx
	movq	%rcx, %rax
	testb	$1, %dl
	je	LBB0_20
## %bb.17:
	movq	8(%rbx), %rax
	cmpq	%r15, (%rax,%rcx,8)
	jne	LBB0_19
## %bb.18:
	movq	$0, (%rax,%rcx,8)
LBB0_19:
	leaq	1(%rcx), %rax
LBB0_20:
	cmpl	$2, %ecx
	jne	LBB0_21
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_params_rate
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_snd_vt1724_set_pro_rate
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	%r14, %rdi
	callq	_params_buffer_bytes
	movq	%r15, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_lib_malloc_pages       ## TAILCALL
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	addq	$2, %rax
	cmpq	$3, %rax
	je	LBB0_6
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	cmpq	%r15, (%rcx,%rax,8)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	$0, (%rcx,%rax,8)
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%rbx), %rcx
	cmpq	%r15, 8(%rcx,%rax,8)
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	$0, 8(%rcx,%rax,8)
	jmp	LBB0_25
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_vt1724_pcm_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_vt1724_pcm_hw_params
_snd_vt1724_pcm_hw_params:              ; @snd_vt1724_pcm_hw_params
	.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	x20, x1
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	mov	x0, x20
	bl	_params_channels
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x21, #24]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_10
; %bb.2:
	ldr	x9, [x8, #8]
	cmp	x9, x19
	b.eq	LBB0_16
; %bb.3:
	ldr	x8, [x8, #16]
	cmp	x8, x19
	b.ne	LBB0_19
; %bb.4:
	mov	w8, #2
	b	LBB0_17
LBB0_5:
	cmp	w22, #4
	b.lt	LBB0_11
; %bb.6:
	mov	x9, #0
	lsr	w8, w22, #1
	sub	w8, w8, #1
	lsl	x10, x8, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x21, #8]
	ldr	x12, [x11, x9]
	cmp	x12, #0
	ccmp	x12, x19, #4, ne
	b.ne	LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x19, [x11, x9]
	add	x9, x9, #8
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.9:
	cmp	w8, #2
	b.ls	LBB0_12
	b	LBB0_19
LBB0_10:
	mov	x8, #0
	b	LBB0_17
LBB0_11:
	mov	w8, #0
LBB0_12:
	mov	w8, w8
	lsl	x8, x8, #3
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #8
	cmp	x8, #24
	b.eq	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x10, [x9, x8]
	cmp	x10, x19
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	str	xzr, [x9, x8]
	b	LBB0_13
LBB0_16:
	mov	w8, #1
LBB0_17:
	ldr	x9, [x21, #8]
	ldr	x10, [x9, x8, lsl #3]
	cmp	x10, #0
	ccmp	x10, x19, #4, ne
	b.ne	LBB0_21
; %bb.18:
	str	x19, [x9, x8, lsl #3]
LBB0_19:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_params_rate
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_snd_vt1724_set_pro_rate
	tbnz	w0, #31, LBB0_22
; %bb.20:
	mov	x0, x20
	bl	_params_buffer_bytes
	mov	x1, x0
	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_malloc_pages
LBB0_21:
	mov	x0, x21
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_vt1724_pcm_hw_params
.subsections_via_symbols
