	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_vortex_pcm_open
_snd_vortex_pcm_open:                   ## @snd_vortex_pcm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_18
## %bb.1:
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_pow2
	testl	%eax, %eax
	js	LBB0_18
## %bb.2:
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_WT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_snd_vortex_playback_hw_wt@GOTPCREL(%rip), %r15
	jmp	LBB0_16
LBB0_4:
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_A3D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_snd_vortex_playback_hw_a3d@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_6:
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_SPDIF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.7:
	movq	_snd_vortex_playback_hw_spdif@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	(%r15), %eax
	cmpl	$32000, %eax                    ## imm = 0x7D00
	je	LBB0_8
## %bb.9:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	je	LBB0_12
## %bb.10:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	jne	LBB0_14
## %bb.11:
	movq	_SNDRV_PCM_RATE_44100@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_SNDRV_PCM_RATE_32000@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_SNDRV_PCM_RATE_48000@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_14:
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_ADB@GOTPCREL(%rip), %rcx
	movq	_snd_vortex_playback_hw_adb@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	movl	8(%rbx), %edi
	callq	_VORTEX_PCM_TYPE
	movq	_VORTEX_PCM_I2S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_16:
	movl	(%r15), %eax
	movl	%eax, 8(%r14)
LBB0_17:
	movq	(%rbx), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_VORTEX_PCM_WT,8,3              ## @VORTEX_PCM_WT
	.comm	_VORTEX_PCM_A3D,8,3             ## @VORTEX_PCM_A3D
	.comm	_snd_vortex_playback_hw_a3d,4,2 ## @snd_vortex_playback_hw_a3d
	.comm	_VORTEX_PCM_SPDIF,8,3           ## @VORTEX_PCM_SPDIF
	.comm	_snd_vortex_playback_hw_spdif,4,2 ## @snd_vortex_playback_hw_spdif
	.comm	_SNDRV_PCM_RATE_32000,4,2       ## @SNDRV_PCM_RATE_32000
	.comm	_SNDRV_PCM_RATE_44100,4,2       ## @SNDRV_PCM_RATE_44100
	.comm	_SNDRV_PCM_RATE_48000,4,2       ## @SNDRV_PCM_RATE_48000
	.comm	_VORTEX_PCM_ADB,8,3             ## @VORTEX_PCM_ADB
	.comm	_VORTEX_PCM_I2S,8,3             ## @VORTEX_PCM_I2S
	.comm	_snd_vortex_playback_hw_adb,4,2 ## @snd_vortex_playback_hw_adb
	.comm	_snd_vortex_playback_hw_wt,4,2  ## @snd_vortex_playback_hw_wt
	.no_dead_strip	_snd_vortex_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_vortex_pcm_open
_snd_vortex_pcm_open:                   ; @snd_vortex_pcm_open
	.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
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldr	x20, [x19]
Lloh0:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_19
; %bb.1:
Lloh3:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_pow2
	tbnz	w0, #31, LBB0_19
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_VORTEX_PCM_TYPE
Lloh6:
	adrp	x8, _VORTEX_PCM_WT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VORTEX_PCM_WT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _snd_vortex_playback_hw_wt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _snd_vortex_playback_hw_wt@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_VORTEX_PCM_TYPE
Lloh11:
	adrp	x8, _VORTEX_PCM_A3D@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VORTEX_PCM_A3D@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _snd_vortex_playback_hw_a3d@GOTPAGE
Lloh15:
	ldr	x8, [x8, _snd_vortex_playback_hw_a3d@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_VORTEX_PCM_TYPE
Lloh17:
	adrp	x8, _VORTEX_PCM_SPDIF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VORTEX_PCM_SPDIF@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.7:
Lloh20:
	adrp	x8, _snd_vortex_playback_hw_spdif@GOTPAGE
Lloh21:
	ldr	x8, [x8, _snd_vortex_playback_hw_spdif@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	w8, [x21]
	mov	w9, #32000
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.8:
	mov	w9, #48000
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.9:
	mov	w9, #44100
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.10:
Lloh23:
	adrp	x8, _SNDRV_PCM_RATE_44100@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNDRV_PCM_RATE_44100@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh25:
	adrp	x8, _SNDRV_PCM_RATE_32000@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SNDRV_PCM_RATE_32000@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh27:
	adrp	x8, _SNDRV_PCM_RATE_48000@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SNDRV_PCM_RATE_48000@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_VORTEX_PCM_TYPE
Lloh29:
	adrp	x8, _VORTEX_PCM_ADB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VORTEX_PCM_ADB@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19, #8]
	bl	_VORTEX_PCM_TYPE
Lloh32:
	adrp	x8, _VORTEX_PCM_I2S@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VORTEX_PCM_I2S@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
LBB0_16:
Lloh35:
	adrp	x8, _snd_vortex_playback_hw_adb@GOTPAGE
Lloh36:
	ldr	x8, [x8, _snd_vortex_playback_hw_adb@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_18:
	mov	w0, #0
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_VORTEX_PCM_WT,8,3              ; @VORTEX_PCM_WT
	.comm	_VORTEX_PCM_A3D,8,3             ; @VORTEX_PCM_A3D
	.comm	_snd_vortex_playback_hw_a3d,4,2 ; @snd_vortex_playback_hw_a3d
	.comm	_VORTEX_PCM_SPDIF,8,3           ; @VORTEX_PCM_SPDIF
	.comm	_snd_vortex_playback_hw_spdif,4,2 ; @snd_vortex_playback_hw_spdif
	.comm	_SNDRV_PCM_RATE_32000,4,2       ; @SNDRV_PCM_RATE_32000
	.comm	_SNDRV_PCM_RATE_44100,4,2       ; @SNDRV_PCM_RATE_44100
	.comm	_SNDRV_PCM_RATE_48000,4,2       ; @SNDRV_PCM_RATE_48000
	.comm	_VORTEX_PCM_ADB,8,3             ; @VORTEX_PCM_ADB
	.comm	_VORTEX_PCM_I2S,8,3             ; @VORTEX_PCM_I2S
	.comm	_snd_vortex_playback_hw_adb,4,2 ; @snd_vortex_playback_hw_adb
	.comm	_snd_vortex_playback_hw_wt,4,2  ; @snd_vortex_playback_hw_wt
	.no_dead_strip	_snd_vortex_pcm_open
.subsections_via_symbols
