	.file	"46678.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\npress enter to exit"
	.text
	.globl	waiting
	.type	waiting, @function
waiting:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L2:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L2
	call	getchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	waiting, .-waiting
	.globl	find_binary
	.type	find_binary, @function
find_binary:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L6
	mov	eax, 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	call	find_binary
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	add	rax, rcx
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find_binary, .-find_binary
	.section	.rodata
.LC1:
	.string	"enter a number: "
.LC2:
	.string	"%d"
.LC3:
	.string	"binnary is \t\t\t%8llu"
.LC4:
	.string	"\nenter a number: "
	.align 8
.LC5:
	.string	"\nsetting the bits of 2nd number in 1st:\t %8llu"
	.align 8
.LC6:
	.string	"\nclearing the bits of 2nd number in 1st:\t %8llu"
	.align 8
.LC7:
	.string	"\ntoggling the bits of 2nd number in 1st:\t %8llu"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	find_binary
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	find_binary
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	or	eax, edx
	mov	edi, eax
	call	find_binary
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	not	eax
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	and	eax, edx
	mov	edi, eax
	call	find_binary
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	xor	eax, edx
	mov	edi, eax
	call	find_binary
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	waiting
	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
.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	"46678.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012press enter to exit\000"
	.text
	.align	2
	.global	waiting
	.syntax unified
	.arm
	.fpu softvfp
	.type	waiting, %function
waiting:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L3
	bl	printf
	nop
.L2:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L2
	bl	getchar
	nop
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	waiting, .-waiting
	.align	2
	.global	find_binary
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_binary, %function
find_binary:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L6
	mov	r4, #0
	mov	r5, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L8
	mov	r4, #1
	mov	r5, #0
	b	.L7
.L8:
	ldr	r3, [fp, #-32]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	find_binary
	mov	r6, r0
	mov	r7, r1
	mov	r2, r6
	mov	r3, r7
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r6
	adc	r3, r3, r7
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r2, r3
	asr	r3, r2, #31
	adds	r4, r0, r2
	adc	r5, r1, r3
.L7:
	mov	r2, r4
	mov	r3, r5
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	find_binary, .-find_binary
	.section	.rodata
	.align	2
.LC1:
	.ascii	"enter a number: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"binnary is \011\011\011%8llu\000"
	.align	2
.LC4:
	.ascii	"\012enter a number: \000"
	.align	2
.LC5:
	.ascii	"\012setting the bits of 2nd number in 1st:\011 %8ll"
	.ascii	"u\000"
	.align	2
.LC6:
	.ascii	"\012clearing the bits of 2nd number in 1st:\011 %8l"
	.ascii	"lu\000"
	.align	2
.LC7:
	.ascii	"\012toggling the bits of 2nd number in 1st:\011 %8l"
	.ascii	"lu\000"
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	find_binary
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+12
	bl	printf
	ldr	r0, .L12+16
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	find_binary
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+12
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	orr	r3, r2, r3
	mov	r0, r3
	bl	find_binary
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, [fp, #-12]
	mvn	r2, r3
	ldr	r3, [fp, #-16]
	and	r3, r3, r2
	mov	r0, r3
	bl	find_binary
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+24
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	mov	r0, r3
	bl	find_binary
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+28
	bl	printf
	bl	waiting
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
