	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substream_open
_substream_open:                        ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.1:
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.3:
	movq	_SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdx), %rcx
	orl	%eax, (%rcx)
	movl	12(%rbx), %edi
	movq	_SNDRV_CTL_EVENT_MASK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_ctl_notify
	movq	%rbx, %rdi
	callq	_update_roland_altsetting
	jmp	LBB0_7
LBB0_4:
	decq	%rax
	movq	%rax, (%rbx)
	jne	LBB0_7
## %bb.5:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%rdx), %rcx
	andl	%eax, (%rcx)
	movl	12(%rbx), %edi
	movq	_SNDRV_CTL_EVENT_MASK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_ctl_notify
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,2 ## @SNDRV_CTL_ELEM_ACCESS_INACTIVE
	.comm	_SNDRV_CTL_EVENT_MASK_INFO,4,2  ## @SNDRV_CTL_EVENT_MASK_INFO
	.no_dead_strip	_substream_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substream_open
_substream_open:                        ; @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	x21, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cbz	w21, LBB0_4
; %bb.1:
	add	x9, x8, #1
	str	x9, [x20]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x2, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	w0, [x20, #12]
Lloh3:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_snd_ctl_notify
	mov	x0, x20
	bl	_update_roland_altsetting
	b	LBB0_7
LBB0_4:
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_7
; %bb.5:
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x2, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	ldr	w0, [x20, #12]
Lloh9:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_snd_ctl_notify
LBB0_7:
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,2 ; @SNDRV_CTL_ELEM_ACCESS_INACTIVE
	.comm	_SNDRV_CTL_EVENT_MASK_INFO,4,2  ; @SNDRV_CTL_EVENT_MASK_INFO
	.no_dead_strip	_substream_open
.subsections_via_symbols
