	.file	"extr_xcb.c_InitES.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unsupported pixmap formats"
	.text
	.p2align 4
	.type	InitES, @function
InitES:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	r12, QWORD PTR 8[rdi]
	mov	QWORD PTR 16[rsp], rdx
	mov	edi, DWORD PTR 4[r12]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	xcb_get_setup@PLT
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	xcb_setup_pixmap_formats@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rbx, rax
	call	xcb_setup_pixmap_formats_length@PLT
	cdqe
	lea	rcx, [rbx+rax*8]
	cmp	rbx, rcx
	jnb	.L2
	mov	rax, QWORD PTR VLC_CODEC_RGB24[rip]
	lea	esi, -8[r15]
	mov	r11, QWORD PTR VLC_CODEC_ARGB[rip]
	mov	r10, QWORD PTR VLC_CODEC_RGB32[rip]
	mov	rdi, QWORD PTR VLC_CODEC_RGB16[rip]
	mov	rdx, rsi
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR VLC_CODEC_RGB15[rip]
	mov	r8, QWORD PTR VLC_CODEC_RGB8[rip]
	mov	QWORD PTR 8[rsp], rax
	lea	rax, .L5[rip]
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	DWORD PTR [rbx], r15d
	jne	.L3
	cmp	edx, 24
	ja	.L3
	movsx	r9, DWORD PTR [rax+rsi*4]
	add	r9, rax
	notrack jmp	r9
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L8:
	cmp	DWORD PTR 4[rbx], 16
	jne	.L3
	mov	r9, QWORD PTR 8[rsp]
.L10:
	test	r9, r9
	jne	.L25
.L3:
	add	rbx, 8
	cmp	rcx, rbx
	ja	.L12
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	msg_Err@PLT
	xor	eax, eax
	jmp	.L1
.L4:
	cmp	DWORD PTR 4[rbx], 32
	jne	.L3
	mov	r9, r11
	test	r9, r9
	je	.L3
	jmp	.L25
.L6:
	mov	r9d, DWORD PTR 4[rbx]
	cmp	r9d, 32
	je	.L15
	cmp	r9d, 24
	jne	.L3
	mov	r9, QWORD PTR 24[rsp]
	test	r9, r9
	je	.L3
	jmp	.L25
.L7:
	cmp	DWORD PTR 4[rbx], 16
	jne	.L3
	mov	r9, rdi
	test	r9, r9
	je	.L3
	jmp	.L25
.L9:
	cmp	DWORD PTR 4[rbx], 8
	mov	r9, r8
	je	.L10
	add	rbx, 8
	cmp	rcx, rbx
	ja	.L12
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR 4[rbx]
	lea	r15, 32[rsp]
	mov	rdx, r9
	mov	QWORD PTR 8[rsp], r9
	mov	rdi, r15
	mov	DWORD PTR [r14], eax
	mov	esi, DWORD PTR VIDEO_ES[rip]
	call	es_format_Init@PLT
	mov	eax, DWORD PTR [r14]
	mov	r9, QWORD PTR 8[rsp]
	mov	rsi, r15
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 32[rsp], eax
	movabs	rax, 4294967297
	mov	QWORD PTR 36[rsp], rax
	imul	eax, DWORD PTR [r12], 1000
	mov	QWORD PTR 88[rsp], r9
	mov	DWORD PTR 48[rsp], 1000
	mov	DWORD PTR 44[rsp], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 72[rsp], r13
	mov	QWORD PTR 80[rsp], r13
	mov	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 64[rsp], rax
	call	es_out_Add@PLT
