	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_fifo_resize            ## -- Begin function snd_seq_fifo_resize
	.p2align	4, 0x90
_snd_seq_fifo_resize:                   ## @snd_seq_fifo_resize
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 32(%r15)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r14d, %edi
	callq	_snd_seq_pool_new
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_snd_seq_pool_init
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	32(%r15), %rax
	movq	%rax, -32(%rbp)
	movq	24(%r15), %rbx
	movq	%r14, 32(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	$0, 24(%r15)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_snd_seq_cell_free
	movq	%r14, %rbx
	testq	%r14, %r14
	jne	LBB0_11
LBB0_12:
	leaq	-32(%rbp), %rdi
	callq	_snd_seq_pool_delete
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_snd_seq_pool_delete
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_fifo_resize            ; -- Begin function snd_seq_fifo_resize
	.p2align	2
_snd_seq_fifo_resize:                   ; @snd_seq_fifo_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x20
	bl	_snd_seq_pool_new
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	bl	_snd_seq_pool_init
	tbnz	x0, #63, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	x21, x8, [x19, #24]
	str	x8, [sp]
	stp	xzr, xzr, [x19, #8]
	stp	xzr, x20, [x19, #24]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	x21, LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x21]
	mov	x0, x21
	bl	_snd_seq_cell_free
	mov	x21, x19
	cbnz	x19, LBB0_7
LBB0_8:
	mov	x0, sp
	bl	_snd_seq_pool_delete
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	add	x0, sp, #8
	bl	_snd_seq_pool_delete
LBB0_10:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
