	.file	"147477.c"
	.intel_syntax noprefix
	.text
	.globl	q
	.bss
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.text
	.globl	ok
	.type	ok, @function
ok:
.LFB0:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR a[rip]
	imul	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR n[rip]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR b[rip]
	imul	rax, rdx
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR k[rip]
	cmp	rdx, rax
	setl	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ok, .-ok
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld%lld%lld"
.LC2:
	.string	"-1"
.LC3:
	.string	"%lld\n"
	.text
	.globl	Main
	.type	Main, @function
Main:
.LFB1:
	.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
	lea	rsi, q[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L4
.L9:
	lea	r8, b[rip]
	lea	rcx, a[rip]
	lea	rdx, n[rip]
	lea	rsi, k[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR n[rip]
	mov	rax, QWORD PTR b[rip]
	imul	rdx, rax
	mov	rax, QWORD PTR k[rip]
	cmp	rdx, rax
	jl	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L4
.L5:
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR n[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], -1
	jmp	.L6
.L8:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	sar	rax
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ok
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
.L6:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jle	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	rax, QWORD PTR q[rip]
	lea	rdx, -1[rax]
	mov	QWORD PTR q[rip], rdx
	test	rax, rax
	jne	.L9
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Main, .-Main
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	Main
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.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	"147477.c"
	.text
	.comm	q,8,8
	.comm	n,8,8
	.comm	k,8,8
	.comm	a,8,8
	.comm	b,8,8
	.align	2
	.global	ok
	.syntax unified
	.arm
	.fpu softvfp
	.type	ok, %function
ok:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r1, .L3
	ldmia	r1, {r0-r1}
	ldr	ip, [fp, #-36]
	mul	lr, r1, ip
	ldr	ip, [fp, #-32]
	mul	ip, r0, ip
	add	ip, lr, ip
	ldr	lr, [fp, #-36]
	umull	r4, r5, lr, r0
	add	r1, ip, r5
	mov	r5, r1
	ldr	r1, .L3+4
	ldmia	r1, {r6-r7}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	subs	r2, r6, r0
	sbc	r3, r7, r1
	ldr	r1, .L3+8
	ldmia	r1, {r6-r7}
	mul	r0, r6, r3
	mul	r1, r2, r7
	add	ip, r0, r1
	umull	r0, r1, r2, r6
	add	r3, ip, r1
	mov	r1, r3
	adds	r8, r4, r0
	adc	r9, r5, r1
	ldr	r3, .L3+12
	ldmia	r3, {r2-r3}
	cmp	r8, r2
	sbcs	r3, r9, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	and	r2, r3, #255
	mov	r3, #0
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L4:
	.align	2
.L3:
	.word	a
	.word	n
	.word	b
	.word	k
	.size	ok, .-ok
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lld\000"
	.align	2
.LC1:
	.ascii	"%lld%lld%lld%lld\000"
	.align	2
.LC2:
	.ascii	"-1\000"
	.align	2
.LC3:
	.ascii	"%lld\012\000"
	.text
	.align	2
	.global	Main
	.syntax unified
	.arm
	.fpu softvfp
	.type	Main, %function
Main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	ldr	r1, .L13
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	b	.L6
.L11:
	ldr	r3, .L13+8
	str	r3, [sp]
	ldr	r3, .L13+12
	ldr	r2, .L13+16
	ldr	r1, .L13+20
	ldr	r0, .L13+24
	bl	__isoc99_scanf
	ldr	r3, .L13+16
	ldmia	r3, {r0-r1}
	ldr	r3, .L13+8
	ldmia	r3, {r2-r3}
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r6, r7, r0, r2
	add	r3, ip, r7
	mov	r7, r3
	ldr	r3, .L13+20
	ldmia	r3, {r2-r3}
	cmp	r6, r2
	sbcs	r3, r7, r3
	blt	.L7
	ldr	r0, .L13+28
	bl	puts
	b	.L6
.L7:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, .L13+16
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L8
.L10:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r4, #1
	orr	r2, r2, r5, lsl #31
	asr	r3, r5, #1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	ok
	mov	r2, r0
	mov	r3, r1
	orrs	r3, r2, r3
	beq	.L9
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-68]
	adc	r3, r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L8
.L9:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r1, r2, #1
	str	r1, [fp, #-76]
	sbc	r3, r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L8:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L10
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L13+32
	bl	printf
.L6:
	ldr	r3, .L13
	ldmia	r3, {r2-r3}
	subs	r8, r2, #1
	sbc	r9, r3, #0
	ldr	r1, .L13
	stm	r1, {r8-r9}
	orrs	r3, r2, r3
	bne	.L11
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L14:
	.align	2
.L13:
	.word	q
	.word	.LC0
	.word	b
	.word	a
	.word	n
	.word	k
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	Main, .-Main
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	Main
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
