	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function annexb_read_header
_annexb_read_header:                    ## @annexb_read_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_av_bsf_get_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_AV_CODEC_ID_AV1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	8(%r14), %eax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$1200000, %ecx                  ## imm = 0x124F80
	callq	_avpriv_set_pts_info
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_av_bsf_alloc
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	(%r14), %rdi
	callq	_av_bsf_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_8
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_av_bsf_free
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av1_frame_merge"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"av1_frame_merge bitstream filter not found. This is a bug, please report it.\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_AV1,4,2            ## @AV_CODEC_ID_AV1
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ## @AVSTREAM_PARSE_HEADERS
	.no_dead_strip	_annexb_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function annexb_read_header
_annexb_read_header:                    ; @annexb_read_header
	.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
	mov	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_av_bsf_get_by_name
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AV_CODEC_ID_AV1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_CODEC_ID_AV1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
	ldp	x11, x12, [x0]
	stp	w9, w8, [x11]
Lloh10:
	ldr	w8, [x10]
	str	w8, [x0, #16]
	ldr	w8, [x19, #8]
	ldr	x9, [x12]
	str	w8, [x9]
	mov	w1, #64
	mov	w2, #1
	mov	w3, #20352
	movk	w3, #18, lsl #16
	bl	_avpriv_set_pts_info
	mov	x0, x20
	mov	x1, x19
	bl	_av_bsf_alloc
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_avcodec_parameters_copy
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	x0, [x19]
	bl	_av_bsf_init
	mov	x20, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh16:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_7:
	mov	x20, x0
	b	LBB0_10
LBB0_8:
	mov	x20, x0
LBB0_9:
	mov	x0, x19
	bl	_av_bsf_free
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av1_frame_merge"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"av1_frame_merge bitstream filter not found. This is a bug, please report it.\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_AV1,4,2            ; @AV_CODEC_ID_AV1
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ; @AVSTREAM_PARSE_HEADERS
	.no_dead_strip	_annexb_read_header
.subsections_via_symbols
