	.file	"extr_env.c_ValidateShim.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Expected a valid handle\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Expected pSdbTagRefToTagID to succeed\n"
	.align 8
.LC2:
	.string	"Expected pdb to be a valid pointer\n"
	.align 8
.LC3:
	.string	"Expected tagid to be a valid tag id, was: 0x%x\n"
	.align 8
.LC4:
	.string	"Expected tag to be 0x700b, was 0x%x\n"
	.text
	.p2align 4
	.type	ValidateShim, @function
ValidateShim:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 1056
	.cfi_def_cfa_offset 1088
	mov	edi, DWORD PTR SDB_DATABASE_MAIN_SHIM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	call	pSdbInitDatabase@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	rax, rax
	mov	rbp, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	test	rbp, rbp
	je	.L1
	xor	eax, eax
	lea	rdi, 16[rsp]
	mov	ecx, 128
	mov	QWORD PTR 8[rsp], 0
	rep stosq
	mov	rdi, r12
	mov	DWORD PTR 4[rsp], -559038737
	call	strlen@PLT
	mov	rsi, r12
	lea	rdi, 16[rsp]
	mov	edx, eax
	call	mbstowcs@PLT
	mov	esi, r13d
	mov	rdi, rbp
	lea	rcx, 4[rsp]
	lea	rdx, 8[rsp]
	call	pSdbTagRefToTagID@PLT
	xor	edi, edi
	cmp	QWORD PTR TRUE[rip], rax
	lea	rsi, .LC1[rip]
	mov	r12, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	test	r12, r12
	jne	.L13
.L3:
	mov	rdi, rbp
	call	pSdbReleaseDatabase@PLT
.L1:
	mov	rax, QWORD PTR 1048[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 1056
	.cfi_remember_state
	.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
.L13:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR 8[rsp], 0
	lea	rsi, .LC2[rip]
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 4[rsp]
	lea	rsi, .LC3[rip]
	test	edx, edx
	setne	al
	xor	edi, edi
	cmp	edx, -559038737
	setne	dil
	and	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	pSdbGetTagFromTagID@PLT
	xor	edi, edi
	lea	rsi, .LC4[rip]
	cmp	eax, 28683
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ValidateShim, .-ValidateShim
	.comm	TRUE,8,8
	.comm	SDB_DATABASE_MAIN_SHIM,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_env.c_ValidateShim.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected a valid handle\012\000"
	.align	2
.LC1:
	.ascii	"Expected pSdbTagRefToTagID to succeed\012\000"
	.align	2
.LC2:
	.ascii	"Expected pdb to be a valid pointer\012\000"
	.align	2
.LC3:
	.ascii	"Expected tagid to be a valid tag id, was: 0x%x\012\000"
	.align	2
.LC4:
	.ascii	"Expected tag to be 0x700b, was 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ValidateShim, %function
ValidateShim:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L15
	ldr	r3, .L15+4
	sub	sp, sp, #1040
	sub	sp, sp, #4
	mov	r6, r0
	mov	r5, r1
	ldr	r0, [r2]
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #1036]
	mov	r3,#0
	bl	pSdbInitDatabase
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L15+8
	bl	ok
	cmp	r4, #0
	beq	.L1
	mov	r1, #0
	ldr	r7, .L15+12
	mov	r2, #1024
	add	r0, sp, #12
	stmib	sp, {r1, r7}
	bl	memset
	mov	r0, r5
	bl	strlen
	mov	r1, r5
	mov	r2, r0
	add	r0, sp, #12
	bl	mbstowcs
	mov	r1, r6
	add	r3, sp, #8
	add	r2, sp, #4
	mov	r0, r4
	bl	pSdbTagRefToTagID
	mov	r5, r0
	ldr	r3, .L15+16
	ldr	r1, .L15+20
	ldr	r0, [r3]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	cmp	r5, #0
	bne	.L13
.L3:
	mov	r0, r4
	bl	pSdbReleaseDatabase
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #1036]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #1040
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	ldr	r0, [sp, #4]
	ldr	r1, .L15+24
	subs	r0, r0, #0
	movne	r0, #1
	bl	ok
	ldr	r2, [sp, #8]
	ldr	r1, .L15+28
	subs	r0, r2, r7
	movne	r0, #1
	cmp	r2, #0
	moveq	r0, #0
	bl	ok
	ldmib	sp, {r0, r1}
	bl	pSdbGetTagFromTagID
	mov	r2, r0
	ldr	r0, .L15+32
	ldr	r1, .L15+36
	sub	r0, r2, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	b	.L3
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	SDB_DATABASE_MAIN_SHIM
	.word	.LC5
	.word	.LC0
	.word	-559038737
	.word	TRUE
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	28683
	.word	.LC4
	.size	ValidateShim, .-ValidateShim
	.comm	TRUE,4,4
	.comm	SDB_DATABASE_MAIN_SHIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
