	.file	"extr_lookup.c_LsapLookupBuiltinNames.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SamrConnect failed (Status %08lx)\n"
	.align 8
.LC1:
	.string	"SamOpenDomain failed (Status %08lx)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Mapping name: %wZ\\%wZ\n"
	.text
	.p2align 4
	.type	LsapLookupBuiltinNames, @function
LsapLookupBuiltinNames:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	xor	edi, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, DWORD PTR SAM_SERVER_CONNECT[rip]
	mov	DWORD PTR 28[rsp], ecx
	or	edx, DWORD PTR SAM_SERVER_LOOKUP_DOMAIN[rip]
	mov	QWORD PTR 32[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	lea	rax, 56[rsp]
	movaps	XMMWORD PTR 80[rsp], xmm0
	mov	rsi, rax
	mov	QWORD PTR 40[rsp], rax
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 64[rsp], 0
	mov	QWORD PTR 96[rsp], 0
	mov	QWORD PTR 128[rsp], 0
	movaps	XMMWORD PTR 112[rsp], xmm0
	call	SamrConnect@PLT
	mov	edi, eax
	mov	r12d, eax
	call	NT_SUCCESS@PLT
	test	rax, rax
	je	.L28
	mov	rdi, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR BuiltinDomainSid[rip]
	lea	rcx, 64[rsp]
	mov	esi, DWORD PTR DOMAIN_LOOKUP[rip]
	call	SamrOpenDomain@PLT
	mov	edi, eax
	mov	r12d, eax
	call	NT_SUCCESS@PLT
	test	rax, rax
	je	.L4
	lea	rax, 112[rsp]
	xor	ebx, ebx
	mov	QWORD PTR [rsp], rax
	test	r13, r13
	je	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r14, rbx
	mov	rax, QWORD PTR SidTypeUnknown[rip]
	sal	r14, 5
	cmp	QWORD PTR 0[rbp+r14], rax
	jne	.L6
	cmp	QWORD PTR [r15], 0
	je	.L6
	mov	edx, DWORD PTR TRUE[rip]
	lea	rsi, BuiltinDomainName[rip]
	mov	edi, r15d
	call	RtlEqualUnicodeString@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, r15
	lea	rdi, .LC2[rip]
	lea	r12, [rax+rbx*8]
	xor	eax, eax
	mov	rdx, r12
	call	TRACE@PLT
	lea	r9, 80[rsp]
	mov	r8, QWORD PTR [rsp]
	mov	rdx, r12
	mov	rdi, QWORD PTR 64[rsp]
	mov	rcx, r9
	mov	esi, 1
	mov	QWORD PTR 8[rsp], r9
	call	SamrLookupNamesInDomain@PLT
	mov	edi, eax
	mov	r12d, eax
	call	NT_SUCCESS@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 112[rsp]
	mov	edi, DWORD PTR BuiltinDomainSid[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 0[rbp+r14], rax
	mov	rax, QWORD PTR 80[rsp]
	mov	rsi, QWORD PTR [rax]
	call	CreateSidFromSidAndRid@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	rax, rax
	mov	QWORD PTR 24[rbp+r14], rax
	je	.L29
	mov	edi, DWORD PTR 28[rsp]
	lea	rcx, 72[rsp]
	mov	QWORD PTR 8[rsp], r9
	lea	rsi, BuiltinDomainName[rip]
	mov	DWORD PTR 8[rbp+r14], -1
	mov	edx, DWORD PTR BuiltinDomainSid[rip]
	mov	QWORD PTR 16[rbp+r14], 0
	call	LsapAddDomainToDomainsList@PLT
	mov	edi, eax
	mov	r12d, eax
	call	NT_SUCCESS@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 72[rsp]
	mov	r9, QWORD PTR 8[rsp]
	mov	DWORD PTR 8[rbp+r14], eax
	mov	rax, QWORD PTR 32[rsp]
	add	DWORD PTR [rax], 1
.L7:
	mov	rdi, r9
	call	SamIFree_SAMPR_ULONG_ARRAY@PLT
	mov	rdi, QWORD PTR [rsp]
	call	SamIFree_SAMPR_ULONG_ARRAY@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbx, 1
	add	r15, 8
	cmp	r13, rbx
	jne	.L9
.L3:
	cmp	QWORD PTR 64[rsp], 0
	je	.L10
	lea	rdi, 64[rsp]
	call	SamrCloseHandle@PLT
.L10:
	cmp	QWORD PTR 56[rsp], 0
	je	.L1
	mov	rdi, QWORD PTR 40[rsp]
	call	SamrCloseHandle@PLT
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L28:
	.cfi_restore_state
	movsx	rsi, r12d
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	rsi, r12d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	TRACE@PLT
	jmp	.L3
.L29:
	mov	r12d, DWORD PTR STATUS_INSUFFICIENT_RESOURCES[rip]
	jmp	.L3
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	LsapLookupBuiltinNames, .-LsapLookupBuiltinNames
	.comm	TRUE,4,4
	.comm	SidTypeUnknown,8,8
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INSUFFICIENT_RESOURCES,4,4
	.comm	SAM_SERVER_LOOKUP_DOMAIN,4,4
	.comm	SAM_SERVER_CONNECT,4,4
	.comm	DOMAIN_LOOKUP,4,4
	.comm	BuiltinDomainSid,4,4
	.comm	BuiltinDomainName,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_lookup.c_LsapLookupBuiltinNames.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SamrConnect failed (Status %08lx)\012\000"
	.align	2
.LC1:
	.ascii	"SamOpenDomain failed (Status %08lx)\012\000"
	.align	2
.LC2:
	.ascii	"Mapping name: %wZ\\%wZ\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LsapLookupBuiltinNames, %function
LsapLookupBuiltinNames:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	sub	sp, sp, #68
	mov	r6, r1
	ldr	r2, .L38
	ldr	r1, .L38+4
	str	r3, [sp, #16]
	ldr	r3, .L38+8
	ldr	r1, [r1]
	str	ip, [sp, #12]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r3, [sp, #108]
	orr	r2, r1, r2
	mov	r7, r0
	add	r1, sp, #24
	mov	r0, r4
	str	r3, [sp, #20]
	ldr	r5, [sp, #104]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	str	r4, [sp, #36]
	str	r4, [sp, #48]
	str	r4, [sp, #40]
	str	r4, [sp, #44]
	str	r4, [sp, #52]
	str	r4, [sp, #56]
	bl	SamrConnect
	mov	r8, r0
	bl	NT_SUCCESS
	cmp	r0, r4
	beq	.L35
	ldr	r3, .L38+12
	ldr	r2, .L38+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	add	r3, sp, #28
	ldr	r0, [sp, #24]
	bl	SamrOpenDomain
	mov	r8, r0
	bl	NT_SUCCESS
	cmp	r0, #0
	beq	.L4
	cmp	r7, #0
	beq	.L3
	ldr	r9, .L38+20
	ldr	fp, .L38+24
	ldr	r10, .L38+28
.L9:
	ldr	r2, [r5]
	ldr	r3, [r9]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L6
	mov	r1, r10
	mov	r0, r6
	ldr	r2, [fp]
	bl	RtlEqualUnicodeString
	cmp	r0, #0
	beq	.L6
	ldr	r3, [sp, #12]
	mov	r1, r6
	add	r8, r3, r4, lsl #2
	mov	r2, r8
	ldr	r0, .L38+32
	bl	TRACE
	add	r3, sp, #48
	mov	r2, r8
	mov	r1, #1
	str	r3, [sp]
	ldr	r0, [sp, #28]
	add	r3, sp, #36
	bl	SamrLookupNamesInDomain
	mov	r8, r0
	bl	NT_SUCCESS
	cmp	r0, #0
	beq	.L7
	ldr	r2, [sp, #48]
	ldr	r1, .L38+16
	ldr	r2, [r2]
	ldr	r3, [sp, #36]
	ldr	r0, [r1]
	str	r2, [r5]
	ldr	r1, [r3]
	bl	CreateSidFromSidAndRid
	cmp	r0, #0
	str	r0, [r5, #12]
	beq	.L36
	mvn	r2, #0
	mov	r3, #0
	str	r2, [r5, #4]
	ldr	r2, .L38+16
	mov	r1, r10
	ldr	r2, [r2]
	ldr	r0, [sp, #16]
	str	r3, [r5, #8]
	add	r3, sp, #32
	bl	LsapAddDomainToDomainsList
	mov	r8, r0
	bl	NT_SUCCESS
	cmp	r0, #0
	beq	.L3
	ldr	r3, [sp, #32]
	ldr	r2, [sp, #20]
	str	r3, [r5, #4]
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L7:
	add	r0, sp, #36
	bl	SamIFree_SAMPR_ULONG_ARRAY
	add	r0, sp, #48
	bl	SamIFree_SAMPR_ULONG_ARRAY
.L6:
	add	r4, r4, #1
	cmp	r7, r4
	add	r5, r5, #16
	add	r6, r6, #4
	bne	.L9
.L3:
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L10
	add	r0, sp, #28
	bl	SamrCloseHandle
.L10:
	ldr	r3, [sp, #24]
	cmp	r3, #0
	beq	.L1
	add	r0, sp, #24
	bl	SamrCloseHandle
.L1:
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r8
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	mov	r1, r8
	ldr	r0, .L38+36
	bl	TRACE
	b	.L3
.L4:
	mov	r1, r8
	ldr	r0, .L38+40
	bl	TRACE
	b	.L3
.L36:
	ldr	r3, .L38+44
	ldr	r8, [r3]
	b	.L3
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	SAM_SERVER_LOOKUP_DOMAIN
	.word	SAM_SERVER_CONNECT
	.word	.LC3
	.word	DOMAIN_LOOKUP
	.word	BuiltinDomainSid
	.word	SidTypeUnknown
	.word	TRUE
	.word	BuiltinDomainName
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	STATUS_INSUFFICIENT_RESOURCES
	.size	LsapLookupBuiltinNames, .-LsapLookupBuiltinNames
	.comm	TRUE,4,4
	.comm	SidTypeUnknown,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INSUFFICIENT_RESOURCES,4,4
	.comm	SAM_SERVER_LOOKUP_DOMAIN,4,4
	.comm	SAM_SERVER_CONNECT,4,4
	.comm	DOMAIN_LOOKUP,4,4
	.comm	BuiltinDomainSid,4,4
	.comm	BuiltinDomainName,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
