	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rawmidi_open_priv
_rawmidi_open_priv:                     ## @rawmidi_open_priv
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	movq	_SNDRV_RAWMIDI_LFLG_INPUT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %ecx
	callq	_assign_substream
	testl	%eax, %eax
	js	LBB0_9
LBB0_2:
	movq	_SNDRV_RAWMIDI_LFLG_OUTPUT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %ecx
	callq	_assign_substream
	testl	%eax, %eax
	js	LBB0_9
LBB0_4:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_open_substream
	testl	%eax, %eax
	js	LBB0_9
LBB0_6:
	movq	-56(%rbp), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_open_substream
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	movq	-56(%rbp), %rax
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movq	%r15, 16(%r14)
	movq	-48(%rbp), %rcx
	movq	%rcx, 8(%r14)
	movq	%rax, (%r14)
	jmp	LBB0_17
LBB0_14:
	movl	%eax, %r12d
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_close_substream
LBB0_16:
	movl	%r12d, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_RAWMIDI_LFLG_INPUT,4,2   ## @SNDRV_RAWMIDI_LFLG_INPUT
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_SNDRV_RAWMIDI_LFLG_OUTPUT,4,2  ## @SNDRV_RAWMIDI_LFLG_OUTPUT
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_OUTPUT
	.no_dead_strip	_rawmidi_open_priv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rawmidi_open_priv
_rawmidi_open_priv:                     ; @rawmidi_open_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	stp	xzr, xzr, [sp]
	stp	xzr, xzr, [x3]
Lloh0:
	adrp	x8, _SNDRV_RAWMIDI_LFLG_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_RAWMIDI_LFLG_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	bl	_assign_substream
	tbnz	w0, #31, LBB0_9
LBB0_2:
Lloh6:
	adrp	x8, _SNDRV_RAWMIDI_LFLG_OUTPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_RAWMIDI_LFLG_OUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	bl	_assign_substream
	tbnz	w0, #31, LBB0_9
LBB0_4:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x2, x21
	bl	_open_substream
	tbnz	w0, #31, LBB0_9
LBB0_6:
	ldr	x1, [sp]
	cbz	x1, LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x2, x21
	bl	_open_substream
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldr	x8, [sp]
	b	LBB0_11
LBB0_9:
	mov	x22, x0
	b	LBB0_12
LBB0_10:
	mov	x8, #0
LBB0_11:
	mov	w22, #0
	ldr	x9, [sp, #8]
	stp	x9, x19, [x20, #8]
	str	x8, [x20]
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x22, x0
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_12
; %bb.14:
	mov	x0, x19
	mov	w2, #0
	bl	_close_substream
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_RAWMIDI_LFLG_INPUT,4,2   ; @SNDRV_RAWMIDI_LFLG_INPUT
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_SNDRV_RAWMIDI_LFLG_OUTPUT,4,2  ; @SNDRV_RAWMIDI_LFLG_OUTPUT
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_OUTPUT
	.no_dead_strip	_rawmidi_open_priv
.subsections_via_symbols
