	.file	"extr_osd_libass.c_update_playres.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_playres, @function
update_playres:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 24[rdi]
	movsd	xmm1, QWORD PTR [rsi]
	mov	edi, DWORD PTR 16[rsi]
	mov	esi, 1
	movsd	QWORD PTR 8[rsp], xmm1
	mov	r13d, DWORD PTR [r14]
	mov	r12d, DWORD PTR 4[r14]
	call	MPMAX@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	pxor	xmm2, xmm2
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR 8[rbp]
	comisd	xmm0, xmm2
	jbe	.L2
	divsd	xmm1, xmm0
.L2:
	mov	edx, DWORD PTR [rbx]
	movsd	xmm0, QWORD PTR 8[rbx]
	test	edx, edx
	cmove	edx, DWORD PTR MP_ASS_FONT_PLAYRESY[rip]
	ucomisd	xmm0, xmm2
	mov	DWORD PTR 4[r14], edx
	jp	.L15
	jne	.L15
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	mulsd	xmm0, xmm1
.L15:
	cvttsd2si	eax, xmm0
	mov	DWORD PTR [r14], eax
	cmp	edx, r12d
	jne	.L12
	cmp	eax, r13d
	je	.L1
.L12:
	mov	edi, DWORD PTR 16[rbx]
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	edx, 1
	mov	esi, 1
	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
	jmp	ass_set_frame_size@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 16
	.cfi_def_cfa_offset 48
	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	update_playres, .-update_playres
	.comm	MP_ASS_FONT_PLAYRESY,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_osd_libass.c_update_playres.c"
	.text
	.global	__aeabi_ddiv
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmpeq
	.global	__aeabi_d2iz
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_playres, %function
update_playres:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldmia	r1, {r6-r7}
	ldr	r5, [r0, #20]
	sub	sp, sp, #12
	ldr	r3, [r5]
	mov	fp, r1
	str	r3, [sp]
	ldr	r3, [r5, #4]
	mov	r4, r0
	ldr	r0, [r1, #16]
	mov	r1, #1
	str	r3, [sp, #4]
	bl	MPMAX
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	add	r7, fp, #8
	ldmia	r7, {r6-r7}
	mov	r8, r0
	mov	r9, r1
	mov	r2, #0
	mov	r3, #0
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	mov	r10, r8
	mov	fp, r9
	beq	.L2
	mov	r2, r6
	mov	r3, r7
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	mov	r10, r0
	mov	fp, r1
.L2:
	add	r7, r4, #8
	ldmia	r7, {r6-r7}
	ldr	r8, [r4]
	mov	r2, #0
	cmp	r8, #0
	ldreq	r3, .L14
	mov	r0, r6
	ldreq	r8, [r3]
	mov	r1, r7
	mov	r3, #0
	str	r8, [r5, #4]
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	bne	.L11
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_d2iz
.L7:
	ldm	sp, {r2, r3}
	cmp	r0, r2
	cmpeq	r8, r3
	str	r0, [r5]
	beq	.L1
	mov	r2, #1
	mov	r1, r2
	ldr	r0, [r4, #16]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ass_set_frame_size
.L11:
	mov	r0, r8
	bl	__aeabi_i2d
	mov	r2, r10
	mov	r3, fp
	bl	__aeabi_dmul
	bl	__aeabi_d2iz
	b	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	MP_ASS_FONT_PLAYRESY
	.size	update_playres, .-update_playres
	.comm	MP_ASS_FONT_PLAYRESY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
