	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_vx_pcm_new                 ## -- Begin function snd_vx_pcm_new
	.p2align	4, 0x90
_snd_vx_pcm_new:                        ## @snd_vx_pcm_new
	.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, %rbx
	callq	_vx_init_audio_io
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	24(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movq	%rbx, 24(%rax)
	movq	_snd_vx_pcm_free@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	$0, 8(%rax)
	movl	(%rax), %edi
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	-48(%rbp), %rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	addl	$2, %r15d
	cmpq	%rax, %r13
	jae	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r14d
	movl	4(%rbx), %r12d
	cmpl	%r15d, %r14d
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r12d
	jbe	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	cmpl	%r15d, %r12d
	seta	%r8b
	xorl	%ecx, %ecx
	cmpl	%r15d, %r14d
	seta	%cl
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	leaq	-48(%rbp), %r9
	callq	_snd_pcm_new
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r14d
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vx_pcm_playback_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r12d
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vx_pcm_capture_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_6:
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VX PCM"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_vx_pcm_playback_ops,4,2        ## @vx_pcm_playback_ops
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_vx_pcm_capture_ops,4,2         ## @vx_pcm_capture_ops
	.comm	_snd_vx_pcm_free,4,2            ## @snd_vx_pcm_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_vx_pcm_new                 ; -- Begin function snd_vx_pcm_new
	.p2align	2
_snd_vx_pcm_new:                        ; @snd_vx_pcm_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_vx_init_audio_io
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.2:
	mov	w24, #0
	mov	x20, #0
Lloh0:
	adrp	x21, _vx_pcm_playback_ops@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vx_pcm_playback_ops@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x23, _vx_pcm_capture_ops@GOTPAGE
Lloh7:
	ldr	x23, [x23, _vx_pcm_capture_ops@GOTPAGEOFF]
Lloh8:
	adrp	x27, _snd_vx_pcm_free@GOTPAGE
Lloh9:
	ldr	x27, [x27, _snd_vx_pcm_free@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	str	x19, [x8, #24]
	ldr	w9, [x27]
	str	w9, [x8, #16]
	str	xzr, [x8, #8]
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	bl	_strcpy
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #8]
	str	x8, [x9, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	add	w24, w24, #2
	cmp	x20, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w25, w28, [x19]
	cmp	w25, w24
	ccmp	w28, w24, #2, ls
	b.ls	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w24
	cset	w4, hi
	cmp	w25, w24
	cset	w3, hi
	ldr	x0, [x19, #16]
	add	x5, sp, #8
	mov	x1, x22
	mov	x2, x20
	bl	_snd_pcm_new
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, w24
	b.ls	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_snd_pcm_set_ops
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w24
	b.ls	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	ldr	w1, [x26]
	mov	x2, x23
	bl	_snd_pcm_set_ops
	b	LBB0_3
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VX PCM"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_vx_pcm_playback_ops,4,2        ; @vx_pcm_playback_ops
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_vx_pcm_capture_ops,4,2         ; @vx_pcm_capture_ops
	.comm	_snd_vx_pcm_free,4,2            ; @snd_vx_pcm_free
.subsections_via_symbols
