	.file	"extr_seq_virmidi.c_snd_virmidi_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"VirMidi"
	.text
	.p2align 4
	.globl	snd_virmidi_new
	.type	snd_virmidi_new, @function
snd_virmidi_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r8d, 16
	mov	ecx, 16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdx], 0
	mov	r9, rsp
	mov	edx, esi
	lea	rsi, .LC0[rip]
	call	snd_rawmidi_new@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR 32[rax]
	mov	edi, DWORD PTR 36[rax]
	call	strcpy@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 40
	call	kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L7
	mov	QWORD PTR 32[rax], r13
	mov	rax, QWORD PTR [rsp]
	lea	rdi, 16[rbx]
	mov	DWORD PTR [rbx], r12d
	mov	QWORD PTR 24[rbx], rax
	mov	DWORD PTR 4[rbx], -1
	call	rwlock_init@PLT
	lea	rdi, 12[rbx]
	call	INIT_LIST_HEAD@PLT
	mov	eax, DWORD PTR SNDRV_VIRMIDI_SEQ_DISPATCH[rip]
	mov	rdi, QWORD PTR [rsp]
	lea	rdx, snd_virmidi_input_ops[rip]
	mov	esi, DWORD PTR SNDRV_RAWMIDI_STREAM_INPUT[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR snd_virmidi_free[rip]
	mov	QWORD PTR 24[rdi], rbx
	mov	DWORD PTR 16[rdi], eax
	lea	rax, snd_virmidi_global_ops[rip]
	mov	QWORD PTR 8[rdi], rax
	call	snd_rawmidi_set_ops@PLT
	mov	esi, DWORD PTR SNDRV_RAWMIDI_STREAM_OUTPUT[rip]
	mov	rdi, QWORD PTR [rsp]
	lea	rdx, snd_virmidi_output_ops[rip]
	call	snd_rawmidi_set_ops@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	eax, DWORD PTR SNDRV_RAWMIDI_INFO_INPUT[rip]
	or	eax, DWORD PTR SNDRV_RAWMIDI_INFO_OUTPUT[rip]
	or	eax, DWORD PTR SNDRV_RAWMIDI_INFO_DUPLEX[rip]
	mov	DWORD PTR [rdx], eax
	xor	eax, eax
	mov	QWORD PTR 0[rbp], rdx
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r13
	call	snd_device_free@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_virmidi_new, .-snd_virmidi_new
	.comm	snd_virmidi_output_ops,4,4
	.comm	snd_virmidi_input_ops,4,4
	.comm	snd_virmidi_global_ops,4,4
	.comm	snd_virmidi_free,4,4
	.comm	SNDRV_VIRMIDI_SEQ_DISPATCH,4,4
	.comm	SNDRV_RAWMIDI_STREAM_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_STREAM_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_DUPLEX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_seq_virmidi.c_snd_virmidi_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"VirMidi\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	snd_virmidi_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_virmidi_new, %function
snd_virmidi_new:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r3, #16
	mov	r6, r1
	mov	r5, r2
	mov	r7, #0
	sub	sp, sp, #16
	ldr	r2, .L9
	add	r1, sp, #8
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r7, [r5]
	mov	r2, r6
	str	r1, [sp, #4]
	str	r3, [sp]
	ldr	r1, .L9+4
	mov	r8, r0
	bl	snd_rawmidi_new
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp, #8]
	ldr	r1, [r3, #16]
	ldr	r0, [r3, #20]
	bl	strcpy
	ldr	r3, .L9+8
	mov	r0, #28
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L7
	mvn	r2, #0
	ldr	r3, [sp, #8]
	str	r2, [r4, #4]
	str	r3, [r4, #20]
	str	r8, [r4, #24]
	str	r6, [r4]
	add	r0, r4, #16
	bl	rwlock_init
	add	r0, r4, #12
	bl	INIT_LIST_HEAD
	ldr	r2, .L9+12
	ldr	r3, .L9+16
	ldr	r0, [sp, #8]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #8]
	ldr	r2, .L9+20
	str	r3, [r0, #8]
	ldr	r3, .L9+24
	str	r2, [r0, #4]
	ldr	r1, [r3]
	ldr	r2, .L9+28
	str	r4, [r0, #12]
	bl	snd_rawmidi_set_ops
	ldr	r3, .L9+32
	ldr	r2, .L9+36
	ldr	r1, [r3]
	ldr	r0, [sp, #8]
	bl	snd_rawmidi_set_ops
	mov	r0, r7
	ldr	r3, .L9+40
	ldr	r2, .L9+44
	ldr	r1, .L9+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [sp, #8]
	orr	r3, r3, r1
	str	r3, [r2]
	str	r2, [r5]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r8
	ldr	r1, [sp, #8]
	bl	snd_device_free
	ldr	r3, .L9+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.word	GFP_KERNEL
	.word	SNDRV_VIRMIDI_SEQ_DISPATCH
	.word	snd_virmidi_free
	.word	snd_virmidi_global_ops
	.word	SNDRV_RAWMIDI_STREAM_INPUT
	.word	snd_virmidi_input_ops
	.word	SNDRV_RAWMIDI_STREAM_OUTPUT
	.word	snd_virmidi_output_ops
	.word	SNDRV_RAWMIDI_INFO_INPUT
	.word	SNDRV_RAWMIDI_INFO_OUTPUT
	.word	SNDRV_RAWMIDI_INFO_DUPLEX
	.word	ENOMEM
	.size	snd_virmidi_new, .-snd_virmidi_new
	.comm	snd_virmidi_output_ops,4,4
	.comm	snd_virmidi_input_ops,4,4
	.comm	snd_virmidi_global_ops,4,4
	.comm	snd_virmidi_free,4,4
	.comm	SNDRV_VIRMIDI_SEQ_DISPATCH,4,4
	.comm	SNDRV_RAWMIDI_STREAM_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_STREAM_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_DUPLEX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
