	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_new
_queue_new:                             ## @queue_new
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	60(%rax), %rdi
	callq	_spin_lock_init
	leaq	56(%rbx), %rdi
	callq	_spin_lock_init
	leaq	52(%rbx), %rdi
	callq	_mutex_init
	leaq	48(%rbx), %rdi
	callq	_snd_use_lock_init
	movl	$-1, (%rbx)
	xorl	%eax, %eax
	callq	_snd_seq_prioq_new
	movq	%rax, 40(%rbx)
	xorl	%eax, %eax
	callq	_snd_seq_prioq_new
	leaq	32(%rbx), %r12
	movq	%rax, 32(%rbx)
	xorl	%eax, %eax
	callq	_snd_seq_timer_new
	movq	%rax, 24(%rbx)
	cmpq	$0, 40(%rbx)
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r15d, 4(%rbx)
	movl	%r14d, 8(%rbx)
	movq	$0, 16(%rbx)
	jmp	LBB0_8
LBB0_5:
	leaq	40(%rbx), %rdi
	movq	%rbx, %r14
	addq	$24, %r14
	callq	_snd_seq_prioq_delete
	movq	%r12, %rdi
	callq	_snd_seq_prioq_delete
	movq	%r14, %rdi
	callq	_snd_seq_timer_delete
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_snd_printd
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed for snd_seq_queue_new()\n"

	.no_dead_strip	_queue_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_new
_queue_new:                             ; @queue_new
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, x19, #60
	bl	_spin_lock_init
	add	x0, x19, #56
	bl	_spin_lock_init
	add	x0, x19, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_snd_use_lock_init
	mov	w8, #-1
	str	w8, [x19]
	bl	_snd_seq_prioq_new
	mov	x22, x19
	str	x0, [x22, #40]!
	bl	_snd_seq_prioq_new
	mov	x23, x19
	str	x0, [x23, #32]!
	bl	_snd_seq_timer_new
	mov	x24, x19
	str	x0, [x24, #24]!
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
LBB0_3:
	mov	x0, x22
	bl	_snd_seq_prioq_delete
	mov	x0, x23
	bl	_snd_seq_prioq_delete
	mov	x0, x24
	bl	_snd_seq_timer_delete
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
	b	LBB0_6
LBB0_5:
	stp	w21, w20, [x19, #4]
	str	xzr, [x19, #16]
LBB0_6:
	mov	x0, x19
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed for snd_seq_queue_new()\n"

	.no_dead_strip	_queue_new
.subsections_via_symbols
