	.file	"90766729.c"
	.intel_syntax noprefix
	.text
	.globl	REGISTER
	.bss
	.type	REGISTER, @object
	.size	REGISTER, 1
REGISTER:
	.zero	1
	.text
	.globl	parse_byte
	.type	parse_byte, @function
parse_byte:
.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 -24[rbp], rdi
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L2
	mov	DWORD PTR -8[rbp], 2
.L2:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L4:
	movzx	eax, BYTE PTR -9[rbp]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	eax, ecx
	sub	eax, 48
	mov	BYTE PTR -9[rbp], al
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	je	.L4
	movzx	eax, BYTE PTR -9[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_byte, .-parse_byte
	.section	.rodata
.LC0:
	.string	"%s operation, REGISTER = 0b"
.LC1:
	.string	"%d"
	.text
	.globl	show_register
	.type	show_register, @function
show_register:
.LFB7:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 7
	jmp	.L7
.L8:
	movzx	eax, BYTE PTR REGISTER[rip]
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	show_register, .-show_register
	.section	.rodata
.LC2:
	.string	"before"
.LC3:
	.string	" after"
	.text
	.globl	clear_bit_demo
	.type	clear_bit_demo, @function
clear_bit_demo:
.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, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rdi, .LC2[rip]
	call	show_register
	movzx	eax, BYTE PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	not	eax
	mov	edx, eax
	movzx	eax, BYTE PTR REGISTER[rip]
	and	eax, edx
	mov	BYTE PTR REGISTER[rip], al
	lea	rdi, .LC3[rip]
	call	show_register
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	clear_bit_demo, .-clear_bit_demo
	.section	.rodata
	.align 8
.LC4:
	.string	"Error: expected 2 command line arguments.\nUsage: get_bit_demo initial_register_value pin_number\n\ninitial_register_value: 0..255\npin_number: 0..7"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	jg	.L11
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	parse_byte
	mov	BYTE PTR REGISTER[rip], al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	clear_bit_demo
	mov	eax, 0
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"90766729.c"
	.text
	.comm	REGISTER,1,1
	.align	2
	.global	parse_byte
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_byte, %function
parse_byte:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L2
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L2
	mov	r3, #2
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldrb	r3, [fp, #-13]
	lsl	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r3, r3, #255
	sub	r3, r3, #48
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	beq	.L4
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	parse_byte, .-parse_byte
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s operation, REGISTER = 0b\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.text
	.align	2
	.global	show_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_register, %function
show_register:
	@ 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]
	ldr	r1, [fp, #-16]
	ldr	r0, .L9
	bl	printf
	mov	r3, #7
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, .L9+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r2, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r2, r3
	and	r2, r1, r3
	ldr	r3, [fp, #-8]
	asr	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L8
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	REGISTER
	.word	.LC1
	.size	show_register, .-show_register
	.section	.rodata
	.align	2
.LC2:
	.ascii	"before\000"
	.align	2
.LC3:
	.ascii	" after\000"
	.text
	.align	2
	.global	clear_bit_demo
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_bit_demo, %function
clear_bit_demo:
	@ 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, r0
	strb	r3, [fp, #-5]
	ldr	r0, .L12
	bl	show_register
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r2, #1
	lsl	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mvn	r3, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, .L12+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, .L12+4
	strb	r2, [r3]
	ldr	r0, .L12+8
	bl	show_register
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	REGISTER
	.word	.LC3
	.size	clear_bit_demo, .-clear_bit_demo
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Error: expected 2 command line arguments.\012Usage:"
	.ascii	" get_bit_demo initial_register_value pin_number\012"
	.ascii	"\012initial_register_value: 0..255\012pin_number: 0"
	.ascii	"..7\000"
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bgt	.L15
	ldr	r0, .L17
	bl	puts
	mov	r3, #1
	b	.L16
.L15:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	parse_byte
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+4
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	clear_bit_demo
	mov	r3, #0
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	REGISTER
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
