	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sequencer_midi_input
_sequencer_midi_input:                  ## @sequencer_midi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	cmpb	$-2, %bl
	je	LBB0_4
## %bb.1:
	movl	%edi, %r14d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_seq_time@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, -32(%rbp)
	movq	_prev_input_time@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_3
## %bb.2:
	shll	$8, %eax
	movq	_SEQ_WAIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movl	$4, %esi
	callq	_seq_copy_to_input
	movl	-32(%rbp), %eax
	movl	%eax, (%r15)
LBB0_3:
	movq	_SEQ_MIDIPUTC@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -28(%rbp)
	movb	%bl, -27(%rbp)
	movb	%r14b, -26(%rbp)
	movb	$0, -25(%rbp)
	leaq	-28(%rbp), %rdi
	movl	$4, %esi
	callq	_seq_copy_to_input
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_seq_time,4,2                   ## @seq_time
	.comm	_prev_input_time,4,2            ## @prev_input_time
	.comm	_SEQ_WAIT,4,2                   ## @SEQ_WAIT
	.comm	_SEQ_MIDIPUTC,1,0               ## @SEQ_MIDIPUTC
	.no_dead_strip	_sequencer_midi_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sequencer_midi_input
_sequencer_midi_input:                  ; @sequencer_midi_input
	.cfi_startproc
; %bb.0:
	cmp	w1, #254
	b.eq	LBB0_4
; %bb.1:
	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	x20, x1
	mov	x19, x0
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:
	ldr	w9, [x9]
Lloh6:
	adrp	x21, _prev_input_time@GOTPAGE
Lloh7:
	ldr	x21, [x21, _prev_input_time@GOTPAGEOFF]
	ldr	w10, [x21]
	sub	w8, w8, w9
	cmp	w8, w10
	str	w8, [sp, #12]
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _SEQ_WAIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEQ_WAIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #8
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #4
	bl	_seq_copy_to_input
	ldr	w8, [sp, #12]
	str	w8, [x21]
LBB0_3:
Lloh11:
	adrp	x8, _SEQ_MIDIPUTC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEQ_MIDIPUTC@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #8]
	strb	w20, [sp, #9]
	strb	w19, [sp, #10]
	strb	wzr, [sp, #11]
	add	x0, sp, #8
	mov	w1, #4
	bl	_seq_copy_to_input
	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
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_seq_time,4,2                   ; @seq_time
	.comm	_prev_input_time,4,2            ; @prev_input_time
	.comm	_SEQ_WAIT,4,2                   ; @SEQ_WAIT
	.comm	_SEQ_MIDIPUTC,1,0               ; @SEQ_MIDIPUTC
	.no_dead_strip	_sequencer_midi_input
.subsections_via_symbols
