	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_packet
_output_packet:                         ## @output_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdx)
	je	LBB0_18
## %bb.1:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	testl	%ecx, %ecx
	cmoveq	%r14, %rsi
	callq	_av_bsf_send_packet
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	$1, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
	xorl	%ebx, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movslq	%r13d, %r15
	movl	-4(%rax,%r15,4), %edi
	movq	%r14, %rsi
	callq	_av_bsf_receive_packet
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%r12), %r13d
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %ebx
	movq	16(%r12), %rax
	movl	(%rax,%r15,4), %edi
	movq	%r14, %rsi
	movl	$0, %eax
	cmoveq	%rax, %rsi
	callq	_av_bsf_send_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_write_packet
	jmp	LBB0_13
LBB0_18:
	testl	%ecx, %ecx
	jne	LBB0_19
## %bb.20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_packet                   ## TAILCALL
LBB0_2:
	movl	%eax, %ebx
LBB0_14:
	testl	%ebx, %ebx
	jns	LBB0_19
## %bb.15:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_19
## %bb.16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %r8d
	movl	8(%r12), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	_exit_on_error@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.17:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exit_program                   ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error applying bitstream filters to an output packet for stream #%d:%d.\n"

	.comm	_exit_on_error,8,3              ## @exit_on_error
	.no_dead_strip	_output_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_packet
_output_packet:                         ; @output_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
	cbz	w8, LBB0_13
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	cmp	w3, #0
	csel	x1, x20, xzr, eq
	bl	_av_bsf_send_packet
Lloh0:
	adrp	x23, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AVERROR_EOF@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	w25, #1
Lloh2:
	adrp	x24, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	mov	x25, x27
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w25, LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	sxtw	x26, w25
	sub	x27, x26, #1
	ldr	w0, [x8, x27, lsl #2]
	mov	x1, x20
	bl	_av_bsf_receive_packet
	mov	x22, x0
	ldr	w0, [x24]
	bl	_AVERROR
	cmp	w22, w0
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	tbz	w22, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, w8
	b.ne	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19]
	cmp	w25, w9
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #16]
	ldr	w0, [x9, x26, lsl #2]
	cmp	w22, w8
	csel	x1, xzr, x20, eq
	bl	_av_bsf_send_packet
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, #1
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, w8
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_write_packet
	b	LBB0_4
LBB0_13:
	cbnz	w3, LBB0_20
; %bb.14:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_write_packet
LBB0_15:
	mov	x22, x0
LBB0_16:
	tbz	w22, #31, LBB0_20
; %bb.17:
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_20
; %bb.18:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #4]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh9:
	adrp	x8, _exit_on_error@GOTPAGE
Lloh10:
	ldr	x8, [x8, _exit_on_error@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_exit_program
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error applying bitstream filters to an output packet for stream #%d:%d.\n"

	.comm	_exit_on_error,8,3              ; @exit_on_error
	.no_dead_strip	_output_packet
.subsections_via_symbols
