	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kernel_client_enqueue
_kernel_client_enqueue:                 ## @kernel_client_enqueue
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r14d
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r14d, %edx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movq	_SNDRV_SEQ_EVENT_NONE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.3:
	movq	_SNDRV_SEQ_EVENT_KERNEL_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.4:
	movl	%edx, %r14d
	movl	%edx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_check_event_type_and_length
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movl	%r14d, %edi
	callq	_snd_seq_client_use_ptr
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %r15
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_snd_seq_client_enqueue_event
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movq	%r15, %rdi
	callq	_snd_seq_client_unlock
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_SEQ_EVENT_NONE,8,3       ## @SNDRV_SEQ_EVENT_NONE
	.comm	_SNDRV_SEQ_EVENT_KERNEL_ERROR,8,3 ## @SNDRV_SEQ_EVENT_KERNEL_ERROR
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_kernel_client_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kernel_client_enqueue
_kernel_client_enqueue:                 ; @kernel_client_enqueue
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cmp	x1, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_2:
	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
LBB0_3:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _SNDRV_SEQ_EVENT_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w19, #0
	b	LBB0_2
LBB0_5:
Lloh6:
	adrp	x9, _SNDRV_SEQ_EVENT_KERNEL_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_KERNEL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.6:
	str	w24, [x23, #8]
	mov	x0, x23
	bl	_check_event_type_and_length
	cbnz	x0, LBB0_1
; %bb.7:
	mov	x0, x24
	bl	_snd_seq_client_use_ptr
	cbz	x0, LBB0_1
; %bb.8:
	mov	x24, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_snd_seq_client_enqueue_event
	mov	x19, x0
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_11:
	mov	x0, x24
	bl	_snd_seq_client_unlock
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_SEQ_EVENT_NONE,8,3       ; @SNDRV_SEQ_EVENT_NONE
	.comm	_SNDRV_SEQ_EVENT_KERNEL_ERROR,8,3 ; @SNDRV_SEQ_EVENT_KERNEL_ERROR
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_kernel_client_enqueue
.subsections_via_symbols
