	.file	"extr_context.c_ra_ctx_validate_context.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"help"
.LC1:
	.string	"GPU contexts (APIs):\n"
.LC2:
	.string	"    auto (autodetect)\n"
.LC3:
	.string	"    %s (%s)\n"
.LC4:
	.string	"auto"
	.text
	.p2align 4
	.globl	ra_ctx_validate_context
	.type	ra_ctx_validate_context, @function
ra_ctx_validate_context:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	mov	r12, rdi
	mov	edi, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	bstr_equals0@PLT
	test	rax, rax
	jne	.L14
	lea	rsi, .LC4[rip]
	mov	edi, ebp
	xor	ebx, ebx
	call	bstr_equals0@PLT
	test	rax, rax
	je	.L6
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR contexts[rip]
	mov	edi, ebp
	mov	rax, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	mov	rsi, QWORD PTR [rax]
	call	bstr_equals0@PLT
	test	rax, rax
	jne	.L7
.L6:
	mov	rdi, QWORD PTR contexts[rip]
	call	MP_ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR M_OPT_INVALID[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	xor	ebx, ebx
	call	mp_info@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	xor	eax, eax
	call	mp_info@PLT
	lea	rbp, .LC3[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR contexts[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	rax, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	mov	ecx, DWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rax]
	xor	eax, eax
	call	mp_info@PLT
.L3:
	mov	rdi, QWORD PTR contexts[rip]
	call	MP_ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L4
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR M_OPT_EXIT[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ra_ctx_validate_context, .-ra_ctx_validate_context
	.comm	contexts,8,8
	.comm	M_OPT_INVALID,4,4
	.comm	M_OPT_EXIT,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_context.c_ra_ctx_validate_context.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"help\000"
	.align	2
.LC1:
	.ascii	"GPU contexts (APIs):\012\000"
	.align	2
.LC2:
	.ascii	"    auto (autodetect)\012\000"
	.align	2
.LC3:
	.ascii	"    %s (%s)\012\000"
	.align	2
.LC4:
	.ascii	"auto\000"
	.text
	.align	2
	.global	ra_ctx_validate_context
	.syntax unified
	.arm
	.fpu softvfp
	.type	ra_ctx_validate_context, %function
ra_ctx_validate_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L13
	mov	r7, r0
	mov	r0, r3
	mov	r6, r3
	bl	bstr_equals0
	cmp	r0, #0
	bne	.L12
	mov	r0, r6
	ldr	r1, .L13+4
	bl	bstr_equals0
	subs	r4, r0, #0
	bne	.L7
	ldr	r5, .L13+8
	b	.L6
.L8:
	ldr	r3, [r5]
	mov	r0, r6
	ldr	r3, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r1, [r3]
	bl	bstr_equals0
	cmp	r0, #0
	bne	.L7
.L6:
	ldr	r0, [r5]
	bl	MP_ARRAY_SIZE
	cmp	r0, r4
	bgt	.L8
	ldr	r3, .L13+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r1, .L13+16
	mov	r0, r7
	bl	mp_info
	mov	r0, r7
	ldr	r1, .L13+20
	bl	mp_info
	mov	r4, #0
	ldr	r5, .L13+8
	ldr	r6, .L13+24
	b	.L3
.L4:
	ldr	r3, [r5]
	mov	r1, r6
	ldr	r2, [r3, r4, lsl #2]
	mov	r0, r7
	ldm	r2, {r2, r3}
	bl	mp_info
	add	r4, r4, #1
.L3:
	ldr	r0, [r5]
	bl	MP_ARRAY_SIZE
	cmp	r0, r4
	bgt	.L4
	ldr	r3, .L13+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC4
	.word	contexts
	.word	M_OPT_INVALID
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	M_OPT_EXIT
	.size	ra_ctx_validate_context, .-ra_ctx_validate_context
	.comm	contexts,4,4
	.comm	M_OPT_INVALID,4,4
	.comm	M_OPT_EXIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
