	.file	"extr_alignment.c_do_alignment_ldrhstrh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_alignment_ldrhstrh, @function
do_alignment_ldrhstrh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, esi
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	RD_BITS@PLT
	mov	rdi, r13
	add	DWORD PTR ai_half[rip], 1
	mov	ebx, eax
	call	user_mode@PLT
	mov	edi, ebp
	test	rax, rax
	jne	.L18
	call	LDST_L_BIT@PLT
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR 0[r13]
	mov	rsi, r12
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	put16_unaligned_check@PLT
.L10:
	mov	eax, DWORD PTR TYPE_LDST[rip]
	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
.L19:
	.cfi_restore_state
	mov	rsi, r12
	xor	edi, edi
	call	get16_unaligned_check@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR [rax+rbx*8], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	call	LDST_L_BIT@PLT
	test	rax, rax
	je	.L20
	xor	eax, eax
	call	uaccess_save_and_enable@PLT
	mov	rsi, r12
	xor	edi, edi
	mov	ebp, eax
	call	get16t_unaligned_check@PLT
	mov	edi, ebp
	call	uaccess_restore@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR [rax+rbx*8], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	xor	eax, eax
	call	uaccess_save_and_enable@PLT
	mov	rsi, r12
	mov	ebp, eax
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	put16t_unaligned_check@PLT
	mov	edi, ebp
	call	uaccess_restore@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	do_alignment_ldrhstrh, .-do_alignment_ldrhstrh
	.comm	ai_half,4,4
	.comm	TYPE_LDST,4,4
	.comm	TYPE_FAULT,4,4
	.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_alignment.c_do_alignment_ldrhstrh.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_alignment_ldrhstrh, %function
do_alignment_ldrhstrh:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	mov	r4, r2
	bl	RD_BITS
	ldr	r2, .L23
	mov	r7, r0
	ldr	r3, [r2]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r2]
	bl	user_mode
	cmp	r0, #0
	mov	r0, r5
	bne	.L20
	bl	LDST_L_BIT
	cmp	r0, #0
	bne	.L21
	ldr	r3, [r4]
	mov	r1, r6
	ldr	r0, [r3, r7, lsl #2]
	bl	put16_unaligned_check
.L10:
	ldr	r3, .L23+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r5, #0
	mov	r1, r6
	mov	r0, r5
	bl	get16_unaligned_check
	ldr	r3, [r4]
	str	r5, [r3, r7, lsl #2]
	b	.L10
.L20:
	bl	LDST_L_BIT
	cmp	r0, #0
	beq	.L22
	bl	uaccess_save_and_enable
	mov	r8, #0
	mov	r5, r0
	mov	r1, r6
	mov	r0, r8
	bl	get16t_unaligned_check
	mov	r0, r5
	bl	uaccess_restore
	ldr	r3, [r4]
	str	r8, [r3, r7, lsl #2]
	b	.L10
.L22:
	bl	uaccess_save_and_enable
	ldr	r3, [r4]
	mov	r4, r0
	mov	r1, r6
	ldr	r0, [r3, r7, lsl #2]
	bl	put16t_unaligned_check
	mov	r0, r4
	bl	uaccess_restore
	b	.L10
.L24:
	.align	2
.L23:
	.word	ai_half
	.word	TYPE_LDST
	.size	do_alignment_ldrhstrh, .-do_alignment_ldrhstrh
	.comm	ai_half,4,4
	.comm	TYPE_LDST,4,4
	.comm	TYPE_FAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
