	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_seq_copy_to_input              ## -- Begin function seq_copy_to_input
	.p2align	4, 0x90
_seq_copy_to_input:                     ## @seq_copy_to_input
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$8, %esi
	je	LBB0_2
## %bb.1:
	cmpl	$4, %ebx
	jne	LBB0_8
LBB0_2:
	movq	_seq_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SEQ_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%al
	cmpl	$4, %ebx
	sete	%cl
	cmpb	%al, %cl
	je	LBB0_8
## %bb.3:
	movq	_iqlen@GOTPCREL(%rip), %r13
	movq	_SEQ_MAX_QUEUE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	decl	%eax
	cmpl	%eax, (%r13)
	jge	LBB0_8
## %bb.4:
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_iqtail@GOTPCREL(%rip), %r15
	movq	_IEV_SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	(%r15), %rdi
	movq	_iqueue@GOTPCREL(%rip), %rax
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	incl	(%r13)
	movq	(%r15), %rax
	incq	%rax
	movslq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	movq	%rdx, (%r15)
	movq	_midi_sleeper@GOTPCREL(%rip), %rdi
	callq	_wake_up
	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	_seq_mode,8,3                   ## @seq_mode
	.comm	_SEQ_1,8,3                      ## @SEQ_1
	.comm	_iqlen,4,2                      ## @iqlen
	.comm	_SEQ_MAX_QUEUE,4,2              ## @SEQ_MAX_QUEUE
	.comm	_lock,4,2                       ## @lock
	.comm	_iqueue,8,3                     ## @iqueue
	.comm	_iqtail,8,3                     ## @iqtail
	.comm	_IEV_SZ,8,3                     ## @IEV_SZ
	.comm	_midi_sleeper,4,2               ## @midi_sleeper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_seq_copy_to_input              ; -- Begin function seq_copy_to_input
	.p2align	2
_seq_copy_to_input:                     ; @seq_copy_to_input
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #8
	b.eq	LBB0_2
; %bb.1:
	cmp	w19, #4
	b.ne	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _seq_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _seq_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SEQ_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEQ_1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	cmp	w19, #4
	cset	w9, eq
	cmp	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x23, _iqlen@GOTPAGE
Lloh7:
	ldr	x23, [x23, _iqlen@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh8:
	adrp	x22, _SEQ_MAX_QUEUE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SEQ_MAX_QUEUE@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.4:
Lloh10:
	adrp	x21, _lock@GOTPAGE
Lloh11:
	ldr	x21, [x21, _lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _iqueue@GOTPAGE
Lloh13:
	ldr	x8, [x8, _iqueue@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x24, _iqtail@GOTPAGE
Lloh16:
	ldr	x24, [x24, _iqtail@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh17:
	adrp	x10, _IEV_SZ@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IEV_SZ@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	mul	x9, x10, x9
	add	x0, x8, x9, lsl #2
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	x8, [x24]
	add	x8, x8, #1
	ldrsw	x9, [x22]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x24]
Lloh20:
	adrp	x0, _midi_sleeper@GOTPAGE
Lloh21:
	ldr	x0, [x0, _midi_sleeper@GOTPAGEOFF]
	bl	_wake_up
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_5:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_seq_mode,8,3                   ; @seq_mode
	.comm	_SEQ_1,8,3                      ; @SEQ_1
	.comm	_iqlen,4,2                      ; @iqlen
	.comm	_SEQ_MAX_QUEUE,4,2              ; @SEQ_MAX_QUEUE
	.comm	_lock,4,2                       ; @lock
	.comm	_iqueue,8,3                     ; @iqueue
	.comm	_iqtail,8,3                     ; @iqtail
	.comm	_IEV_SZ,8,3                     ; @IEV_SZ
	.comm	_midi_sleeper,4,2               ; @midi_sleeper
.subsections_via_symbols
