	.file	"938273.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XRRGetScreenResourcesCurrent@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	DWORD PTR -100[rbp], 4
	jne	.L2
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -96[rbp], 0
	jmp	.L5
.L2:
	mov	eax, 1
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XRRGetCrtcInfo@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XRRGetCrtcGammaSize@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	XRRAllocGamma@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L6
.L7:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -92[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -76[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	WORD PTR [rax], dx
	movsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	WORD PTR [rax], dx
	movsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	cvttsd2si	edx, xmm0
	mov	WORD PTR [rax], dx
	add	DWORD PTR -92[rbp], 1
.L6:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L7
	mov	eax, DWORD PTR -80[rbp]
	movsx	rcx, eax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XRRSetCrtcGamma@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XFree@PLT
	add	DWORD PTR -96[rbp], 1
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L8
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1089470432
	.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	"938273.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2uiz
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-72]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-80]
	bl	XRRGetScreenResourcesCurrent
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-96]
	cmp	r3, #4
	bne	.L2
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, [fp, #-100]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L5
.L2:
	mov	r3, #1
	b	.L4
.L8:
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r2, r3
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-80]
	bl	XRRGetCrtcInfo
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	XRRGetCrtcGammaSize
	str	r0, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	XRRAllocGamma
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L6
.L7:
	ldr	r0, [fp, #-84]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #1
	add	r4, r2, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #1
	add	r4, r2, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #1
	add	r4, r2, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [r4]	@ movhi
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L6:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	XRRSetCrtcGamma
	ldr	r0, [fp, #-48]
	bl	XFree
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L5:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	1089470432
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
