	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function setup_mode2
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_setup_mode2:                           ## @setup_mode2
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_num_synths@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_max_synthdev@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_num_midis@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	xorl	%edx, %edx
	movq	_midi_devs@GOTPCREL(%rip), %r9
	movq	_synth_devs@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rbx
	movq	(%rbx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rdi
	movslq	%eax, %rsi
	incl	%eax
	movl	%eax, (%r14)
	movq	%rbx, (%rdi,%rsi,8)
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_5
LBB0_6:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movq	_synth_devs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%r13d, %r13d
	movabsq	$858993459328, %r12             ## imm = 0xC800000080
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%rax,%r13,8), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, 16(%rcx,%rbx)
	movl	8(%rcx,%rbx), %esi
	movl	%r13d, %edi
	xorl	%edx, %edx
	callq	_reset_controllers
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rcx
	movq	(%rcx), %rcx
	movq	%r12, (%rcx,%rbx)
	addq	$24, %rbx
	cmpq	$384, %rbx                      ## imm = 0x180
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	(%r14), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_8
LBB0_11:
	movq	_max_mididev@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_SEQ_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_seq_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_synths,4,2                 ## @num_synths
	.comm	_max_synthdev,4,2               ## @max_synthdev
	.comm	_num_midis,4,2                  ## @num_midis
	.comm	_midi_devs,8,3                  ## @midi_devs
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_max_mididev,8,3                ## @max_mididev
	.comm	_SEQ_2,4,2                      ## @SEQ_2
	.comm	_seq_mode,4,2                   ## @seq_mode
	.no_dead_strip	_setup_mode2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function setup_mode2
lCPI0_0:
	.long	128                             ; 0x80
	.long	200                             ; 0xc8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_setup_mode2:                           ; @setup_mode2
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
Lloh0:
	adrp	x8, _num_synths@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_synths@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _max_synthdev@GOTPAGE
Lloh4:
	ldr	x20, [x20, _max_synthdev@GOTPAGEOFF]
	str	w8, [x20]
Lloh5:
	adrp	x9, _num_midis@GOTPAGE
Lloh6:
	ldr	x9, [x9, _num_midis@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
Lloh8:
	adrp	x21, _synth_devs@GOTPAGE
Lloh9:
	ldr	x21, [x21, _synth_devs@GOTPAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	lsl	x10, x10, #3
Lloh10:
	adrp	x11, _midi_devs@GOTPAGE
Lloh11:
	ldr	x11, [x11, _midi_devs@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldr	x12, [x12, x9]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x12]
	cbz	x12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x21]
	str	x12, [x13, w8, sxtw #3]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_2
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x19, #0
	ldr	x8, [x21]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x22, #0
	ldr	x8, [x8, x19, lsl #3]
	stp	xzr, xzr, [x8, #8]
	ldr	x9, [x8]
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x9, x22
	str	xzr, [x8, #16]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_reset_controllers
	ldr	x8, [x21]
	ldr	x9, [x8, x19, lsl #3]
	ldr	x9, [x9]
	str	d8, [x9, x22]
	add	x22, x22, #24
	cmp	x22, #384
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #1
	ldrsw	x9, [x20]
	cmp	x19, x9
	b.lt	LBB0_8
LBB0_11:
Lloh14:
	adrp	x8, _max_mididev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _max_mididev@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _SEQ_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SEQ_2@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _seq_mode@GOTPAGE
Lloh21:
	ldr	x9, [x9, _seq_mode@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_num_synths,4,2                 ; @num_synths
	.comm	_max_synthdev,4,2               ; @max_synthdev
	.comm	_num_midis,4,2                  ; @num_midis
	.comm	_midi_devs,8,3                  ; @midi_devs
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_max_mididev,8,3                ; @max_mididev
	.comm	_SEQ_2,4,2                      ; @SEQ_2
	.comm	_seq_mode,4,2                   ; @seq_mode
	.no_dead_strip	_setup_mode2
.subsections_via_symbols
