	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sepgsql_needs_fmgr_hook
_sepgsql_needs_fmgr_hook:               ## @sepgsql_needs_fmgr_hook
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_next_needs_fmgr_hook
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_sepgsql_avc_trusted_proc
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_ProcedureRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	%ebx, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_SEPG_CLASS_DB_PROCEDURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEPG_DB_PROCEDURE__EXECUTE@GOTPCREL(%rip), %rax
	movq	_SEPG_DB_PROCEDURE__ENTRYPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SEPGSQL_AVC_NOAUDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdi
	xorl	%r8d, %r8d
	callq	_sepgsql_avc_check_perms
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcedureRelationId,4,2        ## @ProcedureRelationId
	.comm	_SEPG_CLASS_DB_PROCEDURE,4,2    ## @SEPG_CLASS_DB_PROCEDURE
	.comm	_SEPG_DB_PROCEDURE__EXECUTE,4,2 ## @SEPG_DB_PROCEDURE__EXECUTE
	.comm	_SEPG_DB_PROCEDURE__ENTRYPOINT,4,2 ## @SEPG_DB_PROCEDURE__ENTRYPOINT
	.comm	_SEPGSQL_AVC_NOAUDIT,4,2        ## @SEPGSQL_AVC_NOAUDIT
	.no_dead_strip	_sepgsql_needs_fmgr_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sepgsql_needs_fmgr_hook
_sepgsql_needs_fmgr_hook:               ; @sepgsql_needs_fmgr_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_next_needs_fmgr_hook
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sepgsql_avc_trusted_proc
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh0:
	adrp	x8, _ProcedureRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ProcedureRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w19, w8, [sp, #8]
Lloh3:
	adrp	x8, _SEPG_CLASS_DB_PROCEDURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEPG_CLASS_DB_PROCEDURE@GOTPAGEOFF]
	str	xzr, [sp]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SEPG_DB_PROCEDURE__EXECUTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEPG_DB_PROCEDURE__EXECUTE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SEPG_DB_PROCEDURE__ENTRYPOINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEPG_DB_PROCEDURE__ENTRYPOINT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh12:
	adrp	x8, _SEPGSQL_AVC_NOAUDIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEPGSQL_AVC_NOAUDIT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, sp
	mov	w4, #0
	bl	_sepgsql_avc_check_perms
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcedureRelationId,4,2        ; @ProcedureRelationId
	.comm	_SEPG_CLASS_DB_PROCEDURE,4,2    ; @SEPG_CLASS_DB_PROCEDURE
	.comm	_SEPG_DB_PROCEDURE__EXECUTE,4,2 ; @SEPG_DB_PROCEDURE__EXECUTE
	.comm	_SEPG_DB_PROCEDURE__ENTRYPOINT,4,2 ; @SEPG_DB_PROCEDURE__ENTRYPOINT
	.comm	_SEPGSQL_AVC_NOAUDIT,4,2        ; @SEPGSQL_AVC_NOAUDIT
	.no_dead_strip	_sepgsql_needs_fmgr_hook
.subsections_via_symbols
