	.file	"266841.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"0x%02lx  "
.LC1:
	.string	"0x%04lx  "
.LC2:
	.string	"0x%016lx  "
	.section	.data.rel.local,"aw"
	.align 16
	.type	fmts, @object
	.size	fmts, 24
fmts:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.section	.rodata
	.align 16
	.type	aalign, @object
	.size	aalign, 24
aalign:
	.quad	1
	.quad	2
	.quad	8
	.align 8
.LC3:
	.string	"Usage: mem [-h] [-l -s -c] addr [-n count]"
	.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, .LC3[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC4:
	.string	"mem -%c: option expected\n"
.LC5:
	.string	"mem -%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, .LC4[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, .LC5[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
.LC6:
	.string	"n:hcsl"
.LC7:
	.string	"Failed to get address!"
	.align 8
.LC8:
	.string	"address is not aligned to selected mem access"
.LC9:
	.string	"\n0x%016x:\t"
	.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	QWORD PTR -32[rbp], 4
	mov	BYTE PTR -45[rbp], 0
	mov	DWORD PTR -44[rbp], 2
	jmp	.L10
.L20:
	cmp	DWORD PTR -40[rbp], 63
	je	.L11
	cmp	DWORD PTR -40[rbp], 63
	jl	.L12
	cmp	DWORD PTR -40[rbp], 115
	jg	.L12
	cmp	DWORD PTR -40[rbp], 99
	jl	.L12
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 99
	cmp	eax, 16
	ja	.L12
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L14[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L14[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L17-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L11-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L16-.L14
	.long	.L12-.L14
	.long	.L15-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L13-.L14
	.text
.L15:
	mov	BYTE PTR -45[rbp], 1
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -32[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	parse_option
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L31
.L16:
	mov	DWORD PTR -44[rbp], 2
	jmp	.L10
.L13:
	mov	DWORD PTR -44[rbp], 1
	jmp	.L10
.L17:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L10
.L11:
	call	print_usage
.L12:
	mov	eax, 0
	jmp	.L31
.L10:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L20
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	cmp	BYTE PTR -45[rbp], 0
	je	.L21
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -24[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -24[rbp], rax
.L22:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L23
	lea	rdi, .LC7[rip]
	call	puts@PLT
	call	print_usage
	mov	eax, -22
	jmp	.L31
.L23:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	and	rax, rdx
	test	rax, rax
	je	.L25
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, -22
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 15
	test	rax, rax
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	cmp	DWORD PTR -44[rbp], 0
	je	.L27
	cmp	DWORD PTR -44[rbp], 1
	je	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	QWORD PTR -16[rbp], rax
	jmp	.L29
.L27:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	QWORD PTR -16[rbp], rax
	nop
.L29:
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, fmts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, aalign[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	QWORD PTR -24[rbp], rax
.L25:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -32[rbp], rdx
	test	rax, rax
	jne	.L30
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	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	"266841.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0x%02lx  \000"
	.align	2
.LC1:
	.ascii	"0x%04lx  \000"
	.align	2
.LC2:
	.ascii	"0x%08lx  \000"
	.data
	.align	2
	.type	fmts, %object
	.size	fmts, 12
fmts:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.section	.rodata
	.align	2
	.type	aalign, %object
	.size	aalign, 12
aalign:
	.word	1
	.word	2
	.word	4
	.align	2
.LC3:
	.ascii	"Usage: mem [-h] [-l -s -c] addr [-n count]\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	.LC3
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC4:
	.ascii	"mem -%c: option expected\012\000"
	.align	2
.LC5:
	.ascii	"mem -%c: invalid option: %s\012\000"
	.align	2
.LC6:
	.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	.LC6
	.word	.LC4
	.word	.LC5
	.size	parse_option, .-parse_option
	.section	.rodata
	.align	2
.LC7:
	.ascii	"n:hcsl\000"
	.align	2
.LC8:
	.ascii	"Failed to get address!\000"
	.align	2
.LC9:
	.ascii	"address is not aligned to selected mem access\000"
	.align	2
.LC10:
	.ascii	"\0120x%08x:\011\000"
	.align	2
.LC11:
	.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, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4
	str	r3, [fp, #-32]
	mov	r3, #0
	strb	r3, [fp, #-33]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L14
.L24:
	ldr	r3, [fp, #-16]
	cmp	r3, #63
	beq	.L15
	ldr	r3, [fp, #-16]
	cmp	r3, #63
	blt	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #115
	bgt	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	blt	.L16
	ldr	r3, [fp, #-16]
	sub	r3, r3, #99
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L21
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L15
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L20
	.word	.L16
	.word	.L19
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L17
.L19:
	mov	r3, #1
	strb	r3, [fp, #-33]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	sub	r2, fp, #32
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	parse_option
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-12]
	b	.L35
.L20:
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L14
.L17:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L14
.L21:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L14
.L15:
	bl	print_usage
.L16:
	mov	r3, #0
	b	.L35
.L14:
	ldr	r2, .L37+8
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L24
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-40]
	sub	r3, r3, #-1073741821
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-28]
	b	.L26
.L25:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-28]
.L26:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L37+12
	bl	puts
	bl	print_usage
	mvn	r3, #21
	b	.L35
.L27:
	mov	r2, #1
	ldr	r3, [fp, #-20]
	lsl	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-28]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L37+16
	bl	puts
	mvn	r3, #21
	b	.L35
.L34:
	ldr	r3, [fp, #-28]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L37+20
	bl	printf
.L30:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L32
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L33
.L32:
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	str	r3, [fp, #-24]
	b	.L33
.L31:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-24]
	nop
.L33:
	ldr	r2, .L37+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	printf
	ldr	r2, .L37+28
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
.L29:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	str	r2, [fp, #-32]
	cmp	r3, #0
	bne	.L34
	mov	r0, #10
	bl	putchar
	mov	r3, #0
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC11
	.word	optarg
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	fmts
	.word	aalign
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
