	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setting_string_action_left_midi_output
_setting_string_action_left_midi_output: ## @setting_string_action_left_midi_output
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_midi_driver_get_avail_outputs
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	cmpl	$2, (%rax)
	jl	LBB0_7
## %bb.2:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_string_list_find_elem
	addl	$-2, %eax
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %eax
	decl	%eax
LBB0_5:
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	movq	8(%rbx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %esi
	callq	_strlcpy
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_setting_string_action_left_midi_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setting_string_action_left_midi_output
_setting_string_action_left_midi_output: ; @setting_string_action_left_midi_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	bl	_midi_driver_get_avail_outputs
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.2:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_string_list_find_elem
	sub	w8, w0, #2
	cbz	w21, LBB0_5
; %bb.3:
	cmn	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20]
	sub	w8, w8, #1
LBB0_5:
	tbnz	w8, #31, LBB0_7
; %bb.6:
	ldr	x9, [x20, #8]
	ldr	w1, [x9, w8, uxtw #2]
	ldp	w2, w0, [x19]
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_setting_string_action_left_midi_output
.subsections_via_symbols
