	.file	"extr_win32security.c_pgwin32_is_admin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not get SID for Administrators group: error code %lu\n"
	.align 8
.LC1:
	.string	"could not get SID for PowerUsers group: error code %lu\n"
	.align 8
.LC2:
	.string	"could not check access token membership: error code %lu\n"
	.text
	.p2align 4
	.globl	pgwin32_is_admin
	.type	pgwin32_is_admin, @function
pgwin32_is_admin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, 2
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR DOMAIN_ALIAS_RID_ADMINS[rip]
	mov	edx, DWORD PTR SECURITY_BUILTIN_DOMAIN_RID[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SECURITY_NT_AUTHORITY[rip]
	lea	rbp, 20[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdi, rbp
	mov	DWORD PTR 28[rsp], eax
	lea	rax, 20[rsp]
	push	rax
	.cfi_def_cfa_offset 96
	push	0
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	AllocateAndInitializeSid@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	test	eax, eax
	je	.L13
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR DOMAIN_ALIAS_RID_POWER_USERS[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	lea	rax, 24[rsp]
	mov	edx, DWORD PTR SECURITY_BUILTIN_DOMAIN_RID[rip]
	mov	esi, 2
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 96
	push	0
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	AllocateAndInitializeSid@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	test	eax, eax
	je	.L14
.L3:
	mov	esi, DWORD PTR 12[rsp]
	xor	edi, edi
	lea	rdx, 24[rsp]
	call	CheckTokenMembership@PLT
	test	eax, eax
	je	.L6
	mov	esi, DWORD PTR 16[rsp]
	xor	edi, edi
	lea	rdx, 32[rsp]
	call	CheckTokenMembership@PLT
	test	eax, eax
	je	.L6
.L5:
	mov	edi, DWORD PTR 12[rsp]
	call	FreeSid@PLT
	mov	edi, DWORD PTR 16[rsp]
	call	FreeSid@PLT
	mov	rax, QWORD PTR 24[rsp]
	or	rax, QWORD PTR 32[rsp]
	setne	al
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	movzx	eax, al
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	lea	rdi, .LC2[rip]
	mov	ebp, eax
	call	_@PLT
	mov	esi, ebp
	mov	edi, eax
	call	log_error@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	call	GetLastError@PLT
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	_@PLT
	mov	esi, r12d
	mov	edi, eax
	call	log_error@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	call	GetLastError@PLT
	lea	rdi, .LC1[rip]
	mov	ebp, eax
	call	_@PLT
	mov	esi, ebp
	mov	edi, eax
	call	log_error@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pgwin32_is_admin, .-pgwin32_is_admin
	.comm	SECURITY_NT_AUTHORITY,4,4
	.comm	SECURITY_BUILTIN_DOMAIN_RID,4,4
	.comm	DOMAIN_ALIAS_RID_POWER_USERS,4,4
	.comm	DOMAIN_ALIAS_RID_ADMINS,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_win32security.c_pgwin32_is_admin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not get SID for Administrators group: error c"
	.ascii	"ode %lu\012\000"
	.align	2
.LC1:
	.ascii	"could not get SID for PowerUsers group: error code "
	.ascii	"%lu\012\000"
	.align	2
.LC2:
	.ascii	"could not check access token membership: error code"
	.ascii	" %lu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pgwin32_is_admin
	.syntax unified
	.arm
	.fpu softvfp
	.type	pgwin32_is_admin, %function
pgwin32_is_admin:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	r1, .L16
	sub	sp, sp, #60
	ldr	r2, .L16+4
	ldr	r4, .L16+8
	ldr	ip, [r1]
	ldr	lr, .L16+12
	str	r3, [sp, #20]
	str	r3, [sp, #16]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	str	r3, [sp]
	add	r1, sp, #32
	ldr	r3, [r2]
	add	r0, sp, #40
	ldr	r2, [r4]
	str	r1, [sp, #24]
	mov	r1, #2
	ldr	lr, [lr]
	str	lr, [sp, #52]
	mov	lr,#0
	str	ip, [sp, #40]
	bl	AllocateAndInitializeSid
	cmp	r0, #0
	beq	.L13
.L2:
	mov	r3, #0
	ldr	ip, .L16+16
	ldr	r2, [r4]
	add	r1, sp, #36
	str	r3, [sp, #20]
	str	r3, [sp, #16]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	str	r3, [sp]
	ldr	r3, [ip]
	add	r0, sp, #40
	str	r1, [sp, #24]
	mov	r1, #2
	bl	AllocateAndInitializeSid
	cmp	r0, #0
	beq	.L14
.L3:
	mov	r0, #0
	ldr	r1, [sp, #32]
	add	r2, sp, #44
	bl	CheckTokenMembership
	cmp	r0, #0
	beq	.L6
	mov	r0, #0
	ldr	r1, [sp, #36]
	add	r2, sp, #48
	bl	CheckTokenMembership
	cmp	r0, #0
	beq	.L6
.L5:
	ldr	r0, [sp, #32]
	bl	FreeSid
	ldr	r0, [sp, #36]
	bl	FreeSid
	ldr	r2, [sp, #44]
	ldr	r3, [sp, #48]
	orrs	r3, r2, r3
	ldr	r3, .L16+12
	movne	r0, #1
	moveq	r0, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r0, .L16+20
	bl	_
	mov	r4, r0
	bl	GetLastError
	mov	r1, r0
	mov	r0, r4
	bl	log_error
	mov	r0, #1
	bl	exit
	b	.L5
.L13:
	ldr	r0, .L16+24
	bl	_
	mov	r5, r0
	bl	GetLastError
	mov	r1, r0
	mov	r0, r5
	bl	log_error
	mov	r0, #1
	bl	exit
	b	.L2
.L14:
	ldr	r0, .L16+28
	bl	_
	mov	r4, r0
	bl	GetLastError
	mov	r1, r0
	mov	r0, r4
	bl	log_error
	mov	r0, #1
	bl	exit
	b	.L3
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	SECURITY_NT_AUTHORITY
	.word	DOMAIN_ALIAS_RID_ADMINS
	.word	SECURITY_BUILTIN_DOMAIN_RID
	.word	.LC3
	.word	DOMAIN_ALIAS_RID_POWER_USERS
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	pgwin32_is_admin, .-pgwin32_is_admin
	.comm	SECURITY_NT_AUTHORITY,4,4
	.comm	SECURITY_BUILTIN_DOMAIN_RID,4,4
	.comm	DOMAIN_ALIAS_RID_POWER_USERS,4,4
	.comm	DOMAIN_ALIAS_RID_ADMINS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
