	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_open
_async_open:                            ## @async_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)
	movq	16(%rdi), %rbx
	movq	%rdi, -88(%rbp)
	movq	_async_check_interrupt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_av_strstart
	movq	_BUFFER_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_READ_BACK_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ring_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	12(%r12), %eax
	movl	%eax, 36(%rbx)
	movq	%r15, %r8
	leaq	8(%rbx), %r15
	movq	-48(%rbp), %rsi
	movl	4(%r12), %eax
	movl	8(%r12), %r9d
	leaq	-88(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %edx
	pushq	%r12
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_av_err2str
	movq	-48(%rbp), %r8
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	%rbx, %rdi
	jmp	LBB0_15
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_4:
	movq	8(%rbx), %rdi
	callq	_ffurl_size
	movl	%eax, 32(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_14
LBB0_6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_8:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	24(%rbx), %r14
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_av_err2str
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
LBB0_10:
	leaq	28(%rbx), %rdi
	movq	_async_buffer_task@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_av_err2str
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	%r14, %rdi
	callq	_pthread_cond_destroy
LBB0_12:
	movl	%ebx, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_destroy
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_mutex_destroy
LBB0_14:
	movq	(%r15), %rdi
	callq	_ffurl_close
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_15:
	callq	_ring_destroy
LBB0_16:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_async_check_interrupt,4,2      ## @async_check_interrupt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"async:"

	.comm	_BUFFER_CAPACITY,4,2            ## @BUFFER_CAPACITY
	.comm	_READ_BACK_CAPACITY,4,2         ## @READ_BACK_CAPACITY
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"ffurl_open failed : %s, %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"pthread_mutex_init failed : %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"pthread_cond_init failed : %s\n"

	.comm	_async_buffer_task,4,2          ## @async_buffer_task
L_.str.4:                               ## @.str.4
	.asciz	"pthread_create failed : %s\n"

	.no_dead_strip	_async_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_open
_async_open:                            ; @async_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x24, x2
	mov	x8, x1
	mov	x21, x0
	str	x1, [sp, #24]
	ldr	x19, [x0, #16]
	str	x0, [sp, #8]
Lloh0:
	adrp	x9, _async_check_interrupt@GOTPAGE
Lloh1:
	ldr	x9, [x9, _async_check_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x8
	bl	_av_strstart
Lloh5:
	adrp	x8, _BUFFER_CAPACITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUFFER_CAPACITY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _READ_BACK_CAPACITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _READ_BACK_CAPACITY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ring_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [x21, #12]
	str	w8, [x19, #36]
	add	x20, x19, #8
	ldr	x1, [sp, #24]
	ldp	w6, w5, [x21, #4]
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x24
	mov	x4, x23
	mov	x7, x21
	bl	_ffurl_open_whitelist
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_av_err2str
	mov	x3, x0
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_av_log
	b	LBB0_15
LBB0_3:
	mov	x22, x0
	b	LBB0_16
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_ffurl_size
	str	w0, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x21]
	add	x23, x19, #16
	mov	x0, x23
	mov	x1, #0
	bl	_pthread_mutex_init
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	bl	_av_err2str
	mov	x3, x0
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_av_log
	b	LBB0_14
LBB0_6:
	add	x24, x19, #20
	mov	x0, x24
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
	bl	_av_err2str
	mov	x3, x0
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	bl	_av_log
	b	LBB0_13
LBB0_8:
	add	x25, x19, #24
	mov	x0, x25
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w25, [x8]
	bl	_av_err2str
	mov	x3, x0
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x25
	bl	_av_log
	b	LBB0_12
LBB0_10:
	add	x0, x19, #28
Lloh31:
	adrp	x8, _async_buffer_task@GOTPAGE
Lloh32:
	ldr	x8, [x8, _async_buffer_task@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, x21
	bl	_pthread_create
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.11:
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w26, [x8]
	mov	x0, x22
	bl	_av_err2str
	mov	x3, x0
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x26
	bl	_av_log
	mov	x0, x25
	bl	_pthread_cond_destroy
LBB0_12:
	mov	x0, x24
	bl	_pthread_cond_destroy
LBB0_13:
	mov	x0, x23
	bl	_pthread_mutex_destroy
LBB0_14:
	ldr	x0, [x20]
	bl	_ffurl_close
LBB0_15:
	mov	x0, x19
	bl	_ring_destroy
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_async_check_interrupt,4,2      ; @async_check_interrupt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"async:"

	.comm	_BUFFER_CAPACITY,4,2            ; @BUFFER_CAPACITY
	.comm	_READ_BACK_CAPACITY,4,2         ; @READ_BACK_CAPACITY
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"ffurl_open failed : %s, %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"pthread_mutex_init failed : %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"pthread_cond_init failed : %s\n"

	.comm	_async_buffer_task,4,2          ; @async_buffer_task
l_.str.4:                               ; @.str.4
	.asciz	"pthread_create failed : %s\n"

	.no_dead_strip	_async_open
.subsections_via_symbols
