	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function midi_outc
_midi_outc:                             ## @midi_outc
	.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, %r14d
	movl	%edi, %r15d
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movslq	%r15d, %r13
	leal	(%rbx,%rbx,2), %ebx
	negl	%ebx
	movq	_midi_devs@GOTPCREL(%rip), %r12
	movzbl	%r14b, %r14d
	movq	_seq_sleeper@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$35, %rsi
	addl	%eax, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_interruptible_sleep_on_timeout
	incl	%ebx
	jne	LBB0_2
LBB0_4:
	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	_HZ,4,2                         ## @HZ
	.comm	_lock,4,2                       ## @lock
	.comm	_midi_devs,8,3                  ## @midi_devs
	.comm	_seq_sleeper,4,2                ## @seq_sleeper
	.no_dead_strip	_midi_outc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function midi_outc
_midi_outc:                             ; @midi_outc
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _HZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
	ldr	w26, [x22]
Lloh2:
	adrp	x0, _lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	cbz	w26, LBB0_4
; %bb.1:
	sxtw	x23, w20
Lloh4:
	adrp	x24, _midi_devs@GOTPAGE
Lloh5:
	ldr	x24, [x24, _midi_devs@GOTPAGEOFF]
	mov	w25, #34079
	movk	w25, #20971, lsl #16
Lloh6:
	adrp	x21, _seq_sleeper@GOTPAGE
Lloh7:
	ldr	x21, [x21, _seq_sleeper@GOTPAGEOFF]
	sub	w26, w26, w26, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x22]
	mul	x8, x8, x25
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w1, w8, w9
	mov	x0, x21
	bl	_interruptible_sleep_on_timeout
	adds	w26, w26, #1
	b.lo	LBB0_2
LBB0_4:
Lloh8:
	adrp	x0, _lock@GOTPAGE
Lloh9:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_lock,4,2                       ; @lock
	.comm	_midi_devs,8,3                  ; @midi_devs
	.comm	_seq_sleeper,4,2                ; @seq_sleeper
	.no_dead_strip	_midi_outc
.subsections_via_symbols
