	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_role_aclcheck
_pg_role_aclcheck:                      ## @pg_role_aclcheck
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_ACL_CREATE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ACL_GRANT_OPTION_FOR
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_is_admin_of_role
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	testl	%ebx, (%r12)
	je	LBB0_6
## %bb.4:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_is_member_of_role
	testq	%rax, %rax
	jne	LBB0_2
LBB0_6:
	movq	_ACL_USAGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.7:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_has_privs_of_role
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ACLCHECK_NO_PRIV@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_CREATE,4,2                 ## @ACL_CREATE
	.comm	_ACLCHECK_OK,4,2                ## @ACLCHECK_OK
	.comm	_ACL_USAGE,4,2                  ## @ACL_USAGE
	.comm	_ACLCHECK_NO_PRIV,4,2           ## @ACLCHECK_NO_PRIV
	.no_dead_strip	_pg_role_aclcheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_role_aclcheck
_pg_role_aclcheck:                      ; @pg_role_aclcheck
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _ACL_CREATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ACL_CREATE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ACL_GRANT_OPTION_FOR
	tst	w0, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_is_admin_of_role
	cbnz	x0, LBB0_6
LBB0_2:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_is_member_of_role
	cbnz	x0, LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ACL_USAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACL_USAGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_has_privs_of_role
	cbz	x0, LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ACLCHECK_NO_PRIV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACLCHECK_NO_PRIV@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_CREATE,4,2                 ; @ACL_CREATE
	.comm	_ACLCHECK_OK,4,2                ; @ACLCHECK_OK
	.comm	_ACL_USAGE,4,2                  ; @ACL_USAGE
	.comm	_ACLCHECK_NO_PRIV,4,2           ; @ACLCHECK_NO_PRIV
	.no_dead_strip	_pg_role_aclcheck
.subsections_via_symbols
