	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_pcm_capture_open
_vx_pcm_capture_open:                   ## @vx_pcm_capture_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	$0, -48(%rbp)
	movq	_VX_STAT_IS_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	(%r13), %rax
	movl	(%rax), %r15d
	addl	%r15d, %r15d
	xorl	%edi, %edi
	cmpl	4(%r12), %r15d
	setae	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	callq	_vx_alloc_pipe
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:
	movq	-56(%rbp), %rdi
	movq	%r13, 16(%rdi)
	addq	$12, %rdi
	movq	_vx_pcm_delayed_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_tasklet_init
	movq	-56(%rbp), %rax
	movq	40(%r12), %rcx
	movl	%r15d, %r13d
	movq	%rax, (%rcx,%r13,8)
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	callq	_vx_alloc_pipe
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	movq	-48(%rbp), %rax
	movq	32(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	-48(%rbp), %rax
	movq	16(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
LBB0_11:
	incl	8(%rax)
	movq	24(%r12), %rax
	movl	(%rax,%r13,4), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vx_set_monitor_level
	orl	$1, %r15d
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	(%rax,%r15,8), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vx_set_monitor_level
LBB0_12:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	_vx_pcm_capture_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	8(%r12), %eax
	movl	%eax, 8(%r14)
	movq	-56(%rbp), %rax
	movq	%rax, (%r14)
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_snd_pcm_hw_constraint_step
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_snd_pcm_hw_constraint_step
	jmp	LBB0_5
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ## @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_vx_pcm_delayed_start,4,2       ## @vx_pcm_delayed_start
	.comm	_vx_pcm_capture_hw,4,2          ## @vx_pcm_capture_hw
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.no_dead_strip	_vx_pcm_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_pcm_capture_open
_vx_pcm_capture_open:                   ; @vx_pcm_capture_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x0
	ldr	x19, [x0, #8]
	bl	_snd_pcm_substream_chip
	str	xzr, [sp]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VX_STAT_IS_STALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_STAT_IS_STALE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	ldr	x8, [x22]
	ldr	w8, [x8]
	lsl	w21, w8, #1
	ldr	w8, [x0, #4]
	cmp	w21, w8
	cset	w0, hs
	bl	_snd_BUG_ON
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	add	x4, sp, #8
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	mov	w3, #2
	bl	_vx_alloc_pipe
	tbnz	w0, #31, LBB0_5
; %bb.7:
	ldr	x8, [sp, #8]
	str	x22, [x8, #16]
	add	x0, x8, #12
Lloh7:
	adrp	x8, _vx_pcm_delayed_start@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vx_pcm_delayed_start@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_tasklet_init
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #40]
	lsl	x22, x21, #3
	str	x8, [x9, x22]
	ldr	x8, [x20, #16]
	ldr	x3, [x8, x22]
	cbz	x3, LBB0_12
; %bb.8:
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [sp]
	cbnz	x8, LBB0_11
; %bb.9:
	mov	x4, sp
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	w3, #2
	bl	_vx_alloc_pipe
	tbnz	w0, #31, LBB0_5
; %bb.10:
	ldr	x8, [sp]
	ldr	x9, [x20, #32]
	str	x8, [x9, x22]
	ldr	x8, [sp]
	ldr	x9, [x20, #16]
	ldr	x3, [x9, x22]
LBB0_11:
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_vx_set_monitor_level
	orr	w1, w21, #0x1
	ldp	x9, x8, [x20, #16]
	ldr	w2, [x8, w1, uxtw #2]
	ldr	x3, [x9, w1, uxtw #3]
	mov	x0, x20
	bl	_vx_set_monitor_level
LBB0_12:
	ldp	x8, x9, [sp]
	str	x8, [x9]
Lloh10:
	adrp	x8, _vx_pcm_capture_hw@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vx_pcm_capture_hw@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
	str	w8, [x19, #8]
	ldr	x8, [sp, #8]
	str	x8, [x19]
Lloh13:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #4
	bl	_snd_pcm_hw_constraint_step
Lloh16:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #4
	bl	_snd_pcm_hw_constraint_step
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ; @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_vx_pcm_delayed_start,4,2       ; @vx_pcm_delayed_start
	.comm	_vx_pcm_capture_hw,4,2          ; @vx_pcm_capture_hw
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.no_dead_strip	_vx_pcm_capture_open
.subsections_via_symbols
