	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_playback_open
_snd_atiixp_playback_open:              ## @snd_atiixp_playback_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
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	leaq	4(%rax), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_ATI_DMA_PLAYBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r12), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_atiixp_pcm_open
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	(%r12), %eax
	movq	(%r15), %rdi
	movl	%eax, (%rdi)
	cmpl	$3, %eax
	jl	LBB0_4
## %bb.3:
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$2, %ecx
	callq	_snd_pcm_hw_constraint_step
	jmp	LBB0_4
LBB0_1:
	movl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATI_DMA_PLAYBACK,8,3           ## @ATI_DMA_PLAYBACK
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.no_dead_strip	_snd_atiixp_playback_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_playback_open
_snd_atiixp_playback_open:              ; @snd_atiixp_playback_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	x20, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _ATI_DMA_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATI_DMA_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #0
	bl	_snd_atiixp_pcm_open
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	ldr	x0, [x19]
	str	w8, [x0]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #2
	bl	_snd_pcm_hw_constraint_step
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ATI_DMA_PLAYBACK,8,3           ; @ATI_DMA_PLAYBACK
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.no_dead_strip	_snd_atiixp_playback_open
.subsections_via_symbols
