	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_safexcel_add_cdesc             ## -- Begin function safexcel_add_cdesc
	.p2align	4, 0x90
_safexcel_add_cdesc:                    ## @safexcel_add_cdesc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rdi, %r14
	movslq	%esi, %rsi
	shlq	$2, %rsi
	addq	8(%rdi), %rsi
	callq	_safexcel_ring_next_wptr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	%r12d, (%r15)
	movl	%r13d, 4(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r15)
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movq	%rax, 48(%r15)
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.2:
	movq	24(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movq	16(%rbp), %rax
	movq	40(%r15), %r12
	testq	%rax, %rax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 16(%r15)
	movq	_EIP197_OPTION_MAGIC_VALUE@GOTPCREL(%rip), %rax
	movq	_EIP197_OPTION_64BIT_CTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_EIP197_OPTION_CTX_CTRL_IN_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 20(%r15)
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movl	%eax, %r13d
	movl	$31, %edi
	movl	$2, %esi
	callq	_GENMASK
	andl	%r13d, %eax
	sarl	$2, %eax
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movq	%rax, 32(%r15)
	movq	(%r14), %rax
	movq	_EIP197B_MRVL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_EIP197D_MRVL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movq	_EIP197_OPTION_RC_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r15)
LBB0_6:
	movl	$2, 28(%r15)
	movq	_EIP197_MAX_TOKENS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_eip197_noop_token
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EIP197_OPTION_MAGIC_VALUE,4,2  ## @EIP197_OPTION_MAGIC_VALUE
	.comm	_EIP197_OPTION_64BIT_CTX,4,2    ## @EIP197_OPTION_64BIT_CTX
	.comm	_EIP197_OPTION_CTX_CTRL_IN_CMD,4,2 ## @EIP197_OPTION_CTX_CTRL_IN_CMD
	.comm	_EIP197B_MRVL,8,3               ## @EIP197B_MRVL
	.comm	_EIP197D_MRVL,8,3               ## @EIP197D_MRVL
	.comm	_EIP197_OPTION_RC_AUTO,4,2      ## @EIP197_OPTION_RC_AUTO
	.comm	_EIP197_MAX_TOKENS,4,2          ## @EIP197_MAX_TOKENS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_safexcel_add_cdesc             ; -- Begin function safexcel_add_cdesc
	.p2align	2
_safexcel_add_cdesc:                    ; @safexcel_add_cdesc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x7
	mov	x23, x6
	mov	x25, x5
	mov	x24, x4
	mov	x26, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x8, [x0, #8]
	add	x1, x8, w1, sxtw #2
	bl	_safexcel_ring_next_wptr
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	stp	w20, w26, [x19]
	str	x25, [x19, #56]
	mov	x0, x24
	bl	_lower_32_bits
	str	w0, [x19, #8]
	mov	x0, x24
	bl	_upper_32_bits
	str	x0, [x19, #48]
	cbz	w20, LBB0_1
; %bb.3:
	cbz	x21, LBB0_1
; %bb.4:
	ldr	x20, [x19, #40]
	cmp	x23, #0
Lloh0:
	adrp	x8, _EIP197_OPTION_MAGIC_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIP197_OPTION_MAGIC_VALUE@GOTPAGEOFF]
	csinc	w9, w23, wzr, ne
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _EIP197_OPTION_64BIT_CTX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EIP197_OPTION_64BIT_CTX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh6:
	adrp	x10, _EIP197_OPTION_CTX_CTRL_IN_CMD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EIP197_OPTION_CTX_CTRL_IN_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w10
	stp	w9, w8, [x19, #16]
	mov	x0, x21
	bl	_lower_32_bits
	mov	x23, x0
	mov	w0, #31
	mov	w1, #2
	bl	_GENMASK
	and	w8, w0, w23
	asr	w8, w8, #2
	str	w8, [x19, #24]
	mov	x0, x21
	bl	_upper_32_bits
	str	x0, [x19, #32]
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _EIP197B_MRVL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EIP197B_MRVL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x9, _EIP197D_MRVL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EIP197D_MRVL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _EIP197_OPTION_RC_AUTO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIP197_OPTION_RC_AUTO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_7:
	mov	w8, #2
	str	w8, [x19, #28]
Lloh18:
	adrp	x21, _EIP197_MAX_TOKENS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _EIP197_MAX_TOKENS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_eip197_noop_token
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x20, x20, #4
	cmp	x22, x8
	b.lt	LBB0_9
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EIP197_OPTION_MAGIC_VALUE,4,2  ; @EIP197_OPTION_MAGIC_VALUE
	.comm	_EIP197_OPTION_64BIT_CTX,4,2    ; @EIP197_OPTION_64BIT_CTX
	.comm	_EIP197_OPTION_CTX_CTRL_IN_CMD,4,2 ; @EIP197_OPTION_CTX_CTRL_IN_CMD
	.comm	_EIP197B_MRVL,8,3               ; @EIP197B_MRVL
	.comm	_EIP197D_MRVL,8,3               ; @EIP197D_MRVL
	.comm	_EIP197_OPTION_RC_AUTO,4,2      ; @EIP197_OPTION_RC_AUTO
	.comm	_EIP197_MAX_TOKENS,4,2          ; @EIP197_MAX_TOKENS
.subsections_via_symbols
