	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vt1724_midi_read
_vt1724_midi_read:                      ## @vt1724_midi_read
	.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
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SNDRV_RAWMIDI_STREAM_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_rawmidi_substream
	movq	%rax, %rbx
	movq	_MPU_RXFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ICEREG1724
	movl	%eax, %edi
	callq	_inb
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%rbx, -312(%rbp)                ## 8-byte Spill
	movl	%eax, %edi
	movl	$32, %esi
	callq	_min
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%r15d, %r13d
	xorl	%ebx, %ebx
	movq	_MPU_DATA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ICEREG1724
	movl	%eax, %edi
	callq	_inb
	movq	%rax, -304(%rbp,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_3
LBB0_4:
	leaq	-304(%rbp), %rsi
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %edx
	callq	_snd_rawmidi_receive
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ## @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_MPU_RXFIFO,4,2                 ## @MPU_RXFIFO
	.comm	_MPU_DATA,4,2                   ## @MPU_DATA
	.no_dead_strip	_vt1724_midi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vt1724_midi_read
_vt1724_midi_read:                      ; @vt1724_midi_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_RAWMIDI_STREAM_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_rawmidi_substream
	mov	x20, x0
Lloh6:
	adrp	x8, _MPU_RXFIFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPU_RXFIFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ICEREG1724
	bl	_inb
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #32
	bl	_min
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w22, w21
	add	x23, sp, #8
Lloh9:
	adrp	x24, _MPU_DATA@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MPU_DATA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ICEREG1724
	bl	_inb
	str	x0, [x23], #8
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_snd_rawmidi_receive
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_RAWMIDI_STREAM_INPUT,4,2 ; @SNDRV_RAWMIDI_STREAM_INPUT
	.comm	_MPU_RXFIFO,4,2                 ; @MPU_RXFIFO
	.comm	_MPU_DATA,4,2                   ; @MPU_DATA
	.no_dead_strip	_vt1724_midi_read
.subsections_via_symbols
