	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_seq_midisynth_register_port
_snd_seq_midisynth_register_port:       ## @snd_seq_midisynth_register_port
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r14
	movl	(%rdi), %ebx
	movq	_SNDRV_RAWMIDI_DEVICES@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %ebx
	setge	%al
	testl	%ebx, %ebx
	movl	$1, %ecx
	cmovsl	%ecx, %eax
	movq	8(%rdi), %r15
	testq	%r15, %r15
	cmovel	%ecx, %eax
	movl	%eax, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$152, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_57
## %bb.3:
	movq	%rax, %r12
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%rax)
	movq	_SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 144(%r12)
	movl	$0, 4(%r12)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_snd_rawmidi_info_select
	xorl	%r13d, %r13d
	movl	$0, %r15d
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movl	8(%r12), %r15d
LBB0_5:
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 144(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_snd_rawmidi_info_select
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movl	8(%r12), %r13d
LBB0_7:
	cmpl	%r13d, %r15d
	movl	%r13d, %ecx
	cmoval	%r15d, %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.9:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	$256, %eax                      ## imm = 0x100
	xorl	%edx, %edx
	movq	_SNDRV_RAWMIDI_DEVICES@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	movl	%eax, %r14d
	cmpl	%eax, %ecx
	cmovbl	%ecx, %r14d
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_synths@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_10
LBB0_14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$152, %esi
	callq	_kcalloc
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$152, %edi
	callq	_kmalloc
	movq	%rax, %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_49
## %bb.15:
	testq	%r14, %r14
	je	LBB0_49
## %bb.16:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_46
## %bb.17:
	movl	%r13d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%r15d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_snd_seq_midisynth_new
	testq	%rax, %rax
	js	LBB0_49
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$152, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	%rax, 80(%r14)
	movl	$256, %eax                      ## imm = 0x100
	xorl	%edx, %edx
	movq	_SNDRV_RAWMIDI_DEVICES@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %eax
	addl	%r15d, %eax
	movl	%eax, 88(%r14)
	movq	_SNDRV_SEQ_PORT_FLG_GIVEN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$152, %edx
	callq	_memset
	movl	%ebx, (%r12)
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	cmpq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rax), %rax
	movq	%rax, 144(%r12)
	movl	%r15d, 4(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_snd_rawmidi_info_select
	testq	%rax, %rax
	js	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%r14), %rdi
	movl	140(%r12), %esi
	callq	_strcpy
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%r14), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_24
LBB0_31:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	24(%r12), %eax
	movq	_SNDRV_RAWMIDI_INFO_OUTPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_SEQ_PORT_CAP_SYNC_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SNDRV_SEQ_PORT_CAP_WRITE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_SNDRV_SEQ_PORT_CAP_SUBS_WRITE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	%ecx, 40(%r14)
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_RAWMIDI_INFO_INPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	-104(%rbp), %r15                ## 8-byte Folded Reload
	jae	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_SEQ_PORT_CAP_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SNDRV_SEQ_PORT_CAP_SYNC_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	movq	_SNDRV_SEQ_PORT_CAP_SUBS_READ@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	orl	40(%r14), %ecx
	movl	%ecx, 40(%r14)
	jmp	LBB0_38
LBB0_36:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	40(%r14), %ecx
	movq	_SNDRV_SEQ_PORT_CAP_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_38:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_SEQ_PORT_CAP_WRITE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%ecx, %esi
	notl	%esi
	testl	%esi, %edx
	jne	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_RAWMIDI_INFO_DUPLEX@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_SEQ_PORT_CAP_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 40(%r14)
