	.file	"extr_sd_ass.c_configure_ass.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	configure_ass, @function
configure_ass:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR 20[rsi]
	movss	xmm0, DWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rcx
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	ass_set_frame_size@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR 12[rbx]
	call	ass_set_margins@PLT
	test	r13d, r13d
	jne	.L3
	mov	r9d, DWORD PTR [r12]
	cmp	r9d, 3
	je	.L3
	mov	eax, DWORD PTR 16[r12]
	mov	r10d, DWORD PTR 20[r12]
	xor	r14d, r14d
	test	r9d, r9d
	jne	.L27
	movss	xmm6, DWORD PTR .LC0[rip]
	pxor	xmm7, xmm7
	xor	r15d, r15d
	mov	edx, 1
	movss	DWORD PTR 4[rsp], xmm7
	movss	DWORD PTR [rsp], xmm6
	test	eax, eax
	je	.L5
.L31:
	mov	eax, DWORD PTR 8[rbx]
	pxor	xmm0, xmm0
	add	eax, DWORD PTR 4[rbx]
	mov	esi, 1
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR [rbx]
	mov	DWORD PTR 28[rsp], edx
	mov	DWORD PTR 24[rsp], r10d
	movaps	xmm4, xmm1
	mov	DWORD PTR 20[rsp], r9d
	movss	DWORD PTR 16[rsp], xmm1
	subss	xmm4, xmm0
	cvttss2si	edi, xmm4
	call	MPMAX@PLT
	pxor	xmm0, xmm0
	movss	xmm1, DWORD PTR 16[rsp]
	mov	edx, DWORD PTR 28[rsp]
	cvtsi2ss	xmm0, rax
	mov	r10d, DWORD PTR 24[rsp]
	mov	r9d, DWORD PTR 20[rsp]
	divss	xmm1, xmm0
	mulss	xmm1, DWORD PTR [rsp]
	movss	DWORD PTR [rsp], xmm1
	test	edx, edx
	je	.L28
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, r10d
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], r9d
	call	ass_set_use_margins@PLT
	mov	r9d, DWORD PTR 16[rsp]
	mov	rdi, rbp
	mov	esi, r9d
	call	ass_set_line_position@PLT
	mov	esi, DWORD PTR 56[r12]
	mov	rdi, rbp
	call	ass_set_shaper@PLT
	test	r14d, r14d
	je	.L8
	mov	r8d, DWORD PTR ASS_OVERRIDE_BIT_STYLE[rip]
	or	r8d, DWORD PTR ASS_OVERRIDE_BIT_FONT_SIZE[rip]
	mov	r14d, r8d
.L8:
	cmp	DWORD PTR [r12], 4
	jne	.L9
	or	r14d, DWORD PTR ASS_OVERRIDE_BIT_FONT_SIZE[rip]
.L9:
	mov	esi, r14d
	mov	rdi, rbp
	lea	r14, 32[rsp]
	call	ass_set_selective_style_override_enabled@PLT
	mov	edx, DWORD PTR 40[r12]
	mov	esi, 288
	mov	rdi, r14
	mov	QWORD PTR 32[rsp], 0
	call	mp_ass_set_style@PLT
	mov	rdi, rbp
	mov	rsi, r14
	call	ass_set_selective_style_override@PLT
	mov	edi, DWORD PTR 32[rsp]
	call	free@PLT
	test	r13d, r13d
	je	.L10
	mov	rcx, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [rcx]
	cmp	rax, QWORD PTR 8[rcx]
	jl	.L29
.L10:
	movss	xmm0, DWORD PTR [rsp]
	mov	rdi, rbp
	call	ass_set_font_scale@PLT
	mov	esi, r15d
	mov	rdi, rbp
	call	ass_set_hinting@PLT
	movss	xmm0, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	ass_set_line_spacing@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 56
	.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
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[r12]
	mov	r10d, DWORD PTR 8[r12]
	mov	r14d, 1
	mov	edx, DWORD PTR 12[r12]
.L11:
	movss	xmm2, DWORD PTR 28[r12]
	mov	r9d, 100
	mov	r15d, DWORD PTR 32[r12]
	movss	xmm3, DWORD PTR 36[r12]
	sub	r9d, DWORD PTR 24[r12]
	movss	DWORD PTR 4[rsp], xmm2
	movss	DWORD PTR [rsp], xmm3
	test	eax, eax
	jne	.L31
.L5:
	test	edx, edx
	jne	.L6
.L28:
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR [rbx]
	divsd	xmm0, QWORD PTR .LC2[rip]
	ucomisd	xmm0, QWORD PTR .LC3[rip]
	jp	.L14
	je	.L6
.L14:
	pxor	xmm1, xmm1
	pxor	xmm6, xmm6
	cvtss2sd	xmm1, DWORD PTR [rsp]
	divsd	xmm1, xmm0
	cvtsd2ss	xmm6, xmm1
	movss	DWORD PTR [rsp], xmm6
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR 16[rcx]
	mov	rcx, QWORD PTR 24[rcx]
	mov	edx, DWORD PTR 40[r12]
	lea	rdi, [rcx+rax*8]
	call	mp_ass_set_style@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, 1
	jmp	.L11
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	configure_ass, .-configure_ass
	.comm	ASS_OVERRIDE_BIT_STYLE,4,4
	.comm	ASS_OVERRIDE_BIT_JUSTIFY,4,4
	.comm	ASS_OVERRIDE_BIT_FONT_SIZE,4,4
	.comm	ASS_OVERRIDE_BIT_ALIGNMENT,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1082556416
	.align 8
