	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function midisynth_use
_midisynth_use:                         ## @midisynth_use
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	_SNDRV_RAWMIDI_LFLG_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	4(%rbx), %r15
	movq	%r15, %r8
	callq	_snd_rawmidi_kernel_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -48(%rbp)
	movq	_output_buffer_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_snd_rawmidi_output_params
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	callq	_snd_midi_event_reset_decode
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_snd_printd
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_snd_rawmidi_kernel_release
	movl	%r12d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_RAWMIDI_LFLG_OUTPUT,4,2  ## @SNDRV_RAWMIDI_LFLG_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"midi output open failed!!!\n"

	.comm	_output_buffer_size,4,2         ## @output_buffer_size
	.no_dead_strip	_midisynth_use
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function midisynth_use
_midisynth_use:                         ; @midisynth_use
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	ldp	w2, w1, [x19, #8]
Lloh0:
	adrp	x8, _SNDRV_RAWMIDI_LFLG_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_RAWMIDI_LFLG_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x20, x19, #4
	mov	x4, x20
	bl	_snd_rawmidi_kernel_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh3:
	adrp	x8, _output_buffer_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _output_buffer_size@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	movi.2s	v0, #1
	str	d0, [sp]
	ldr	w0, [x20]
	mov	x1, sp
	bl	_snd_rawmidi_output_params
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_snd_midi_event_reset_decode
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	mov	x0, x20
	bl	_snd_rawmidi_kernel_release
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_RAWMIDI_LFLG_OUTPUT,4,2  ; @SNDRV_RAWMIDI_LFLG_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"midi output open failed!!!\n"

	.comm	_output_buffer_size,4,2         ; @output_buffer_size
	.no_dead_strip	_midisynth_use
.subsections_via_symbols
