	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_stats_detach               ## -- Begin function isc_stats_detach
	.p2align	4, 0x90
_isc_stats_detach:                      ## @isc_stats_detach
	.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
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	callq	_ISC_STATS_VALID
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_REQUIRE
	movq	(%r14), %rbx
	movq	$0, (%r14)
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_LOCK
	decq	(%rbx)
	movq	%r14, %rdi
	callq	_UNLOCK
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	12(%rbx), %r15
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	movl	28(%rbx), %esi
	shll	$2, %edx
	callq	_isc_mem_put
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	movl	24(%rbx), %esi
	shll	$2, %edx
	callq	_isc_mem_put
	movq	%r14, %rdi
	callq	_DESTROYLOCK
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isc_mem_putanddetach           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_stats_detach               ; -- Begin function isc_stats_detach
	.p2align	2
_isc_stats_detach:                      ; @isc_stats_detach
	.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	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_ISC_STATS_VALID
	cmp	x0, #0
	cset	w0, ne
LBB0_2:
	bl	_REQUIRE
	ldr	x19, [x20]
	str	xzr, [x20]
	add	x20, x19, #20
	mov	x0, x20
	bl	_LOCK
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	mov	x0, x20
	bl	_UNLOCK
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	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_4:
	mov	x21, x19
	ldr	w0, [x21, #12]!
	ldr	w1, [x19, #28]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_isc_mem_put
	ldr	w0, [x21]
	ldr	w1, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_isc_mem_put
	mov	x0, x20
	bl	_DESTROYLOCK
	mov	x0, x21
	mov	x1, x19
	mov	w2, #32
	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
	b	_isc_mem_putanddetach
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
