	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_delete                ## -- Begin function memcache_delete
	.p2align	4, 0x90
_memcache_delete:                       ## @memcache_delete
	.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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	$0, -40(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_delete_hash_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	-40(%rbp), %rdi
	callq	_do_delete_items_with_hash
	movq	_delete_hash_query_items@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	testl	%eax, %eax
	jg	LBB0_10
	jmp	LBB0_16
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.3:
	movl	-28(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.4:
	movl	-24(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.5:
	movq	_delete_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-24(%rbp), %eax
	shlq	$32, %rax
	movl	-28(%rbp), %edx
	orq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-28(%rbp), %edi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.7:
	movl	-24(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.8:
	movq	_delete_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movslq	-24(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-24(%rbp), %edi
LBB0_9:
	callq	_do_delete_item
	testl	%eax, %eax
	jle	LBB0_16
LBB0_10:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	$9, %edx
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	leaq	-18(%rbp), %rdx
	leaq	-17(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_16
## %bb.12:
	cmpb	$115, -17(%rbp)
	jne	LBB0_16
## %bb.13:
	movsbl	-18(%rbp), %edi
	callq	_get_sorting_mode
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movq	_MAX_RATES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_16
## %bb.15:
	movq	_delete_queries@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movl	%eax, %edi
	callq	_do_reset_all_rates
	testl	%eax, %eax
	jg	LBB0_10
LBB0_16:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	$11, %edx
LBB0_17:
	callq	_write_out
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delete \"%s\"\n"

L_.str.1:                               ## @.str.1
	.asciz	"itemswithhash%llx"

	.comm	_delete_hash_queries,4,2        ## @delete_hash_queries
	.comm	_delete_hash_query_items,4,2    ## @delete_hash_query_items
L_.str.2:                               ## @.str.2
	.asciz	"item%d_%d "

	.comm	_delete_queries,4,2             ## @delete_queries
L_.str.3:                               ## @.str.3
	.asciz	"delete_item (%d,%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"delete: item_id=%lld\n"

L_.str.5:                               ## @.str.5
	.asciz	"item%d "

L_.str.6:                               ## @.str.6
	.asciz	"reset_all_%cate%c"

	.comm	_MAX_RATES,4,2                  ## @MAX_RATES
L_.str.7:                               ## @.str.7
	.asciz	"DELETED\r\n"

L_.str.8:                               ## @.str.8
	.asciz	"NOT_FOUND\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_delete                ; -- Begin function memcache_delete
	.p2align	2
_memcache_delete:                       ; @memcache_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	str	x1, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	str	xzr, [sp, #32]
	add	x8, sp, #32
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _delete_hash_queries@GOTPAGE
Lloh5:
	ldr	x8, [x8, _delete_hash_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x0, [sp, #32]
	bl	_do_delete_items_with_hash
Lloh6:
	adrp	x8, _delete_hash_query_items@GOTPAGE
Lloh7:
	ldr	x8, [x8, _delete_hash_query_items@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	cmp	w0, #1
	b.ge	LBB0_10
	b	LBB0_16
LBB0_2:
	add	x21, sp, #40
	sub	x8, x29, #36
	stp	x8, x21, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.3:
	ldur	w8, [x29, #-36]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w9, [sp, #40]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.5:
Lloh10:
	adrp	x10, _delete_queries@GOTPAGE
Lloh11:
	ldr	x10, [x10, _delete_queries@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	ldr	w8, [sp, #40]
	ldur	w9, [x29, #-36]
	bfi	x9, x8, #32, #32
	str	x9, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldur	w0, [x29, #-36]
	b	LBB0_9
LBB0_6:
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [sp, #40]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
Lloh18:
	adrp	x9, _delete_queries@GOTPAGE
Lloh19:
	ldr	x9, [x9, _delete_queries@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	stp	xzr, x8, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	ldrsw	x8, [sp, #40]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	w0, [sp, #40]
LBB0_9:
	bl	_do_delete_item
	cmp	w0, #1
	b.lt	LBB0_16
LBB0_10:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w2, #9
	b	LBB0_17
LBB0_11:
	add	x8, sp, #30
	add	x9, sp, #31
	stp	x9, x8, [sp]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_16
; %bb.12:
	ldrb	w8, [sp, #30]
	cmp	w8, #115
	b.ne	LBB0_16
; %bb.13:
	ldrsb	w0, [sp, #31]
	bl	_get_sorting_mode
	tbnz	w0, #31, LBB0_16
; %bb.14:
Lloh28:
	adrp	x8, _MAX_RATES@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAX_RATES@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_16
; %bb.15:
Lloh31:
	adrp	x8, _delete_queries@GOTPAGE
Lloh32:
	ldr	x8, [x8, _delete_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_do_reset_all_rates
	cmp	w0, #1
	b.ge	LBB0_10
LBB0_16:
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w2, #11
LBB0_17:
	bl	_write_out
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delete \"%s\"\n"

l_.str.1:                               ; @.str.1
	.asciz	"itemswithhash%llx"

	.comm	_delete_hash_queries,4,2        ; @delete_hash_queries
	.comm	_delete_hash_query_items,4,2    ; @delete_hash_query_items
l_.str.2:                               ; @.str.2
	.asciz	"item%d_%d "

	.comm	_delete_queries,4,2             ; @delete_queries
l_.str.3:                               ; @.str.3
	.asciz	"delete_item (%d,%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"delete: item_id=%lld\n"

l_.str.5:                               ; @.str.5
	.asciz	"item%d "

l_.str.6:                               ; @.str.6
	.asciz	"reset_all_%cate%c"

	.comm	_MAX_RATES,4,2                  ; @MAX_RATES
l_.str.7:                               ; @.str.7
	.asciz	"DELETED\r\n"

l_.str.8:                               ; @.str.8
	.asciz	"NOT_FOUND\r\n"

.subsections_via_symbols
