	.file	"extr_direct3d9.c_UpdateOutput.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to set the external render size"
	.text
	.p2align 4
	.type	UpdateOutput, @function
UpdateOutput:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR [rdi]
	mov	edi, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 24[rbp]
	mov	DWORD PTR 44[rsp], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 40[rsp], eax
	cmp	edi, 128
	je	.L2
	cmp	edi, 129
	je	.L13
	call	vlc_fourcc_GetChromaDescription@PLT
	mov	rcx, rax
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L15
	mov	eax, 8
.L6:
	mov	DWORD PTR 16[rsp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR 16[rsp], 8
.L4:
	mov	rax, QWORD PTR COLOR_RANGE_FULL[rip]
	cmp	QWORD PTR 8[rbx], rax
	lea	rdx, 12[rsp]
	lea	rsi, 16[rsp]
	sete	al
	movzx	eax, al
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 28[rsp], eax
	mov	rax, QWORD PTR 20[rbx]
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 24[rsp], eax
	call	[QWORD PTR 8[rbp]]
	mov	r8d, eax
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	test	r8d, r8d
	je	.L16
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	DWORD PTR 16[rsp], 10
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	msg_Err@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	DWORD PTR 4[rcx], 1
	jne	.L6
	cdq
	idiv	DWORD PTR 8[rcx]
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	UpdateOutput, .-UpdateOutput
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	COLOR_RANGE_FULL,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_direct3d9.c_UpdateOutput.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to set the external render size\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateOutput, %function
UpdateOutput:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0]
	mov	r5, r0
	ldr	r0, [r1]
	ldr	r2, [r6, #16]
	ldr	r3, [r6, #12]
	mov	r4, r1
	ldr	r1, .L18
	sub	sp, sp, #40
	cmp	r0, #128
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	str	r2, [sp, #32]
	str	r3, [sp, #28]
	beq	.L2
	cmp	r0, #129
	beq	.L13
	bl	vlc_fourcc_GetChromaDescription
	subs	r3, r0, #0
	beq	.L13
	ldr	r0, [r3]
	cmp	r0, #0
	moveq	r0, #8
	bne	.L15
.L6:
	str	r0, [sp, #4]
.L4:
	ldr	r2, .L18+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r0, [r4, #16]
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	ldr	r1, [r4, #12]
	ldr	r2, [r4, #8]
	str	r3, [sp, #8]
	ldr	r3, [r6, #8]
	str	r0, [sp, #24]
	str	r1, [sp, #20]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r2, sp
	ldm	r6, {r0, r3}
	add	r1, sp, #4
	blx	r3
	cmp	r0, #0
	beq	.L16
	ldr	r3, .L18+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	mov	r3, #8
	str	r3, [sp, #4]
	b	.L4
.L2:
	mov	r3, #10
	str	r3, [sp, #4]
	b	.L4
.L16:
	mov	r0, r5
	ldr	r1, .L18+12
	bl	msg_Err
	ldr	r3, .L18+16
	ldr	r0, [r3]
	b	.L1
.L15:
	ldr	r2, [r3, #4]
	cmp	r2, #1
	bne	.L6
	ldr	r1, [r3, #8]
	bl	__aeabi_idiv
	b	.L6
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	COLOR_RANGE_FULL
	.word	VLC_SUCCESS
	.word	.LC0
	.word	VLC_EGENERIC
	.size	UpdateOutput, .-UpdateOutput
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	COLOR_RANGE_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
