	.file	"extr_graphics.c_shorten_line_percent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	shorten_line_percent, @function
shorten_line_percent:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rcx]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, QWORD PTR [rdx]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	cmp	rax, rsi
	jne	.L2
	cmp	r12, rdi
	je	.L1
.L2:
	sub	rdi, r12
	sub	rax, r13
	neg	rbx
	imul	rax, rax
	imul	rdi, rdi
	add	rdi, rax
	call	sqrt@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [r14]
	imul	rbx, rax
	sub	rsi, r12
	sub	rdi, r13
	call	gdiplus_atan2@PLT
	mov	rdi, rax
	mov	r12, rax
	call	cos@PLT
	mov	rdi, r12
	imul	rax, rbx
	mov	r13, rax
	call	sin@PLT
	add	QWORD PTR 0[rbp], r13
	imul	rbx, rax
	add	QWORD PTR [r14], rbx
.L1:
	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	shorten_line_percent, .-shorten_line_percent
	.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_graphics.c_shorten_line_percent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shorten_line_percent, %function
shorten_line_percent:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	ip, r1
	mov	r8, r0
	mov	r4, r3
	mov	r7, r1
	mov	r5, r2
	ldr	r0, [r2]
	bne	.L2
	cmp	r8, r0
	popeq	{r4, r5, r6, r7, r8, pc}
.L2:
	sub	ip, ip, r7
	mov	r3, ip
	mul	r3, ip, r3
	sub	r0, r0, r8
	mov	ip, r3
	mov	r3, r0
	mla	r3, r0, r3, ip
	mov	r0, r3
	bl	sqrt
	mov	r3, r0
	ldr	r2, [sp, #24]
	ldr	r1, [r5]
	ldr	r0, [r4]
	rsb	r6, r2, #0
	sub	r1, r1, r8
	sub	r0, r0, r7
	mul	r6, r3, r6
	bl	gdiplus_atan2
	mov	r7, r0
	bl	cos
	mov	r3, r0
	mov	r0, r7
	mul	r7, r6, r3
	bl	sin
	ldr	r3, [r5]
	add	r3, r3, r7
	str	r3, [r5]
	ldr	r3, [r4]
	mla	r6, r0, r6, r3
	str	r6, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	shorten_line_percent, .-shorten_line_percent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
