	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_clear_extension            ## -- Begin function hdb_clear_extension
	.p2align	4, 0x90
_hdb_clear_extension:                   ## @hdb_clear_extension
	.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	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.2:
	movl	%edx, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,2), %r12
	addq	%r12, %rdi
	callq	_free_HDB_extension
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	leaq	(%rcx,%r12), %rdi
	leaq	1(%rbx), %r13
	leaq	(%rcx,%r12), %rsi
	addq	$24, %rsi
	notl	%ebx
	addl	(%rax), %ebx
	shll	$3, %ebx
	leal	(%rbx,%rbx,2), %edx
	callq	_memmove
	movq	(%r14), %rax
	movq	(%rax), %rcx
	decq	%rcx
	movq	%rcx, (%rax)
	movq	%r13, %rbx
	cmpq	%rcx, %rbx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	leaq	(%rbx,%rbx,2), %rdx
	cmpl	%r15d, 16(%rdi,%rdx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rcx, %rbx
	jb	LBB0_3
LBB0_7:
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_8:
	movq	8(%rax), %rdi
	callq	_free
	movq	(%r14), %rdi
	callq	_free
	movq	$0, (%r14)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_hdb_clear_extension            ; -- Begin function hdb_clear_extension
	.p2align	2
_hdb_clear_extension:                   ; @hdb_clear_extension
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.2:
	mov	x20, x2
	mov	x22, #0
	mov	w21, #24
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x22, x22, lsl #1
	lsl	x23, x8, #3
	add	x0, x10, x23
	bl	_free_HDB_extension
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	add	x0, x9, x23
	add	x23, x22, #1
	add	x1, x0, #24
	ldr	w8, [x8]
	mvn	w9, w22
	add	w8, w8, w9
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	bl	_memmove
	ldr	x8, [x19]
	ldr	x9, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
	mov	x22, x23
	cmp	x22, x9
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #8]
	madd	x11, x22, x21, x10
	ldr	w11, [x11, #16]
	cmp	w11, w20
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x9
	b.lo	LBB0_4
LBB0_6:
	cbnz	x9, LBB0_8
LBB0_7:
	ldr	x0, [x8, #8]
	bl	_free
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
LBB0_8:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
