	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_pcm_open
_snd_atiixp_pcm_open:                   ## @snd_atiixp_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	%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
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	movq	(%rbx), %r15
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	cmpl	$0, (%r13)
	je	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, 16(%r13)
	movq	_snd_atiixp_pcm_hw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	%r12d, 4(%r13)
	testl	%r12d, %r12d
	js	LBB0_10
## %bb.9:
	movq	8(%r14), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%r15, %rdi
	callq	_snd_pcm_limit_hw_rates
	jmp	LBB0_11
LBB0_10:
	movq	_SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_11:
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movq	%r13, (%r15)
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	8(%r13), %rax
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	$1, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_snd_atiixp_pcm_hw,8,2          ## @snd_atiixp_pcm_hw
	.comm	_SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE,4,2 ## @SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.no_dead_strip	_snd_atiixp_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_atiixp_pcm_open
_snd_atiixp_pcm_open:                   ; @snd_atiixp_pcm_open
	.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	x21, x2
	mov	x19, x1
	mov	x23, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldr	x22, [x23]
	bl	_snd_BUG_ON
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.6:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	ret
LBB0_9:
	str	x23, [x19, #16]
Lloh4:
	adrp	x8, _snd_atiixp_pcm_hw@GOTPAGE
Lloh5:
	ldr	x8, [x8, _snd_atiixp_pcm_hw@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x22, #8]
	str	w21, [x19, #4]
	tbnz	w21, #31, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w21, uxtw #3]
	ldr	w8, [x8]
	str	w8, [x22, #12]
	mov	x0, x22
	bl	_snd_pcm_limit_hw_rates
	b	LBB0_12
LBB0_11:
Lloh7:
	adrp	x8, _SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22, #8]
LBB0_12:
Lloh10:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_8
; %bb.13:
	str	x19, [x22]
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	blr	x8
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	w0, #0
	str	w21, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_snd_atiixp_pcm_hw,8,2          ; @snd_atiixp_pcm_hw
	.comm	_SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE,4,2 ; @SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.no_dead_strip	_snd_atiixp_pcm_open
.subsections_via_symbols
