	.file	"814277.c"
	.intel_syntax noprefix
	.text
	.globl	array_of_values
	.section	.rodata
.LC0:
	.string	"five"
.LC1:
	.string	"twenty"
.LC2:
	.string	"twenty nine"
.LC3:
	.string	"thirty two"
.LC4:
	.string	"sixty three"
	.section	.data.rel.local,"aw"
	.align 32
	.type	array_of_values, @object
	.size	array_of_values, 8000
array_of_values:
	.long	5
	.zero	4
	.quad	.LC0
	.long	20
	.zero	4
	.quad	.LC1
	.long	29
	.zero	4
	.quad	.LC2
	.long	32
	.zero	4
	.quad	.LC3
	.long	63
	.zero	4
	.quad	.LC4
	.zero	7920
	.data
	.align 4
	.type	num_array, @object
	.size	num_array, 4
num_array:
	.long	5
	.local	last_b
	.comm	last_b,8,8
	.text
	.type	cmpfunc, @function
cmpfunc:
.LFB6:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR last_b[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata
.LC5:
	.string	"new"
	.align 8
.LC6:
	.string	"Found item = %d (%s), entry=%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -88[rbp], 4
	mov	DWORD PTR -84[rbp], 5
	mov	DWORD PTR -80[rbp], 6
	mov	DWORD PTR -76[rbp], 19
	mov	DWORD PTR -72[rbp], 20
	mov	DWORD PTR -68[rbp], 21
	mov	DWORD PTR -64[rbp], 28
	mov	DWORD PTR -60[rbp], 29
	mov	DWORD PTR -56[rbp], 30
	mov	DWORD PTR -52[rbp], 31
	mov	DWORD PTR -48[rbp], 32
	mov	DWORD PTR -44[rbp], 33
	mov	DWORD PTR -40[rbp], 62
	mov	DWORD PTR -36[rbp], 63
	mov	DWORD PTR -32[rbp], 64
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 19
	mov	DWORD PTR -128[rbp], 0
	jmp	.L4
.L9:
	mov	eax, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	DWORD PTR -112[rbp], eax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	eax, DWORD PTR num_array[rip]
	mov	edx, eax
	lea	rax, -112[rbp]
	lea	r8, cmpfunc[rip]
	mov	ecx, 16
	lea	rsi, array_of_values[rip]
	mov	rdi, rax
	call	bsearch@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR last_b[rip]
	lea	rdx, array_of_values[rip]
	sub	rax, rdx
	sar	rax, 4
	mov	DWORD PTR -124[rbp], eax
	cmp	QWORD PTR -120[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, DWORD PTR -124[rbp]
	mov	r8d, esi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L6
.L5:
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -124[rbp]
	sal	rax, 4
	mov	rcx, rax
	lea	rax, array_of_values[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L7
	mov	eax, DWORD PTR num_array[rip]
	sub	eax, DWORD PTR -124[rbp]
	mov	eax, eax
	sal	rax, 4
	mov	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	sal	rax, 4
	mov	rcx, rax
	lea	rax, array_of_values[rip]
	add	rcx, rax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	mov	eax, eax
	sal	rax, 4
	mov	rsi, rax
	lea	rax, array_of_values[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR -124[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, array_of_values[rip]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR num_array[rip]
	add	eax, 1
	mov	DWORD PTR num_array[rip], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR num_array[rip]
	cmp	edx, eax
	je	.L8
	mov	eax, DWORD PTR num_array[rip]
	sub	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 4
	mov	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	mov	eax, eax
	sal	rax, 4
	mov	rcx, rax
	lea	rax, array_of_values[rip]
	add	rcx, rax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 2
	mov	eax, eax
	sal	rax, 4
	mov	rsi, rax
	lea	rax, array_of_values[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
.L8:
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	mov	eax, eax
	sal	rax, 4
	mov	rdx, rax
	lea	rax, array_of_values[rip]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR num_array[rip]
	add	eax, 1
	mov	DWORD PTR num_array[rip], eax
.L6:
	add	DWORD PTR -128[rbp], 1
.L4:
	cmp	DWORD PTR -128[rbp], 19
	jbe	.L9
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"814277.c"
	.text
	.global	array_of_values
	.section	.rodata
	.align	2
.LC1:
	.ascii	"five\000"
	.align	2
.LC2:
	.ascii	"twenty\000"
	.align	2
.LC3:
	.ascii	"twenty nine\000"
	.align	2
.LC4:
	.ascii	"thirty two\000"
	.align	2
.LC5:
	.ascii	"sixty three\000"
	.data
	.align	2
	.type	array_of_values, %object
	.size	array_of_values, 4000
array_of_values:
	.word	5
	.word	.LC1
	.word	20
	.word	.LC2
	.word	29
	.word	.LC3
	.word	32
	.word	.LC4
	.word	63
	.word	.LC5
	.space	3960
	.align	2
	.type	num_array, %object
	.size	num_array, 4
num_array:
	.word	5
	.local	last_b
	.comm	last_b,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmpfunc, %function
cmpfunc:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, .L3
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	last_b
	.size	cmpfunc, .-cmpfunc
	.section	.rodata
	.align	2
.LC6:
	.ascii	"new\000"
	.align	2
.LC7:
	.ascii	"Found item = %d (%s), entry=%d\012\000"
	.align	2
.LC0:
	.word	0
	.word	1
	.word	4
	.word	5
	.word	6
	.word	19
	.word	20
	.word	21
	.word	28
	.word	29
	.word	30
	.word	31
	.word	32
	.word	33
	.word	62
	.word	63
	.word	64
	.word	0
	.word	1
	.word	19
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L14+4
	sub	r3, fp, #88
	mov	r1, r2
	mov	r2, #80
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L6
.L11:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	str	r3, [fp, #-96]
	ldr	r3, .L14+8
	str	r3, [fp, #-92]
	ldr	r3, .L14+12
	ldr	r2, [r3]
	sub	r0, fp, #96
	ldr	r3, .L14+16
	str	r3, [sp]
	mov	r3, #8
	ldr	r1, .L14+20
	bl	bsearch
	str	r0, [fp, #-104]
	ldr	r3, .L14+24
	ldr	r3, [r3]
	ldr	r2, .L14+20
	sub	r3, r3, r2
	asr	r3, r3, #3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L14+28
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-100]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+32
	bl	fprintf
	b	.L8
.L7:
	ldr	r2, [fp, #-96]
	ldr	r1, .L14+20
	ldr	r3, [fp, #-100]
	ldr	r3, [r1, r3, lsl #3]
	cmp	r2, r3
	bge	.L9
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, .L14+20
	add	r0, r3, r2
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	ldr	r2, .L14+20
	add	r1, r3, r2
	ldr	r3, .L14+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-100]
	sub	r3, r2, r3
	lsl	r3, r3, #3
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	ldr	r2, .L14+20
	add	r2, r3, r2
	sub	r3, fp, #96
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L14+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+12
	str	r3, [r2]
	b	.L8
.L9:
	ldr	r3, [fp, #-100]
	add	r2, r3, #1
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
	ldr	r3, [fp, #-100]
	add	r3, r3, #2
	lsl	r3, r3, #3
	ldr	r2, .L14+20
	add	r0, r3, r2
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, .L14+20
	add	r1, r3, r2
	ldr	r3, .L14+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-100]
	sub	r3, r2, r3
	sub	r3, r3, #1
	lsl	r3, r3, #3
	mov	r2, r3
	bl	memmove
.L10:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, .L14+20
	add	r2, r3, r2
	sub	r3, fp, #96
	mov	r0, r2
	mov	r1, r3
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L14+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+12
	str	r3, [r2]
.L8:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L6:
	ldr	r3, [fp, #-108]
	cmp	r3, #19
	bls	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC8
	.word	.LC0
	.word	.LC6
	.word	num_array
	.word	cmpfunc
	.word	array_of_values
	.word	last_b
	.word	stderr
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
