	.file	"extr_selftest_lrc.c_live_virtual_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	live_virtual_mask, @function
live_virtual_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_ENGINE_INSTANCE[rip]
	mov	rdi, rsp
	add	eax, 1
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	rdi, r13
	mov	rbx, rsp
	xor	r14d, r14d
	call	USES_GUC_SUBMISSION@PLT
	test	rax, rax
	je	.L26
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -32[rbp]
	mov	eax, r14d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L26:
	.cfi_restore_state
	mov	rdi, r13
	xor	r12d, r12d
	call	mutex_lock@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 8[r13]
	mov	eax, r12d
	mov	r8d, DWORD PTR MAX_ENGINE_INSTANCE[rip]
	mov	rsi, QWORD PTR [rdx+rax*8]
	xor	edx, edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	add	edx, 1
	mov	QWORD PTR [rbx+rax*8], rcx
	cmp	edx, r8d
	ja	.L7
.L8:
	mov	eax, edx
	mov	rcx, QWORD PTR [rsi+rax*8]
	test	rcx, rcx
	jne	.L28
.L7:
	cmp	edx, 1
	jbe	.L11
	mov	rsi, rbx
	mov	rdi, r13
	call	mask_virtual_engine@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L10
.L11:
	add	r12d, 1
	cmp	DWORD PTR MAX_ENGINE_CLASS[rip], r12d
	jnb	.L6
	xor	r14d, r14d
.L10:
	mov	rdi, r13
	call	mutex_unlock@PLT
	jmp	.L1
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	live_virtual_mask, .-live_virtual_mask
	.comm	MAX_ENGINE_INSTANCE,4,4
	.comm	MAX_ENGINE_CLASS,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_selftest_lrc.c_live_virtual_mask.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	live_virtual_mask, %function
live_virtual_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L23
	ldr	r6, .L23+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, [r6]
	mov	r5, r0
	lsl	r3, r3, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	USES_GUC_SUBMISSION
	subs	r7, r0, #0
	movne	r7, #0
	beq	.L19
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r10, sp
	mov	r0, r5
	bl	mutex_lock
	mov	r4, r7
	ldr	r9, .L23+8
	sub	r8, r10, #4
.L3:
	ldr	r3, [r5, #4]
	mov	r0, r8
	ldr	r1, [r3, r4, lsl #2]
	mov	r2, #0
	ldr	ip, [r6]
	sub	r1, r1, #4
	b	.L5
.L21:
	add	r2, r2, #1
	cmp	r2, ip
	str	r3, [r0, #4]!
	bhi	.L4
.L5:
	ldr	r3, [r1, #4]!
	cmp	r3, #0
	bne	.L21
.L4:
	cmp	r2, #1
	bls	.L8
	mov	r1, r10
	mov	r0, r5
	bl	mask_virtual_engine
	cmp	r0, #0
	bne	.L22
.L8:
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bcs	.L3
.L7:
	mov	r0, r5
	bl	mutex_unlock
	b	.L1
.L22:
	mov	r7, r0
	mov	r0, r5
	bl	mutex_unlock
	b	.L1
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	MAX_ENGINE_INSTANCE
	.word	MAX_ENGINE_CLASS
	.size	live_virtual_mask, .-live_virtual_mask
	.comm	MAX_ENGINE_INSTANCE,4,4
	.comm	MAX_ENGINE_CLASS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
