	.file	"extr_display.c_AndroidWindow_New.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"can't get Video Surface"
.LC1:
	.string	"can't get Subtitles Surface"
	.text
	.p2align 4
	.type	AndroidWindow_New, @function
AndroidWindow_New:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	esi, 24
	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
	mov	r13, QWORD PTR [rdi]
	mov	edi, 1
	mov	ebx, edx
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	DWORD PTR [rax], ebx
	mov	rdi, QWORD PTR [r14]
	xor	edx, edx
	mov	rax, QWORD PTR VLC_CODEC_ANDROID_OPAQUE[rip]
	cmp	rdi, rax
	sete	dl
	mov	DWORD PTR 4[r12], edx
	jne	.L4
.L10:
	mov	eax, DWORD PTR 8[r14]
	cmp	eax, 129
	je	.L5
	cmp	eax, 130
	je	.L6
	cmp	eax, 128
	mov	edx, 0
	mov	eax, 90
	cmovne	eax, edx
	mov	DWORD PTR 12[r12], eax
.L11:
	lea	rdi, 20[r12]
	mov	rsi, r14
	call	video_format_ApplyRotation@PLT
	mov	rsi, r12
	mov	rdi, r13
	mov	DWORD PTR 16[r12], 1
	call	AndroidWindow_ConnectSurface@PLT
	test	rax, rax
	jne	.L22
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L4:
	.cfi_restore_state
	call	ChromaToAndroidHal@PLT
	mov	DWORD PTR 8[r12], eax
	cmp	eax, -1
	jne	.L10
.L3:
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L6:
	.cfi_restore_state
	mov	DWORD PTR 12[r12], 180
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR 12[r12], 270
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	DWORD PTR AWindow_Video[rip], ebx
	je	.L23
	cmp	DWORD PTR AWindow_Subtitles[rip], ebx
	jne	.L3
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	msg_Err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	msg_Err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	AndroidWindow_New, .-AndroidWindow_New
	.comm	VLC_CODEC_ANDROID_OPAQUE,8,8
	.comm	AWindow_Video,4,4
	.comm	AWindow_Subtitles,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_display.c_AndroidWindow_New.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't get Video Surface\000"
	.align	2
.LC1:
	.ascii	"can't get Subtitles Surface\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AndroidWindow_New, %function
AndroidWindow_New:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	mov	r0, #1
	mov	r1, #24
	mov	r7, r2
	ldr	r8, [r6]
	bl	calloc
	subs	r4, r0, #0
	beq	.L3
	ldr	r3, .L26
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r7, [r4]
	cmp	r0, r3
	moveq	r3, #1
	movne	r3, #0
	str	r3, [r4, #4]
	bne	.L4
.L10:
	ldr	r3, [r5, #4]
	cmp	r3, #129
	beq	.L5
	cmp	r3, #130
	beq	.L6
	cmp	r3, #128
	movne	r3, #0
	strne	r3, [r4, #12]
	beq	.L23
.L11:
	mov	r1, r5
	add	r0, r4, #20
	bl	video_format_ApplyRotation
	mov	r3, #1
	mov	r0, r8
	mov	r1, r4
	str	r3, [r4, #16]
	bl	AndroidWindow_ConnectSurface
	cmp	r0, #0
	bne	.L24
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	ChromaToAndroidHal
	cmn	r0, #1
	str	r0, [r4, #8]
	bne	.L10
.L3:
	mov	r0, r4
	mov	r4, #0
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	mov	r3, #90
	str	r3, [r4, #12]
	b	.L11
.L6:
	mov	r3, #180
	str	r3, [r4, #12]
	b	.L11
.L5:
	ldr	r3, .L26+4
	str	r3, [r4, #12]
	b	.L11
.L24:
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L25
	ldr	r3, .L26+12
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L3
	mov	r0, r6
	ldr	r1, .L26+16
	bl	msg_Err
	b	.L3
.L25:
	mov	r0, r6
	ldr	r1, .L26+20
	bl	msg_Err
	b	.L3
.L27:
	.align	2
.L26:
	.word	VLC_CODEC_ANDROID_OPAQUE
	.word	270
	.word	AWindow_Video
	.word	AWindow_Subtitles
	.word	.LC1
	.word	.LC0
	.size	AndroidWindow_New, .-AndroidWindow_New
	.comm	VLC_CODEC_ANDROID_OPAQUE,4,4
	.comm	AWindow_Video,4,4
	.comm	AWindow_Subtitles,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
