	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_circularity
_check_circularity:                     ## @check_circularity
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_check_acl
	movq	(%r13), %rax
	movq	_ACL_ID_PUBLIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	cmpl	%r14d, 8(%r13)
	jne	LBB0_1
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ACL_NUM
	movl	%eax, %edi
	callq	_allocacl
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ACL_SIZE
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_ACL_NUM
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_ACL_DAT
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.2:
	movq	%rax, %r15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r14d, %ebx
	movq	_ACL_NO_RIGHTS@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$16, %r15
	decq	%rbx
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdi
	cmpq	(%r13), %rdi
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r15), %esi
	callq	_ACLITEM_GET_GOPTIONS
	cmpq	(%r14), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ACL_MODECHG_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DROP_CASCADE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_aclupdate
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_pfree
	movq	%rbx, %rdi
	callq	_ACL_NUM
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ACL_DAT
	movq	%rax, %r15
	movq	%rbx, %r12
	testl	%r14d, %r14d
	jg	LBB0_3
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rbx
LBB0_9:
	movq	%rbx, %r14
	movl	8(%r13), %ebx
	movq	(%r13), %rdi
	movl	%ebx, %esi
	callq	_ACLITEM_GET_GOPTIONS
	movq	%rax, %rdi
	callq	_ACL_GRANT_OPTION_FOR
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_aclmask
	movq	%rax, %rdi
	callq	_ACL_OPTION_TO_PRIVS
	movq	%rax, %rbx
	movq	(%r13), %rdi
	movl	8(%r13), %esi
	callq	_ACLITEM_GET_GOPTIONS
	notq	%rbx
	testq	%rbx, %rax
	movq	%r14, %rbx
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_GRANT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_ID_PUBLIC,8,3              ## @ACL_ID_PUBLIC
	.comm	_ACL_NO_RIGHTS,8,3              ## @ACL_NO_RIGHTS
	.comm	_ACL_MODECHG_DEL,4,2            ## @ACL_MODECHG_DEL
	.comm	_DROP_CASCADE,4,2               ## @DROP_CASCADE
	.comm	_ACLMASK_ALL,4,2                ## @ACLMASK_ALL
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_GRANT_OPERATION,4,2 ## @ERRCODE_INVALID_GRANT_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"grant options cannot be granted back to your own grantor"

	.no_dead_strip	_check_circularity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_circularity
_check_circularity:                     ; @check_circularity
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_check_acl
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ACL_ID_PUBLIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACL_ID_PUBLIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x21
	bl	_ACL_NUM
	bl	_allocacl
	mov	x22, x0
	mov	x0, x21
	bl	_ACL_SIZE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_memcpy
	mov	x0, x22
	bl	_ACL_NUM
	mov	x24, x0
	mov	x0, x22
	bl	_ACL_DAT
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x23, x0
Lloh3:
	adrp	x25, _ACL_NO_RIGHTS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ACL_NO_RIGHTS@GOTPAGEOFF]
Lloh5:
	adrp	x26, _ACL_MODECHG_DEL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ACL_MODECHG_DEL@GOTPAGEOFF]
Lloh7:
	adrp	x27, _DROP_CASCADE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DROP_CASCADE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	w21, w24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #16
	subs	x21, x21, #1
	b.eq	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [x23, #8]
	bl	_ACLITEM_GET_GOPTIONS
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x26]
	ldr	w4, [x27]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	bl	_aclupdate
	mov	x21, x0
	mov	x0, x22
	bl	_pfree
	mov	x0, x21
	bl	_ACL_NUM
	mov	x24, x0
	mov	x0, x21
	bl	_ACL_DAT
	mov	x23, x0
	mov	x22, x21
	cmp	w24, #0
	b.gt	LBB0_4
	b	LBB0_10
LBB0_9:
	mov	x21, x22
LBB0_10:
	ldr	w22, [x19, #8]
	ldp	x0, x1, [x19]
	bl	_ACLITEM_GET_GOPTIONS
	bl	_ACL_GRANT_OPTION_FOR
	mov	x3, x0
Lloh9:
	adrp	x8, _ACLMASK_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACLMASK_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_aclmask
	bl	_ACL_OPTION_TO_PRIVS
	mov	x20, x0
	ldp	x0, x1, [x19]
	bl	_ACLITEM_GET_GOPTIONS
	bics	xzr, x0, x20
	b.eq	LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INVALID_GRANT_OPERATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INVALID_GRANT_OPERATION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_ID_PUBLIC,8,3              ; @ACL_ID_PUBLIC
	.comm	_ACL_NO_RIGHTS,8,3              ; @ACL_NO_RIGHTS
	.comm	_ACL_MODECHG_DEL,4,2            ; @ACL_MODECHG_DEL
	.comm	_DROP_CASCADE,4,2               ; @DROP_CASCADE
	.comm	_ACLMASK_ALL,4,2                ; @ACLMASK_ALL
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_GRANT_OPERATION,4,2 ; @ERRCODE_INVALID_GRANT_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"grant options cannot be granted back to your own grantor"

	.no_dead_strip	_check_circularity
.subsections_via_symbols
