	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csr1212_new_keyval
_csr1212_new_keyval:                    ## @csr1212_new_keyval
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	cmpl	$47, %esi
	jg	LBB0_2
## %bb.1:
	movq	_csr1212_key_id_type_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %eax
	btl	%r14d, %eax
	jae	LBB0_5
LBB0_2:
	movl	$56, %edi
	callq	_CSR1212_MALLOC
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$48, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	%r14d, 40(%rbx)
	movl	%r15d, 44(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_csr1212_key_id_type_map,8,3    ## @csr1212_key_id_type_map
	.no_dead_strip	_csr1212_new_keyval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csr1212_new_keyval
_csr1212_new_keyval:                    ; @csr1212_new_keyval
	.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, x1
	mov	x20, x0
	cmp	w1, #47
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _csr1212_key_id_type_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _csr1212_key_id_type_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w19, sxtw #2]
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_4
LBB0_2:
	mov	w0, #56
	bl	_CSR1212_MALLOC
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x21, #48
	mov	w1, #1
	bl	_atomic_set
	stp	w20, w19, [x21, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x21]
	str	xzr, [x21, #32]
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_csr1212_key_id_type_map,8,3    ; @csr1212_key_id_type_map
	.no_dead_strip	_csr1212_new_keyval
.subsections_via_symbols
