	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_virmidi_dev_attach_seq
_snd_virmidi_dev_attach_seq:            ## @snd_virmidi_dev_attach_seq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	jns	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	16(%r12), %rdi
	movl	4(%r12), %esi
	movq	24(%r12), %rax
	movl	(%rax), %ecx
	movl	(%rdi), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%esi, %r9d
	callq	_snd_seq_create_kernel_client
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%r15d, (%r12)
	movl	%r15d, 12(%r14)
	movl	32(%r14), %edi
	movq	16(%r12), %rax
	movl	(%rax), %edx
	movl	4(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	_SNDRV_SEQ_PORT_CAP_WRITE@GOTPCREL(%rip), %rax
	movq	_SNDRV_SEQ_PORT_CAP_SYNC_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SNDRV_SEQ_PORT_CAP_SUBS_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	(%r14), %ecx
	movl	%ecx, (%r14)
	movq	_SNDRV_SEQ_PORT_CAP_READ@GOTPCREL(%rip), %rax
	movq	_SNDRV_SEQ_PORT_CAP_SYNC_READ@GOTPCREL(%rip), %rdx
	movq	_SNDRV_SEQ_PORT_CAP_SUBS_READ@GOTPCREL(%rip), %rsi
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	movl	%ecx, (%r14)
	movq	_SNDRV_SEQ_PORT_CAP_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC@GOTPCREL(%rip), %rax
	movq	_SNDRV_SEQ_PORT_TYPE_SOFTWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SNDRV_SEQ_PORT_TYPE_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	$16, 8(%r14)
	leaq	-80(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	_snd_virmidi_subscribe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_snd_virmidi_unsubscribe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_snd_virmidi_use@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_snd_virmidi_unuse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_snd_virmidi_event_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r13, 24(%r14)
	movq	_SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_snd_seq_kernel_client_ctl
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	16(%r14), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_8
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%r15d, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_snd_seq_delete_kernel_client
	movl	$-1, (%r12)
	movl	%r13d, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %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 %d-%d"

L_.str.1:                               ## @.str.1
	.asciz	"VirMIDI %d-%d"

	.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_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_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_SOFTWARE,4,2 ## @SNDRV_SEQ_PORT_TYPE_SOFTWARE
	.comm	_SNDRV_SEQ_PORT_TYPE_PORT,4,2   ## @SNDRV_SEQ_PORT_TYPE_PORT
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_snd_virmidi_subscribe,4,2      ## @snd_virmidi_subscribe
	.comm	_snd_virmidi_unsubscribe,4,2    ## @snd_virmidi_unsubscribe
	.comm	_snd_virmidi_use,4,2            ## @snd_virmidi_use
	.comm	_snd_virmidi_unuse,4,2          ## @snd_virmidi_unuse
	.comm	_snd_virmidi_event_input,4,2    ## @snd_virmidi_event_input
	.comm	_SNDRV_SEQ_IOCTL_CREATE_PORT,4,2 ## @SNDRV_SEQ_IOCTL_CREATE_PORT
	.no_dead_strip	_snd_virmidi_dev_attach_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_virmidi_dev_attach_seq
_snd_virmidi_dev_attach_seq:            ; @snd_virmidi_dev_attach_seq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_9
LBB0_2:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w1, [x20, #4]
	ldp	x0, x8, [x20, #16]
	ldr	w3, [x8]
	ldr	w4, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x5, x1
	bl	_snd_seq_create_kernel_client
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	str	w21, [x20]
	str	w21, [x19, #12]
	ldr	w0, [x19, #32]
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	ldr	w3, [x20, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
Lloh7:
	adrp	x8, _SNDRV_SEQ_PORT_CAP_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_SEQ_PORT_CAP_WRITE@GOTPAGEOFF]
Lloh9:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_SYNC_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_SYNC_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_SUBS_WRITE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_SUBS_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh16:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_READ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_READ@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _SNDRV_SEQ_PORT_CAP_SYNC_READ@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SNDRV_SEQ_PORT_CAP_SYNC_READ@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _SNDRV_SEQ_PORT_CAP_SUBS_READ@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SNDRV_SEQ_PORT_CAP_SUBS_READ@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
Lloh25:
	adrp	x9, _SNDRV_SEQ_PORT_CAP_DUPLEX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_CAP_DUPLEX@GOTPAGEOFF]
	str	w8, [x19]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh28:
	adrp	x8, _SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _SNDRV_SEQ_PORT_TYPE_SOFTWARE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SNDRV_SEQ_PORT_TYPE_SOFTWARE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _SNDRV_SEQ_PORT_TYPE_PORT@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SNDRV_SEQ_PORT_TYPE_PORT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh36:
	ldr	w9, [x10]
	orr	w8, w8, w9
	mov	w9, #16
	stp	w8, w9, [x19, #4]
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh37:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x20, [sp, #32]
Lloh40:
	adrp	x8, _snd_virmidi_subscribe@GOTPAGE
Lloh41:
	ldr	x8, [x8, _snd_virmidi_subscribe@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh43:
	adrp	x8, _snd_virmidi_unsubscribe@GOTPAGE
Lloh44:
	ldr	x8, [x8, _snd_virmidi_unsubscribe@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _snd_virmidi_use@GOTPAGE
Lloh47:
	ldr	x9, [x9, _snd_virmidi_use@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
Lloh49:
	adrp	x8, _snd_virmidi_unuse@GOTPAGE
Lloh50:
	ldr	x8, [x8, _snd_virmidi_unuse@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _snd_virmidi_event_input@GOTPAGE
Lloh53:
	ldr	x9, [x9, _snd_virmidi_event_input@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	str	x22, [x19, #24]
Lloh55:
	adrp	x8, _SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_snd_seq_kernel_client_ctl
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	w21, #0
	ldr	w8, [x19, #16]
	str	w8, [x20, #8]
	b	LBB0_8
LBB0_6:
Lloh58:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	mov	x0, x21
	bl	_snd_seq_delete_kernel_client
	mov	w8, #-1
	str	w8, [x20]
	mov	x21, x22
LBB0_8:
	mov	x0, x19
	bl	_kfree
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.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 %d-%d"

l_.str.1:                               ; @.str.1
	.asciz	"VirMIDI %d-%d"

	.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_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_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_SOFTWARE,4,2 ; @SNDRV_SEQ_PORT_TYPE_SOFTWARE
	.comm	_SNDRV_SEQ_PORT_TYPE_PORT,4,2   ; @SNDRV_SEQ_PORT_TYPE_PORT
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_snd_virmidi_subscribe,4,2      ; @snd_virmidi_subscribe
	.comm	_snd_virmidi_unsubscribe,4,2    ; @snd_virmidi_unsubscribe
	.comm	_snd_virmidi_use,4,2            ; @snd_virmidi_use
	.comm	_snd_virmidi_unuse,4,2          ; @snd_virmidi_unuse
	.comm	_snd_virmidi_event_input,4,2    ; @snd_virmidi_event_input
	.comm	_SNDRV_SEQ_IOCTL_CREATE_PORT,4,2 ; @SNDRV_SEQ_IOCTL_CREATE_PORT
	.no_dead_strip	_snd_virmidi_dev_attach_seq
.subsections_via_symbols
