	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v_midi_out
_v_midi_out:                            ## @v_midi_out
	.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_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movl	$1, %eax
	cmpq	$0, 8(%rbx)
	jle	LBB0_5
## %bb.3:
	movl	%esi, %r14d
	movl	16(%rbx), %edi
	callq	_MIDIbuf_avail
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$500, %ecx                      ## imm = 0x1F4
	jg	LBB0_5
## %bb.4:
	movl	16(%rbx), %edi
	movzbl	%r14b, %esi
	callq	*24(%rbx)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_midi_devs,8,3                  ## @midi_devs
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_v_midi_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v_midi_out
_v_midi_out:                            ; @v_midi_out
	.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_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _midi_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, w0, sxtw #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x20, [x8]
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x19, x1
	ldr	w0, [x20, #16]
	bl	_MIDIbuf_avail
	cmp	w0, #500
	b.le	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20, #24]
	ldr	w0, [x20, #16]
	mov	x1, x19
	blr	x8
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_midi_devs,8,3                  ; @midi_devs
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_v_midi_out
.subsections_via_symbols