.L1:
	mov	rdi, QWORD PTR 104[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L26
	add	rsp, 120
	.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
.L15:
	.cfi_restore_state
	mov	r9, r10
	test	r9, r9
	je	.L3
	jmp	.L25
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	InitES, .-InitES
	.comm	VLC_CODEC_RGB8,8,8
	.comm	VLC_CODEC_RGB32,8,8
	.comm	VLC_CODEC_RGB24,8,8
	.comm	VLC_CODEC_RGB16,8,8
	.comm	VLC_CODEC_RGB15,8,8
	.comm	VLC_CODEC_ARGB,8,8
	.comm	VIDEO_ES,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_xcb.c_InitES.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unsupported pixmap formats\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitES, %function
InitES:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0, #4]
	mov	r5, r3
	ldr	r3, .L27
	sub	sp, sp, #60
	mov	r6, r0
	ldr	r0, [r9, #4]
	mov	r8, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r10, [sp, #96]
	bl	xcb_get_setup
	mov	fp, r0
	bl	xcb_setup_pixmap_formats
	mov	r4, r0
	mov	r0, fp
	bl	xcb_setup_pixmap_formats_length
	add	r0, r4, r0, lsl #3
	cmp	r4, r0
	bcs	.L2
	ldr	fp, .L27+4
	ldr	ip, .L27+8
	ldr	lr, .L27+12
	ldr	r1, .L27+16
	ldr	r2, .L27+20
	ldr	r3, .L27+24
	ldr	ip, [ip]
	ldr	fp, [fp]
	ldr	lr, [lr]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	ip, [sp]
	str	fp, [sp, #4]
	sub	ip, r5, #8
.L12:
	ldr	fp, [r4]
	cmp	fp, r5
	bne	.L3
	cmp	ip, #24
	ldrls	pc, [pc, ip, asl #2]
	b	.L3
.L5:
	.word	.L9
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L8
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L4
.L8:
	ldr	fp, [r4, #4]
	cmp	fp, #16
	bne	.L3
	mov	fp, r3
.L10:
	cmp	fp, #0
	bne	.L25
.L3:
	add	r4, r4, #8
	cmp	r0, r4
	bhi	.L12
.L2:
	mov	r0, r6
	ldr	r1, .L27+28
	bl	msg_Err
	mov	r0, #0
	b	.L1
.L4:
	ldr	fp, [r4, #4]
	cmp	fp, #32
	bne	.L3
	mov	fp, lr
	cmp	fp, #0
	beq	.L3
	b	.L25
.L6:
	ldr	fp, [r4, #4]
	cmp	fp, #32
	beq	.L15
	cmp	fp, #24
	bne	.L3
	ldr	fp, [sp, #4]
	cmp	fp, #0
	beq	.L3
	b	.L25
.L7:
	ldr	fp, [r4, #4]
	cmp	fp, #16
	bne	.L3
	mov	fp, r2
	cmp	fp, #0
	beq	.L3
	b	.L25
.L9:
	ldr	fp, [r4, #4]
	cmp	fp, #8
	ldreq	fp, [sp]
	beq	.L10
	add	r4, r4, #8
	cmp	r0, r4
	bhi	.L12
	b	.L2
.L25:
	ldr	r2, [r4, #4]
	ldr	r3, .L27+32
	str	r2, [r10]
	ldr	r1, [r3]
	mov	r2, fp
	add	r0, sp, #12
	bl	es_format_Init
	mov	r2, #1
	mov	ip, #1000
	ldr	r3, [r9]
	ldr	lr, [r10]
	rsb	r1, r3, r3, lsl #5
	add	r3, r3, r1, lsl #2
	lsl	r3, r3, #3
	ldr	r0, [r6]
	add	r1, sp, #12
	str	lr, [sp, #12]
	str	fp, [sp, #48]
	str	r8, [sp, #40]
	str	r8, [sp, #44]
	str	r7, [sp, #32]
	str	r7, [sp, #36]
	str	r3, [sp, #24]
	str	r2, [sp, #20]
	str	r2, [sp, #16]
	str	ip, [sp, #28]
	bl	es_out_Add
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	fp, r1
	cmp	fp, #0
	beq	.L3
	b	.L25
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC1
	.word	VLC_CODEC_RGB24
	.word	VLC_CODEC_RGB8
	.word	VLC_CODEC_ARGB
	.word	VLC_CODEC_RGB32
	.word	VLC_CODEC_RGB16
	.word	VLC_CODEC_RGB15
	.word	.LC0
	.word	VIDEO_ES
	.size	InitES, .-InitES
	.comm	VLC_CODEC_RGB8,4,4
	.comm	VLC_CODEC_RGB32,4,4
	.comm	VLC_CODEC_RGB24,4,4
	.comm	VLC_CODEC_RGB16,4,4
	.comm	VLC_CODEC_RGB15,4,4
	.comm	VLC_CODEC_ARGB,4,4
	.comm	VIDEO_ES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
