	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_uri_delete
_cache_uri_delete:                      ## @cache_uri_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_log_last_ts@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setg	%dil
	callq	_assert
	movq	_cache_features_mask@GOTPCREL(%rip), %rax
	movq	_CACHE_FEATURE_REPLAY_DELETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.1:
	movl	(%r14), %esi
	leaq	-288(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	movb	$0, -288(%rbp,%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_get_uri_f
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %r8
	movq	(%r15), %rcx
	movq	_uri_living_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	negq	%rax
	addq	%rcx, %rax
	addq	$7200, %rax                     ## imm = 0x1C20
	cmpq	%rax, %r8
	jge	LBB0_4
## %bb.5:
	leaq	-288(%rbp), %rdi
	movl	$-1, %esi
	callq	_get_uri_f
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_cache_uri_free
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	leaq	-288(%rbp), %rdx
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-288(%rbp), %rdx
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_log_last_ts,8,3                ## @log_last_ts
	.comm	_cache_features_mask,4,2        ## @cache_features_mask
	.comm	_CACHE_FEATURE_REPLAY_DELETE,4,2 ## @CACHE_FEATURE_REPLAY_DELETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Delete not existing global uri - \"%s\".\n"

	.comm	_uri_living_time,8,3            ## @uri_living_time
L_.str.1:                               ## @.str.1
	.asciz	"Skip deleting global uri, since it isn't too old - \"%s\", log_last_ts: %d, last_access: %d\n"

	.no_dead_strip	_cache_uri_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_uri_delete
_cache_uri_delete:                      ; @cache_uri_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _log_last_ts@GOTPAGE
Lloh4:
	ldr	x21, [x21, _log_last_ts@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh5:
	adrp	x8, _cache_features_mask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cache_features_mask@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CACHE_FEATURE_REPLAY_DELETE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CACHE_FEATURE_REPLAY_DELETE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	ldr	w1, [x20]
	add	x20, sp, #24
	add	x0, sp, #24
	mov	x2, x19
	bl	_memcpy
	strb	wzr, [x20, w19, sxtw]
	add	x0, sp, #24
	mov	w1, #0
	bl	_get_uri_f
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh11:
	adrp	x10, _uri_living_time@GOTPAGE
Lloh12:
	ldr	x10, [x10, _uri_living_time@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh13:
	ldr	x10, [x10]
	mov	w11, #7200
	sub	x10, x9, x10
	add	x10, x10, x11
	cmp	x8, x10
	b.ge	LBB0_5
; %bb.3:
	add	x0, sp, #24
	mov	w1, #-1
	bl	_get_uri_f
	cmp	x19, x0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_cache_uri_free
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	stp	x9, x8, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	add	x2, sp, #24
	mov	w0, #2
	bl	_vkprintf
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_log_last_ts,8,3                ; @log_last_ts
	.comm	_cache_features_mask,4,2        ; @cache_features_mask
	.comm	_CACHE_FEATURE_REPLAY_DELETE,4,2 ; @CACHE_FEATURE_REPLAY_DELETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Delete not existing global uri - \"%s\".\n"

	.comm	_uri_living_time,8,3            ; @uri_living_time
l_.str.1:                               ; @.str.1
	.asciz	"Skip deleting global uri, since it isn't too old - \"%s\", log_last_ts: %d, last_access: %d\n"

	.no_dead_strip	_cache_uri_delete
.subsections_via_symbols
