	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usbmidi_output_open
_snd_usbmidi_output_open:               ## @snd_usbmidi_output_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MIDI_MAX_ENDPOINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_40
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	(%rcx), %r8
	movq	8(%r8), %rdx
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	shlq	$4, %rcx
	addq	%rcx, %rdi
	movq	%rdi, %r14
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_37
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rdi
	cmpq	%rbx, 8(%rdi)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 24(%rdi)
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 40(%rdi)
	je	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 56(%rdi)
	je	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 72(%rdi)
	je	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 88(%rdi)
	je	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 104(%rdi)
	je	LBB0_28
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 120(%rdi)
	je	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 136(%rdi)
	je	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 152(%rdi)
	je	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 168(%rdi)
	je	LBB0_32
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 184(%rdi)
	je	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 200(%rdi)
	je	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 216(%rdi)
	je	LBB0_35
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 232(%rdi)
	je	LBB0_36
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, 248(%rdi)
	jne	LBB0_4
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$15, %ecx
	jmp	LBB0_3
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$2, %ecx
	jmp	LBB0_3
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$3, %ecx
	jmp	LBB0_3
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$4, %ecx
	jmp	LBB0_3
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$5, %ecx
	jmp	LBB0_3
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$6, %ecx
	jmp	LBB0_3
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$7, %ecx
	jmp	LBB0_3
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$8, %ecx
	jmp	LBB0_3
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$9, %ecx
	jmp	LBB0_3
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %ecx
	jmp	LBB0_3
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$11, %ecx
	jmp	LBB0_3
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$12, %ecx
	jmp	LBB0_3
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$13, %ecx
	jmp	LBB0_3
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$14, %ecx
	jmp	LBB0_3
LBB0_37:
	testq	%r14, %r14
	je	LBB0_40
## %bb.38:
	movl	(%r8), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_43
## %bb.39:
	movq	(%rbx), %rax
	movq	%r14, (%rax)
	movq	_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_substream_open
	xorl	%ebx, %ebx
	jmp	LBB0_42
LBB0_40:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_snd_BUG
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_41:
	subl	(%rax), %ebx
LBB0_42:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_43:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDI_MAX_ENDPOINTS,4,2         ## @MIDI_MAX_ENDPOINTS
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_STATE_UNKNOWN,4,2              ## @STATE_UNKNOWN
	.no_dead_strip	_snd_usbmidi_output_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usbmidi_output_open
_snd_usbmidi_output_open:               ; @snd_usbmidi_output_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MIDI_MAX_ENDPOINTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIDI_MAX_ENDPOINTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_40
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldr	x10, [x9, #8]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x12, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x11, x12, lsl #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_37
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x11]
	ldr	x12, [x11, #8]
	cmp	x12, x19
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #24]
	cmp	x12, x19
	b.eq	LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #40]
	cmp	x12, x19
	b.eq	LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #56]
	cmp	x12, x19
	b.eq	LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #72]
	cmp	x12, x19
	b.eq	LBB0_26
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #88]
	cmp	x12, x19
	b.eq	LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #104]
	cmp	x12, x19
	b.eq	LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #120]
	cmp	x12, x19
	b.eq	LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #136]
	cmp	x12, x19
	b.eq	LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #152]
	cmp	x12, x19
	b.eq	LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #168]
	cmp	x12, x19
	b.eq	LBB0_32
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #184]
	cmp	x12, x19
	b.eq	LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #200]
	cmp	x12, x19
	b.eq	LBB0_34
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #216]
	cmp	x12, x19
	b.eq	LBB0_35
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #232]
	cmp	x12, x19
	b.eq	LBB0_36
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x11, #248]
	cmp	x12, x19
	b.ne	LBB0_4
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #15
	b	LBB0_3
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #1
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #2
	b	LBB0_3
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #3
	b	LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #4
	b	LBB0_3
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #5
	b	LBB0_3
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #6
	b	LBB0_3
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #7
	b	LBB0_3
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #8
	b	LBB0_3
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #9
	b	LBB0_3
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #10
	b	LBB0_3
LBB0_33:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #11
	b	LBB0_3
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #12
	b	LBB0_3
LBB0_35:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #13
	b	LBB0_3
LBB0_36:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #14
	b	LBB0_3
LBB0_37:
	cbz	x20, LBB0_40
; %bb.38:
	ldr	w0, [x9]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_43
; %bb.39:
	ldr	x8, [x19]
	str	x20, [x8]
Lloh3:
	adrp	x8, _STATE_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATE_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #1
	bl	_substream_open
	mov	w0, #0
	b	LBB0_42
LBB0_40:
	bl	_snd_BUG
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_41:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_42:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_43:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDI_MAX_ENDPOINTS,4,2         ; @MIDI_MAX_ENDPOINTS
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_STATE_UNKNOWN,4,2              ; @STATE_UNKNOWN
	.no_dead_strip	_snd_usbmidi_output_open
.subsections_via_symbols
