	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ht_remove                      ## -- Begin function ht_remove
	.p2align	4, 0x90
_ht_remove:                             ## @ht_remove
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rcx
	leaq	-32(%rbp), %r8
	leaq	-24(%rbp), %r9
	xorl	%edx, %edx
	callq	_ht_find
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rcx
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rdx
LBB0_3:
	movq	8(%rax), %rbx
	movq	%rcx, (%rdx)
	movq	-24(%rbp), %rdi
	callq	_free
	decl	(%r14)
LBB0_4:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	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	_ht_remove                      ; -- Begin function ht_remove
	.p2align	2
_ht_remove:                             ; @ht_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x3, sp, #24
	add	x4, sp, #16
	add	x5, sp, #8
	mov	x2, #0
	bl	_ht_find
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x9, x10, [sp, #16]
	ldp	x8, x20, [x8]
	cmp	x9, #0
	csel	x9, x10, x9, eq
	str	x8, [x9]
	ldr	x0, [sp, #8]
	bl	_free
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
