	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_reset
_seq_reset:                             ## @seq_reset
	.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
	xorl	%eax, %eax
	callq	_sound_stop_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_seq_time@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_prev_input_time@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_prev_event_time@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_qtail@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_qhead@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_qlen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_iqtail@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_iqhead@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_iqlen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_max_synthdev@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_synth_open_mask@GOTPCREL(%rip), %r14
	movq	_synth_devs@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	btl	%ebx, %eax
	jae	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	*16(%rax)
	movl	(%r15), %ecx
	jmp	LBB0_5
LBB0_6:
	movq	_seq_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SEQ_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_15
## %bb.7:
	xorl	%r14d, %r14d
	movq	_synth_open_mask@GOTPCREL(%rip), %r12
	movq	_synth_devs@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
	cmpl	$16, %r14d
	je	LBB0_22
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %eax
	btl	%ebx, %eax
	jae	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	$123, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	$121, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	*(%rax)
	movl	(%r15), %ecx
	jmp	LBB0_13
LBB0_15:
	movq	_max_mididev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.16:
	movq	_midi_written@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	movq	_midi_devs@GOTPCREL(%rip), %r12
	movq	_midi_opened@GOTPCREL(%rip), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_22
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %edi
	movl	$254, %esi
	callq	_midi_outc
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %esi
	orl	$176, %esi
	movl	%ebx, %edi
	callq	_midi_outc
	movl	%ebx, %edi
	movl	$123, %esi
	callq	_midi_outc
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_midi_outc
	incl	%r14d
	cmpl	$16, %r14d
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%ebx, %edi
	callq	*(%rax)
	movq	(%r15), %rcx
	movq	$0, (%rcx,%rbx,8)
	movq	(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movq	_max_mididev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
LBB0_22:
	movq	_seq_playing@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_seq_sleeper@GOTPCREL(%rip), %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_seq_sleeper@GOTPCREL(%rip), %rdi
	callq	_wake_up
LBB0_24:
	movq	_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_seq_time,4,2                   ## @seq_time
	.comm	_prev_input_time,8,3            ## @prev_input_time
	.comm	_prev_event_time,8,3            ## @prev_event_time
	.comm	_qtail,8,3                      ## @qtail
	.comm	_qhead,8,3                      ## @qhead
	.comm	_qlen,8,3                       ## @qlen
	.comm	_iqtail,8,3                     ## @iqtail
	.comm	_iqhead,8,3                     ## @iqhead
	.comm	_iqlen,8,3                      ## @iqlen
	.comm	_max_synthdev,4,2               ## @max_synthdev
	.comm	_synth_open_mask,4,2            ## @synth_open_mask
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_seq_mode,8,3                   ## @seq_mode
	.comm	_SEQ_2,8,3                      ## @SEQ_2
	.comm	_max_mididev,4,2                ## @max_mididev
	.comm	_midi_written,8,3               ## @midi_written
	.comm	_midi_devs,8,3                  ## @midi_devs
	.comm	_midi_opened,8,3                ## @midi_opened
	.comm	_seq_playing,8,3                ## @seq_playing
	.comm	_lock,4,2                       ## @lock
	.comm	_seq_sleeper,4,2                ## @seq_sleeper
	.no_dead_strip	_seq_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_reset
_seq_reset:                             ; @seq_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_sound_stop_timer
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _seq_time@GOTPAGE
Lloh4:
	ldr	x9, [x9, _seq_time@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _prev_input_time@GOTPAGE
Lloh7:
	ldr	x8, [x8, _prev_input_time@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _prev_event_time@GOTPAGE
Lloh10:
	ldr	x8, [x8, _prev_event_time@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
Lloh12:
	adrp	x8, _qtail@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtail@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
Lloh15:
	adrp	x8, _qhead@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qhead@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
Lloh18:
	adrp	x8, _qlen@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qlen@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x8, _iqtail@GOTPAGE
Lloh22:
	ldr	x8, [x8, _iqtail@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
Lloh24:
	adrp	x8, _iqhead@GOTPAGE
Lloh25:
	ldr	x8, [x8, _iqhead@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
Lloh27:
	adrp	x8, _iqlen@GOTPAGE
Lloh28:
	ldr	x8, [x8, _iqlen@GOTPAGEOFF]
Lloh29:
	str	xzr, [x8]
Lloh30:
	adrp	x21, _max_synthdev@GOTPAGE
Lloh31:
	ldr	x21, [x21, _max_synthdev@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh32:
	adrp	x22, _synth_open_mask@GOTPAGE
Lloh33:
	ldr	x22, [x22, _synth_open_mask@GOTPAGEOFF]
Lloh34:
	adrp	x23, _synth_devs@GOTPAGE
Lloh35:
	ldr	x23, [x23, _synth_devs@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	lsr	w9, w9, w19
	tbz	w9, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23]
	ldr	x9, [x9, x19, lsl #3]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x9, #16]
	mov	x0, x19
	blr	x8
	ldr	w8, [x21]
	b	LBB0_2
LBB0_6:
Lloh36:
	adrp	x9, _seq_mode@GOTPAGE
Lloh37:
	ldr	x9, [x9, _seq_mode@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, _SEQ_2@GOTPAGE
Lloh40:
	ldr	x10, [x10, _SEQ_2@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.7:
	mov	w19, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w19, w19, #1
	cmp	w19, #16
	b.eq	LBB0_22
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x22]
	lsr	w9, w9, w20
	tbz	w9, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x9, [x23]
	ldr	x9, [x9, x20, lsl #3]
	cbz	x9, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x9, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #123
	mov	w3, #0
	blr	x8
	ldr	x8, [x23]
	lsl	x24, x20, #3
	ldr	x8, [x8, x24]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #121
	mov	w3, #0
	blr	x8
	ldr	x8, [x23]
	ldr	x8, [x8, x24]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #8192
	blr	x8
	ldr	w8, [x21]
	b	LBB0_11
LBB0_15:
Lloh42:
	adrp	x20, _max_mididev@GOTPAGE
Lloh43:
	ldr	x20, [x20, _max_mididev@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.16:
	mov	x19, #0
Lloh44:
	adrp	x21, _midi_written@GOTPAGE
Lloh45:
	ldr	x21, [x21, _midi_written@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w22, #176
Lloh46:
	adrp	x23, _midi_devs@GOTPAGE
Lloh47:
	ldr	x23, [x23, _midi_devs@GOTPAGEOFF]
Lloh48:
	adrp	x24, _midi_opened@GOTPAGE
Lloh49:
	ldr	x24, [x24, _midi_opened@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_22
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x10, [x9, x19, lsl #3]
	cbz	x10, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x19
	mov	w1, #254
	bl	_midi_outc
	mov	w25, #0
LBB0_20:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	orr	w1, w25, w22
	mov	x0, x19
	bl	_midi_outc
	mov	x0, x19
	mov	w1, #123
	bl	_midi_outc
	mov	x0, x19
	mov	w1, #0
	bl	_midi_outc
	add	w25, w25, #1
	cmp	w25, #16
	b.ne	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x23]
	lsl	x25, x19, #3
	ldr	x8, [x8, x25]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x9, [x21]
	str	xzr, [x9, x25]
	ldr	x8, [x24]
	str	xzr, [x8, x25]
	ldr	w8, [x20]
	b	LBB0_17
LBB0_22:
Lloh50:
	adrp	x8, _seq_playing@GOTPAGE
Lloh51:
	ldr	x8, [x8, _seq_playing@GOTPAGEOFF]
Lloh52:
	str	xzr, [x8]
Lloh53:
	adrp	x0, _lock@GOTPAGE
Lloh54:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh55:
	adrp	x0, _seq_sleeper@GOTPAGE
Lloh56:
	ldr	x0, [x0, _seq_sleeper@GOTPAGEOFF]
	bl	_waitqueue_active
	cbz	x0, LBB0_24
; %bb.23:
Lloh57:
	adrp	x0, _seq_sleeper@GOTPAGE
Lloh58:
	ldr	x0, [x0, _seq_sleeper@GOTPAGEOFF]
	bl	_wake_up
LBB0_24:
Lloh59:
	adrp	x0, _lock@GOTPAGE
Lloh60:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_seq_time,4,2                   ; @seq_time
	.comm	_prev_input_time,8,3            ; @prev_input_time
	.comm	_prev_event_time,8,3            ; @prev_event_time
	.comm	_qtail,8,3                      ; @qtail
	.comm	_qhead,8,3                      ; @qhead
	.comm	_qlen,8,3                       ; @qlen
	.comm	_iqtail,8,3                     ; @iqtail
	.comm	_iqhead,8,3                     ; @iqhead
	.comm	_iqlen,8,3                      ; @iqlen
	.comm	_max_synthdev,4,2               ; @max_synthdev
	.comm	_synth_open_mask,4,2            ; @synth_open_mask
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_seq_mode,8,3                   ; @seq_mode
	.comm	_SEQ_2,8,3                      ; @SEQ_2
	.comm	_max_mididev,4,2                ; @max_mididev
	.comm	_midi_written,8,3               ; @midi_written
	.comm	_midi_devs,8,3                  ; @midi_devs
	.comm	_midi_opened,8,3                ; @midi_opened
	.comm	_seq_playing,8,3                ; @seq_playing
	.comm	_lock,4,2                       ; @lock
	.comm	_seq_sleeper,4,2                ; @seq_sleeper
	.no_dead_strip	_seq_reset
.subsections_via_symbols
