	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_compute_avd            ## -- Begin function sepgsql_compute_avd
	.p2align	4, 0x90
_sepgsql_compute_avd:                   ## @sepgsql_compute_avd
	.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	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_security_deny_unknown
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SEPG_CLASS_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r12, (%rax)
	seta	%dil
	callq	_Assert
	movq	_selinux_catalog@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	leaq	(,%r12,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	xorl	%edi, %edi
	cmpq	%r12, (%rax,%rbx)
	sete	%dil
	callq	_Assert
	movq	(%r14), %rax
	movq	8(%rax,%rbx), %rbx
	movq	%rbx, %rdi
	callq	_string_to_security_class
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-88(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_security_compute_av_flags_raw
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_selinux_catalog@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r12,%r12,2), %r12
	movq	16(%rax,%r12,8), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	orl	%r14d, 8(%r13)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_selinux_catalog@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax,%r12,8), %rax
	movq	16(%rax,%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rbx), %r14d
	movq	%r15, %rdi
	callq	_string_to_av_perm
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, -88(%rbp)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	orl	%r14d, (%r13)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, -84(%rbp)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	orl	%r14d, 4(%r13)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, -80(%rbp)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	orl	%r14d, (%r13)
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	callq	_security_deny_unknown
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setle	%cl
	negl	%ecx
	movl	%ecx, (%r13)
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	%rax, 4(%r13)
	movq	$0, 16(%r13)
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEPG_CLASS_MAX,8,3             ## @SEPG_CLASS_MAX
	.comm	_selinux_catalog,8,3            ## @selinux_catalog
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ## @ERRCODE_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELinux could not compute av_decision: scontext=%s tcontext=%s tclass=%s: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_compute_avd            ; -- Begin function sepgsql_compute_avd
	.p2align	2
_sepgsql_compute_avd:                   ; @sepgsql_compute_avd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	bl	_security_deny_unknown
	mov	x21, x0
Lloh0:
	adrp	x8, _SEPG_CLASS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEPG_CLASS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, hi
	bl	_Assert
Lloh3:
	adrp	x27, _selinux_catalog@GOTPAGE
Lloh4:
	ldr	x27, [x27, _selinux_catalog@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x9, x20, x20, lsl #1
	lsl	x22, x9, #3
	ldr	x8, [x8, x22]
	cmp	x8, x20
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x27]
	add	x8, x8, x22
	ldr	x25, [x8, #8]
	mov	x0, x25
	bl	_string_to_security_class
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	add	x4, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	bl	_security_compute_av_flags_raw
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
Lloh8:
	adrp	x8, _ERRCODE_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_3:
	mov	w23, #24
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x27]
	madd	x8, x20, x23, x8
	ldr	x8, [x8, #16]
	ldr	x1, [x8]
	cbz	x1, LBB0_16
; %bb.4:
	mov	x23, #0
	mov	w24, #24
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	w21, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #8]
	orr	w8, w8, w25
	str	w8, [x19, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x27]
	madd	x8, x20, x24, x8
	ldr	x8, [x8, #16]
	add	x9, x8, x23
	ldr	x1, [x9, #16]
	add	x23, x23, #16
	cbz	x1, LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23
	ldr	w25, [x8, #8]
	mov	x0, x22
	bl	_string_to_av_perm
	cbz	w0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	orr	w8, w8, w25
	str	w8, [x19]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #12]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #4]
	orr	w8, w8, w25
	str	w8, [x19, #4]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #16]
	tst	w8, w0
	b.ne	LBB0_6
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	orr	w8, w8, w25
	str	w8, [x19]
	b	LBB0_6
LBB0_15:
	bl	_security_deny_unknown
	cmp	w0, #1
	csetm	w8, lt
	str	w8, [x19]
	movi	d0, #0xffffffff00000000
	stur	d0, [x19, #4]
	str	xzr, [x19, #16]
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SEPG_CLASS_MAX,8,3             ; @SEPG_CLASS_MAX
	.comm	_selinux_catalog,8,3            ; @selinux_catalog
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ; @ERRCODE_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELinux could not compute av_decision: scontext=%s tcontext=%s tclass=%s: %m"

.subsections_via_symbols
