	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_set_video_codec
_flv_set_video_codec:                   ## @flv_set_video_codec
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	16(%rsi), %r13
	movl	(%r13), %r8d
	leal	-128(%rbx), %edx
	cmpl	$7, %edx
	ja	LBB0_17
## %bb.1:
	movq	_AV_CODEC_ID_VP6F@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	_AV_CODEC_ID_VP6A@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movl	$1, %r12d
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	cmpl	$1, 4(%r13)
	je	LBB0_12
## %bb.11:
	movq	%rdi, %r14
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r8d, %ebx
	callq	_ff_alloc_extradata
	movl	%ebx, %r8d
	movq	%r14, %rdi
LBB0_12:
	movl	%r8d, %ebx
	cmpq	$0, 16(%r13)
	movq	%rdi, %r14
	movl	(%rdi), %edi
	je	LBB0_14
## %bb.13:
	callq	_avio_r8
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %r8d
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rdi, %r14
	movl	%ebx, %edx
	xorl	%eax, %eax
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_avpriv_request_sample
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, 8(%r13)
	jmp	LBB0_18
LBB0_6:
	movq	%rdi, %r14
	movq	_AV_CODEC_ID_FLASHSV2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	%rdi, %r14
	movq	_AV_CODEC_ID_FLASHSV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	%rdi, %r14
	movq	_AV_CODEC_ID_H263@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movq	%rdi, %r14
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movl	$3, %r12d
	jmp	LBB0_18
LBB0_15:
	movq	%rdi, %r14
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	$3, %r12d
	jmp	LBB0_18
LBB0_2:
	movq	%rdi, %r14
	movq	_AV_CODEC_ID_FLV1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%r13)
	xorl	%r12d, %r12d
LBB0_18:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_21
## %bb.19:
	cmpl	%r8d, (%r13)
	je	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rdi, %r14
	jmp	LBB0_18
LBB0_14:
	movl	$1, %r12d
	movl	$1, %esi
	callq	_avio_skip
	movl	%ebx, %r8d
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_AV_CODEC_ID_FLV1,4,2           ## @AV_CODEC_ID_FLV1
	.comm	_AV_CODEC_ID_H263,4,2           ## @AV_CODEC_ID_H263
	.comm	_AV_CODEC_ID_FLASHSV,4,2        ## @AV_CODEC_ID_FLASHSV
	.comm	_AV_CODEC_ID_FLASHSV2,4,2       ## @AV_CODEC_ID_FLASHSV2
	.comm	_AV_CODEC_ID_VP6F,4,2           ## @AV_CODEC_ID_VP6F
	.comm	_AV_CODEC_ID_VP6A,4,2           ## @AV_CODEC_ID_VP6A
	.comm	_AV_CODEC_ID_H264,4,2           ## @AV_CODEC_ID_H264
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ## @AVSTREAM_PARSE_HEADERS
	.comm	_AV_CODEC_ID_MPEG4,4,2          ## @AV_CODEC_ID_MPEG4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Video codec (%x)"

L_.str.1:                               ## @.str.1
	.asciz	"Changing the codec id midstream"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_flv_set_video_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_set_video_codec
_flv_set_video_codec:                   ; @flv_set_video_codec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #16]
	ldr	w24, [x20]
	sub	w9, w2, #128
	cmp	w9, #7
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _AV_CODEC_ID_VP6F@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_VP6F@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _AV_CODEC_ID_VP6A@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_CODEC_ID_VP6A@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x20]
	cbz	w3, LBB0_20
; %bb.4:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	bl	_ff_alloc_extradata
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	w0, [x19]
	cbz	x8, LBB0_21
; %bb.7:
	bl	_avio_r8
	ldr	x8, [x20, #16]
	str	w0, [x8]
	mov	w22, #1
	b	LBB0_16
LBB0_8:
	mov	x23, x2
	str	x23, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_avpriv_request_sample
	mov	w22, #0
	str	w23, [x20, #8]
	b	LBB0_16
LBB0_9:
	mov	w22, #0
Lloh8:
	adrp	x8, _AV_CODEC_ID_FLASHSV2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_CODEC_ID_FLASHSV2@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	mov	w22, #0
Lloh10:
	adrp	x8, _AV_CODEC_ID_FLASHSV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_FLASHSV@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	w22, #0
Lloh12:
	adrp	x8, _AV_CODEC_ID_H263@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_CODEC_ID_H263@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x8, _AV_CODEC_ID_MPEG4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_CODEC_ID_MPEG4@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w22, #3
	b	LBB0_16
LBB0_13:
Lloh17:
	adrp	x8, _AV_CODEC_ID_H264@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh20:
	adrp	x8, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	w22, #3
	b	LBB0_16
LBB0_14:
	mov	w22, #0
Lloh23:
	adrp	x8, _AV_CODEC_ID_FLV1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_CODEC_ID_FLV1@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_16:
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbnz	w8, LBB0_19
; %bb.17:
	ldr	w8, [x20]
	cmp	w8, w24
	b.eq	LBB0_19
; %bb.18:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_avpriv_request_sample
Lloh27:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w22, #1
	b	LBB0_16
LBB0_21:
	mov	w22, #1
	mov	w1, #1
	bl	_avio_skip
	b	LBB0_16
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_AV_CODEC_ID_FLV1,4,2           ; @AV_CODEC_ID_FLV1
	.comm	_AV_CODEC_ID_H263,4,2           ; @AV_CODEC_ID_H263
	.comm	_AV_CODEC_ID_FLASHSV,4,2        ; @AV_CODEC_ID_FLASHSV
	.comm	_AV_CODEC_ID_FLASHSV2,4,2       ; @AV_CODEC_ID_FLASHSV2
	.comm	_AV_CODEC_ID_VP6F,4,2           ; @AV_CODEC_ID_VP6F
	.comm	_AV_CODEC_ID_VP6A,4,2           ; @AV_CODEC_ID_VP6A
	.comm	_AV_CODEC_ID_H264,4,2           ; @AV_CODEC_ID_H264
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ; @AVSTREAM_PARSE_HEADERS
	.comm	_AV_CODEC_ID_MPEG4,4,2          ; @AV_CODEC_ID_MPEG4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Video codec (%x)"

l_.str.1:                               ; @.str.1
	.asciz	"Changing the codec id midstream"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_flv_set_video_codec
.subsections_via_symbols
