	.file	"45451403.c"
	.intel_syntax noprefix
	.text
	.globl	printBits
	.type	printBits, @function
printBits:
.LFB0:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	edi, 49
	call	putchar@PLT
	jmp	.L4
.L3:
	mov	edi, 48
	call	putchar@PLT
.L4:
	sub	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	printBits, .-printBits
	.section	.rodata
.LC0:
	.string	"mask : "
	.text
	.globl	modifyBit
	.type	modifyBit, @function
modifyBit:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 8
	mov	edi, eax
	call	printBits
	mov	eax, DWORD PTR -4[rbp]
	not	eax
	and	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -4[rbp]
	or	eax, esi
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	modifyBit, .-modifyBit
	.globl	checkBit
	.type	checkBit, @function
checkBit:
.LFB2:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	sar	DWORD PTR -4[rbp], cl
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	checkBit, .-checkBit
	.section	.rodata
.LC1:
	.string	"dec : %d\n"
.LC2:
	.string	"bin : "
.LC3:
	.string	"Choised bit is 1"
.LC4:
	.string	"Choised bit is 0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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 -8[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	call	modifyBit
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 7
	mov	edi, eax
	call	printBits
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, 5
	mov	edi, eax
	call	modifyBit
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 7
	mov	edi, eax
	call	printBits
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, 2
	mov	edi, eax
	call	modifyBit
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 7
	mov	edi, eax
	call	printBits
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, 3
	mov	edi, eax
	call	modifyBit
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 7
	mov	edi, eax
	call	printBits
	mov	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 2
	test	eax, eax
	je	.L12
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"45451403.c"
	.text
	.align	2
	.global	printBits
	.syntax unified
	.arm
	.fpu softvfp
	.type	printBits, %function
printBits:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	mov	r0, #49
	bl	putchar
	b	.L4
.L3:
	mov	r0, #48
	bl	putchar
.L4:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L5
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	printBits, .-printBits
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mask : \000"
	.text
	.align	2
	.global	modifyBit
	.syntax unified
	.arm
	.fpu softvfp
	.type	modifyBit, %function
modifyBit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r2, #1
	ldr	r3, [fp, #-20]
	lsl	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r0, .L8
	bl	printf
	mov	r1, #8
	ldr	r0, [fp, #-8]
	bl	printBits
	ldr	r3, [fp, #-8]
	mvn	r2, r3
	ldr	r3, [fp, #-16]
	and	r2, r2, r3
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-20]
	lsl	r1, r1, r3
	ldr	r3, [fp, #-8]
	and	r3, r3, r1
	orr	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	modifyBit, .-modifyBit
	.align	2
	.global	checkBit
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkBit, %function
checkBit:
	@ 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, [fp, #-8]
	ldr	r3, [fp, #-12]
	asr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	checkBit, .-checkBit
	.section	.rodata
	.align	2
.LC1:
	.ascii	"dec : %d\012\000"
	.align	2
.LC2:
	.ascii	"bin : \000"
	.align	2
.LC3:
	.ascii	"Choised bit is 1\000"
	.align	2
.LC4:
	.ascii	"Choised bit is 0\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
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	modifyBit
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r0, .L17+4
	bl	printf
	mov	r1, #7
	ldr	r0, [fp, #-12]
	bl	printBits
	mov	r0, #10
	bl	putchar
	mov	r2, #1
	mov	r1, #5
	ldr	r0, [fp, #-12]
	bl	modifyBit
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r0, .L17+4
	bl	printf
	mov	r1, #7
	ldr	r0, [fp, #-12]
	bl	printBits
	mov	r0, #10
	bl	putchar
	mov	r2, #1
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	modifyBit
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r0, .L17+4
	bl	printf
	mov	r1, #7
	ldr	r0, [fp, #-12]
	bl	printBits
	mov	r0, #10
	bl	putchar
	mov	r2, #1
	mov	r1, #3
	ldr	r0, [fp, #-12]
	bl	modifyBit
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r0, .L17+4
	bl	printf
	mov	r1, #7
	ldr	r0, [fp, #-12]
	bl	printBits
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L17+8
	bl	printf
	b	.L15
.L14:
	ldr	r0, .L17+12
	bl	printf
.L15:
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
