	.file	"237642562.c"
	.intel_syntax noprefix
	.text
	.globl	sg
	.bss
	.align 32
	.type	sg, @object
	.size	sg, 3200144
sg:
	.zero	3200144
	.globl	xorv
	.align 32
	.type	xorv, @object
	.size	xorv, 3200144
xorv:
	.zero	3200144
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -24[rbp]
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jne	.L3
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 1
	mov	esi, eax
	mov	edi, 1
	call	modify
	jmp	.L2
.L3:
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 1
	mov	esi, eax
	mov	edi, 1
	call	query
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -24[rbp], edx
	test	eax, eax
	jne	.L4
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	modify
	.type	modify, @function
modify:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -36[rbp], r8d
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jg	.L8
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jg	.L8
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	eax, 1
	mov	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	xor	eax, 1
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	sub	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	or	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	or	edx, 1
	xor	eax, 1
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	or	edx, 1
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, sg[rip]
	mov	esi, DWORD PTR [rcx+rdx]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	or	edx, 1
	sub	eax, esi
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], 0
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jg	.L11
	mov	eax, DWORD PTR -28[rbp]
	lea	edi, [rax+rax]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	edi, eax
	call	modify
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L12
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	or	eax, 1
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, 1[rax]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	call	modify
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	or	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], ecx
	nop
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	modify, .-modify
	.globl	query
	.type	query, @function
query:
.LFB2:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -36[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jg	.L14
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jg	.L14
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	xor	eax, 1
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	sub	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	or	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	or	edx, 1
	xor	eax, 1
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	or	edx, 1
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, sg[rip]
	mov	esi, DWORD PTR [rcx+rdx]
	mov	edx, DWORD PTR -28[rbp]
	add	edx, edx
	or	edx, 1
	sub	eax, esi
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, sg[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, xorv[rip]
	mov	DWORD PTR [rdx+rax], 0
.L16:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jg	.L17
	mov	eax, DWORD PTR -28[rbp]
	lea	edi, [rax+rax]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	edi, eax
	call	query
	add	DWORD PTR -8[rbp], eax
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L15
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	or	eax, 1
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, 1[rax]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	call	query
	add	DWORD PTR -8[rbp], eax
.L15:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	query, .-query
	.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	"237642562.c"
	.text
	.comm	sg,3200144,4
	.comm	xorv,3200144,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d%d%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #24
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L7+4
	bl	__isoc99_scanf
	b	.L2
.L4:
	sub	r3, fp, #12
	sub	r2, fp, #16
	sub	r1, fp, #20
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-28]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #1
	mov	r0, #1
	bl	modify
	b	.L2
.L3:
	ldr	r1, [fp, #-28]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #1
	mov	r0, #1
	bl	query
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
.L2:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	str	r2, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	modify
	.syntax unified
	.arm
	.fpu softvfp
	.type	modify, %function
modify:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bgt	.L10
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bgt	.L10
	ldr	r2, .L15
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	eor	r2, r3, #1
	ldr	r1, .L15
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r1, .L15+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, r2, r3
	ldr	r1, .L15+4
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	b	.L11
.L10:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, .L15
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	ldr	r2, .L15
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	eor	r2, r2, #1
	ldr	r1, .L15
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	ldr	r2, .L15+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	sub	r2, r1, r2
	ldr	r1, .L15+4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	ldr	r2, .L15
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	eor	r2, r2, #1
	ldr	r1, .L15
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r1, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	ldr	r2, .L15+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	sub	r2, r1, r2
	ldr	r1, .L15+4
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L15
	ldr	r3, [fp, #-24]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L12:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bgt	.L13
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	modify
.L13:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L14
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	bl	modify
.L14:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-24]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	ldr	r2, .L15+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	ldr	r1, .L15+4
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L15+4
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	nop
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	xorv
	.word	sg
	.size	modify, .-modify
	.align	2
	.global	query
	.syntax unified
	.arm
	.fpu softvfp
	.type	query, %function
query:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bgt	.L18
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bgt	.L18
	ldr	r2, .L23
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	b	.L19
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, .L23+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	ldr	r2, .L23+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	eor	r2, r2, #1
	ldr	r1, .L23+4
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	ldr	r2, .L23
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	sub	r2, r1, r2
	ldr	r1, .L23
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	ldr	r2, .L23+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	eor	r2, r2, #1
	ldr	r1, .L23+4
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r1, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	ldr	r2, .L23
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	sub	r2, r1, r2
	ldr	r1, .L23
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L23+4
	ldr	r3, [fp, #-24]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L20:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bgt	.L21
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	query
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	orr	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	bl	query
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	sg
	.word	xorv
	.size	query, .-query
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
