	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_pool_init              ## -- Begin function snd_seq_pool_init
	.p2align	4, 0x90
_snd_seq_pool_init:                     ## @snd_seq_pool_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_3:
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rbx)
	jne	LBB0_18
## %bb.4:
	movl	(%rbx), %edi
	shll	$4, %edi
	callq	_vmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 24(%rbx)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_17
## %bb.7:
	movq	32(%rbx), %r10
	leaq	-1(%r8), %rax
	movl	%r8d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rax
	jae	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_snd_printd
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movl	%r8d, %r9d
	andl	$-4, %r9d
	leaq	32(%r10), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	-32(%rsi), %rdx
	movq	%rbx, -24(%rsi)
	movq	%rax, -32(%rsi)
	leaq	-16(%rsi), %rax
	movq	%rbx, -8(%rsi)
	movq	%rdx, -16(%rsi)
	movq	%rbx, 8(%rsi)
	movq	%rax, (%rsi)
	leaq	16(%rsi), %rax
	movq	%rbx, 24(%rsi)
	movq	%rsi, 16(%rsi)
	addq	$4, %rdi
	addq	$64, %rsi
	cmpq	%rdi, %r9
	jne	LBB0_10
## %bb.11:
	addq	$-48, %rsi
LBB0_12:
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.13:
	shlq	$4, %rdi
	addq	%rdi, %r10
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, 8(%r10)
	movq	%rsi, (%r10)
	movq	%r10, %rsi
	addq	$16, %r10
	decq	%rcx
	jne	LBB0_14
## %bb.15:
	addq	$-16, %r10
	movq	%r10, %rsi
LBB0_16:
	movq	%rsi, 24(%rbx)
LBB0_17:
	leal	1(%r8), %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, 4(%rbx)
	movq	$0, 16(%rbx)
	movl	%r8d, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"seq: malloc for sequencer events failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function snd_seq_pool_init
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_snd_seq_pool_init
	.p2align	2
_snd_seq_pool_init:                     ; @snd_seq_pool_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_3:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_17
; %bb.4:
	ldr	w8, [x19]
	lsl	w0, w8, #4
	bl	_vmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_8
; %bb.5:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x19, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.6:
	ldr	x9, [x19, #32]
	cmp	w8, #8
	b.hs	LBB0_9
; %bb.7:
	mov	x10, #0
	mov	x11, #0
	b	LBB0_12
LBB0_8:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	and	x10, x8, #0xfffffff8
	dup.2d	v1, x19
Lloh6:
	adrp	x11, lCPI0_0@PAGE
Lloh7:
	ldr	q2, [x11, lCPI0_0@PAGEOFF]
	movi.2d	v5, #0000000000000000
	mov	w11, #96
	dup.2d	v3, x11
	mov	w11, #64
	dup.2d	v4, x11
	mov	w11, #32
	dup.2d	v6, x11
	dup.2d	v7, x9
	mov	w11, #8
	dup.2d	v16, x11
	mov	x11, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	shl.2d	v17, v2, #4
	add.2d	v17, v7, v17
	add.2d	v18, v17, v6
	add.2d	v19, v17, v4
	ext.16b	v0, v5, v17, #8
	add.2d	v5, v17, v3
	ext.16b	v20, v17, v18, #8
	mov.16b	v21, v1
	ext.16b	v22, v18, v19, #8
	mov.16b	v23, v1
	ext.16b	v24, v19, v5, #8
	fmov	x12, d17
	st2.2d	{ v0, v1 }, [x12]
	mov.16b	v25, v1
	fmov	x12, d18
	st2.2d	{ v20, v21 }, [x12]
	fmov	x12, d19
	fmov	x13, d5
	st2.2d	{ v22, v23 }, [x12]
	st2.2d	{ v24, v25 }, [x13]
	add.2d	v2, v2, v16
	subs	x11, x11, #8
	b.ne	LBB0_10
; %bb.11:
	mov.d	x11, v5[1]
	cmp	x10, x8
	b.eq	LBB0_15
LBB0_12:
	add	x12, x9, x10, lsl #4
	sub	x9, x8, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	x11, x19, [x12]
	mov	x11, x12
	add	x12, x12, #16
	subs	x9, x9, #1
	b.ne	LBB0_13
; %bb.14:
	sub	x11, x12, #16
LBB0_15:
	str	x11, [x19, #24]
LBB0_16:
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w9, w10, w8, lt
	str	xzr, [x19, #16]
	asr	w9, w9, #1
	stp	w9, w8, [x19, #4]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"seq: malloc for sequencer events failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
