	.file	"482730.c"
	.intel_syntax noprefix
	.text
	.globl	sos
	.type	sos, @function
sos:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	cmp	DWORD PTR -16[rbp], 0
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L4
	mov	eax, 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sos
	test	al, al
	jne	.L5
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, esi
	mov	edx, eax
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sos
	test	al, al
	je	.L6
.L5:
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	and	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sos, .-sos
	.globl	sos_bits
	.type	sos_bits, @function
sos_bits:
.LFB1:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L15:
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -12[rbp], eax
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jne	.L12
	mov	eax, 1
	jmp	.L13
.L12:
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L14
	add	DWORD PTR -8[rbp], 1
.L9:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jl	.L15
	mov	eax, 0
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sos_bits, .-sos_bits
	.section	.rodata
.LC0:
	.string	"SOS exists"
.LC1:
	.string	"SOS does not exist"
	.text
	.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
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 2
	mov	DWORD PTR -44[rbp], 6
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 7
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], -5
	mov	DWORD PTR -24[rbp], 2
	mov	DWORD PTR -20[rbp], 6
	mov	DWORD PTR -16[rbp], -4
	mov	DWORD PTR -52[rbp], 9
	mov	ecx, DWORD PTR -52[rbp]
	lea	rax, -48[rbp]
	mov	edx, 8
	mov	esi, ecx
	mov	rdi, rax
	call	sos_bits
	mov	BYTE PTR -53[rbp], al
	cmp	BYTE PTR -53[rbp], 0
	je	.L17
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L17:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.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	"482730.c"
	.text
	.align	2
	.global	sos
	.syntax unified
	.arm
	.fpu softvfp
	.type	sos, %function
sos:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L4
	mov	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	sos
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	sos
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
.L5:
	mov	r3, #1
	b	.L7
.L6:
	mov	r3, #0
.L7:
	and	r3, r3, #1
	and	r3, r3, #255
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sos, .-sos
	.align	2
	.global	sos_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	sos_bits, %function
sos_bits:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L15:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L14:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L11:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bne	.L12
	mov	r3, #1
	b	.L13
.L12:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	mov	r2, #1
	ldr	r3, [fp, #-28]
	lsl	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sos_bits, .-sos_bits
	.section	.rodata
	.align	2
.LC1:
	.ascii	"SOS exists\000"
	.align	2
.LC2:
	.ascii	"SOS does not exist\000"
	.align	2
.LC0:
	.word	2
	.word	6
	.word	0
	.word	7
	.word	1
	.word	-5
	.word	2
	.word	6
	.word	-4
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #9
	str	r3, [fp, #-48]
	sub	r3, fp, #44
	mov	r2, #8
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	sos_bits
	mov	r3, r0
	strb	r3, [fp, #-49]
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L21+8
	bl	printf
	b	.L20
.L17:
	ldr	r0, .L21+12
	bl	printf
.L20:
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
