	.file	"extr_20201.c_physread16.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[ ] Function requires 16-byte alignment for input!\n"
	.text
	.p2align 4
	.type	physread16, @function
physread16:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	and	esi, 15
	jne	.L10
.L2:
	mov	eax, ebp
	mov	rdx, QWORD PTR cve_2012_YYYY[rip]
	sar	ebp, 4
	xor	esi, esi
	sar	eax, 18
	mov	rdi, rbx
	and	ebp, 16383
	sal	eax, 10
	lea	rbp, [r12+rbp*4]
	xor	r12d, r12d
	or	eax, 11
	mov	DWORD PTR 3840[rdx], eax
	mov	edx, 16
	call	memset@PLT
.L3:
	mov	rdi, QWORD PTR cve_2012_YYYY[rip]
	mov	edx, r12d
	mov	esi, 516
	lea	r13d, 0[0+r12*8]
	add	r12d, 1
	call	poke_byte@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	ecx, r13d
	movzx	eax, al
	sal	eax, cl
	or	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	movzx	eax, ah
	sal	eax, cl
	or	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	sar	eax, 16
	movzx	eax, al
	sal	eax, cl
	or	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	shr	eax, 24
	sal	eax, cl
	or	DWORD PTR 12[rbx], eax
	cmp	r12d, 4
	jne	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	physread16, .-physread16
	.comm	cve_2012_YYYY,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_20201.c_physread16.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[ ] Function requires 16-byte alignment for input!\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	physread16, %function
physread16:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	tst	r1, #15
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r5, r0
	mov	r4, r2
	bne	.L11
.L2:
	mov	r7, #0
	ldr	r6, .L12
	asr	r3, r8, #18
	ldr	r2, [r6]
	lsl	r3, r3, #10
	orr	r3, r3, #11
	str	r3, [r2, #3840]
	mov	r1, r7
	mov	r2, #16
	mov	r0, r4
	bl	memset
	ldr	r0, .L12+4
	lsr	r8, r8, #2
	and	r0, r0, r8
	add	r5, r5, r0
.L3:
	mov	r2, r7
	mov	r1, #516
	ldr	r0, [r6]
	bl	poke_byte
	ldr	r1, [r5]
	ldr	r3, [r4]
	lsl	r2, r7, #3
	and	r1, r1, #255
	orr	r3, r3, r1, lsl r2
	str	r3, [r4]
	ldr	r3, [r5]
	ldr	r1, [r4, #4]
	asr	r3, r3, #8
	and	r3, r3, #255
	orr	r3, r1, r3, lsl r2
	str	r3, [r4, #4]
	ldr	r3, [r5]
	ldr	r1, [r4, #8]
	asr	r3, r3, #16
	and	r3, r3, #255
	orr	r3, r1, r3, lsl r2
	str	r3, [r4, #8]
	ldr	r1, [r5]
	ldr	r3, [r4, #12]
	add	r7, r7, #1
	lsr	r1, r1, #24
	orr	r2, r3, r1, lsl r2
	cmp	r7, #4
	str	r2, [r4, #12]
	bne	.L3
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r0, .L12+8
	bl	printf
	mvn	r0, #0
	bl	exit
	b	.L2
.L13:
	.align	2
.L12:
	.word	cve_2012_YYYY
	.word	65532
	.word	.LC0
	.size	physread16, .-physread16
	.comm	cve_2012_YYYY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
