	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IsAuthorizedUser               ## -- Begin function IsAuthorizedUser
	.p2align	4, 0x90
_IsAuthorizedUser:                      ## @IsAuthorizedUser
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	%ebx, -56(%rbp)
	subq	$8, %rsp
	leaq	-84(%rbp), %rax
	leaq	-56(%rbp), %rcx
	xorl	%edi, %edi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r8
	movq	%rcx, %r9
	pushq	%rax
	callq	_LookupAccountSidW
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_TEXT
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_MsgToEventLog
	movb	$0, (%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
LBB0_2:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	__countof
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_GetBuiltinAdminGroupName
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_TEXT
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_MsgToEventLog
	movq	_SYSTEM_ADMIN_GROUP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_4:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_GetTokenGroups
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_IsUserInGroup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_IsUserInGroup
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_TEXT
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_MsgToEventLog
LBB0_8:
	movl	%r12d, %edi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NAME,4,2                   ## @MAX_NAME
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LookupAccountSid"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get the name of Administrators group. Using the default."

	.comm	_SYSTEM_ADMIN_GROUP,8,3         ## @SYSTEM_ADMIN_GROUP
	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Authorizing user '%s@%s' by virtue of membership in group '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IsAuthorizedUser               ; -- Begin function IsAuthorizedUser
	.p2align	2
_IsAuthorizedUser:                      ; @IsAuthorizedUser
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x12
	mov	sp, x24
	stur	w8, [x29, #-76]
	sub	x3, x29, #76
	sub	x5, x29, #76
	sub	x6, x29, #80
	mov	x0, #0
	mov	x1, x22
	mov	x2, x19
	mov	x4, x21
	bl	_LookupAccountSidW
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	mov	x0, x25
	bl	_MsgToEventLog
	strb	wzr, [x19]
	strb	wzr, [x21]
LBB0_2:
	mov	x0, x24
	bl	__countof
	mov	x1, x0
	mov	x0, x24
	bl	_GetBuiltinAdminGroupName
	cbnz	x0, LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	mov	x0, x24
	bl	_MsgToEventLog
Lloh22:
	adrp	x8, _SYSTEM_ADMIN_GROUP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SYSTEM_ADMIN_GROUP@GOTPAGEOFF]
Lloh24:
	ldr	x24, [x8]
LBB0_4:
	mov	x0, x23
	bl	_GetTokenGroups
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_IsUserInGroup
	mov	x25, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_IsUserInGroup
	mov	x25, x0
	mov	x24, x20
	cbz	w0, LBB0_7
LBB0_6:
Lloh25:
	adrp	x8, _M_INFO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	sub	sp, sp, #32
	stp	x21, x24, [sp, #8]
	str	x19, [sp]
	mov	x0, x20
	bl	_MsgToEventLog
	add	sp, sp, #32
LBB0_7:
	mov	x0, x23
	bl	_free
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x25
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NAME,4,2                   ; @MAX_NAME
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LookupAccountSid"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get the name of Administrators group. Using the default."

	.comm	_SYSTEM_ADMIN_GROUP,8,3         ; @SYSTEM_ADMIN_GROUP
	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Authorizing user '%s@%s' by virtue of membership in group '%s'"

.subsections_via_symbols
