	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usbmidi_create_rawmidi
_snd_usbmidi_create_rawmidi:            ## @snd_usbmidi_create_rawmidi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %r8d
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	16(%rbx), %edx
	leal	1(%rdx), %eax
	movl	%eax, 16(%rbx)
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %r9
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_snd_rawmidi_new
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	-16(%rbp), %rax
	movl	24(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_SNDRV_RAWMIDI_INFO_OUTPUT@GOTPCREL(%rip), %rax
	movq	_SNDRV_RAWMIDI_INFO_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SNDRV_RAWMIDI_INFO_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	-16(%rbp), %rdi
	movl	%ecx, (%rdi)
	movq	_snd_usbmidi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	%rbx, 8(%rdi)
	movq	_snd_usbmidi_rawmidi_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_usbmidi_output_ops@GOTPCREL(%rip), %rdx
	callq	_snd_rawmidi_set_ops
	movq	-16(%rbp), %rdi
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_usbmidi_input_ops@GOTPCREL(%rip), %rdx
	callq	_snd_rawmidi_set_ops
	movq	-16(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB MIDI"

	.comm	_SNDRV_RAWMIDI_INFO_OUTPUT,4,2  ## @SNDRV_RAWMIDI_INFO_OUTPUT
	.comm	_SNDRV_RAWMIDI_INFO_INPUT,4,2   ## @SNDRV_RAWMIDI_INFO_INPUT
	.comm	_SNDRV_RAWMIDI_INFO_DUPLEX,4,2  ## @SNDRV_RAWMIDI_INFO_DUPLEX
	.comm	_snd_usbmidi_ops,4,2            ## @snd_usbmidi_ops
	.comm	_snd_usbmidi_rawmidi_free,4,2   ## @snd_usbmidi_rawmidi_free
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_OUTPUT
	.comm	_snd_usbmidi_output_ops,4,2     ## @snd_usbmidi_output_ops
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_snd_usbmidi_input_ops,4,2      ## @snd_usbmidi_input_ops
	.no_dead_strip	_snd_usbmidi_create_rawmidi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usbmidi_create_rawmidi
_snd_usbmidi_create_rawmidi:            ; @snd_usbmidi_create_rawmidi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x4, x2
	mov	x3, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w2, [x19, #16]
	add	w8, w2, #1
	str	w8, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x5, sp, #8
	bl	_snd_rawmidi_new
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #24]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_strcpy
Lloh2:
	adrp	x8, _SNDRV_RAWMIDI_INFO_OUTPUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_RAWMIDI_INFO_OUTPUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SNDRV_RAWMIDI_INFO_INPUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_RAWMIDI_INFO_INPUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _SNDRV_RAWMIDI_INFO_DUPLEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_RAWMIDI_INFO_DUPLEX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x0, [sp, #8]
	str	w8, [x0]
Lloh11:
	adrp	x8, _snd_usbmidi_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _snd_usbmidi_ops@GOTPAGEOFF]
Lloh13:
	adrp	x9, _snd_usbmidi_rawmidi_free@GOTPAGE
Lloh14:
	ldr	x9, [x9, _snd_usbmidi_rawmidi_free@GOTPAGEOFF]
	stp	x19, x8, [x0, #8]
Lloh15:
	ldr	w8, [x9]
	str	w8, [x0, #4]
Lloh16:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, _snd_usbmidi_output_ops@GOTPAGE
Lloh20:
	ldr	x2, [x2, _snd_usbmidi_output_ops@GOTPAGEOFF]
	bl	_snd_rawmidi_set_ops
	ldr	x0, [sp, #8]
Lloh21:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, _snd_usbmidi_input_ops@GOTPAGE
Lloh25:
	ldr	x2, [x2, _snd_usbmidi_input_ops@GOTPAGEOFF]
	bl	_snd_rawmidi_set_ops
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB MIDI"

	.comm	_SNDRV_RAWMIDI_INFO_OUTPUT,4,2  ; @SNDRV_RAWMIDI_INFO_OUTPUT
	.comm	_SNDRV_RAWMIDI_INFO_INPUT,4,2   ; @SNDRV_RAWMIDI_INFO_INPUT
	.comm	_SNDRV_RAWMIDI_INFO_DUPLEX,4,2  ; @SNDRV_RAWMIDI_INFO_DUPLEX
	.comm	_snd_usbmidi_ops,4,2            ; @snd_usbmidi_ops
	.comm	_snd_usbmidi_rawmidi_free,4,2   ; @snd_usbmidi_rawmidi_free
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_OUTPUT
	.comm	_snd_usbmidi_output_ops,4,2     ; @snd_usbmidi_output_ops
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_snd_usbmidi_input_ops,4,2      ; @snd_usbmidi_input_ops
	.no_dead_strip	_snd_usbmidi_create_rawmidi
.subsections_via_symbols
