	.file	"extr_hwcontext.c_av_hwframe_ctx_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	av_hwframe_ctx_alloc
	.type	av_hwframe_ctx_alloc, @function
av_hwframe_ctx_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR [rdi]
	mov	edi, 72
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 0[r13]
	mov	rbx, QWORD PTR [rax]
	mov	QWORD PTR 16[rsp], 0
	call	av_mallocz@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edi, 72
	call	av_mallocz@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[r12], rax
	mov	r12, QWORD PTR 8[rdi]
	mov	r14, rdi
	test	r12, r12
	je	.L3
	mov	edi, DWORD PTR [rbx]
	test	edi, edi
	jne	.L4
.L8:
	mov	edi, DWORD PTR 4[rbx]
	test	edi, edi
	jne	.L5
.L6:
	mov	rdi, rbp
	call	av_buffer_ref@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	je	.L12
	mov	r8d, DWORD PTR AV_BUFFER_FLAG_READONLY[rip]
	mov	edx, DWORD PTR hwframe_ctx_free[rip]
	xor	ecx, ecx
	mov	esi, 72
	mov	rdi, QWORD PTR 8[rsp]
	call	av_buffer_create@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	lea	rcx, hwframe_ctx_class[rip]
	mov	QWORD PTR 56[rax], rdx
	mov	rdx, QWORD PTR AV_PIX_FMT_NONE[rip]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 48[rax], r13
	mov	QWORD PTR 40[rax], rdx
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 24[rax], rbx
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	av_mallocz@PLT
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], 0
	jne	.L6
.L11:
	cmp	QWORD PTR 16[rsp], 0
	je	.L12
.L14:
	lea	rdi, 16[rsp]
	call	av_buffer_unref@PLT
.L12:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L13
.L15:
	lea	rdi, 16[rax]
	call	av_freep@PLT
	mov	rdi, QWORD PTR 8[rsp]
.L13:
	add	rdi, 8
	xor	r12d, r12d
	call	av_freep@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	av_freep@PLT
	lea	rdi, 8[rsp]
	call	av_freep@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	call	av_mallocz@PLT
	mov	r14, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 8[r14]
	cmp	QWORD PTR 16[rax], 0
	jne	.L8
	cmp	QWORD PTR 16[rsp], 0
	jne	.L14
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	QWORD PTR 16[rsp], 0
	jne	.L14
	jmp	.L13
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	av_hwframe_ctx_alloc, .-av_hwframe_ctx_alloc
	.comm	hwframe_ctx_free,4,4
	.comm	hwframe_ctx_class,4,4
	.comm	AV_PIX_FMT_NONE,8,8
	.comm	AV_BUFFER_FLAG_READONLY,4,4
	.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_hwcontext.c_av_hwframe_ctx_alloc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	av_hwframe_ctx_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	av_hwframe_ctx_alloc, %function
av_hwframe_ctx_alloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	ldr	r1, .L39
	ldr	r2, [r6]
	sub	sp, sp, #24
	mov	r7, r0
	mov	r0, #36
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	ldr	r5, [r2]
	str	r3, [sp, #16]
	bl	av_mallocz
	subs	r4, r0, #0
	str	r0, [sp, #12]
	beq	.L1
	mov	r0, #36
	bl	av_mallocz
	ldr	r3, [sp, #12]
	str	r0, [r4, #4]
	ldr	r4, [r3, #4]
	mov	r8, r3
	cmp	r4, #0
	beq	.L3
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L4
.L8:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	bne	.L5
.L6:
	mov	r0, r7
	bl	av_buffer_ref
	cmp	r0, #0
	str	r0, [sp, #16]
	beq	.L12
	ldr	r3, .L39+4
	ldr	r2, .L39+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r1, #36
	str	r3, [sp]
	ldr	r0, [sp, #12]
	mov	r3, #0
	bl	av_buffer_create
	subs	r4, r0, #0
	beq	.L11
	ldr	r2, .L39+12
	ldr	r3, [sp, #12]
	ldr	r2, [r2]
	ldr	r0, .L39+16
	str	r2, [r3, #20]
	str	r2, [r3, #16]
	ldr	r1, [sp, #16]
	ldr	r2, [r3, #4]
	str	r6, [r3, #24]
	str	r0, [r3, #32]
	str	r1, [r3, #28]
	str	r5, [r2, #12]
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	bl	av_mallocz
	ldr	r3, [sp, #12]
	str	r0, [r8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
.L11:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L12
.L14:
	add	r0, sp, #16
	bl	av_buffer_unref
.L12:
	ldr	r3, [sp, #12]
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L13
.L15:
	add	r0, r0, #8
	bl	av_freep
	ldr	r3, [sp, #12]
.L13:
	add	r0, r3, #4
	bl	av_freep
	ldr	r0, [sp, #12]
	bl	av_freep
	add	r0, sp, #12
	bl	av_freep
	mov	r4, #0
	b	.L1
.L4:
	bl	av_mallocz
	ldr	r8, [sp, #12]
	str	r0, [r4, #8]
	ldr	r0, [r8, #4]
	ldr	r3, [r0, #8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L14
	b	.L15
.L3:
	ldr	r2, [sp, #16]
	cmp	r2, #0
	bne	.L14
	b	.L13
.L38:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	AV_BUFFER_FLAG_READONLY
	.word	hwframe_ctx_free
	.word	AV_PIX_FMT_NONE
	.word	hwframe_ctx_class
	.size	av_hwframe_ctx_alloc, .-av_hwframe_ctx_alloc
	.comm	hwframe_ctx_free,4,4
	.comm	hwframe_ctx_class,4,4
	.comm	AV_PIX_FMT_NONE,4,4
	.comm	AV_BUFFER_FLAG_READONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
