	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_schema_relabel         ## -- Begin function sepgsql_schema_relabel
	.p2align	4, 0x90
_sepgsql_schema_relabel:                ## @sepgsql_schema_relabel
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%edi, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_getObjectIdentity
	movq	%rax, %rbx
	movq	_SEPG_CLASS_DB_SCHEMA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SEPG_DB_SCHEMA__SETATTR@GOTPCREL(%rip), %rax
	movq	_SEPG_DB_SCHEMA__RELABELFROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms
	movl	(%r12), %esi
	movq	_SEPG_DB_SCHEMA__RELABELTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms_label
	movq	%rbx, %rdi
	callq	_pfree
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NamespaceRelationId,4,2        ## @NamespaceRelationId
	.comm	_SEPG_CLASS_DB_SCHEMA,4,2       ## @SEPG_CLASS_DB_SCHEMA
	.comm	_SEPG_DB_SCHEMA__SETATTR,4,2    ## @SEPG_DB_SCHEMA__SETATTR
	.comm	_SEPG_DB_SCHEMA__RELABELFROM,4,2 ## @SEPG_DB_SCHEMA__RELABELFROM
	.comm	_SEPG_DB_SCHEMA__RELABELTO,4,2  ## @SEPG_DB_SCHEMA__RELABELTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_schema_relabel         ; -- Begin function sepgsql_schema_relabel
	.p2align	2
_sepgsql_schema_relabel:                ; @sepgsql_schema_relabel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
Lloh0:
	adrp	x8, _NamespaceRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NamespaceRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #8]
	str	xzr, [sp]
	mov	x0, sp
	bl	_getObjectIdentity
	mov	x20, x0
Lloh3:
	adrp	x21, _SEPG_CLASS_DB_SCHEMA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SEPG_CLASS_DB_SCHEMA@GOTPAGEOFF]
Lloh5:
	adrp	x8, _SEPG_DB_SCHEMA__SETATTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEPG_DB_SCHEMA__SETATTR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SEPG_DB_SCHEMA__RELABELFROM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEPG_DB_SCHEMA__RELABELFROM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, sp
	mov	x3, x20
	mov	w4, #1
	bl	_sepgsql_avc_check_perms
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _SEPG_DB_SCHEMA__RELABELTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEPG_DB_SCHEMA__RELABELTO@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_sepgsql_avc_check_perms_label
	mov	x0, x20
	bl	_pfree
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NamespaceRelationId,4,2        ; @NamespaceRelationId
	.comm	_SEPG_CLASS_DB_SCHEMA,4,2       ; @SEPG_CLASS_DB_SCHEMA
	.comm	_SEPG_DB_SCHEMA__SETATTR,4,2    ; @SEPG_DB_SCHEMA__SETATTR
	.comm	_SEPG_DB_SCHEMA__RELABELFROM,4,2 ; @SEPG_DB_SCHEMA__RELABELFROM
	.comm	_SEPG_DB_SCHEMA__RELABELTO,4,2  ; @SEPG_DB_SCHEMA__RELABELTO
.subsections_via_symbols
