	.file	"182959.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nlength = %d\n"
	.text
	.globl	array_to_ptr
	.type	array_to_ptr, @function
array_to_ptr:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	movabs	rax, 8022916924116329800
	mov	QWORD PTR -21[rbp], rax
	mov	DWORD PTR -13[rbp], 560229490
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -21[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	movzx	eax, BYTE PTR -21[rbp+rax]
	movsx	eax, al
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	add	DWORD PTR -32[rbp], 1
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	array_to_ptr, .-array_to_ptr
	.globl	contains
	.type	contains, @function
contains:
.LFB7:
	.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	eax, esi
	mov	BYTE PTR -12[rbp], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	contains, .-contains
	.globl	makearray
	.type	makearray, @function
makearray:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	makearray, .-makearray
	.section	.rodata
.LC1:
	.string	"Question #2 - array_to_ptr:"
	.align 8
.LC2:
	.string	"\n------------------------------------\n"
.LC3:
	.string	"Question #3 - contains:"
.LC4:
	.string	"Test #1: "
.LC5:
	.string	"Hello"
	.align 8
.LC6:
	.string	"The string \"Hello\" contains the character 'e'"
	.align 8
.LC7:
	.string	"The string \"Hello\" does not contain the character 'e'"
.LC8:
	.string	"Test #2: "
	.align 8
.LC9:
	.string	"The string \"Hello\" contains the character 'x'"
	.align 8
.LC10:
	.string	"The string \"Hello\" does not contain the character 'x'"
.LC11:
	.string	"Question #4: - makearray:"
.LC12:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.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
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	call	array_to_ptr
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 101
	lea	rdi, .LC5[rip]
	call	contains
	cmp	eax, 1
	jne	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L9:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 120
	lea	rdi, .LC5[rip]
	call	contains
	cmp	eax, 1
	jne	.L10
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L11:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 10
	call	makearray
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L12:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"182959.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012length = %d\012\000"
	.align	2
.LC0:
	.ascii	"Hello World!\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	array_to_ptr
	.syntax unified
	.arm
	.fpu softvfp
	.type	array_to_ptr, %function
array_to_ptr:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L5+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #24
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L3:
	sub	r2, fp, #24
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	putc
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L3
	ldr	r1, [fp, #-32]
	ldr	r0, .L5+12
	bl	printf
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC2
	.word	.LC0
	.word	stdout
	.word	.LC1
	.size	array_to_ptr, .-array_to_ptr
	.align	2
	.global	contains
	.syntax unified
	.arm
	.fpu softvfp
	.type	contains, %function
contains:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strb	r3, [fp, #-9]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	contains, .-contains
	.align	2
	.global	makearray
	.syntax unified
	.arm
	.fpu softvfp
	.type	makearray, %function
makearray:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	makearray, .-makearray
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Question #2 - array_to_ptr:\000"
	.align	2
.LC4:
	.ascii	"\012------------------------------------\012\000"
	.align	2
.LC5:
	.ascii	"Question #3 - contains:\000"
	.align	2
.LC6:
	.ascii	"Test #1: \000"
	.align	2
.LC7:
	.ascii	"Hello\000"
	.align	2
.LC8:
	.ascii	"The string \"Hello\" contains the character 'e'\000"
	.align	2
.LC9:
	.ascii	"The string \"Hello\" does not contain the character"
	.ascii	" 'e'\000"
	.align	2
.LC10:
	.ascii	"Test #2: \000"
	.align	2
.LC11:
	.ascii	"The string \"Hello\" contains the character 'x'\000"
	.align	2
.LC12:
	.ascii	"The string \"Hello\" does not contain the character"
	.ascii	" 'x'\000"
	.align	2
.LC13:
	.ascii	"Question #4: - makearray:\000"
	.align	2
.LC14:
	.ascii	"%d \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L17
	bl	puts
	bl	array_to_ptr
	ldr	r0, .L17+4
	bl	puts
	ldr	r0, .L17+8
	bl	puts
	ldr	r0, .L17+12
	bl	printf
	mov	r1, #101
	ldr	r0, .L17+16
	bl	contains
	mov	r3, r0
	cmp	r3, #1
	bne	.L10
	ldr	r0, .L17+20
	bl	puts
	b	.L11
.L10:
	ldr	r0, .L17+24
	bl	puts
.L11:
	ldr	r0, .L17+28
	bl	printf
	mov	r1, #120
	ldr	r0, .L17+16
	bl	contains
	mov	r3, r0
	cmp	r3, #1
	bne	.L12
	ldr	r0, .L17+32
	bl	puts
	b	.L13
.L12:
	ldr	r0, .L17+36
	bl	puts
.L13:
	ldr	r0, .L17+4
	bl	puts
	ldr	r0, .L17+40
	bl	puts
	mov	r0, #10
	bl	makearray
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L15:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+44
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L15
	mov	r0, #10
	bl	putchar
	ldr	r0, .L17+4
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
