	.file	"435416.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.ascii	"Usage: %s OPTION... FILE\nPrint the minimal amount of point "
	.ascii	"cooridinates from FILE needed to produce\na chart equivalent"
	.ascii	" to the chart produced with all the point coordinates from\n"
	.ascii	"FILE.\n\nMandatory:\n  -w WIDTH     width of the target char"
	.ascii	"t (in px)\n  -"
	.string	"h HEIGHT    height of the target chart (in px)\n  -o OUT       path to the output file\n\nOptional:\n  --help       display this help and exit\n  --version    output version information and exit\n\nReport bugs at: <https://github.com/yakubin/chartsampler/issues>\n"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC1:
	.string	"0.1"
.LC2:
	.string	"chartsampler %s\n"
	.text
	.globl	print_version
	.type	print_version, @function
print_version:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_version, .-print_version
	.section	.rodata
.LC3:
	.string	"--help"
.LC4:
	.string	"--version"
.LC5:
	.string	"w:h:o:"
	.text
	.globl	parse_cmd_options
	.type	parse_cmd_options, @function
parse_cmd_options:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -40[rbp], 1
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, 0
	call	print_version
	mov	edi, 0
	call	exit@PLT
.L6:
	add	DWORD PTR -40[rbp], 1
.L4:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L7
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L8
.L13:
	cmp	DWORD PTR -36[rbp], 119
	je	.L9
	cmp	DWORD PTR -36[rbp], 119
	jg	.L10
	cmp	DWORD PTR -36[rbp], 104
	je	.L11
	cmp	DWORD PTR -36[rbp], 111
	je	.L12
	jmp	.L10
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -32[rbp], eax
	jmp	.L8
