	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winmm_midi_queue_read
_winmm_midi_queue_read:                 ## @winmm_midi_queue_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	%rbx
	.cfi_offset %rbx, -24
	movq	(%rdi), %r10
	xorl	%eax, %eax
	cmpq	8(%rdi), %r10
	je	LBB0_7
## %bb.1:
	movq	16(%rdi), %r8
	movq	%r10, %r9
	shlq	$4, %r9
	movl	(%r8,%r9), %ecx
	cmpl	%ecx, (%rsi)
	jb	LBB0_7
## %bb.2:
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:
	leaq	(%r8,%r9), %r11
	movq	8(%r8,%r9), %rdx
	movq	8(%rsi), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rax,4), %ebx
	movl	%ebx, (%rcx,%rax,4)
	incq	%rax
	movl	(%r11), %ebx
	cmpq	%rbx, %rax
	jb	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, (%rsi)
	movl	4(%r8,%r9), %eax
	movl	%eax, 4(%rsi)
	incq	%r10
	movq	_WINMM_MIDI_BUF_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, %r10
	cmovneq	%r10, %rcx
	movq	%rcx, (%rdi)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINMM_MIDI_BUF_LEN,4,2         ## @WINMM_MIDI_BUF_LEN
	.no_dead_strip	_winmm_midi_queue_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function winmm_midi_queue_read
_winmm_midi_queue_read:                 ; @winmm_midi_queue_read
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldr	w12, [x1]
	ldr	x9, [x0, #16]
	add	x10, x9, x8, lsl #4
	ldr	w11, [x10]
	cmp	w12, w11
	b.hs	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	cbz	w11, LBB0_7
; %bb.5:
	mov	x11, #0
	add	x12, x9, x8, lsl #4
	ldr	x12, [x12, #8]
	ldr	x13, [x1, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x14, x11, #2
	ldr	w15, [x12, x14]
	str	w15, [x13, x14]
	add	x11, x11, #1
	ldr	w14, [x10]
	cmp	x11, x14
	b.lo	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w14, #0
LBB0_8:
	add	x9, x9, x8, lsl #4
	ldr	w9, [x9, #4]
	stp	w14, w9, [x1]
Lloh0:
	adrp	x9, _WINMM_MIDI_BUF_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINMM_MIDI_BUF_LEN@GOTPAGEOFF]
	add	x10, x8, #1
Lloh2:
	ldrsw	x9, [x9]
	cmp	x10, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x0]
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WINMM_MIDI_BUF_LEN,4,2         ; @WINMM_MIDI_BUF_LEN
	.no_dead_strip	_winmm_midi_queue_read
.subsections_via_symbols
