	.file	"extr_acl.c_map_name_2_sid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"map_name_2_sid: LookupAccountName for %s returned %d GetLastError %d name len %d domain len %d\n"
	.align 8
.LC1:
	.string	"map_name_2_sid: LookupAccountName for %s failed with %d\n"
	.text
	.p2align 4
	.type	map_name_2_sid, @function
map_name_2_sid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rdi
	xor	r8d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	lea	r14, 20[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	esi, ebp
	mov	r9, r14
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 32[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 28[rsp], 0
	lea	r15, 24[rsp]
	push	r15
	.cfi_def_cfa_offset 112
	call	LookupAccountName@PLT
	mov	r9d, DWORD PTR [r12]
	mov	ebx, DWORD PTR 36[rsp]
	mov	r13d, eax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], r9d
	call	GetLastError@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	ecx, r13d
	mov	edx, ebp
	mov	edi, DWORD PTR ACLLVL[rip]
	mov	r8d, eax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	mov	DWORD PTR [rsp], ebx
	call	dprintf@PLT
	pop	rcx
	.cfi_def_cfa_offset 104
	pop	rsi
	.cfi_def_cfa_offset 96
	test	r13d, r13d
	je	.L2
	mov	r13d, DWORD PTR ERROR_INTERNAL_ERROR[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	mov	r13d, eax
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	jne	.L1
	mov	edi, DWORD PTR [r12]
	call	malloc@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L14
	mov	edi, DWORD PTR 20[rsp]
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r8, rax
	mov	rcx, r12
	mov	r9, r14
	push	r15
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 24[rsp]
	mov	esi, ebp
	xor	edi, edi
	mov	rdx, QWORD PTR [rax]
	call	LookupAccountName@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	free@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	mov	r13d, DWORD PTR ERROR_SUCCESS[rip]
	pop	rdx
	.cfi_def_cfa_offset 96
	test	r12d, r12d
	jne	.L1
	xor	eax, eax
	call	GetLastError@PLT
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	mov	edx, eax
	call	eprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR WinNullSid[rip]
	mov	rdx, r12
	call	create_unknownsid@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
.L7:
	xor	eax, eax
	call	GetLastError@PLT
	mov	r13d, eax
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	call	GetLastError@PLT
	mov	r13d, eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	map_name_2_sid, .-map_name_2_sid
	.comm	WinNullSid,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_INTERNAL_ERROR,4,4
	.comm	ACLLVL,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_acl.c_map_name_2_sid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"map_name_2_sid: LookupAccountName for %s returned %"
	.ascii	"d GetLastError %d name len %d domain len %d\012\000"
	.align	2
.LC1:
	.ascii	"map_name_2_sid: LookupAccountName for %s failed wit"
	.ascii	"h %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	map_name_2_sid, %function
map_name_2_sid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r2
	mov	r2, #0
	sub	sp, sp, #36
	add	ip, sp, #20
	str	ip, [sp, #8]
	add	ip, sp, #24
	str	ip, [sp, #4]
	ldr	ip, .L16
	str	r2, [sp]
	mov	r3, r0
	mov	r4, r0
	mov	r8, r1
	mov	r0, r2
	mov	r1, r5
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	str	r2, [sp, #24]
	bl	LookupAccountName
	ldr	r3, .L16+4
	mov	r6, r0
	ldr	r7, [r3]
	bl	GetLastError
	mov	r2, r0
	ldr	r3, [r4]
	ldr	r1, [sp, #24]
	stm	sp, {r2, r3}
	str	r1, [sp, #8]
	mov	r0, r7
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L16+8
	bl	dprintf
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L16+12
	ldr	r7, [r3]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	bl	GetLastError
	cmp	r0, #128
	mov	r7, r0
	beq	.L4
	cmp	r0, #129
	bne	.L1
	ldr	r0, [r4]
	bl	malloc
	cmp	r0, #0
	mov	r9, r0
	str	r0, [r8]
	beq	.L14
	ldr	r0, [sp, #24]
	bl	malloc
	subs	r7, r0, #0
	beq	.L7
	add	r3, sp, #20
	str	r3, [sp, #8]
	add	r3, sp, #24
	mov	r2, r9
	mov	r1, r5
	str	r3, [sp, #4]
	mov	r0, r6
	mov	r3, r4
	str	r7, [sp]
	bl	LookupAccountName
	mov	r4, r0
	mov	r0, r7
	bl	free
	cmp	r4, #0
	beq	.L15
	ldr	r3, .L16+16
	ldr	r7, [r3]
	b	.L1
.L4:
	ldr	r3, .L16+20
	mov	r2, r4
	mov	r1, r8
	ldr	r0, [r3]
	bl	create_unknownsid
	subs	r7, r0, #0
	beq	.L1
.L7:
	bl	GetLastError
	mov	r7, r0
	ldr	r0, [r8]
	bl	free
	b	.L1
.L14:
	bl	GetLastError
	mov	r7, r0
	b	.L1
.L15:
	bl	GetLastError
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L16+24
	bl	eprintf
	b	.L7
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	ACLLVL
	.word	.LC0
	.word	ERROR_INTERNAL_ERROR
	.word	ERROR_SUCCESS
	.word	WinNullSid
	.word	.LC1
	.size	map_name_2_sid, .-map_name_2_sid
	.comm	WinNullSid,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_INTERNAL_ERROR,4,4
	.comm	ACLLVL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
