	.file	"232955722.c"
	.intel_syntax noprefix
	.text
	.globl	bsearch
	.type	bsearch, @function
bsearch:
.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	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]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L4
.L3:
	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]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L6
	mov	eax, -1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bsearch, .-bsearch
	.section	.rodata
.LC1:
	.string	"%d is at index %d\n"
	.align 32
.LC0:
	.long	59
	.long	15
	.long	64
	.long	44
	.long	5
	.long	60
	.long	90
	.long	68
	.long	98
	.long	61
	.long	14
	.long	26
	.long	45
	.long	71
	.long	55
	.long	97
	.long	52
	.long	86
	.long	3
	.long	70
	.long	11
	.long	40
	.long	43
	.long	32
	.long	94
	.long	81
	.long	74
	.long	85
	.long	82
	.long	89
	.long	46
	.long	47
	.long	67
	.long	65
	.long	79
	.long	72
	.long	22
	.long	76
	.long	75
	.long	13
	.long	93
	.long	51
	.long	31
	.long	6
	.long	91
	.long	7
	.long	57
	.long	83
	.long	27
	.long	73
	.long	16
	.long	66
	.long	58
	.long	24
	.long	2
	.long	8
	.long	34
	.long	9
	.long	92
	.long	25
	.long	17
	.long	99
	.long	54
	.long	30
	.long	29
	.long	88
	.long	96
	.long	4
	.long	49
	.long	48
	.long	80
	.long	33
	.long	50
	.long	95
	.long	62
	.long	41
	.long	77
	.long	12
	.long	69
	.long	53
	.long	38
	.long	37
	.long	19
	.long	78
	.long	21
	.long	63
	.long	87
	.long	36
	.long	1
	.long	20
	.long	28
	.long	10
	.long	23
	.long	42
	.long	100
	.long	18
	.long	56
	.long	39
	.long	35
	.long	84
	.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, 432
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -416[rbp]
	lea	rdx, .LC0[rip]
	mov	ecx, 50
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	DWORD PTR -428[rbp], 100
	mov	DWORD PTR -424[rbp], 84
	mov	edx, DWORD PTR -424[rbp]
	mov	ecx, DWORD PTR -428[rbp]
	lea	rax, -416[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	bsearch
	mov	DWORD PTR -420[rbp], eax
	mov	edx, DWORD PTR -420[rbp]
	mov	eax, DWORD PTR -424[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"232955722.c"
	.text
	.align	2
	.global	bsearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	bsearch, %function
bsearch:
	@ 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, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L6:
	ldr	r2, [fp, #-12]
	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	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L6
	mvn	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bsearch, .-bsearch
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d is at index %d\012\000"
	.align	2
.LC0:
	.word	59
	.word	15
	.word	64
	.word	44
	.word	5
	.word	60
	.word	90
	.word	68
	.word	98
	.word	61
	.word	14
	.word	26
	.word	45
	.word	71
	.word	55
	.word	97
	.word	52
	.word	86
	.word	3
	.word	70
	.word	11
	.word	40
	.word	43
	.word	32
	.word	94
	.word	81
	.word	74
	.word	85
	.word	82
	.word	89
	.word	46
	.word	47
	.word	67
	.word	65
	.word	79
	.word	72
	.word	22
	.word	76
	.word	75
	.word	13
	.word	93
	.word	51
	.word	31
	.word	6
	.word	91
	.word	7
	.word	57
	.word	83
	.word	27
	.word	73
	.word	16
	.word	66
	.word	58
	.word	24
	.word	2
	.word	8
	.word	34
	.word	9
	.word	92
	.word	25
	.word	17
	.word	99
	.word	54
	.word	30
	.word	29
	.word	88
	.word	96
	.word	4
	.word	49
	.word	48
	.word	80
	.word	33
	.word	50
	.word	95
	.word	62
	.word	41
	.word	77
	.word	12
	.word	69
	.word	53
	.word	38
	.word	37
	.word	19
	.word	78
	.word	21
	.word	63
	.word	87
	.word	36
	.word	1
	.word	20
	.word	28
	.word	10
	.word	23
	.word	42
	.word	100
	.word	18
	.word	56
	.word	39
	.word	35
	.word	84
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L10+4
	sub	r3, fp, #408
	mov	r1, r2
	mov	r2, #400
	mov	r0, r3
	bl	memcpy
	mov	r3, #100
	str	r3, [fp, #-420]
	mov	r3, #84
	str	r3, [fp, #-416]
	sub	r3, fp, #408
	ldr	r2, [fp, #-416]
	ldr	r1, [fp, #-420]
	mov	r0, r3
	bl	bsearch
	str	r0, [fp, #-412]
	ldr	r2, [fp, #-412]
	ldr	r1, [fp, #-416]
	ldr	r0, .L10+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
