	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmidi_handle_report3
_pcmidi_handle_report3:                 ## @pcmidi_handle_report3
	.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
                                        ## kill: def $edx killed $edx def $rdx
	cmpl	$3, %edx
	jb	LBB0_12
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, %eax
	decl	%eax
	shrl	$31, %eax
	leal	(%rdx,%rax), %r12d
	decl	%r12d
	sarl	%r12d
	cmpl	$2, %r12d
	movl	$1, %ebx
	cmovbl	%ebx, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	addb	$-112, %cl
	movq	_PCMIDI_MIDDLE_C@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %esi
	addl	%esi, %edx
	movl	4(%r15), %esi
	leal	(%rsi,%rsi,2), %esi
	leal	(%rdx,%rsi,4), %edx
	addl	$172, %edx
	testb	%al, %al
	movzbl	%al, %eax
	cmovel	%ebx, %eax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %esi
	movzbl	%al, %ecx
	movzbl	%dl, %edx
	movq	%r15, %rdi
	callq	_pcmidi_send_note
	incq	%r13
	cmpq	%r12, %r13
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	leal	(%r13,%r13), %eax
	movzbl	1(%r14,%rax), %edx
	leal	2(%r13,%r13), %eax
	movb	(%r14,%rax), %al
	movb	(%r15), %cl
	cmpl	$128, %edx
	jbe	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addb	$-128, %cl
	movq	_PCMIDI_MIDDLE_C@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %esi
	addl	%esi, %edx
	movl	4(%r15), %esi
	leal	(%rsi,%rsi,2), %esi
	leal	(%rdx,%rsi,4), %edx
	addl	$108, %edx
	cmpq	$0, 24(%r15)
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PCMIDI_SUSTAINED_MAX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -8(%rbx)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	addq	$12, %rbx
	decq	%rsi
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_8:
	movb	%cl, -4(%rbx)
	movb	%dl, -3(%rbx)
	movb	%al, -2(%rbx)
	movl	$1, -8(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	8(%r15), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mod_timer
LBB0_12:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCMIDI_MIDDLE_C,1,0            ## @PCMIDI_MIDDLE_C
	.comm	_PCMIDI_SUSTAINED_MAX,4,2       ## @PCMIDI_SUSTAINED_MAX
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_pcmidi_handle_report3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmidi_handle_report3
_pcmidi_handle_report3:                 ; @pcmidi_handle_report3
	.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
	cmp	w2, #3
	b.lo	LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x22, #0
	sub	w8, w2, #1
	cmp	w8, #0
	csel	w8, w2, w8, lt
	asr	w8, w8, #1
	cmp	w8, #1
	csinc	w23, w8, wzr, hi
Lloh0:
	adrp	x24, _PCMIDI_MIDDLE_C@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCMIDI_MIDDLE_C@GOTPAGEOFF]
	mov	w25, #12
Lloh2:
	adrp	x26, _PCMIDI_SUSTAINED_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PCMIDI_SUSTAINED_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #112
	ldrb	w10, [x24]
	add	w9, w9, w10
	ldr	w10, [x19, #4]
	madd	w9, w10, w25, w9
	add	w9, w9, #172
	cmp	w3, #0
	csinc	w3, w3, wzr, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w1, w8, #0xff
	and	w2, w9, #0xff
	mov	x0, x19
	bl	_pcmidi_send_note
	add	x22, x22, #1
	cmp	x22, x23
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	lsl	w8, w22, #1
	add	x9, x20, x8
	ldrb	w9, [x9, #1]
	add	w8, w8, #2
	ldrb	w3, [x20, w8, uxtw]
	ldr	w8, [x19]
	cmp	w9, #128
	b.ls	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	eor	w8, w8, #0xffffff80
	ldrb	w10, [x24]
	add	w9, w9, w10
	ldr	w10, [x19, #4]
	madd	w9, w10, w25, w9
	add	w9, w9, #108
	ldr	x10, [x19, #24]
	cbz	x10, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x26]
	cbz	w10, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x19, #16]
	add	x21, x11, #8
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w11, [x21, #-8]
	cbz	w11, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, #12
	subs	x10, x10, #1
	b.ne	LBB0_8
	b	LBB0_3
LBB0_10:
	sturb	w8, [x21, #-4]
	sturb	w9, [x21, #-3]
	sturb	w3, [x21, #-2]
	mov	w8, #1
	stur	w8, [x21, #-8]
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
	ldr	w0, [x19, #8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x21
	bl	_mod_timer
LBB0_11:
	mov	w0, #1
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCMIDI_MIDDLE_C,1,0            ; @PCMIDI_MIDDLE_C
	.comm	_PCMIDI_SUSTAINED_MAX,4,2       ; @PCMIDI_SUSTAINED_MAX
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_pcmidi_handle_report3
.subsections_via_symbols