LBB0_41:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_SNDRV_SEQ_PORT_TYPE_HARDWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SNDRV_SEQ_PORT_TYPE_PORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 44(%r14)
	movl	$16, 48(%r14)
	leaq	-264(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$152, %edx
	callq	_memset
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	%r13, -136(%rbp)
	movq	_midisynth_subscribe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movq	_midisynth_unsubscribe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -148(%rbp)
	movq	_midisynth_use@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	movq	_midisynth_unuse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -156(%rbp)
	movq	_event_process_midi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	movq	%rbx, 96(%r14)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	*%rax
LBB0_44:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	movq	_SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_snd_seq_kernel_client_ctl
	testq	%rax, %rax
	js	LBB0_49
## %bb.45:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	16(%rbx), %rax
	movq	%rax, 16(%r13)
	movl	88(%r14), %eax
	movl	%eax, 52(%r13)
	incq	%r15
	addq	$152, %r13
	cmpq	%r15, -112(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_18
	jmp	LBB0_46
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%r12), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$8, %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_31
LBB0_28:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.4(%rip), %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_31
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	$8, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.3(%rip), %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_31
LBB0_8:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_49:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_54
## %bb.50:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_53
## %bb.51:
	movl	%eax, %r15d
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_snd_seq_midisynth_delete
	addq	$152, %rbx
	decq	%r15
	jne	LBB0_52
LBB0_53:
	movq	%r13, %rdi
	callq	_kfree
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_54:
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_56
## %bb.55:
	movq	16(%rbx), %rdi
	callq	_snd_seq_delete_kernel_client
	movq	%rbx, %rdi
	callq	_kfree
LBB0_56:
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_57
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$152, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rdx
	cmpq	$0, (%rdx)
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rdx, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_snd_seq_create_kernel_client
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r14)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_46:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	56(%rbx), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx,%rax,4)
	movq	72(%rbx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx,%rax,8)
	incl	64(%rbx)
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_48
## %bb.47:
	movq	_synths@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rbx, (%rax,%rcx,8)
LBB0_48:
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_60
LBB0_11:
	movq	_register_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_kfree
LBB0_57:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_58:
	xorl	%ebx, %ebx
LBB0_59:
	subl	(%rax), %ebx
LBB0_60:
	movl	%ebx, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_RAWMIDI_DEVICES,4,2      ## @SNDRV_RAWMIDI_DEVICES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,8,3 ## @SNDRV_RAWMIDI_STREAM_OUTPUT
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,8,3 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_register_mutex,4,2             ## @register_mutex
	.comm	_synths,8,3                     ## @synths
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"External MIDI"

	.comm	_SNDRV_SEQ_PORT_FLG_GIVEN_PORT,4,2 ## @SNDRV_SEQ_PORT_FLG_GIVEN_PORT
L_.str.2:                               ## @.str.2
	.asciz	"%s-%d"

L_.str.3:                               ## @.str.3
	.asciz	"MIDI %d-%d-%d"

L_.str.4:                               ## @.str.4
	.asciz	"MIDI %d-%d"

	.comm	_SNDRV_RAWMIDI_INFO_OUTPUT,4,2  ## @SNDRV_RAWMIDI_INFO_OUTPUT
	.comm	_SNDRV_SEQ_PORT_CAP_WRITE,4,2   ## @SNDRV_SEQ_PORT_CAP_WRITE
	.comm	_SNDRV_SEQ_PORT_CAP_SYNC_WRITE,4,2 ## @SNDRV_SEQ_PORT_CAP_SYNC_WRITE
	.comm	_SNDRV_SEQ_PORT_CAP_SUBS_WRITE,4,2 ## @SNDRV_SEQ_PORT_CAP_SUBS_WRITE
	.comm	_SNDRV_RAWMIDI_INFO_INPUT,4,2   ## @SNDRV_RAWMIDI_INFO_INPUT
	.comm	_SNDRV_SEQ_PORT_CAP_READ,4,2    ## @SNDRV_SEQ_PORT_CAP_READ
	.comm	_SNDRV_SEQ_PORT_CAP_SYNC_READ,4,2 ## @SNDRV_SEQ_PORT_CAP_SYNC_READ
	.comm	_SNDRV_SEQ_PORT_CAP_SUBS_READ,4,2 ## @SNDRV_SEQ_PORT_CAP_SUBS_READ
	.comm	_SNDRV_RAWMIDI_INFO_DUPLEX,4,2  ## @SNDRV_RAWMIDI_INFO_DUPLEX
	.comm	_SNDRV_SEQ_PORT_CAP_DUPLEX,4,2  ## @SNDRV_SEQ_PORT_CAP_DUPLEX
	.comm	_SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC,4,2 ## @SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC
	.comm	_SNDRV_SEQ_PORT_TYPE_HARDWARE,4,2 ## @SNDRV_SEQ_PORT_TYPE_HARDWARE
	.comm	_SNDRV_SEQ_PORT_TYPE_PORT,4,2   ## @SNDRV_SEQ_PORT_TYPE_PORT
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_midisynth_subscribe,4,2        ## @midisynth_subscribe
	.comm	_midisynth_unsubscribe,4,2      ## @midisynth_unsubscribe
	.comm	_midisynth_use,4,2              ## @midisynth_use
	.comm	_midisynth_unuse,4,2            ## @midisynth_unuse
	.comm	_event_process_midi,4,2         ## @event_process_midi
	.comm	_SNDRV_SEQ_IOCTL_CREATE_PORT,4,2 ## @SNDRV_SEQ_IOCTL_CREATE_PORT
	.no_dead_strip	_snd_seq_midisynth_register_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_seq_midisynth_register_port
