	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_free
_ds_free:                               ## @ds_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	callq	_close
LBB0_2:
	cmpq	$0, 8(%r14)
	js	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_rs_remove
LBB0_4:
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	callq	_free
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ds_remove_qp
	movq	%rbx, %rdi
	callq	_ds_free_qp
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.8:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	js	LBB0_10
## %bb.9:
	callq	_close
LBB0_10:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_free
LBB0_12:
	movl	44(%r14), %edi
	movq	_free@GOTPCREL(%rip), %rsi
	callq	_tdestroy
	leaq	40(%r14), %rdi
	callq	_fastlock_destroy
	leaq	36(%r14), %rdi
	callq	_fastlock_destroy
	leaq	32(%r14), %rdi
	callq	_fastlock_destroy
	leaq	28(%r14), %rdi
	callq	_fastlock_destroy
	leaq	24(%r14), %rdi
	callq	_fastlock_destroy
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ds_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_free
_ds_free:                               ; @ds_free
	.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]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	bl	_close
LBB0_2:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rs_remove
LBB0_4:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_free
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ds_remove_qp
	mov	x0, x20
	bl	_ds_free_qp
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #56]
	cbnz	x20, LBB0_6
; %bb.8:
	ldr	x0, [x19, #16]
	tbnz	x0, #63, LBB0_10
; %bb.9:
	bl	_close
LBB0_10:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_free
LBB0_12:
	ldr	w0, [x19, #44]
Lloh0:
	adrp	x1, _free@GOTPAGE
Lloh1:
	ldr	x1, [x1, _free@GOTPAGEOFF]
	bl	_tdestroy
	add	x0, x19, #40
	bl	_fastlock_destroy
	add	x0, x19, #36
	bl	_fastlock_destroy
	add	x0, x19, #32
	bl	_fastlock_destroy
	add	x0, x19, #28
	bl	_fastlock_destroy
	add	x0, x19, #24
	bl	_fastlock_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ds_free
.subsections_via_symbols
