	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_fifo_event_in          ## -- Begin function snd_seq_fifo_event_in
	.p2align	4, 0x90
_snd_seq_fifo_event_in:                 ## @snd_seq_fifo_event_in
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%r14, %rdi
	callq	_snd_use_lock_use
	movl	36(%r14), %edi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_snd_seq_event_dup
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	-24(%rbp), %rcx
	movq	%rcx, (%rax)
LBB0_8:
	movq	-24(%rbp), %rax
	movq	%rax, 24(%r14)
	cmpq	$0, 16(%r14)
	jne	LBB0_10
## %bb.9:
	movq	%rax, 16(%r14)
LBB0_10:
	incl	12(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_wake_up
LBB0_12:
	movq	%r14, %rdi
	callq	_snd_use_lock_free
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %ebx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_5
## %bb.4:
	leaq	32(%r14), %rdi
	callq	_atomic_inc
LBB0_5:
	movq	%r14, %rdi
	callq	_snd_use_lock_free
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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_event_in          ; -- Begin function snd_seq_fifo_event_in
	.p2align	2
_snd_seq_fifo_event_in:                 ; @snd_seq_fifo_event_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_2:
	mov	x0, x19
	bl	_snd_use_lock_use
	ldr	w0, [x19, #36]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #1
	mov	x4, #0
	bl	_snd_seq_event_dup
	tbnz	w0, #31, LBB0_10
; %bb.3:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x9, [sp, #8]
	str	x9, [x8]
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x19, #24]
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_7
; %bb.6:
	str	x8, [x19, #16]
LBB0_7:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x20, x19, #4
	mov	x0, x20
	bl	_waitqueue_active
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_wake_up
LBB0_9:
	mov	x0, x19
	bl	_snd_use_lock_free
	mov	w20, #0
	b	LBB0_13
LBB0_10:
	mov	x20, x0
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
; %bb.11:
	add	x0, x19, #32
	bl	_atomic_inc
LBB0_12:
	mov	x0, x19
	bl	_snd_use_lock_free
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
