	.file	"extr_vd_lavc.c_add_all_hwdec_methods.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"nvdec"
.LC1:
	.string	"cuda"
.LC2:
	.string	"%s"
	.text
	.p2align 4
	.type	add_all_hwdec_methods, @function
add_all_hwdec_methods:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	rax, 40[rsp]
	mov	QWORD PTR 40[rsp], 0
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR [rsp]
	call	av_codec_iterate@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR AVMEDIA_TYPE_VIDEO[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L3
	mov	rdi, rbx
	call	av_codec_is_decoder@PLT
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR AV_PIX_FMT_NONE[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR AV_CODEC_CAP_HARDWARE[rip]
	or	eax, DWORD PTR AV_CODEC_CAP_HYBRID[rip]
	test	DWORD PTR 8[rbx], eax
	je	.L18
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	setne	BYTE PTR 27[rsp]
.L5:
	xor	ebp, ebp
	xor	r15d, r15d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	test	DWORD PTR AV_CODEC_HW_CONFIG_METHOD_INTERNAL[rip], edx
	je	.L12
	mov	eax, DWORD PTR 4[r14]
	mov	DWORD PTR 68[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	mov	r15d, eax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 72[rsp], rbx
	mov	QWORD PTR 56[rsp], 0
	mov	rcx, rax
	test	rax, rax
	je	.L36
.L13:
	mov	rdi, rcx
	mov	QWORD PTR 16[rsp], rcx
	call	assert@PLT
	mov	rcx, QWORD PTR 16[rsp]
	lea	rdx, .LC2[rip]
	xor	edi, edi
	mov	esi, 4
	call	snprintf@PLT
	mov	DWORD PTR 64[rsp], r15d
	mov	rsi, r13
	mov	rdi, r12
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 168
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 184
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 192
	call	add_hwdec_item@PLT
	mov	eax, DWORD PTR AV_PIX_FMT_NONE[rip]
	mov	DWORD PTR 88[rsp], 1
	mov	DWORD PTR 96[rsp], eax
	add	rsp, 32
	.cfi_def_cfa_offset 160
.L34:
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 168
	mov	rsi, r13
	mov	rdi, r12
	mov	r15d, 1
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 184
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 192
	call	add_hwdec_item@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 160
.L12:
	add	ebp, 1
.L14:
	mov	esi, ebp
	mov	rdi, rbx
	call	avcodec_get_hw_config@PLT
	mov	r14, rax
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX[rip]
	or	eax, DWORD PTR AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX[rip]
	test	eax, edx
	je	.L7
	mov	edi, DWORD PTR 8[r14]
	mov	rax, QWORD PTR 4[r14]
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 72[rsp], rbx
	mov	QWORD PTR 64[rsp], rax
	call	av_hwdevice_get_type_name@PLT
	mov	r15, rax
	mov	rdi, rax
	call	assert@PLT
	mov	rdi, r15
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	or	rax, QWORD PTR 8[rsp]
	mov	esi, 4
	lea	rax, .LC0[rip]
	cmove	r15, rax
	lea	rdx, .LC2[rip]
	xor	edi, edi
	mov	rcx, r15
	call	snprintf@PLT
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX[rip], eax
	je	.L9
	mov	DWORD PTR 48[rsp], 1
.L10:
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 168
	mov	rsi, r13
	mov	rdi, r12
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 184
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 192
	call	add_hwdec_item@PLT
	mov	DWORD PTR 88[rsp], 1
	mov	eax, DWORD PTR [r14]
	add	rsp, 32
	.cfi_def_cfa_offset 160
	test	DWORD PTR AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX[rip], eax
	je	.L34
	movabs	rax, 4294967296
	mov	QWORD PTR 48[rsp], rax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 52[rsp], 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	test	r15d, r15d
	jne	.L3
	cmp	BYTE PTR 27[rsp], 0
	je	.L3
	mov	eax, DWORD PTR 28[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	esi, 4
	xor	edi, edi
	lea	rdx, .LC2[rip]
	mov	QWORD PTR 72[rsp], rbx
	mov	DWORD PTR 64[rsp], eax
	mov	DWORD PTR 68[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 56[rsp], 1
	call	snprintf@PLT
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 168
	mov	rsi, r13
	mov	rdi, r12
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 184
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 192
	call	add_hwdec_item@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 160
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR hwdec_compare[rip]
	mov	esi, DWORD PTR 0[r13]
	mov	edx, 32
	mov	rdi, QWORD PTR [r12]
	call	qsort@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	BYTE PTR 27[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, r15d
	call	av_get_pix_fmt_name@PLT
	mov	rcx, rax
	jmp	.L13
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_all_hwdec_methods, .-add_all_hwdec_methods
	.comm	hwdec_compare,4,4
	.comm	AV_PIX_FMT_NONE,4,4
	.comm	AV_CODEC_HW_CONFIG_METHOD_INTERNAL,4,4
	.comm	AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX,4,4
	.comm	AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX,4,4
	.comm	AV_CODEC_CAP_HYBRID,4,4
	.comm	AV_CODEC_CAP_HARDWARE,4,4
	.comm	AVMEDIA_TYPE_VIDEO,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vd_lavc.c_add_all_hwdec_methods.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"nvdec\000"
	.align	2
.LC1:
	.ascii	"cuda\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_all_hwdec_methods, %function
add_all_hwdec_methods:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r1
	sub	sp, sp, #108
	ldr	r2, .L38
	str	r0, [sp, #24]
	ldr	r9, .L38+4
	ldr	r10, .L38+8
	ldr	r2, [r2]
	str	r2, [sp, #100]
	mov	r2,#0
	str	r3, [sp, #40]
.L7:
	add	r0, sp, #40
	bl	av_codec_iterate
	subs	r5, r0, #0
	beq	.L2
.L36:
	ldr	r3, .L38+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	bl	av_codec_is_decoder
	cmp	r0, #0
	beq	.L7
	mov	r3, #0
	ldr	r1, .L38+16
	ldr	r2, .L38+20
	ldr	r0, [r1]
	ldr	r2, [r2]
	str	r3, [sp, #44]
	str	r3, [sp, #48]
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	str	r3, [sp, #60]
	str	r3, [sp, #64]
	str	r3, [sp, #68]
	ldr	r3, .L38+24
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	orr	r2, r2, r0
	ands	r2, r2, r1
	str	r3, [sp, #32]
	beq	.L19
	ldr	r3, [r5, #8]
	str	r3, [sp, #28]
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [sp, #36]
.L8:
	mov	r7, #0
	mov	r6, r7
	b	.L17
.L10:
	ldr	r3, .L38+28
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L15
	add	r8, sp, #72
	mov	ip, r8
	ldr	r3, [sp, #32]
	str	r5, [sp, #68]
	str	r3, [sp, #60]
	add	lr, sp, #44
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	ldr	r3, [sp, #28]
	stm	ip, {r0, r1, r2}
	cmp	r3, #0
	ldr	r4, [r4, #4]
	ldrne	r6, [sp, #28]
	beq	.L35
.L16:
	mov	r0, r6
	bl	assert
	mov	r3, r6
	mov	r1, #4
	ldr	r2, .L38+32
	mov	r0, #0
	bl	snprintf
	mov	r3, #0
	mov	ip, sp
	str	r4, [sp, #88]
	str	r3, [sp, #84]
	add	lr, sp, #80
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r0, [lr]
	ldm	r8, {r2, r3}
	str	r0, [ip]
	ldr	r4, [sp, #24]
	mov	r1, fp
	mov	r0, r4
	mov	r6, #1
	bl	add_hwdec_item
	mov	ip, sp
	ldr	r3, .L38+24
	str	r6, [sp, #80]
	ldr	r3, [r3]
	add	lr, sp, #80
	str	r3, [sp, #88]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r0, [lr]
	ldm	r8, {r2, r3}
	mov	r1, fp
	str	r0, [ip]
	mov	r0, r4
	bl	add_hwdec_item
.L15:
	add	r7, r7, #1
.L17:
	mov	r1, r7
	mov	r0, r5
	bl	avcodec_get_hw_config
	subs	r4, r0, #0
	beq	.L9
	ldr	r3, [r9]
	ldr	r1, [r10]
	ldr	r2, [r4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L10
	add	r8, sp, #72
	mov	ip, r8
	ldr	r3, [sp, #32]
	str	r5, [sp, #68]
	str	r3, [sp, #60]
	add	lr, sp, #44
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	ldr	r3, [r4, #8]
	ldr	lr, [r4, #4]
	stm	ip, {r0, r1, r2}
	mov	r0, r3
	str	lr, [sp, #88]
	str	r3, [sp, #92]
	bl	av_hwdevice_get_type_name
	mov	r6, r0
	bl	assert
	mov	r0, r6
	ldr	r1, .L38+36
	bl	strcmp
	ldr	r3, [sp, #28]
	mov	r1, #4
	orrs	r3, r3, r0
	ldr	r2, .L38+32
	ldr	r3, .L38+40
	mov	r0, #0
	movne	r3, r6
	bl	snprintf
	ldr	r2, [r4]
	ldr	r3, [r9]
	mov	r6, #0
	tst	r2, r3
	mov	ip, sp
	mov	r3, #1
	str	r6, [sp, #84]
	add	lr, sp, #80
	strne	r3, [sp, #72]
	streq	r3, [sp, #76]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r0, [lr]
	ldm	r8, {r2, r3}
	str	r0, [ip]
	mov	r1, fp
	ldr	r0, [sp, #24]
	bl	add_hwdec_item
	mov	r3, #1
	mov	lr, sp
	ldr	r1, [r4]
	ldr	r2, [r10]
	str	r3, [sp, #80]
	tst	r1, r2
	add	ip, sp, #80
	strne	r6, [sp, #72]
	strne	r3, [sp, #76]
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r0, [ip]
	ldm	r8, {r2, r3}
	str	r0, [lr]
	mov	r1, fp
	ldr	r0, [sp, #24]
	bl	add_hwdec_item
	mov	r6, #1
	b	.L15
.L9:
	ldr	r3, [sp, #36]
	eor	r6, r6, #1
	tst	r3, r6
	beq	.L7
	mov	lr, #1
	ldr	r3, [sp, #32]
	str	r5, [sp, #68]
	str	r3, [sp, #60]
	add	ip, sp, #44
	add	r5, sp, #72
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	r5!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	ldr	r3, [sp, #28]
	stm	r5, {r0, r1, r2}
	mov	r1, #4
	ldr	r2, .L38+32
	mov	r0, r4
	str	lr, [sp, #80]
	bl	snprintf
	mov	ip, sp
	str	r4, [sp, #84]
	add	lr, sp, #80
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r2, [lr]
	ldr	r3, [sp, #76]
	str	r2, [ip]
	mov	r1, fp
	ldr	r2, [sp, #72]
	ldr	r0, [sp, #24]
	bl	add_hwdec_item
	add	r0, sp, #40
	bl	av_codec_iterate
	subs	r5, r0, #0
	bne	.L36
.L2:
	ldr	r2, [sp, #24]
	ldr	r3, .L38+44
	ldr	r0, [r2]
	ldr	r3, [r3]
	mov	r2, #28
	ldr	r1, [fp]
	bl	qsort
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	str	r2, [sp, #36]
	str	r2, [sp, #28]
	b	.L8
.L35:
	mov	r0, r4
	bl	av_get_pix_fmt_name
	mov	r6, r0
	b	.L16
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC3
	.word	AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX
	.word	AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX
	.word	AVMEDIA_TYPE_VIDEO
	.word	AV_CODEC_CAP_HYBRID
	.word	AV_CODEC_CAP_HARDWARE
	.word	AV_PIX_FMT_NONE
	.word	AV_CODEC_HW_CONFIG_METHOD_INTERNAL
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	hwdec_compare
	.size	add_all_hwdec_methods, .-add_all_hwdec_methods
	.comm	hwdec_compare,4,4
	.comm	AV_PIX_FMT_NONE,4,4
	.comm	AV_CODEC_HW_CONFIG_METHOD_INTERNAL,4,4
	.comm	AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX,4,4
	.comm	AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX,4,4
	.comm	AV_CODEC_CAP_HYBRID,4,4
	.comm	AV_CODEC_CAP_HARDWARE,4,4
	.comm	AVMEDIA_TYPE_VIDEO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