.L11:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	jmp	.L8
.L12:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, .LC5[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L13
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L14
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	jne	.L15
.L14:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -56[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_cmd_options, .-parse_cmd_options
	.globl	extend_to_int_frame
	.type	extend_to_int_frame, @function
extend_to_int_frame:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	fldz
	fld	TBYTE PTR 16[rbp]
	fcomip	st, st(1)
	fstp	st(0)
	jb	.L23
	fld	TBYTE PTR 16[rbp]
	fstp	QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -8[rbp]
	call	ceil@PLT
	cvttsd2si	rax, xmm0
	jmp	.L21
.L23:
	fld	TBYTE PTR 16[rbp]
	fstp	QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -8[rbp]
	call	floor@PLT
	cvttsd2si	rax, xmm0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	extend_to_int_frame, .-extend_to_int_frame
	.section	.rodata
.LC8:
	.string	"%Lf %Lf"
	.text
	.globl	get_orig_dimensions
	.type	get_orig_dimensions, @function
get_orig_dimensions:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	fldz
	fstp	TBYTE PTR -48[rbp]
	fldz
	fstp	TBYTE PTR -32[rbp]
	jmp	.L25
.L30:
	fld	TBYTE PTR -48[rbp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	call	extend_to_int_frame
	add	rsp, 16
	mov	QWORD PTR -64[rbp], rax
	fld	TBYTE PTR -32[rbp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	call	extend_to_int_frame
	add	rsp, 16
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jge	.L26
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jge	.L27
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -96[rbp], rax
.L27:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jge	.L28
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jge	.L29
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -80[rbp], rax
.L29:
	add	QWORD PTR -72[rbp], 1
.L25:
	lea	rcx, -32[rbp]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L30
	mov	rax, QWORD PTR -96[rbp]
	sub	rax, QWORD PTR -104[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_orig_dimensions, .-get_orig_dimensions
	.globl	point_eq
	.type	point_eq, @function
point_eq:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	fld	TBYTE PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	fld	TBYTE PTR [rax]
	fmulp	st(1), st
	fnstcw	WORD PTR -58[rbp]
	movzx	eax, WORD PTR -58[rbp]
	or	ah, 12
	mov	WORD PTR -60[rbp], ax
	fldcw	WORD PTR -60[rbp]
	fistp	QWORD PTR -32[rbp]
	fldcw	WORD PTR -58[rbp]
	mov	rax, QWORD PTR -48[rbp]
	fld	TBYTE PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	fld	TBYTE PTR [rax]
	fmulp	st(1), st
	fldcw	WORD PTR -60[rbp]
	fistp	QWORD PTR -24[rbp]
	fldcw	WORD PTR -58[rbp]
	mov	rax, QWORD PTR -40[rbp]
	fld	TBYTE PTR 16[rax]
	mov	rax, QWORD PTR -56[rbp]
	fld	TBYTE PTR 16[rax]
	fmulp	st(1), st
	fldcw	WORD PTR -60[rbp]
	fistp	QWORD PTR -16[rbp]
	fldcw	WORD PTR -58[rbp]
	mov	rax, QWORD PTR -48[rbp]
	fld	TBYTE PTR 16[rax]
	mov	rax, QWORD PTR -56[rbp]
	fld	TBYTE PTR 16[rax]
	fmulp	st(1), st
	fldcw	WORD PTR -60[rbp]
	fistp	QWORD PTR -8[rbp]
	fldcw	WORD PTR -58[rbp]
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L34
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L34
	mov	eax, 1
	jmp	.L35
.L34:
	mov	eax, 0
.L35:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	point_eq, .-point_eq
	.globl	point_set_contains
	.type	point_set_contains, @function
point_set_contains:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	jmp	.L38
.L40:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -24[rbp], rcx
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	point_eq
	test	al, al
	je	.L38
	mov	eax, 1
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L40
	mov	eax, 0
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	point_set_contains, .-point_set_contains
	.globl	fill_set
	.type	fill_set, @function
fill_set:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L42
.L43:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	point_set_contains
	xor	eax, 1
	test	al, al
	je	.L42
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rdx], rcx
	sal	rax, 5
	lea	rcx, [rsi+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
.L42:
	lea	rax, -48[rbp]
	lea	rcx, 16[rax]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L43
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	fill_set, .-fill_set
	.globl	get_ratio
	.type	get_ratio, @function
get_ratio:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	fld	TBYTE PTR 16[rbp]
	fld	TBYTE PTR 32[rbp]
	fdivp	st(1), st
	fstp	TBYTE PTR -16[rbp]
	fld1
	fld	TBYTE PTR -16[rbp]
	fcomip	st, st(1)
	fstp	st(0)
	jbe	.L51
	fld1
	jmp	.L49
.L51:
	fld	TBYTE PTR -16[rbp]
.L49:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_ratio, .-get_ratio
	.section	.rodata
.LC10:
	.string	"%s: "
	.text
	.globl	handle_fopen_error
	.type	handle_fopen_error, @function
handle_fopen_error:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	handle_fopen_error, .-handle_fopen_error
	.section	.rodata
.LC11:
	.string	"r"
.LC12:
	.string	"error opening input file"
.LC13:
	.string	"w"
.LC14:
	.string	"error opening output file"
.LC17:
	.string	"%s: not enough memory\n"
.LC18:
	.string	"%.100Lg %.100Lg\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	mov	ecx, DWORD PTR -164[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	parse_cmd_options
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -128[rbp]
	lea	rdx, .LC12[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	handle_fopen_error
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	handle_fopen_error
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	rdx, QWORD PTR -128[rbp]
	lea	rcx, -144[rbp]
	lea	rax, -152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_orig_dimensions
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -184[rbp], rax
	fild	QWORD PTR -184[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -184[rbp], eax
	fild	DWORD PTR -184[rbp]
	fxch	st(1)
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	call	get_ratio
	add	rsp, 32
	fstp	TBYTE PTR -48[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -184[rbp], rax
	fild	QWORD PTR -184[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -184[rbp], eax
	fild	DWORD PTR -184[rbp]
	fxch	st(1)
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	call	get_ratio
	add	rsp, 32
	fstp	TBYTE PTR -32[rbp]
	fld	TBYTE PTR -32[rbp]
	fld	TBYTE PTR -48[rbp]
	fcomip	st, st(1)
	fstp	st(0)
	jbe	.L71
	fld	TBYTE PTR -48[rbp]
	jmp	.L60
.L71:
	fld	TBYTE PTR -32[rbp]
.L60:
	fild	QWORD PTR -112[rbp]
	cmp	QWORD PTR -112[rbp], 0
	jns	.L61
	fld	TBYTE PTR .LC15[rip]
	faddp	st(1), st
.L61:
	fmulp	st(1), st
	fld	TBYTE PTR .LC16[rip]
	fxch	st(1)
	fcomi	st, st(1)
	fstp	st(1)
	jnb	.L62
	fnstcw	WORD PTR -166[rbp]
	movzx	eax, WORD PTR -166[rbp]
	or	ah, 12
	mov	WORD PTR -168[rbp], ax
	fldcw	WORD PTR -168[rbp]
	fistp	QWORD PTR -104[rbp]
	fldcw	WORD PTR -166[rbp]
	jmp	.L63
.L62:
	fld	TBYTE PTR .LC16[rip]
	fsubp	st(1), st
	fnstcw	WORD PTR -166[rbp]
	movzx	eax, WORD PTR -166[rbp]
	or	ah, 12
	mov	WORD PTR -168[rbp], ax
	fldcw	WORD PTR -168[rbp]
	fistp	QWORD PTR -104[rbp]
	fldcw	WORD PTR -166[rbp]
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -104[rbp], rax
.L63:
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L68
.L64:
	mov	rdx, QWORD PTR -128[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fill_set
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -136[rbp], 0
	jmp	.L66
.L67:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 5
	add	rax, rdx
	fld	TBYTE PTR 16[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 5
	add	rax, rdx
	fld	TBYTE PTR [rax]
	fxch	st(1)
	mov	rax, QWORD PTR -120[rbp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	add	QWORD PTR -136[rbp], 1
.L66:
	mov	rax, QWORD PTR -56[rbp]
	cmp	QWORD PTR -136[rbp], rax
	jb	.L67
	mov	eax, 0
.L68:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC15:
	.long	0
	.long	-2147483648
	.long	16447
	.long	0
	.align 16
.LC16:
	.long	0
	.long	-2147483648
	.long	16446
	.long	0
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"435416.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s OPTION... FILE\012Print the minimal amoun"
	.ascii	"t of point cooridinates from FILE needed to produce"
	.ascii	"\012a chart equivalent to the chart produced with a"
	.ascii	"ll the point coordinates from\012FILE.\012\012Manda"
	.ascii	"tory:\012  -w WIDTH     width of the target chart ("
	.ascii	"in px)\012  -h HEIGHT    height of the target chart"
	.ascii	" (in px)\012  -o OUT       path to the output file\012"
	.ascii	"\012Optional:\012  --help       display this help a"
	.ascii	"nd exit\012  --version    output version informatio"
	.ascii	"n and exit\012\012Report bugs at: <https://github.c"
	.ascii	"om/yakubin/chartsampler/issues>\012\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"0.1\000"
	.align	2
.LC2:
	.ascii	"chartsampler %s\012\000"
	.text
	.align	2
	.global	print_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_version, %function
print_version:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, .L5+4
	ldr	r1, .L5+8
	mov	r0, r3
	bl	fprintf
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	print_version, .-print_version
	.section	.rodata
	.align	2
.LC3:
	.ascii	"--help\000"
	.align	2
.LC4:
	.ascii	"--version\000"
	.align	2
.LC5:
	.ascii	"w:h:o:\000"
	.text
	.align	2
	.global	parse_cmd_options
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_cmd_options, %function
parse_cmd_options:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L8
.L11:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L21
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L21+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	bl	print_version
	mov	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	b	.L12
.L17:
	ldr	r3, [fp, #-24]
	cmp	r3, #119
	beq	.L13
	ldr	r3, [fp, #-24]
	cmp	r3, #119
	bgt	.L14
	ldr	r3, [fp, #-24]
	cmp	r3, #104
	beq	.L15
	ldr	r3, [fp, #-24]
	cmp	r3, #111
	beq	.L16
	b	.L14
.L13:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-20]
	b	.L12
.L15:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L12
.L16:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-8]
	b	.L12
.L14:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r0, #1
	bl	exit
.L12:
	ldr	r2, .L21+12
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L21+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L19
.L18:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, .L21+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	.LC4
	.word	optarg
	.word	.LC5
	.word	optind
	.size	parse_cmd_options, .-parse_cmd_options
	.global	__aeabi_dcmpge
	.global	__aeabi_d2lz
	.align	2
	.global	extend_to_int_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	extend_to_int_frame, %function
extend_to_int_frame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	b	.L27
.L29:
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	floor
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
.L27:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	extend_to_int_frame, .-extend_to_int_frame
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%Lf %Lf\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_orig_dimensions
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_orig_dimensions, %function
get_orig_dimensions:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #96
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	str	r2, [fp, #-112]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	b	.L31
.L36:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	extend_to_int_frame
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	extend_to_int_frame
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L32
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L33
.L32:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L33
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
.L33:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L34
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L35
.L34:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L35
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L35:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L31:
	sub	r3, fp, #84
	sub	r2, fp, #92
	ldr	r1, .L39+4
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L36
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	ldr	r3, [fp, #-104]
	stm	r3, {r6-r7}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	ldr	r3, [fp, #-108]
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-96]
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC7
	.word	.LC6
	.size	get_orig_dimensions, .-get_orig_dimensions
	.global	__aeabi_dmul
	.align	2
	.global	point_eq
	.syntax unified
	.arm
	.fpu softvfp
	.type	point_eq, %function
point_eq:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-48]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-48]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L42
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L42
	mov	r3, #1
	b	.L43
.L42:
	mov	r3, #0
.L43:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	point_eq, .-point_eq
	.align	2
	.global	point_set_contains
	.syntax unified
	.arm
	.fpu softvfp
	.type	point_set_contains, %function
point_set_contains:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L46
.L48:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-12]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-28]
	bl	point_eq
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	mov	r3, #1
	b	.L47
.L46:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L48
	mov	r3, #0
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	point_set_contains, .-point_set_contains
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fill_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_set, %function
fill_set:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	b	.L50
.L51:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	point_set_contains
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r0, r3, #1
	ldr	r1, [fp, #-32]
	str	r0, [r1, #4]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	ip, r3
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
.L50:
	sub	r3, fp, #28
	add	r3, r3, #8
	sub	r2, fp, #28
	ldr	r1, .L53+4
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L51
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC8
	.word	.LC6
	.size	fill_set, .-fill_set
	.global	__aeabi_ddiv
	.global	__aeabi_dcmpgt
	.align	2
	.global	get_ratio
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_ratio, %function
get_ratio:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	ldr	r3, .L62
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	mov	r2, #0
	ldr	r3, .L62
	b	.L59
.L61:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
.L59:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	1072693248
	.size	get_ratio, .-get_ratio
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s: \000"
	.text
	.align	2
	.global	handle_fopen_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_fopen_error, %function
handle_fopen_error:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L69
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L69+4
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	perror
	mov	r0, #1
	bl	exit
.L68:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	stderr
	.word	.LC9
	.size	handle_fopen_error, .-handle_fopen_error
	.section	.rodata
	.align	2
.LC10:
	.ascii	"r\000"
	.align	2
.LC11:
	.ascii	"error opening input file\000"
	.align	2
.LC12:
	.ascii	"w\000"
	.align	2
.LC13:
	.ascii	"error opening output file\000"
	.global	__aeabi_i2d
	.global	__aeabi_l2d
	.global	__aeabi_ui2d
	.global	__aeabi_d2uiz
	.align	2
.LC14:
	.ascii	"%s: not enough memory\012\000"
	.align	2
.LC15:
	.ascii	"%.100Lg %.100Lg\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #60
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	parse_cmd_options
	ldr	r3, [fp, #-52]
	ldr	r1, .L83+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	ldr	r2, .L83+8
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	handle_fopen_error
	ldr	r3, [fp, #-48]
	ldr	r1, .L83+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	ldr	r2, .L83+16
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	handle_fopen_error
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r1, fp, #68
	sub	r3, fp, #76
	ldr	r2, [fp, #-92]
	mov	r0, r3
	bl	get_orig_dimensions
	str	r0, [fp, #-84]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-92]
	bl	fseek
	sub	r3, fp, #44
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	get_ratio
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	get_ratio
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	b	.L74
.L82:
	sub	r5, fp, #28
	ldmia	r5, {r4-r5}
.L74:
	ldr	r0, [fp, #-84]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-80]
	mov	r1, #16
	ldr	r0, [fp, #-80]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L83+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L83+24
	bl	fprintf
	mov	r3, #1
	b	.L79
.L75:
	sub	r3, fp, #44
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	fill_set
	ldr	r0, [fp, #-92]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L77
.L78:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L83+28
	ldr	r0, [fp, #-88]
	bl	fprintf
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L77:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bcc	.L78
	mov	r3, #0
.L79:
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC16
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	stderr
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
