	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_get_yellow_light_remaining ## -- Begin function cache_get_yellow_light_remaining
	.p2align	4, 0x90
_cache_get_yellow_light_remaining:      ## @cache_get_yellow_light_remaining
	.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
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_vkprintf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_get_uri_f
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_LC@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_CACHE_MAX_LOCAL_COPIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-60(%rbp), %r8
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_cache_local_copy_unpack
	movl	$-1, %r12d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	shlq	$2, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r12d
	jmp	LBB0_7
LBB0_6:
	addq	(%r14), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_cache_local_copy_get_yellow_light_time
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache_get_local_copy_yellow_light_remaining (\"%s\", \"%s\")\n"

	.comm	_LC,8,3                         ## @LC
	.comm	_CACHE_MAX_LOCAL_COPIES,4,2     ## @CACHE_MAX_LOCAL_COPIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_get_yellow_light_remaining ; -- Begin function cache_get_yellow_light_remaining
	.p2align	2
_cache_get_yellow_light_remaining:      ; @cache_get_yellow_light_remaining
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x22
	mov	x3, x21
	bl	_vkprintf
	mov	x0, x22
	mov	w1, #0
	bl	_get_uri_f
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x22, _LC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LC@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh4:
	adrp	x8, _CACHE_MAX_LOCAL_COPIES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CACHE_MAX_LOCAL_COPIES@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	w3, #1
	bl	_cache_local_copy_unpack
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	mov	w8, w0
	lsl	x24, x8, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x23]
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	ldr	x8, [x22]
	add	x0, x8, x23
	mov	x1, x20
	mov	x2, x19
	bl	_cache_local_copy_get_yellow_light_time
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache_get_local_copy_yellow_light_remaining (\"%s\", \"%s\")\n"

	.comm	_LC,8,3                         ; @LC
	.comm	_CACHE_MAX_LOCAL_COPIES,4,2     ; @CACHE_MAX_LOCAL_COPIES
.subsections_via_symbols
