	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winmm_midi_queue_init
_winmm_midi_queue_init:                 ## @winmm_midi_queue_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WINMM_MIDI_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_8
## %bb.1:
	movq	16(%rdi), %rax
	movq	24(%rdi), %r10
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	testb	$1, %r8b
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	leaq	(%r10,%rdx,4), %rdx
	movq	%rdx, 8(%rax,%rcx,4)
	movq	$0, (%rax,%rcx,4)
	leal	4(%rcx), %edx
	leaq	(%r10,%rdx,4), %rdx
	movq	%rdx, 24(%rax,%rcx,4)
	movq	$0, 16(%rax,%rcx,4)
	addq	$2, %rsi
	addq	$8, %rcx
	cmpq	%rsi, %r9
	jne	LBB0_4
## %bb.5:
	movl	%ecx, %ecx
	testb	$1, %r8b
	je	LBB0_8
LBB0_7:
	leaq	(%r10,%rcx,4), %rcx
	shlq	$4, %rsi
	movq	%rcx, 8(%rax,%rsi)
	movq	$0, (%rax,%rsi)
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINMM_MIDI_BUF_LEN,4,2         ## @WINMM_MIDI_BUF_LEN
	.no_dead_strip	_winmm_midi_queue_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function winmm_midi_queue_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_winmm_midi_queue_init:                 ; @winmm_midi_queue_init
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WINMM_MIDI_BUF_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINMM_MIDI_BUF_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cbz	w10, LBB0_8
; %bb.1:
	ldp	x11, x8, [x0, #16]
	cmp	w10, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	mov	w9, #0
	b	LBB0_6
LBB0_3:
	and	x12, x10, #0xfffffff8
	lsl	w9, w12, #2
Lloh3:
	adrp	x13, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x13, lCPI0_0@PAGEOFF]
	add	x13, x11, #64
	movi.2s	v1, #8
	movi.2s	v2, #16
	movi.2s	v3, #24
	dup.2d	v4, x8
	movi.2d	v5, #0000000000000000
	movi.2s	v7, #32
	mov	x14, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.2s	v16, v0, v1
	add.2s	v17, v0, v2
	add.2s	v18, v0, v3
	ushll.2d	v19, v0, #2
	add.2d	v20, v4, v19
	ushll.2d	v16, v16, #2
	add.2d	v22, v4, v16
	ushll.2d	v16, v17, #2
	add.2d	v17, v4, v16
	ushll.2d	v18, v18, #2
	add.2d	v6, v4, v18
	sub	x15, x13, #64
	sub	x16, x13, #32
	mov.16b	v19, v5
	st2.2d	{ v19, v20 }, [x15]
	mov.16b	v16, v5
	mov.16b	v21, v5
	st2.2d	{ v21, v22 }, [x16]
	add	x15, x13, #128
	st2.2d	{ v16, v17 }, [x13], #32
	st2.2d	{ v5, v6 }, [x13]
	add.2s	v0, v0, v7
	mov	x13, x15
	subs	x14, x14, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x12, x10
	b.eq	LBB0_8
LBB0_6:
	add	x11, x11, x12, lsl #4
	add	x11, x11, #8
	sub	x10, x10, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x8, w9, uxtw #2
	stp	xzr, x12, [x11, #-8]
	add	w9, w9, #4
	add	x11, x11, #16
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	stp	xzr, xzr, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WINMM_MIDI_BUF_LEN,4,2         ; @WINMM_MIDI_BUF_LEN
	.no_dead_strip	_winmm_midi_queue_init
.subsections_via_symbols
