	.file	"extr_vmx.c_code_segment_valid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	code_segment_valid, @function
code_segment_valid:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 56
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR VCPU_SREG_CS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	vmx_get_segment@PLT
	xor	eax, eax
	cmp	QWORD PTR 24[rsp], 0
	jne	.L1
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR AR_TYPE_CODE_MASK[rip]
	or	edx, DWORD PTR AR_TYPE_ACCESSES_MASK[rip]
	mov	esi, ecx
	not	esi
	test	edx, esi
	jne	.L1
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR [rsp]
	and	eax, DWORD PTR SELECTOR_RPL_MASK[rip]
	mov	edx, eax
	mov	esi, DWORD PTR 8[rsp]
	mov	eax, ecx
	and	eax, DWORD PTR AR_TYPE_WRITEABLE_MASK[rip]
	jne	.L14
	cmp	edx, esi
	jne	.L1
.L4:
	mov	edx, DWORD PTR 12[rsp]
	xor	eax, eax
	test	edx, edx
	setne	al
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	eax, eax
	cmp	edx, esi
	jnb	.L4
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	code_segment_valid, .-code_segment_valid
	.comm	VCPU_SREG_CS,4,4
	.comm	SELECTOR_RPL_MASK,4,4
	.comm	AR_TYPE_WRITEABLE_MASK,4,4
	.comm	AR_TYPE_CODE_MASK,4,4
	.comm	AR_TYPE_ACCESSES_MASK,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_vmx.c_code_segment_valid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	code_segment_valid, %function
code_segment_valid:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L15
	sub	sp, sp, #36
	ldr	r2, [r3]
	ldr	r3, .L15+4
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	vmx_get_segment
	ldr	r0, [sp, #24]
	cmp	r0, #0
	movne	r0, #0
	bne	.L1
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp, #8]
	orr	r3, r3, r1
	bics	r3, r3, r2
	bne	.L1
	ldr	r0, [sp, #20]
	cmp	r0, #0
	beq	.L1
	ldr	r0, .L15+16
	ldr	r1, .L15+20
	ldr	r0, [r0]
	ldr	ip, [r1]
	ldr	r1, [sp, #4]
	ands	r0, r2, r0
	and	r1, r1, ip
	ldr	r2, [sp, #12]
	bne	.L13
	cmp	r1, r2
	bne	.L1
.L4:
	ldr	r0, [sp, #16]
	subs	r0, r0, #0
	movne	r0, #1
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #36
	@ sp needed
	ldr	pc, [sp], #4
.L13:
	cmp	r1, r2
	bcs	.L4
	mov	r0, r3
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	VCPU_SREG_CS
	.word	.LC0
	.word	AR_TYPE_ACCESSES_MASK
	.word	AR_TYPE_CODE_MASK
	.word	AR_TYPE_WRITEABLE_MASK
	.word	SELECTOR_RPL_MASK
	.size	code_segment_valid, .-code_segment_valid
	.comm	VCPU_SREG_CS,4,4
	.comm	SELECTOR_RPL_MASK,4,4
	.comm	AR_TYPE_WRITEABLE_MASK,4,4
	.comm	AR_TYPE_CODE_MASK,4,4
	.comm	AR_TYPE_ACCESSES_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