.LC3:
	.long	0
	.long	0
	.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_sd_ass.c_configure_ass.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.global	__aeabi_f2iz
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmpeq
	.global	__aeabi_d2f
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	configure_ass, %function
configure_ass:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	mov	ip, r0
	mov	fp, r2
	ldr	r1, [r0]
	sub	sp, sp, #52
	ldr	r4, [r1]
	str	r3, [sp, #24]
	ldr	r3, .L32
	ldr	r2, [r8]	@ float
	ldr	r1, [r8, #20]
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r5, [ip, #4]
	bl	ass_set_frame_size
	ldr	r3, [r8, #12]
	mov	r0, r4
	str	r3, [sp]
	ldr	r3, [r8, #16]
	ldmib	r8, {r1, r2}
	bl	ass_set_margins
	cmp	fp, #0
	bne	.L3
	ldr	r7, [r5]
	cmp	r7, #3
	beq	.L3
	ldr	r2, [r5, #20]
	cmp	r7, #0
	ldr	r3, [r5, #16]
	str	r2, [sp, #20]
	bne	.L27
	mov	r2, #0
	cmp	r3, #0
	mov	r6, r7
	mov	r9, #1
	mov	r10, #1065353216
	str	r7, [sp, #16]
	str	r2, [sp, #12]	@ float
	beq	.L5
.L31:
	ldmib	r8, {r0, r2}
	ldr	r3, [r8]	@ float
	add	r0, r0, r2
	str	r3, [sp, #28]
	bl	__aeabi_i2f
	ldr	r3, [sp, #28]
	mov	r1, r0
	mov	r0, r3
	bl	__aeabi_fsub
	bl	__aeabi_f2iz
	mov	r1, #1
	bl	MPMAX
	bl	__aeabi_i2f
	ldr	r3, [sp, #28]
	mov	r1, r0
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r1, r0
	mov	r0, r10
	bl	__aeabi_fmul
	cmp	r9, #0
	mov	r10, r0
	beq	.L28
.L6:
	ldr	r1, [sp, #20]
	mov	r0, r4
	bl	ass_set_use_margins
	mov	r1, r7
	mov	r0, r4
	bl	ass_set_line_position
	ldr	r1, [r5, #48]
	mov	r0, r4
	bl	ass_set_shaper
	cmp	r6, #0
	ldrne	r2, .L32+4
	ldrne	r3, .L32+8
	ldrne	r6, [r2]
	ldrne	r3, [r3]
	mov	r0, r4
	orrne	r6, r6, r3
	ldr	r3, [r5]
	cmp	r3, #4
	ldreq	r3, .L32+8
	ldreq	r3, [r3]
	orreq	r6, r6, r3
	mov	r1, r6
	bl	ass_set_selective_style_override_enabled
	mov	r3, #0
	ldr	r2, [r5, #40]
	mov	r1, #288
	add	r0, sp, #36
	str	r3, [sp, #36]
	str	r3, [sp, #40]
	bl	mp_ass_set_style
	add	r1, sp, #36
	mov	r0, r4
	bl	ass_set_selective_style_override
	ldr	r0, [sp, #36]
	bl	free
	cmp	fp, #0
	beq	.L10
	ldr	r2, [sp, #24]
	ldr	r3, [r2]
	ldr	r2, [r2, #4]
	cmp	r3, r2
	blt	.L29
.L10:
	mov	r1, r10
	mov	r0, r4
	bl	ass_set_font_scale
	ldr	r1, [sp, #16]
	mov	r0, r4
	bl	ass_set_hinting
	mov	r0, r4
	ldr	r1, [sp, #12]	@ float
	bl	ass_set_line_spacing
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r6, #1
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #4]
	ldr	r9, [r5, #12]
	str	r2, [sp, #20]
.L11:
	ldr	r2, [r5, #28]	@ float
	ldr	r7, [r5, #24]
	str	r2, [sp, #12]	@ float
	ldr	r2, [r5, #32]
	cmp	r3, #0
	ldr	r10, [r5, #36]	@ float
	rsb	r7, r7, #100
	str	r2, [sp, #16]
	bne	.L31
.L5:
	cmp	r9, #0
	bne	.L6
.L28:
	ldr	r0, [r8]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L32+12
	bl	__aeabi_ddiv
	mov	r2, #0
	mov	r3, #0
	mov	r8, r0
	mov	r9, r1
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	bne	.L6
	mov	r0, r10
	bl	__aeabi_f2d
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_ddiv
	bl	__aeabi_d2f
	mov	r10, r0
	b	.L6
.L29:
	ldr	r1, [sp, #24]
	ldr	r2, [r5, #40]
	ldr	r0, [r1, #12]
	ldr	r1, [r1, #8]
	add	r0, r0, r3, lsl #3
	bl	mp_ass_set_style
	b	.L10
.L27:
	mov	r6, fp
	mov	r9, #1
	b	.L11
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	ASS_OVERRIDE_BIT_STYLE
	.word	ASS_OVERRIDE_BIT_FONT_SIZE
	.word	1082556416
	.size	configure_ass, .-configure_ass
	.comm	ASS_OVERRIDE_BIT_STYLE,4,4
	.comm	ASS_OVERRIDE_BIT_JUSTIFY,4,4
	.comm	ASS_OVERRIDE_BIT_FONT_SIZE,4,4
	.comm	ASS_OVERRIDE_BIT_ALIGNMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
