	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_data_packet
_flv_data_packet:                       ## @flv_data_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_avio_r8
	xorl	%r14d, %r14d
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_28
## %bb.4:
	movl	$1, %r14d
LBB0_5:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_avio_seek
	jmp	LBB0_6
LBB0_1:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
LBB0_6:
	movq	_AMF_DATA_TYPE_STRING@GOTPCREL(%rip), %r13
	movl	$1954047348, %r15d              ## imm = 0x74786574
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_amf_skip_tag
	testl	%eax, %eax
	js	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	movl	$20, %edx
	callq	_amf_get_string
	testl	%eax, %eax
	jle	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_avio_r8
	movslq	%eax, %rsi
	cmpq	%rsi, (%r13)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-80(%rbp), %eax
	xorl	%r15d, %eax
	movzbl	-76(%rbp), %ecx
	orl	%eax, %ecx
	jne	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_avio_rb16
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %edx
	callq	_av_get_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.16:
	testl	%r15d, %r15d
	js	LBB0_20
## %bb.17:
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_18
## %bb.21:
	movq	16(%r13), %rsi
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%edx, %edx
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdx,8), %rax
	movq	8(%rax), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_22
	jmp	LBB0_24
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_20:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
LBB0_28:
	movq	8(%r13), %rdi
	addl	$4, %r15d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_avio_seek
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%edx, %edx
	xorl	%eax, %eax
	movl	-84(%rbp), %r15d                ## 4-byte Reload
LBB0_19:
	cmpl	%r8d, %edx
	jne	LBB0_27
LBB0_24:
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_create_stream
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movq	_AV_CODEC_ID_TEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, 8(%rdx)
LBB0_27:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-100(%rbp), %edx                ## 4-byte Reload
	movl	%edx, (%rcx)
	movl	%edx, 4(%rcx)
	movl	%ebx, 8(%rcx)
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rcx)
	jmp	LBB0_28
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_AMF_DATA_TYPE_STRING,8,3       ## @AMF_DATA_TYPE_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"text"

	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_CODEC_ID_TEXT,4,2           ## @AV_CODEC_ID_TEXT
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_flv_data_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_data_packet
_flv_data_packet:                       ; @flv_data_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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x24, [x0, #8]
Lloh3:
	adrp	x26, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	ldr	w23, [x26]
	mov	x0, x24
	bl	_avio_r8
	mov	w25, #0
	cmp	w0, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_25
; %bb.3:
	mov	w25, #1
LBB0_4:
Lloh5:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x24
	mov	w1, #4
	bl	_avio_seek
LBB0_5:
Lloh8:
	adrp	x27, _AMF_DATA_TYPE_STRING@GOTPAGE
Lloh9:
	ldr	x27, [x27, _AMF_DATA_TYPE_STRING@GOTPAGEOFF]
	mov	w28, #25972
	movk	w28, #29816, lsl #16
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_amf_skip_tag
	tbnz	w0, #31, LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w25, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #4
	mov	x0, x24
	mov	w2, #20
	bl	_amf_get_string
	cmp	w0, #1
	b.lt	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_avio_r8
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	ldr	x8, [x27]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w25, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #4]
	eor	w8, w8, w28
	ldrb	w9, [sp, #8]
	orr	w8, w8, w9
	cbnz	w8, LBB0_6
LBB0_12:
	mov	x0, x24
	bl	_avio_rb16
	mov	x25, x0
	mov	x0, x24
	mov	x1, x21
	mov	x2, x25
	bl	_av_get_packet
	mov	x23, x0
	tbnz	w0, #31, LBB0_25
; %bb.13:
	tbnz	w25, #31, LBB0_19
; %bb.14:
	ldr	w9, [x20]
Lloh10:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x10, #0
	ldr	x11, [x20, #16]
	ldr	x12, [x8]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x11, x10, lsl #3]
	ldr	x13, [x0, #8]
	ldr	x13, [x13]
	cmp	x13, x12
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_16
	b	LBB0_22
LBB0_18:
	mov	x23, x0
	b	LBB0_25
LBB0_19:
	ldr	w23, [x26]
	b	LBB0_25
LBB0_20:
	mov	w10, #0
	mov	x0, #0
LBB0_21:
	cmp	w10, w9
	b.ne	LBB0_24
LBB0_22:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_create_stream
	cbz	x0, LBB0_28
; %bb.23:
Lloh12:
	adrp	x8, _AV_CODEC_ID_TEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_CODEC_ID_TEXT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	str	w8, [x9, #8]
LBB0_24:
	stp	w22, w22, [x21]
	str	w23, [x21, #8]
Lloh15:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh17:
	ldr	w8, [x8]
	ldr	w10, [x21, #12]
	orr	w8, w10, w8
	stp	w8, w9, [x21, #12]
LBB0_25:
	ldr	x0, [x20, #8]
	add	w1, w19, #4
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_avio_seek
LBB0_26:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.27:
	mov	x0, x23
	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
LBB0_28:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_26
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_AMF_DATA_TYPE_STRING,8,3       ; @AMF_DATA_TYPE_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"text"

	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_CODEC_ID_TEXT,4,2           ; @AV_CODEC_ID_TEXT
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_flv_data_packet
.subsections_via_symbols
