	.file	"extr_vo_sdl.c_destroy_renderer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	destroy_renderer, @function
destroy_renderer:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 16[r13]
	test	rdi, rdi
	je	.L2
	call	SDL_DestroyTexture@PLT
	mov	QWORD PTR 16[r13], 0
.L2:
	mov	esi, DWORD PTR MAX_OSD_PARTS[rip]
	test	esi, esi
	jle	.L4
	mov	rdx, QWORD PTR 8[r13]
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12, r14
	xor	ebx, ebx
	sal	r12, 4
	lea	rax, [rdx+r12]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	call	SDL_DestroyTexture@PLT
	mov	rdx, QWORD PTR 8[r13]
	lea	rax, [rdx+r12]
	mov	rcx, QWORD PTR 8[rax]
	add	rcx, rbp
	mov	QWORD PTR 8[rcx], 0
.L6:
	mov	rdi, QWORD PTR [rcx]
	test	rdi, rdi
	je	.L7
	call	SDL_DestroyTexture@PLT
	mov	rdx, QWORD PTR 8[r13]
	lea	rax, [rdx+r12]
	mov	rcx, QWORD PTR 8[rax]
	mov	QWORD PTR [rcx+rbp], 0
.L7:
	add	rbx, 1
	cmp	DWORD PTR [rax], ebx
	jle	.L9
.L8:
	mov	rax, QWORD PTR 8[rax]
	mov	rbp, rbx
	sal	rbp, 4
	mov	rdi, QWORD PTR 8[rax+rbp]
	test	rdi, rdi
	jne	.L5
	lea	rax, [rdx+r12]
	mov	rcx, QWORD PTR 8[rax]
	add	rcx, rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	add	r14, 1
	cmp	DWORD PTR MAX_OSD_PARTS[rip], r14d
	jg	.L3
.L4:
	mov	rdi, QWORD PTR 0[r13]
	test	rdi, rdi
	je	.L1
	call	SDL_DestroyRenderer@PLT
	mov	QWORD PTR 0[r13], 0
.L1:
	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
	.cfi_endproc
.LFE0:
	.size	destroy_renderer, .-destroy_renderer
	.comm	MAX_OSD_PARTS,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_vo_sdl.c_destroy_renderer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_renderer, %function
destroy_renderer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	ldr	r0, [r5, #8]
	cmp	r0, #0
	beq	.L2
	bl	SDL_DestroyTexture
	mov	r3, #0
	str	r3, [r5, #8]
.L2:
	ldr	r8, .L25
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L4
	mov	r7, #0
	mov	r6, r7
	ldr	r1, [r5, #4]
.L3:
	ldr	r3, [r1, r7, lsl #3]
	lsl	r9, r7, #3
	cmp	r3, #0
	movgt	r4, #0
	add	r3, r1, r7, lsl #3
	bgt	.L8
	b	.L9
.L5:
	bl	SDL_DestroyTexture
	ldr	r1, [r5, #4]
	add	r3, r1, r9
	ldr	r2, [r3, #4]
	add	r2, r2, r10
	str	r6, [r2, #4]
.L6:
	ldr	r0, [r2]
	add	r4, r4, #1
	cmp	r0, #0
	beq	.L7
	bl	SDL_DestroyTexture
	ldr	r1, [r5, #4]
	add	r3, r1, r9
	ldr	r2, [r3, #4]
	str	r6, [r2, r10]
.L7:
	ldr	r2, [r3]
	cmp	r2, r4
	ble	.L9
.L8:
	ldr	r2, [r3, #4]
	lsl	r10, r4, #3
	add	r2, r2, r4, lsl #3
	ldr	r0, [r2, #4]
	add	r3, r1, r9
	cmp	r0, #0
	bne	.L5
	ldr	r2, [r3, #4]
	add	r2, r2, r10
	b	.L6
.L9:
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L3
.L4:
	ldr	r0, [r5]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	bl	SDL_DestroyRenderer
	mov	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	.align	2
.L25:
	.word	MAX_OSD_PARTS
	.size	destroy_renderer, .-destroy_renderer
	.comm	MAX_OSD_PARTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