_snd_seq_midisynth_register_port:       ; @snd_seq_midisynth_register_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x20, x22, [x0, #8]
	ldr	w21, [x0]
Lloh0:
	adrp	x23, _SNDRV_RAWMIDI_DEVICES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNDRV_RAWMIDI_DEVICES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	cset	w8, ge
	cmp	w21, #0
	ccmp	x20, #0, #4, ge
	csinc	w0, w8, wzr, ne
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_54
LBB0_2:
Lloh4:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #152
	bl	_kmalloc
	cbz	x0, LBB0_53
; %bb.3:
	mov	x19, x0
	str	w21, [x0]
Lloh6:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x0, #144]
	str	wzr, [x0, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_snd_rawmidi_info_select
	tbnz	x0, #63, LBB0_5
; %bb.4:
	ldr	w26, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	w26, #0
LBB0_6:
Lloh9:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #144]
	mov	x0, x20
	mov	x1, x19
	bl	_snd_rawmidi_info_select
	tbnz	x0, #63, LBB0_8
; %bb.7:
	ldr	w28, [x19, #8]
	b	LBB0_9
LBB0_8:
	mov	w28, #0
LBB0_9:
	cmp	w26, w28
	csel	w8, w26, w28, hi
	cbz	w8, LBB0_20
; %bb.10:
	ldr	w9, [x23]
	mov	w10, #256
	sdiv	w9, w10, w9
	cmp	w8, w9
	csel	w24, w8, w9, lo
Lloh12:
	adrp	x0, _register_mutex@GOTPAGE
Lloh13:
	ldr	x0, [x0, _register_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh14:
	adrp	x8, _synths@GOTPAGE
Lloh15:
	ldr	x8, [x8, _synths@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x27, [x8, x9, lsl #3]
	mov	x23, x27
	cbz	x27, LBB0_49
LBB0_11:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w2, [x25]
	mov	x0, x24
	mov	w1, #152
	bl	_kcalloc
	mov	x27, x0
	ldr	w1, [x25]
	mov	w0, #152
	bl	_kmalloc
	mov	x25, x0
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	cmp	x27, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_21
LBB0_12:
	ldp	x21, x22, [sp, #8]              ; 16-byte Folded Reload
	cbz	x22, LBB0_17
; %bb.13:
	cbz	w24, LBB0_16
; %bb.14:
	mov	x20, x22
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_snd_seq_midisynth_delete
	add	x20, x20, #152
	subs	x24, x24, #1
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x22
	bl	_kfree
LBB0_17:
	cbnz	x21, LBB0_19
; %bb.18:
	ldr	x0, [x23, #16]
	bl	_snd_seq_delete_kernel_client
	mov	x0, x23
	bl	_kfree
LBB0_19:
	mov	x0, x19
	bl	_kfree
	mov	x0, x25
	bl	_kfree
Lloh17:
	adrp	x0, _register_mutex@GOTPAGE
Lloh18:
	ldr	x0, [x0, _register_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_53
LBB0_20:
	mov	x0, x19
	bl	_kfree
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_54
LBB0_21:
	cbz	w24, LBB0_56
; %bb.22:
	mov	x27, #0
	mov	w8, w28
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w28, w26
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x20
	mov	x2, x21
	mov	x3, x27
	bl	_snd_seq_midisynth_new
	tbnz	x0, #63, LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x25
	mov	w1, #0
	mov	w2, #152
	bl	_memset
	ldr	x8, [x23, #16]
	str	x8, [x25, #80]
Lloh21:
	adrp	x8, _SNDRV_RAWMIDI_DEVICES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SNDRV_RAWMIDI_DEVICES@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	mov	w9, #256
	sdiv	w8, w9, w8
	madd	w8, w8, w21, w27
	str	w8, [x25, #88]
Lloh24:
	adrp	x8, _SNDRV_SEQ_PORT_FLG_GIVEN_PORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SNDRV_SEQ_PORT_FLG_GIVEN_PORT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x25, #24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #152
	bl	_memset
	str	w21, [x19]
	cmp	x27, x28
Lloh27:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGEOFF]
Lloh29:
	adrp	x9, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
	csel	x8, x8, x9, lo
	ldr	x8, [x8]
	str	x8, [x19, #144]
	str	w27, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_snd_rawmidi_info_select
	tbnz	x0, #63, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [x25, #32]
	ldr	w1, [x19, #140]
	bl	_strcpy
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [x25, #32]
	ldrb	w8, [x0]
	cbz	w8, LBB0_41
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x19, #24]
Lloh31:
	adrp	x9, _SNDRV_RAWMIDI_INFO_OUTPUT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SNDRV_RAWMIDI_INFO_OUTPUT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	x27, x28, #2, ne
	b.hs	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh34:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_WRITE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_WRITE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _SNDRV_SEQ_PORT_CAP_SYNC_WRITE@GOTPAGE
Lloh38:
	ldr	x10, [x10, _SNDRV_SEQ_PORT_CAP_SYNC_WRITE@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh40:
	adrp	x10, _SNDRV_SEQ_PORT_CAP_SUBS_WRITE@GOTPAGE
Lloh41:
	ldr	x10, [x10, _SNDRV_SEQ_PORT_CAP_SUBS_WRITE@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x25, #40]
	orr	w9, w9, w10
	str	w9, [x25, #40]
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh43:
	adrp	x9, _SNDRV_RAWMIDI_INFO_INPUT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SNDRV_RAWMIDI_INFO_INPUT@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x27, x9
	b.hs	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh46:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_READ@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_READ@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x9]
Lloh49:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_SYNC_READ@GOTPAGE
Lloh50:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_SYNC_READ@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w9, w9, w10
Lloh52:
	adrp	x11, _SNDRV_SEQ_PORT_CAP_SUBS_READ@GOTPAGE
Lloh53:
	ldr	x11, [x11, _SNDRV_SEQ_PORT_CAP_SUBS_READ@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x11]
	orr	w9, w9, w11
	ldr	w11, [x25, #40]
	orr	w9, w9, w11
	str	w9, [x25, #40]
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w9, [x25, #40]
Lloh55:
	adrp	x10, _SNDRV_SEQ_PORT_CAP_READ@GOTPAGE
Lloh56:
	ldr	x10, [x10, _SNDRV_SEQ_PORT_CAP_READ@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh58:
	adrp	x11, _SNDRV_SEQ_PORT_CAP_WRITE@GOTPAGE
Lloh59:
	ldr	x11, [x11, _SNDRV_SEQ_PORT_CAP_WRITE@GOTPAGEOFF]
Lloh60:
	ldr	w11, [x11]
	orr	w10, w10, w11
	bics	wzr, w10, w9
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh61:
	adrp	x10, _SNDRV_RAWMIDI_INFO_DUPLEX@GOTPAGE
Lloh62:
	ldr	x10, [x10, _SNDRV_RAWMIDI_INFO_DUPLEX@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh64:
	adrp	x8, _SNDRV_SEQ_PORT_CAP_DUPLEX@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SNDRV_SEQ_PORT_CAP_DUPLEX@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x25, #40]
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh67:
	adrp	x8, _SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x9, _SNDRV_SEQ_PORT_TYPE_HARDWARE@GOTPAGE
Lloh71:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_TYPE_HARDWARE@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh73:
	adrp	x9, _SNDRV_SEQ_PORT_TYPE_PORT@GOTPAGE
Lloh74:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_TYPE_PORT@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x25, #44]
	mov	w8, #16
	str	w8, [x25, #48]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #152
	bl	_memset
Lloh76:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh77:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	str	w8, [sp, #168]
	str	x26, [sp, #160]
Lloh79:
	adrp	x8, _midisynth_subscribe@GOTPAGE
Lloh80:
	ldr	x8, [x8, _midisynth_subscribe@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	str	w8, [sp, #152]
Lloh82:
	adrp	x8, _midisynth_unsubscribe@GOTPAGE
Lloh83:
	ldr	x8, [x8, _midisynth_unsubscribe@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
Lloh85:
	adrp	x9, _midisynth_use@GOTPAGE
Lloh86:
	ldr	x9, [x9, _midisynth_use@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #144]
Lloh88:
	adrp	x8, _midisynth_unuse@GOTPAGE
Lloh89:
	ldr	x8, [x8, _midisynth_unuse@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
Lloh91:
	adrp	x9, _event_process_midi@GOTPAGE
Lloh92:
	ldr	x9, [x9, _event_process_midi@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #136]
	add	x8, sp, #32
	str	x8, [x25, #96]
	ldr	x8, [x22]
	cbz	x8, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x8]
	cbz	x8, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x22
	mov	x1, x27
	mov	x2, x25
	blr	x8
LBB0_39:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [x23, #16]
Lloh94:
	adrp	x8, _SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPAGE
Lloh95:
	ldr	x8, [x8, _SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_snd_seq_kernel_client_ctl
	tbnz	x0, #63, LBB0_12
; %bb.40:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x23, #16]
	str	x8, [x26, #16]
	ldr	w8, [x25, #88]
	str	w8, [x26, #52]
	add	x27, x27, #1
	add	x26, x26, #152
	cmp	x24, x27
	b.ne	LBB0_23
	b	LBB0_56
LBB0_41:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x3, [x19, #32]
	ldrb	w8, [x3]
	cbz	w8, LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w24, #1
	b.ne	LBB0_46
; %bb.43:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w1, #8
Lloh97:
	adrp	x2, l_.str@PAGE
Lloh98:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	b	LBB0_27
LBB0_44:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w2, [x20]
	cmp	w24, #1
	b.ne	LBB0_47
; %bb.45:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh99:
	adrp	x1, l_.str.4@PAGE
Lloh100:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_48
LBB0_46:                                ;   in Loop: Header=BB0_23 Depth=1
	str	x27, [sp]
	mov	w1, #8
Lloh101:
	adrp	x2, l_.str.2@PAGE
Lloh102:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	b	LBB0_27
LBB0_47:                                ;   in Loop: Header=BB0_23 Depth=1
	str	x27, [sp]
Lloh103:
	adrp	x1, l_.str.3@PAGE
Lloh104:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_48:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x3, x21
	bl	_sprintf
	b	LBB0_27
LBB0_49:
	ldr	w1, [x25]
	mov	w0, #152
	bl	_kzalloc
	cbz	x0, LBB0_52
; %bb.50:
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
Lloh105:
	adrp	x10, l_.str.1@PAGE
Lloh106:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x9, #0
	csel	x3, x10, x8, eq
Lloh107:
	adrp	x2, l_.str@PAGE
Lloh108:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_snd_seq_create_kernel_client
	str	x0, [x23, #16]
	tbz	x0, #63, LBB0_11
; %bb.51:
	mov	x0, x23
	bl	_kfree
LBB0_52:
Lloh109:
	adrp	x0, _register_mutex@GOTPAGE
Lloh110:
	ldr	x0, [x0, _register_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	bl	_kfree
LBB0_53:
Lloh111:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh112:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_54:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_55:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_56:
	sxtw	x8, w21
	ldr	x9, [x23, #56]
	str	w24, [x9, x8, lsl #2]
	ldr	x9, [x23, #72]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	str	x10, [x9, x8, lsl #3]
	ldr	w8, [x23, #64]
	add	w8, w8, #1
	str	w8, [x23, #64]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbnz	x8, LBB0_58
; %bb.57:
Lloh113:
	adrp	x8, _synths@GOTPAGE
Lloh114:
	ldr	x8, [x8, _synths@GOTPAGEOFF]
Lloh115:
	ldr	x8, [x8]
	ldr	x9, [x20]
	str	x23, [x8, x9, lsl #3]
LBB0_58:
Lloh116:
	adrp	x0, _register_mutex@GOTPAGE
Lloh117:
	ldr	x0, [x0, _register_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	bl	_kfree
	mov	x0, x25
	bl	_kfree
	mov	w0, #0
	b	LBB0_55
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGot	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_RAWMIDI_DEVICES,4,2      ; @SNDRV_RAWMIDI_DEVICES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,8,3 ; @SNDRV_RAWMIDI_STREAM_OUTPUT
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,8,3 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_register_mutex,4,2             ; @register_mutex
	.comm	_synths,8,3                     ; @synths
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"External MIDI"

	.comm	_SNDRV_SEQ_PORT_FLG_GIVEN_PORT,4,2 ; @SNDRV_SEQ_PORT_FLG_GIVEN_PORT
l_.str.2:                               ; @.str.2
	.asciz	"%s-%d"

l_.str.3:                               ; @.str.3
	.asciz	"MIDI %d-%d-%d"

l_.str.4:                               ; @.str.4
	.asciz	"MIDI %d-%d"

	.comm	_SNDRV_RAWMIDI_INFO_OUTPUT,4,2  ; @SNDRV_RAWMIDI_INFO_OUTPUT
	.comm	_SNDRV_SEQ_PORT_CAP_WRITE,4,2   ; @SNDRV_SEQ_PORT_CAP_WRITE
	.comm	_SNDRV_SEQ_PORT_CAP_SYNC_WRITE,4,2 ; @SNDRV_SEQ_PORT_CAP_SYNC_WRITE
	.comm	_SNDRV_SEQ_PORT_CAP_SUBS_WRITE,4,2 ; @SNDRV_SEQ_PORT_CAP_SUBS_WRITE
	.comm	_SNDRV_RAWMIDI_INFO_INPUT,4,2   ; @SNDRV_RAWMIDI_INFO_INPUT
	.comm	_SNDRV_SEQ_PORT_CAP_READ,4,2    ; @SNDRV_SEQ_PORT_CAP_READ
	.comm	_SNDRV_SEQ_PORT_CAP_SYNC_READ,4,2 ; @SNDRV_SEQ_PORT_CAP_SYNC_READ
	.comm	_SNDRV_SEQ_PORT_CAP_SUBS_READ,4,2 ; @SNDRV_SEQ_PORT_CAP_SUBS_READ
	.comm	_SNDRV_RAWMIDI_INFO_DUPLEX,4,2  ; @SNDRV_RAWMIDI_INFO_DUPLEX
	.comm	_SNDRV_SEQ_PORT_CAP_DUPLEX,4,2  ; @SNDRV_SEQ_PORT_CAP_DUPLEX
	.comm	_SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC,4,2 ; @SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC
	.comm	_SNDRV_SEQ_PORT_TYPE_HARDWARE,4,2 ; @SNDRV_SEQ_PORT_TYPE_HARDWARE
	.comm	_SNDRV_SEQ_PORT_TYPE_PORT,4,2   ; @SNDRV_SEQ_PORT_TYPE_PORT
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_midisynth_subscribe,4,2        ; @midisynth_subscribe
	.comm	_midisynth_unsubscribe,4,2      ; @midisynth_unsubscribe
	.comm	_midisynth_use,4,2              ; @midisynth_use
	.comm	_midisynth_unuse,4,2            ; @midisynth_unuse
	.comm	_event_process_midi,4,2         ; @event_process_midi
	.comm	_SNDRV_SEQ_IOCTL_CREATE_PORT,4,2 ; @SNDRV_SEQ_IOCTL_CREATE_PORT
	.no_dead_strip	_snd_seq_midisynth_register_port
.subsections_via_symbols
