	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_usb_caiaq_midi_init        ## -- Begin function snd_usb_caiaq_midi_init
	.p2align	4, 0x90
_snd_usb_caiaq_midi_init:               ## @snd_usb_caiaq_midi_init
	.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
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	movl	24(%rbx), %esi
	movq	8(%rbx), %rcx
	movq	16(%rbx), %r8
	leaq	-16(%rbp), %r9
	xorl	%edx, %edx
	callq	_snd_rawmidi_new
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	-16(%rbp), %rax
	movl	16(%rax), %edi
	movl	24(%rbx), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SNDRV_RAWMIDI_INFO_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-16(%rbp), %rdi
	movl	%eax, (%rdi)
	movq	%rbx, 8(%rdi)
	cmpq	$0, 8(%rbx)
	jle	LBB0_3
## %bb.2:
	movq	_SNDRV_RAWMIDI_INFO_OUTPUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rdi)
	movq	_SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_usb_caiaq_midi_output@GOTPCREL(%rip), %rdx
	callq	_snd_rawmidi_set_ops
LBB0_3:
	cmpq	$0, 16(%rbx)
	jle	LBB0_5
## %bb.4:
	movq	_SNDRV_RAWMIDI_INFO_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-16(%rbp), %rdi
	orl	%eax, (%rdi)
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_usb_caiaq_midi_input@GOTPCREL(%rip), %rdx
	callq	_snd_rawmidi_set_ops
LBB0_5:
	movq	-16(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_RAWMIDI_INFO_DUPLEX,4,2  ## @SNDRV_RAWMIDI_INFO_DUPLEX
	.comm	_SNDRV_RAWMIDI_INFO_OUTPUT,4,2  ## @SNDRV_RAWMIDI_INFO_OUTPUT
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_OUTPUT
	.comm	_snd_usb_caiaq_midi_output,4,2  ## @snd_usb_caiaq_midi_output
	.comm	_SNDRV_RAWMIDI_INFO_INPUT,4,2   ## @SNDRV_RAWMIDI_INFO_INPUT
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_snd_usb_caiaq_midi_input,4,2   ## @snd_usb_caiaq_midi_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_usb_caiaq_midi_init        ; -- Begin function snd_usb_caiaq_midi_init
	.p2align	2
_snd_usb_caiaq_midi_init:               ; @snd_usb_caiaq_midi_init
	.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	x19, x0
	ldr	w0, [x0, #28]
	ldr	w1, [x19, #24]
	ldp	x3, x4, [x19, #8]
	add	x5, sp, #8
	mov	w2, #0
	bl	_snd_rawmidi_new
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #16]
	ldr	w1, [x19, #24]
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _SNDRV_RAWMIDI_INFO_DUPLEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_RAWMIDI_INFO_DUPLEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [sp, #8]
	str	w8, [x0]
	str	x19, [x0, #8]
	ldr	x9, [x19, #8]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _SNDRV_RAWMIDI_INFO_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_RAWMIDI_INFO_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh6:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_OUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, _snd_usb_caiaq_midi_output@GOTPAGE
Lloh10:
	ldr	x2, [x2, _snd_usb_caiaq_midi_output@GOTPAGEOFF]
	bl	_snd_rawmidi_set_ops
LBB0_3:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _SNDRV_RAWMIDI_INFO_INPUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_RAWMIDI_INFO_INPUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x0, [sp, #8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh14:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, _snd_usb_caiaq_midi_input@GOTPAGE
Lloh18:
	ldr	x2, [x2, _snd_usb_caiaq_midi_input@GOTPAGEOFF]
	bl	_snd_rawmidi_set_ops
LBB0_5:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_RAWMIDI_INFO_DUPLEX,4,2  ; @SNDRV_RAWMIDI_INFO_DUPLEX
	.comm	_SNDRV_RAWMIDI_INFO_OUTPUT,4,2  ; @SNDRV_RAWMIDI_INFO_OUTPUT
	.comm	_SNDRV_RAWMIDI_STREAM_OUTPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_OUTPUT
	.comm	_snd_usb_caiaq_midi_output,4,2  ; @snd_usb_caiaq_midi_output
	.comm	_SNDRV_RAWMIDI_INFO_INPUT,4,2   ; @SNDRV_RAWMIDI_INFO_INPUT
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_snd_usb_caiaq_midi_input,4,2   ; @snd_usb_caiaq_midi_input
.subsections_via_symbols
