	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_kernel_client_dispatch ## -- Begin function snd_seq_kernel_client_dispatch
	.p2align	4, 0x90
_snd_seq_kernel_client_dispatch:        ## @snd_seq_kernel_client_dispatch
	.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	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_SNDRV_SEQ_QUEUE_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	callq	_check_event_type_and_length
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r12d, %edi
	callq	_snd_seq_client_use_ptr
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r12
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_snd_seq_deliver_event
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_snd_seq_client_unlock
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_SEQ_QUEUE_DIRECT,4,2     ## @SNDRV_SEQ_QUEUE_DIRECT
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_kernel_client_dispatch ; -- Begin function snd_seq_kernel_client_dispatch
	.p2align	2
_snd_seq_kernel_client_dispatch:        ; @snd_seq_kernel_client_dispatch
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x1, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SNDRV_SEQ_QUEUE_DIRECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_SEQ_QUEUE_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w22, w8, [x21]
	mov	x0, x21
	bl	_check_event_type_and_length
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_3:
	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
	ret
LBB0_4:
	mov	x0, x22
	bl	_snd_seq_client_use_ptr
	cbz	x0, LBB0_2
; %bb.5:
	mov	x22, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_snd_seq_deliver_event
	mov	x19, x0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x22
	bl	_snd_seq_client_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_SEQ_QUEUE_DIRECT,4,2     ; @SNDRV_SEQ_QUEUE_DIRECT
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
