	.file	"154830716.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: wmem [-h] [-l -s -c] -a addr -v value"
	.text
	.type	print_usage, @function
print_usage:
.LFB6:
	.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]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC1:
	.string	"wmem -%c: option expected\n"
.LC2:
	.string	"wmem -%c: invalid option: %s\n"
	.text
	.type	parse_option, @function
parse_option:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
.L3:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	print_usage
	mov	eax, -22
	jmp	.L7
.L4:
	lea	rcx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L6
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	print_usage
	mov	eax, -22
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse_option, .-parse_option
	.section	.rodata
.LC3:
	.string	"a:v:hlsc"
	.align 8
.LC4:
	.string	"wmem: both -a and -v options required"
	.align 8
.LC5:
	.string	"address is not aligned to selected mem access"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -34[rbp], 0
	mov	BYTE PTR -33[rbp], 0
	mov	DWORD PTR -28[rbp], 2
	jmp	.L10
.L22:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 63
	cmp	eax, 55
	ja	.L11
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L16-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L18-.L13
	.long	.L11-.L13
	.long	.L17-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L16-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L15-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L14-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.text
.L18:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -16[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	parse_option
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L30
.L19:
	mov	BYTE PTR -34[rbp], 1
	jmp	.L10
.L12:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -32[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	parse_option
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L21
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L30
.L21:
	mov	BYTE PTR -33[rbp], 1
	jmp	.L10
.L15:
	mov	DWORD PTR -28[rbp], 2
	jmp	.L10
.L14:
	mov	DWORD PTR -28[rbp], 1
	jmp	.L10
.L17:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L16:
	call	print_usage
	mov	eax, 0
	jmp	.L30
.L11:
	mov	eax, 0
	jmp	.L30
.L10:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC3[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L22
	movzx	eax, BYTE PTR -34[rbp]
	xor	eax, 1
	test	al, al
	jne	.L23
	movzx	eax, BYTE PTR -33[rbp]
	xor	eax, 1
	test	al, al
	je	.L24
.L23:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	call	print_usage
	mov	eax, -22
	jmp	.L30
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	and	eax, esi
	test	eax, eax
	je	.L25
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -22
	jmp	.L30
.L25:
	cmp	DWORD PTR -28[rbp], 2
	je	.L26
	cmp	DWORD PTR -28[rbp], 2
	ja	.L27
	cmp	DWORD PTR -28[rbp], 0
	je	.L28
	cmp	DWORD PTR -28[rbp], 1
	je	.L29
	jmp	.L27
.L26:
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, edx
	mov	QWORD PTR [rax], rdx
	jmp	.L27
.L29:
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], dx
	jmp	.L27
.L28:
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	nop
.L27:
	mov	eax, 0
.L30:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	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	"154830716.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: wmem [-h] [-l -s -c] -a addr -v value\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"wmem -%c: option expected\012\000"
	.align	2
.LC2:
	.ascii	"wmem -%c: invalid option: %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_option, %function
parse_option:
	@ 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]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
.L5:
	ldr	r1, [fp, #-20]
	ldr	r0, .L11+4
	bl	printf
	bl	print_usage
	mvn	r3, #21
	b	.L9
.L6:
	sub	r3, fp, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strtoul
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L11+8
	bl	printf
	bl	print_usage
	mvn	r3, #21
	b	.L9
.L8:
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	parse_option, .-parse_option
	.section	.rodata
	.align	2
.LC4:
	.ascii	"a:v:hlsc\000"
	.align	2
.LC5:
	.ascii	"wmem: both -a and -v options required\000"
	.align	2
.LC6:
	.ascii	"address is not aligned to selected mem access\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-30]
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L14
.L26:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #63
	cmp	r3, #55
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L17:
	.word	.L20
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L22
	.word	.L15
	.word	.L21
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L20
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L19
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L18
	.word	.L15
	.word	.L15
	.word	.L16
.L22:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	sub	r2, fp, #28
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	parse_option
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-12]
	b	.L34
.L23:
	mov	r3, #1
	strb	r3, [fp, #-30]
	b	.L14
.L16:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	parse_option
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	b	.L34
.L25:
	mov	r3, #1
	strb	r3, [fp, #-29]
	b	.L14
.L19:
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L14
.L18:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L14
.L21:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L14
.L20:
	bl	print_usage
	mov	r3, #0
	b	.L34
.L15:
	mov	r3, #0
	b	.L34
.L14:
	ldr	r2, .L36+8
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L26
	ldrb	r3, [fp, #-30]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L27
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L28
.L27:
	ldr	r0, .L36+12
	bl	puts
	bl	print_usage
	mvn	r3, #21
	b	.L34
.L28:
	mov	r2, #1
	ldr	r3, [fp, #-20]
	lsl	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L36+16
	bl	puts
	mvn	r3, #21
	b	.L34
.L29:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L30
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bhi	.L31
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L33
	b	.L31
.L30:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	b	.L31
.L33:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L31
.L32:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
.L31:
	mov	r3, #0
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.word	optarg
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
