	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csr1212_new_string_descriptor_leaf ## -- Begin function csr1212_new_string_descriptor_leaf
	.p2align	4, 0x90
_csr1212_new_string_descriptor_leaf:    ## @csr1212_new_string_descriptor_leaf
	.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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	cmpb	$0, (%rdi)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_csr1212_check_minimal_ascii
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_bytes_to_quads
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_quads_to_bytes
	movq	_CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_csr1212_new_descriptor_leaf
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	movq	%r13, %rdi
	callq	_CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA
	movq	$0, -8(%rax,%r15,8)
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r13, %rbx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD,8,3 ## @CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csr1212_new_string_descriptor_leaf ; -- Begin function csr1212_new_string_descriptor_leaf
	.p2align	2
_csr1212_new_string_descriptor_leaf:    ; @csr1212_new_string_descriptor_leaf
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_csr1212_check_minimal_ascii
	cbz	x0, LBB0_5
LBB0_3:
	mov	x21, #0
LBB0_4:
	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
LBB0_5:
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
	bl	_bytes_to_quads
	mov	x22, x0
	bl	_quads_to_bytes
Lloh0:
	adrp	x8, _CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x3, x8, x0
	mov	w0, #0
	mov	w1, #0
	mov	x2, #0
	bl	_csr1212_new_descriptor_leaf
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.6:
	ldr	x8, [x21]
	str	xzr, [x8, #8]
	mov	x0, x21
	bl	_CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA
	add	x8, x0, x22, lsl #3
	stur	xzr, [x8, #-8]
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD,8,3 ; @CSR1212_TEXTUAL_DESCRIPTOR_LEAF_OVERHEAD
.subsections_via_symbols
