	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function annexb_read_packet
_annexb_read_packet:                    ## @annexb_read_packet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	4(%rbx), %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r13d
	jne	LBB0_24
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_avio_feof
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_av_bsf_send_packet
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_leb
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r12)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_leb
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	4(%rbx), %rcx
	movl	%eax, %edx
	addq	%rcx, %rdx
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rdx
	jg	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	subl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	leaq	-44(%rbp), %rsi
	callq	_leb
	testl	%eax, %eax
	js	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	movslq	-44(%rbp), %rdx
	movl	%eax, %eax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_av_get_packet
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-44(%rbp), %r13d
	jne	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	addl	%r12d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subl	%r13d, (%rbx)
	movl	-44(%rbp), %eax
	addl	%r12d, %eax
	subl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_av_bsf_send_packet
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_av_bsf_receive_packet
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r13d
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	jmp	LBB0_23
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_24
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_24
LBB0_17:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_24:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send packet to av1_frame_merge filter\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.1:                               ## @.str.1
	.asciz	"av1_frame_merge filter failed to send output packet\n"

	.no_dead_strip	_annexb_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function annexb_read_packet
_annexb_read_packet:                    ; @annexb_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x22, x21, #4
Lloh0:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
Lloh2:
	adrp	x28, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x28, [x28, _AVERROR_EOF@GOTPAGEOFF]
Lloh4:
	adrp	x26, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_AVERROR
	cmp	w24, w0
	b.ne	LBB0_23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_avio_feof
	ldr	w8, [x21]
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w8, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cbnz	w8, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21, #8]
	mov	x1, #0
	bl	_av_bsf_send_packet
	b	LBB0_17
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	bl	_leb
	tbnz	w0, #31, LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cbnz	w8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_leb
	tbnz	w0, #31, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldpsw	x8, x9, [x21]
	add	x9, x9, w0, uxtw
	cmp	x9, x8
	b.gt	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w8, w0
	str	w8, [x21]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_leb
	tbnz	w0, #31, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	ldrsw	x2, [sp, #12]
	add	x8, x2, w0, uxtw
	ldrsw	x9, [x22]
	cmp	x8, x9
	b.gt	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_av_get_packet
	mov	x24, x0
	tbnz	w0, #31, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	cmp	w24, w8
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [x21]
	add	w10, w24, w25
	sub	w8, w8, w10
	str	w8, [x21]
	ldr	w8, [sp, #12]
	add	w8, w8, w25
	sub	w8, w9, w8
	str	w8, [x21, #4]
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_av_bsf_send_packet
	tbnz	w0, #31, LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_av_bsf_receive_packet
	mov	x24, x0
	tbz	w0, #31, LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_AVERROR
	ldr	w8, [x28]
	cmp	w24, w0
	ccmp	w24, w8, #4, ne
	b.eq	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x23
	bl	_av_log
	b	LBB0_1
LBB0_20:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x24, x0
	b	LBB0_23
LBB0_21:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	b	LBB0_23
LBB0_22:
	mov	x24, x0
	ldr	w1, [x26]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_23:
	mov	x0, x24
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send packet to av1_frame_merge filter\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.1:                               ; @.str.1
	.asciz	"av1_frame_merge filter failed to send output packet\n"

	.no_dead_strip	_annexb_read_packet
.subsections_via_symbols
