	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_cell_free              ## -- Begin function snd_seq_cell_free
	.p2align	4, 0x90
_snd_seq_cell_free:                     ## @snd_seq_cell_free
	.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
	jne	LBB0_10
## %bb.1:
	movq	24(%rbx), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_free_cell
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_snd_seq_ev_is_variable
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_SNDRV_SEQ_EXT_CHAINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	movq	8(%r14), %rax
	movq	%rax, (%rsi)
	movq	%r14, %rdi
	callq	_free_cell
	movq	%rbx, %rsi
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_6:
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_snd_seq_output_ok
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_wake_up
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SEQ_EXT_CHAINED,4,2      ## @SNDRV_SEQ_EXT_CHAINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_cell_free              ; -- Begin function snd_seq_cell_free
	.p2align	2
_snd_seq_cell_free:                     ; @snd_seq_cell_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x19, [x20, #24]
	cmp	x19, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_free_cell
	add	x21, x20, #8
	mov	x0, x21
	bl	_snd_seq_ev_is_variable
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _SNDRV_SEQ_EXT_CHAINED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_SEQ_EXT_CHAINED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x1]
	ldr	x8, [x19, #8]
	str	x8, [x1]
	mov	x0, x19
	bl	_free_cell
	mov	x1, x20
	cbnz	x20, LBB0_6
LBB0_7:
	add	x20, x19, #4
	mov	x0, x20
	bl	_waitqueue_active
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_snd_seq_output_ok
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_wake_up
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SEQ_EXT_CHAINED,4,2      ; @SNDRV_SEQ_EXT_CHAINED
.subsections_via_symbols
