	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_open
_cache_open:                            ## @cache_open
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)
	movq	16(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_av_strstart
	leaq	L_.str.1(%rip), %rdi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_avpriv_tempfile
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rdi
	callq	_unlink
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_5
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_4:
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
LBB0_5:
	addq	$16, %r14
	movq	-48(%rbp), %rsi
	leaq	8(%rbx), %rcx
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	movq	%r14, %rdi
	movl	%r12d, %edx
	movq	%r15, %r8
	pushq	%rbx
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache:"

L_.str.1:                               ## @.str.1
	.asciz	"ffcache"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create tempfile\n"

	.no_dead_strip	_cache_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_open
_cache_open:                            ; @cache_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x8, x1
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x8
	bl	_av_strstart
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, sp
	mov	w2, #0
	mov	x3, x19
	bl	_avpriv_tempfile
	str	x0, [x22]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x0, [sp]
	bl	_unlink
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, sp
	bl	_av_freep
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w0, [x22]
	b	LBB0_6
LBB0_4:
	ldr	x8, [sp]
	str	x8, [x22, #8]
LBB0_5:
	add	x0, x22, #16
	ldr	x1, [sp, #8]
	add	x3, x19, #8
	ldp	w6, w5, [x19]
	mov	x2, x21
	mov	x4, x20
	mov	x7, x19
	bl	_ffurl_open_whitelist
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache:"

l_.str.1:                               ; @.str.1
	.asciz	"ffcache"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create tempfile\n"

	.no_dead_strip	_cache_open
.subsections_via_symbols
