	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_pcm_trigger
_snd_atiixp_pcm_trigger:                ## @snd_atiixp_pcm_trigger
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_lock
	cmpl	$128, %r15d
	je	LBB0_10
## %bb.6:
	cmpl	$129, %r15d
	jne	LBB0_7
## %bb.9:
	movq	8(%rbx), %rax
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*8(%rax)
	movl	$1, (%rbx)
	jmp	LBB0_11
LBB0_10:
	movq	8(%rbx), %rax
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_snd_atiixp_check_bus_busy
	movq	8(%rbx), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.8:
	negl	%ebx
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_snd_atiixp_check_bus_busy
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_atiixp_pcm_trigger
.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_trigger
_snd_atiixp_pcm_trigger:                ; @snd_atiixp_pcm_trigger
	.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	x20, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_3:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_spin_lock
	cmp	w20, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w20, #129
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	blr	x8
	str	w20, [x21]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	str	wzr, [x21]
	mov	x0, x19
	bl	_snd_atiixp_check_bus_busy
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.9:
	neg	w20, w8
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_snd_atiixp_check_bus_busy
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock
LBB0_12:
	mov	x0, x20
	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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_atiixp_pcm_trigger
.subsections_via_symbols
