	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt_progress
_opt_progress:                          ## @opt_progress
	.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	%rdx, %rbx
	movq	$0, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %r12
	cmovneq	%rbx, %r12
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_int_cb@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_avio_open2
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	movq	_progress_avio@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_av_err2str
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movl	%ebx, %esi
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_av_log
	movl	%r14d, %r15d
LBB0_3:
	movl	%r15d, %eax
	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	"-"

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

	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_int_cb,4,2                     ## @int_cb
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to open progress URL \"%s\": %s\n"

	.comm	_progress_avio,8,3              ## @progress_avio
	.no_dead_strip	_opt_progress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt_progress
_opt_progress:                          ; @opt_progress
	.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	x19, x2
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_strcmp
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	w0, #0
	csel	x20, x8, x19, eq
Lloh4:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x3, _int_cb@GOTPAGE
Lloh8:
	ldr	x3, [x3, _int_cb@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x1, x20
	mov	x4, #0
	bl	_avio_open2
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w19, #0
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, _progress_avio@GOTPAGE
Lloh10:
	ldr	x9, [x9, _progress_avio@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	bl	_av_err2str
	mov	x4, x0
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	mov	x1, x21
	mov	x3, x20
	bl	_av_log
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

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

	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_int_cb,4,2                     ; @int_cb
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to open progress URL \"%s\": %s\n"

	.comm	_progress_avio,8,3              ; @progress_avio
	.no_dead_strip	_opt_progress
.subsections_via_symbols
