	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function export
_export:                                ## @export
	.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	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	movl	16(%rbx), %edx
	cmpl	$2, (%rbx)
	jl	LBB0_4
## %bb.1:
	leaq	-1056(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_av_get_frame_filename
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_av_assert0
	jmp	LBB0_2
LBB0_4:
	leaq	-1056(%rbp), %rdi
	movl	%edx, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_av_strlcpy
	cmpl	$1024, %eax                     ## imm = 0x400
	jb	LBB0_2
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_7
LBB0_2:
	movq	8(%rbx), %rax
	movq	_FORMAT_XML@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	leaq	-1056(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_xml_export
	jmp	LBB0_7
LBB0_6:
	leaq	-1056(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_binary_export
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FORMAT_XML,8,3                 ## @FORMAT_XML
	.no_dead_strip	_export
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function export
_export:                                ; @export
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #1040
	mov	x3, x2
	mov	x19, 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, #-40]
	ldr	x21, [x0]
	ldr	w8, [x21]
	ldr	w2, [x21, #16]
	add	x0, sp, #8
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	mov	w1, #1024
	bl	_av_get_frame_filename
	cmp	x0, #0
	cset	w0, eq
	bl	_av_assert0
	b	LBB0_4
LBB0_2:
	mov	x1, x2
	mov	w2, #1024
	bl	_av_strlcpy
	cmp	w0, #1024
	b.lo	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_7
LBB0_4:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _FORMAT_XML@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FORMAT_XML@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	_xml_export
	b	LBB0_7
LBB0_6:
	bl	_binary_export
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FORMAT_XML,8,3                 ; @FORMAT_XML
	.no_dead_strip	_export
.subsections_via_symbols
