	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_init_virmidi          ## -- Begin function snd_emux_init_virmidi
	.p2align	4, 0x90
_snd_emux_init_virmidi:                 ## @snd_emux_init_virmidi
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	$0, 16(%rdi)
	movl	(%rdi), %edi
	xorl	%r15d, %r15d
	testl	%edi, %edi
	jle	LBB0_11
## %bb.1:
	movq	%rsi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_snd_virmidi_new
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %r12
	movl	(%rax), %edi
	movq	8(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	_SNDRV_VIRMIDI_SEQ_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	32(%r13), %eax
	movl	%eax, 4(%r12)
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%r12)
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snd_device_register
	movq	-48(%rbp), %rsi
	testq	%rax, %rax
	js	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rax
	movq	%rsi, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	callq	_snd_device_free
LBB0_7:
	movq	%r13, %rdi
	callq	_snd_emux_delete_virmidi
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s Synth MIDI"

	.comm	_SNDRV_VIRMIDI_SEQ_ATTACH,4,2   ## @SNDRV_VIRMIDI_SEQ_ATTACH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_init_virmidi          ; -- Begin function snd_emux_init_virmidi
	.p2align	2
_snd_emux_init_virmidi:                 ; @snd_emux_init_virmidi
	.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	x19, x0
	str	xzr, [x0, #16]
	ldr	w0, [x0]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x23, _SNDRV_VIRMIDI_SEQ_ATTACH@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SNDRV_VIRMIDI_SEQ_ATTACH@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x1, x22, x8
	add	x2, sp, #8
	mov	x0, x20
	bl	_snd_virmidi_new
	tbnz	x0, #63, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldr	x24, [x8, #8]
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
	mov	x1, x21
	bl	_sprintf
	ldr	w8, [x23]
	ldr	w9, [x19, #32]
	stp	w9, w8, [x24, #4]
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x24]
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_snd_device_register
	ldr	x1, [sp, #8]
	tbnz	x0, #63, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	str	x1, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_snd_device_free
LBB0_9:
	mov	x0, x19
	bl	_snd_emux_delete_virmidi
LBB0_10:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s Synth MIDI"

	.comm	_SNDRV_VIRMIDI_SEQ_ATTACH,4,2   ; @SNDRV_VIRMIDI_SEQ_ATTACH
.subsections_via_symbols
