	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_CacheURL
_CRYPT_CacheURL:                        ## @CRYPT_CacheURL
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	$0, -52(%rbp)
	leaq	-52(%rbp), %rdx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_GetUrlCacheEntryInfoW
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	%r14d, %ebx
	movl	-52(%rbp), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	leaq	-52(%rbp), %rdx
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_GetUrlCacheEntryInfoW
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_lstrcpyW
	leaq	-56(%rbp), %rdi
	callq	_GetSystemTimeAsFileTime
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	callq	_CompareFileTime
	testq	%rax, %rax
	js	LBB0_5
## %bb.15:
	movl	%ebx, (%r14)
	movq	_CACHE_ENTRY_EXPTIME_FC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_SetUrlCacheEntryInfoW
	movq	%r14, %rdi
	callq	_CryptMemFree
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	jmp	LBB0_13
LBB0_5:
	movl	%r12d, %edi
	callq	_DeleteUrlCacheEntryW
LBB0_6:
	movq	%r14, %rdi
	callq	_CryptMemFree
	movl	%ebx, %r14d
LBB0_7:
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_CreateUrlCacheEntryW
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	callq	_CreateFileW
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_13
## %bb.9:
	movq	(%r13), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_WriteFile
	movq	%rbx, %rdi
	callq	_CloseHandle
	movq	_CRYPT_STICKY_CACHE_RETRIEVAL@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	andl	(%rax), %ecx
	jne	LBB0_10
## %bb.11:
	movq	_NORMAL_CACHE_ENTRY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_STICKY_CACHE_ENTRY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-56(%rbp), %ecx
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	$0, (%rsp)
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_CommitUrlCacheEntryW
	addq	$32, %rsp
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ## @ERROR_INSUFFICIENT_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_CACHE_ENTRY_EXPTIME_FC,4,2     ## @CACHE_ENTRY_EXPTIME_FC
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_CRYPT_STICKY_CACHE_RETRIEVAL,4,2 ## @CRYPT_STICKY_CACHE_RETRIEVAL
	.comm	_NORMAL_CACHE_ENTRY,4,2         ## @NORMAL_CACHE_ENTRY
	.comm	_STICKY_CACHE_ENTRY,4,2         ## @STICKY_CACHE_ENTRY
	.no_dead_strip	_CRYPT_CacheURL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_CacheURL
_CRYPT_CacheURL:                        ; @CRYPT_CacheURL
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x3
	mov	x22, x2
	mov	x23, 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, #-56]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	stur	wzr, [x29, #-60]
	sub	x2, x29, #60
	mov	x1, #0
	bl	_GetUrlCacheEntryInfoW
	bl	_GetLastError
Lloh8:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	ldur	w0, [x29, #-60]
	bl	_CryptMemAlloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	sub	x2, x29, #60
	mov	x0, x20
	mov	x1, x24
	bl	_GetUrlCacheEntryInfoW
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x24, #4]
	mov	x0, x21
	bl	_lstrcpyW
	sub	x0, x29, #64
	bl	_GetSystemTimeAsFileTime
	sub	x1, x29, #64
	mov	x0, x24
	bl	_CompareFileTime
	tbnz	x0, #63, LBB0_6
; %bb.4:
	str	w19, [x24]
Lloh11:
	adrp	x8, _CACHE_ENTRY_EXPTIME_FC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CACHE_ENTRY_EXPTIME_FC@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_SetUrlCacheEntryInfoW
	mov	x0, x24
	bl	_CryptMemFree
	b	LBB0_11
LBB0_5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	b	LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_DeleteUrlCacheEntryW
LBB0_7:
	mov	x0, x24
	bl	_CryptMemFree
LBB0_8:
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x21
	mov	w4, #0
	bl	_CreateUrlCacheEntryW
	cbz	w0, LBB0_11
; %bb.9:
Lloh16:
	adrp	x8, _GENERIC_WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GENERIC_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFileW
Lloh25:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x24, x0
	ldr	x8, [x23]
	ldp	w2, w1, [x8]
	sub	x3, x29, #60
	mov	x4, #0
	bl	_WriteFile
	mov	x0, x24
	bl	_CloseHandle
Lloh28:
	adrp	x8, _CRYPT_STICKY_CACHE_RETRIEVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CRYPT_STICKY_CACHE_RETRIEVAL@GOTPAGEOFF]
Lloh30:
	adrp	x9, _NORMAL_CACHE_ENTRY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NORMAL_CACHE_ENTRY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x10, _STICKY_CACHE_ENTRY@GOTPAGE
Lloh34:
	ldr	x10, [x10, _STICKY_CACHE_ENTRY@GOTPAGEOFF]
	tst	w8, w22
	csel	x8, x9, x10, eq
	ldr	w22, [x8]
	sub	x0, x29, #64
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldur	w3, [x29, #-64]
	str	xzr, [sp, #-16]!
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x4, x22
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_CommitUrlCacheEntryW
	add	sp, sp, #16
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ; @ERROR_INSUFFICIENT_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_CACHE_ENTRY_EXPTIME_FC,4,2     ; @CACHE_ENTRY_EXPTIME_FC
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_CRYPT_STICKY_CACHE_RETRIEVAL,4,2 ; @CRYPT_STICKY_CACHE_RETRIEVAL
	.comm	_NORMAL_CACHE_ENTRY,4,2         ; @NORMAL_CACHE_ENTRY
	.comm	_STICKY_CACHE_ENTRY,4,2         ; @STICKY_CACHE_ENTRY
	.no_dead_strip	_CRYPT_CacheURL
.subsections_via_symbols
