	.file	"extr_vmm_instruction_emul.c_emulate_and.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	emulate_and, @function
emulate_and:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r11, r9
	mov	r10, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14d, DWORD PTR [rcx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 20[rcx]
	mov	r9, QWORD PTR 112[rsp]
	mov	edx, eax
	and	edx, -3
	cmp	edx, 129
	je	.L2
	cmp	eax, 35
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
.L4:
	test	eax, eax
	jne	.L1
.L10:
	mov	edx, DWORD PTR VM_REG_GUEST_RFLAGS[rip]
	lea	rcx, 28[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	call	vie_read_register@PLT
	test	eax, eax
	jne	.L1
	xor	edx, edx
	mov	esi, r15d
	mov	edi, r14d
	call	getcc@PLT
	mov	ecx, DWORD PTR PSL_PF[rip]
	mov	esi, r12d
	mov	rdi, rbp
	or	ecx, DWORD PTR PSL_Z[rip]
	or	ecx, DWORD PTR PSL_N[rip]
	mov	r8d, 8
	and	ecx, eax
	mov	eax, DWORD PTR RFLAGS_STATUS_BITS[rip]
	mov	edx, DWORD PTR VM_REG_GUEST_RFLAGS[rip]
	not	eax
	and	eax, DWORD PTR 28[rsp]
	or	ecx, eax
	mov	DWORD PTR 28[rsp], ecx
	call	vie_update_register@PLT
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rcx]
	mov	rax, QWORD PTR gpr_map[rip]
	lea	rcx, 32[rsp]
	mov	QWORD PTR [rsp], r8
	mov	QWORD PTR 8[rsp], r9
	mov	ebx, DWORD PTR [rax+rdx*4]
	mov	edx, ebx
	call	vie_read_register@PLT
	test	eax, eax
	jne	.L1
	mov	r9, QWORD PTR 8[rsp]
	mov	r10, QWORD PTR [rsp]
	mov	r8d, r14d
	mov	edx, r13d
	lea	rcx, 36[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	call	r10
	test	eax, eax
	jne	.L1
	mov	r15d, DWORD PTR 32[rsp]
	and	r15d, DWORD PTR 36[rsp]
	mov	r8d, r14d
	mov	edx, ebx
	mov	ecx, r15d
	mov	esi, r12d
	mov	rdi, rbp
	call	vie_update_register@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	QWORD PTR 8[rsp], r11
	lea	rcx, 32[rsp]
	mov	r8d, r14d
	mov	edx, r13d
	mov	QWORD PTR [rsp], r9
	call	r10
	test	eax, eax
	jne	.L1
	mov	r15d, DWORD PTR 16[rbx]
	and	r15d, DWORD PTR 32[rsp]
	mov	r8d, r14d
	mov	edx, r13d
	mov	r9, QWORD PTR [rsp]
	mov	r11, QWORD PTR 8[rsp]
	mov	ecx, r15d
	mov	esi, r12d
	mov	rdi, rbp
	call	r11
	test	eax, eax
	je	.L10
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	emulate_and, .-emulate_and
	.comm	gpr_map,8,8
	.comm	VM_REG_GUEST_RFLAGS,4,4
	.comm	RFLAGS_STATUS_BITS,4,4
	.comm	PSL_Z,4,4
	.comm	PSL_PF,4,4
	.comm	PSL_N,4,4
	.comm	EINVAL,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_vmm_instruction_emul.c_emulate_and.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emulate_and, %function
emulate_and:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	ldr	ip, .L11
	ldr	r3, [r3, #12]
	sub	sp, sp, #36
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bic	ip, r3, #2
	cmp	ip, #129
	mov	r5, r0
	mov	r6, r1
	mov	r7, r2
	ldr	r8, [r4]
	ldr	r10, [sp, #72]
	ldr	fp, [sp, #76]
	ldr	r9, [sp, #80]
	beq	.L2
	cmp	r3, #35
	beq	.L3
	ldr	r3, .L11+4
	ldr	r0, [r3]
.L4:
	cmp	r0, #0
	bne	.L1
.L10:
	ldr	r4, .L11+8
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r4]
	add	r3, sp, #16
	bl	vie_read_register
	cmp	r0, #0
	bne	.L1
	mov	r2, r0
	ldr	r1, [sp, #12]
	mov	r0, r8
	bl	getcc
	mov	ip, #8
	ldr	r2, .L11+12
	ldr	r3, .L11+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L11+20
	orr	r3, r3, r1
	ldr	r1, [r2]
	ldr	r2, .L11+24
	orr	r3, r3, r1
	and	r3, r3, r0
	ldr	r1, [r2]
	ldr	r0, [sp, #16]
	ldr	r2, [r4]
	bic	r0, r0, r1
	orr	r3, r3, r0
	mov	r1, r6
	mov	r0, r5
	str	ip, [sp]
	str	r3, [sp, #16]
	bl	vie_update_register
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L11+28
	ldr	ip, [r4, #4]
	ldr	r2, [r3]
	add	r3, sp, #20
	ldr	r4, [r2, ip, lsl #2]
	mov	r2, r4
	bl	vie_read_register
	cmp	r0, #0
	bne	.L1
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	stm	sp, {r8, r9}
	add	r3, sp, #24
	blx	r10
	cmp	r0, #0
	bne	.L1
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #24]
	mov	r1, r6
	and	r3, r2, r3
	mov	r0, r5
	mov	r2, r4
	str	r8, [sp]
	str	r3, [sp, #12]
	bl	vie_update_register
	b	.L4
.L2:
	stm	sp, {r8, r9}
	add	r3, sp, #20
	blx	r10
	cmp	r0, #0
	bne	.L1
	ldr	r2, [r4, #8]
	ldr	r3, [sp, #20]
	mov	r1, r6
	and	r3, r2, r3
	mov	r0, r5
	mov	r2, r7
	str	r9, [sp, #4]
	str	r3, [sp, #12]
	str	r8, [sp]
	blx	fp
	cmp	r0, #0
	beq	.L10
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	EINVAL
	.word	VM_REG_GUEST_RFLAGS
	.word	PSL_Z
	.word	PSL_PF
	.word	PSL_N
	.word	RFLAGS_STATUS_BITS
	.word	gpr_map
	.size	emulate_and, .-emulate_and
	.comm	gpr_map,4,4
	.comm	VM_REG_GUEST_RFLAGS,4,4
	.comm	RFLAGS_STATUS_BITS,4,4
	.comm	PSL_Z,4,4
	.comm	PSL_PF,4,4
	.comm	PSL_N,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
