	.file	"258850.c"
	.intel_syntax noprefix
	.text
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.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 -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	compare_int, .-compare_int
	.globl	compare_char
	.type	compare_char, @function
compare_char:
.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_char, .-compare_char
	.globl	arr
	.data
	.align 32
	.type	arr, @object
	.size	arr, 32
arr:
	.long	-3
	.long	-2
	.long	0
	.long	9
	.long	12
	.long	34
	.long	44
	.long	56
	.globl	brr
	.type	brr, @object
	.size	brr, 6
brr:
	.ascii	"aabbdx"
	.section	.rodata
.LC0:
	.string	"target = %d\n"
.LC1:
	.string	"element found at = %d\n"
.LC2:
	.string	"element not found "
.LC3:
	.string	"%d "
.LC4:
	.string	"target = %c\n"
.LC5:
	.string	"%c "
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 8
	mov	DWORD PTR -40[rbp], 34
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	lea	rax, -40[rbp]
	lea	r8, compare_int[rip]
	mov	ecx, 4
	lea	rsi, arr[rip]
	mov	rdi, rax
	call	bsearch@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L6
	lea	rdx, arr[rip]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	sar	rax, 2
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L8:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L9
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -28[rbp], 6
	mov	BYTE PTR -41[rbp], 122
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	lea	rax, -41[rbp]
	lea	r8, compare_char[rip]
	mov	ecx, 1
	lea	rsi, brr[rip]
	mov	rdi, rax
	call	bsearch@PLT
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, BYTE PTR -41[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L10
	lea	rdx, brr[rip]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, brr[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L13
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"258850.c"
	.text
	.align	2
	.global	compare_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_int, %function
compare_int:
	@ 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	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
	.size	compare_int, .-compare_int
	.align	2
	.global	compare_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_char, %function
compare_char:
	@ 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	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare_char, .-compare_char
	.global	arr
	.data
	.align	2
	.type	arr, %object
	.size	arr, 32
arr:
	.word	-3
	.word	-2
	.word	0
	.word	9
	.word	12
	.word	34
	.word	44
	.word	56
	.global	brr
	.align	2
	.type	brr, %object
	.size	brr, 6
brr:
	.ascii	"aabbdx"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"target = %d\012\000"
	.align	2
.LC1:
	.ascii	"element found at = %d\012\000"
	.align	2
.LC2:
	.ascii	"element not found \000"
	.align	2
.LC3:
	.ascii	"%d \000"
	.align	2
.LC4:
	.ascii	"target = %c\012\000"
	.align	2
.LC5:
	.ascii	"%c \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #8
	str	r3, [fp, #-20]
	mov	r3, #34
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
	ldr	r2, [fp, #-20]
	sub	r0, fp, #32
	ldr	r3, .L16+8
	str	r3, [sp]
	mov	r3, #4
	ldr	r1, .L16+12
	bl	bsearch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-16]
	ldr	r2, .L16+12
	sub	r3, r3, r2
	asr	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	b	.L7
.L6:
	ldr	r0, .L16+20
	bl	printf
.L7:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L8
.L9:
	ldr	r2, .L16+12
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L16+24
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L9
	mov	r0, #10
	bl	putchar
	mov	r3, #6
	str	r3, [fp, #-20]
	mov	r3, #122
	strb	r3, [fp, #-33]
	ldr	r2, [fp, #-20]
	sub	r0, fp, #33
	ldr	r3, .L16+28
	str	r3, [sp]
	mov	r3, #1
	ldr	r1, .L16+32
	bl	bsearch
	str	r0, [fp, #-12]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+36
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-12]
	ldr	r2, .L16+32
	sub	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	b	.L11
.L10:
	ldr	r0, .L16+20
	bl	printf
.L11:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L12
.L13:
	ldr	r2, .L16+32
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+40
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	.LC0
	.word	compare_int
	.word	arr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	compare_char
	.word	brr
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
