	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_m3_substream_open
_snd_m3_substream_open:                 ## @snd_m3_substream_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	20(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	24(%r12), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %rbx
	decq	%rax
	jne	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movl	$1, (%rbx)
	movq	$0, 24(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	8(%r14), %rax
	movq	%rbx, (%rax)
	movq	%r14, 16(%rbx)
	movq	(%r14), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leaq	(%r12,%rdx,4), %rax
	addq	$12, %rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	leaq	8(%r12), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	addq	$4, %r12
	movq	8(%rbx), %rax
	movq	%r12, 16(%rax)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_snd_m3_substream_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_m3_substream_open
_snd_m3_substream_open:                 ; @snd_m3_substream_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	x20, x1
	mov	x19, x0
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x22, [x19, #24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #32
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irq
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x22]
	str	xzr, [x22, #24]
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	w0, #0
	ldp	x9, x8, [x20]
	str	x22, [x8]
	str	x20, [x22, #16]
Lloh3:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x10, x19, #12
	add	x11, x19, #16
	cmp	x9, x8
	csel	x8, x11, x10, eq
	ldr	x9, [x22, #8]
	str	x8, [x9]
	add	x8, x19, #8
	ldr	x9, [x22, #8]
	str	x8, [x9, #8]
	add	x8, x19, #4
	ldr	x9, [x22, #8]
	str	x8, [x9, #16]
LBB0_6:
	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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_snd_m3_substream_open
.subsections_via_symbols
