	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function midi_service_irq
_midi_service_irq:                      ## @midi_service_irq
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	_MIDI_IN_BUFFER_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpw	(%rax), %r14w
	setge	%dil
	callq	_snd_BUG_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	testw	%r14w, %r14w
	jle	LBB0_2
## %bb.3:
	movw	$1, %bx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpw	%r14w, %bx
	jg	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movswq	%bx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movswl	%ax, %esi
	movq	%r15, %rdi
	callq	_mtc_process_data
	movq	_MIDI_IN_SKIP_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movswq	%r13w, %rax
	movq	(%r15), %rcx
	movswq	%r12w, %rdx
	leal	1(%r12), %esi
	movq	%rax, (%rcx,%rdx,8)
	movl	%esi, %r12d
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
LBB0_7:
	movswl	%r12w, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDI_IN_BUFFER_SIZE,2,1        ## @MIDI_IN_BUFFER_SIZE
	.comm	_MIDI_IN_SKIP_DATA,8,3          ## @MIDI_IN_SKIP_DATA
	.no_dead_strip	_midi_service_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function midi_service_irq
_midi_service_irq:                      ; @midi_service_irq
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _MIDI_IN_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIDI_IN_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsh	w8, [x8]
	cmp	w0, w8
	cset	w0, ge
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #0
	mov	w23, #1
Lloh3:
	adrp	x24, _MIDI_IN_SKIP_DATA@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MIDI_IN_SKIP_DATA@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #1
	sxth	w23, w8
	cmp	w23, w20
	b.gt	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	sxth	x9, w23
	ldr	w0, [x8, x9, lsl #2]
	bl	_le16_to_cpu
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mtc_process_data
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w21
	ldr	x9, [x19]
	sxth	x10, w22
	add	w11, w22, #1
	str	x8, [x9, x10, lsl #3]
	mov	x22, x11
	b	LBB0_4
LBB0_7:
	mov	w22, #0
LBB0_8:
	sxth	w0, w22
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDI_IN_BUFFER_SIZE,2,1        ; @MIDI_IN_BUFFER_SIZE
	.comm	_MIDI_IN_SKIP_DATA,8,3          ; @MIDI_IN_SKIP_DATA
	.no_dead_strip	_midi_service_irq
.subsections_via_symbols
