	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tee_write_packet
_tee_write_packet:                      ## @tee_write_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	cmpl	$0, (%r14)
	je	LBB0_22
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_av_interleaved_write_frame
	testl	%eax, %eax
	js	LBB0_19
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movl	(%r14), %ecx
	movl	%eax, %ebx
	cmpq	%rcx, %r12
	jae	LBB0_23
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	8(%r14), %rax
	leaq	(%r12,%r12,2), %r15
	movq	16(%rax,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rcx,4), %ecx
	movq	%rcx, %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	js	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_packet_ref
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movq	8(%rax,%r15,8), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r14
	movl	%ecx, -48(%rbp)
	movq	%r14, %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_av_bsf_send_packet
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_av_err2str
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rbx
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_tee_process_slave_failure
	testl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovnsl	%ecx, %eax
	testl	%ecx, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_bsf_receive_packet
	movl	%eax, %r15d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	testl	%r15d, %r15d
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	(%r14), %esi
	movq	(%r13), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_av_packet_rescale_ts
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_av_interleaved_write_frame
	testl	%eax, %eax
	jns	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_tee_process_slave_failure
	testl	%eax, %eax
	cmovnsl	%ebx, %eax
	testl	%ebx, %ebx
	cmovnel	%ebx, %eax
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_tee_process_slave_failure
	testl	%eax, %eax
	cmovnsl	%ebx, %eax
	testl	%ebx, %ebx
	cmovnel	%ebx, %eax
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error while sending packet to bitstream filter: %s\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_tee_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tee_write_packet
_tee_write_packet:                      ; @tee_write_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x27, [x0, #8]
	ldr	w8, [x27]
	cbz	w8, LBB0_19
; %bb.1:
	mov	x19, x1
	mov	x21, #0
	mov	w20, #0
	mov	w28, #24
Lloh0:
	adrp	x22, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, #0
	bl	_av_interleaved_write_frame
	tbnz	w0, #31, LBB0_17
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	w8, [x27]
	mov	x20, x0
	cmp	x21, x8
	b.hs	LBB0_20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x27, #8]
	madd	x9, x21, x28, x8
	ldr	x23, [x9, #16]
	cbz	x23, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x19, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19]
	mul	x10, x21, x28
	ldr	x8, [x8, x10]
	ldr	w26, [x8, x9, lsl #2]
	tbnz	w26, #31, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #24
	mov	x1, x19
	bl	_av_packet_ref
	tbz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, #8]
	madd	x8, x21, x28, x8
	ldr	x8, [x8, #8]
	ldr	x24, [x8, x26, lsl #3]
	str	w26, [sp, #24]
	add	x1, sp, #24
	mov	x0, x24
	bl	_av_bsf_send_packet
	tbz	w0, #31, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	bl	_av_err2str
	mov	x3, x0
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x22
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	x0, x22
Lloh7:
	adrp	x22, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _EAGAIN@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x25
	bl	_tee_process_slave_failure
	cmp	w0, #0
	ccmp	w20, #0, #0, lt
	csel	w20, w0, w20, eq
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #24
	mov	x0, x24
	bl	_av_bsf_receive_packet
	mov	x25, x0
	ldr	w0, [x22]
	bl	_AVERROR
	cmp	w25, w0
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	tbnz	w25, #31, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w1, [x24]
	ldr	x8, [x23]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w2, [x8]
	add	x0, sp, #24
	bl	_av_packet_rescale_ts
	add	x1, sp, #24
	mov	x0, x23
	bl	_av_interleaved_write_frame
	tbz	w0, #31, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x25
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_tee_process_slave_failure
	cmp	w0, #0
	ccmp	w20, #0, #0, lt
	csel	w0, w0, w20, eq
	b	LBB0_4
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error while sending packet to bitstream filter: %s\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_tee_write_packet
.subsections_via_symbols
