	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdl_cha_alloc                  ## -- Begin function xdl_cha_alloc
	.p2align	4, 0x90
_xdl_cha_alloc:                         ## @xdl_cha_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rdi
	cmpq	(%rbx), %rdi
	je	LBB0_3
	jmp	LBB0_10
LBB0_1:
	movq	(%rbx), %rdi
LBB0_3:
	addq	$16, %rdi
	callq	_xdl_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rax, 8(%rcx)
LBB0_7:
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	%rax, 32(%rbx)
LBB0_9:
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	xorl	%edi, %edi
LBB0_10:
	leaq	(%rax,%rdi), %rcx
	addq	$16, %rcx
	movslq	8(%rbx), %rdx
	addq	%rdi, %rdx
	movq	%rdx, (%rax)
	jmp	LBB0_11
LBB0_4:
	xorl	%ecx, %ecx
LBB0_11:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdl_cha_alloc                  ; -- Begin function xdl_cha_alloc
	.p2align	2
_xdl_cha_alloc:                         ; @xdl_cha_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x9, [x0]
	ldr	x8, [x19]
	cmp	x9, x8
	b.eq	LBB0_3
	b	LBB0_9
LBB0_2:
	ldr	x9, [x19]
LBB0_3:
	add	x0, x9, #16
	bl	_xdl_malloc
	cbz	x0, LBB0_10
; %bb.4:
	stp	xzr, xzr, [x0]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	str	x0, [x8, #8]
LBB0_6:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_8
; %bb.7:
	str	x0, [x19, #32]
LBB0_8:
	mov	x9, #0
	stp	x0, x0, [x19, #16]
LBB0_9:
	add	x8, x0, x9
	add	x8, x8, #16
	ldrsw	x10, [x19, #8]
	add	x9, x9, x10
	str	x9, [x0]
	b	LBB0_11
LBB0_10:
	mov	x8, #0
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
