	.file	"46197.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nPlease enter packet data: "
.LC1:
	.string	"%X"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -28[rbp]
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_data
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_struct
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	parse_data
	.type	parse_data, @function
parse_data:
.LFB1:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 3
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 3
	mov	ecx, eax
	movzx	eax, BYTE PTR [rdx]
	and	eax, -4
	or	eax, ecx
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 2
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	lea	ecx, 0[0+rax*4]
	movzx	eax, BYTE PTR [rdx]
	and	eax, -5
	or	eax, ecx
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 3
	and	ax, 4095
	mov	rdx, QWORD PTR -8[rbp]
	and	ax, 4095
	lea	ecx, 0[0+rax*8]
	movzx	eax, WORD PTR [rdx]
	and	ax, -32761
	or	eax, ecx
	mov	WORD PTR [rdx], ax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 15
	and	eax, 7
	mov	rdx, QWORD PTR -8[rbp]
	movzx	eax, al
	and	eax, 7
	sal	eax, 15
	mov	ecx, eax
	mov	eax, DWORD PTR [rdx]
	and	eax, -229377
	or	eax, ecx
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 18
	and	eax, 7
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 7
	lea	ecx, 0[0+rax*4]
	movzx	eax, BYTE PTR 2[rdx]
	and	eax, -29
	or	eax, ecx
	mov	BYTE PTR 2[rdx], al
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 21
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, dl
	mov	ecx, edx
	sal	ecx, 5
	movzx	edx, WORD PTR 2[rax]
	and	dx, -8161
	or	edx, ecx
	mov	WORD PTR 2[rax], dx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 29
	and	eax, 3
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 3
	sal	eax, 5
	mov	ecx, eax
	movzx	eax, BYTE PTR 3[rdx]
	and	eax, -97
	or	eax, ecx
	mov	BYTE PTR 3[rdx], al
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 31
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	sal	eax, 7
	mov	ecx, eax
	movzx	eax, BYTE PTR 3[rdx]
	and	eax, 127
	or	eax, ecx
	mov	BYTE PTR 3[rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	parse_data, .-parse_data
	.section	.rodata
.LC2:
	.string	"\nStructure: "
.LC3:
	.string	"\nCRC: %#x"
.LC4:
	.string	"\nStatus: %#x"
.LC5:
	.string	"\nBat: %#x"
.LC6:
	.string	"\nSensor: %#x"
.LC7:
	.string	"\nLong address: %#x"
.LC8:
	.string	"\nShort address: %#x"
.LC9:
	.string	"\nAddress mode: %#x"
.LC10:
	.string	"\nSize of structure: %lu"
	.text
	.globl	print_struct
	.type	print_struct, @function
print_struct:
.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	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 3
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	shr	ax, 3
	and	ax, 4095
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 15
	and	eax, 7
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 2[rax]
	shr	al, 2
	and	eax, 7
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 2[rax]
	shr	ax, 5
	and	ah, -1
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 3[rax]
	shr	al, 5
	and	eax, 3
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 3[rax]
	shr	al, 7
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 4
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print_struct, .-print_struct
	.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	"46197.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Please enter packet data: \000"
	.align	2
.LC1:
	.ascii	"%X\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	str	r3, [fp, #-12]
	ldr	r0, .L4+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	parse_data
	ldr	r0, [fp, #-16]
	bl	print_struct
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	parse_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_data, %function
parse_data:
	@ 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	r3, [fp, #-12]
	ldr	r3, [r3]
	and	r3, r3, #3
	and	r1, r3, #255
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2]
	and	r1, r1, #3
	bic	r3, r3, #3
	orr	r3, r1, r3
	strb	r3, [r2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #2
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1]
	and	r3, r3, #1
	bic	r2, r2, #4
	lsl	r3, r3, #2
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #3
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r0, [fp, #-8]
	ldrh	r1, [r0]	@ movhi
	ldr	r3, .L7
	and	r2, r2, r3
	lsl	r3, r3, #3
	bic	r3, r1, r3
	lsl	r2, r2, #3
	orr	r3, r2, r3
	mov	r1, r3	@ movhi
	strh	r1, [r0]	@ movhi
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #15
	and	r3, r3, #7
	and	r2, r3, #255
	ldr	r1, [fp, #-8]
	ldr	r3, [r1]
	and	r2, r2, #7
	bic	r3, r3, #229376
	lsl	r2, r2, #15
	orr	r3, r2, r3
	str	r3, [r1]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #18
	and	r3, r3, #7
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #2]
	and	r3, r3, #7
	bic	r2, r2, #28
	lsl	r3, r3, #2
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #21
	and	r3, r3, #255
	ldr	r0, [fp, #-8]
	ldrh	r1, [r0, #2]	@ movhi
	and	r3, r3, #255
	mov	r2, #255
	lsl	r2, r2, #5
	bic	r2, r1, r2
	lsl	r3, r3, #5
	orr	r3, r3, r2
	mov	r1, r3	@ movhi
	strh	r1, [r0, #2]	@ movhi
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #29
	and	r3, r3, #3
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #3]
	and	r3, r3, #3
	bic	r2, r2, #96
	lsl	r3, r3, #5
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsr	r3, r3, #31
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #3]
	and	r3, r3, #1
	bic	r2, r2, #128
	lsl	r3, r3, #7
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	4095
	.size	parse_data, .-parse_data
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Structure: \000"
	.align	2
.LC4:
	.ascii	"\012CRC: %#x\000"
	.align	2
.LC5:
	.ascii	"\012Status: %#x\000"
	.align	2
.LC6:
	.ascii	"\012Bat: %#x\000"
	.align	2
.LC7:
	.ascii	"\012Sensor: %#x\000"
	.align	2
.LC8:
	.ascii	"\012Long address: %#x\000"
	.align	2
.LC9:
	.ascii	"\012Short address: %#x\000"
	.align	2
.LC10:
	.ascii	"\012Address mode: %#x\000"
	.align	2
.LC11:
	.ascii	"\012Size of structure: %lu\000"
	.text
	.align	2
	.global	print_struct
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_struct, %function
print_struct:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L10
	bl	printf
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	and	r3, r3, #3
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	lsr	r3, r3, #3
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L10+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	lsr	r3, r3, #15
	and	r3, r3, #7
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #7
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #2]
	lsr	r3, r3, #5
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L10+20
	bl	printf
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #3
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsr	r3, r3, #7
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	mov	r1, #4
	ldr	r0, .L10+32
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	print_struct, .-print_struct
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
