	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_get_label              ## -- Begin function sepgsql_get_label
	.p2align	4, 0x90
_sepgsql_get_label:                     ## @sepgsql_get_label
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -40(%rbp)
	movq	_SEPGSQL_LABEL_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_GetSecurityLabel
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	%ebx, %edi
	callq	_security_check_context_raw
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	leaq	-12(%rbp), %rsi
	callq	_security_get_initial_context_raw
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	xorl	%eax, %eax
	callq	_PG_TRY
	movl	-12(%rbp), %edi
	callq	_pstrdup
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_PG_FINALLY
	movl	-12(%rbp), %edi
	callq	_freecon
	xorl	%eax, %eax
	callq	_PG_END_TRY
LBB0_5:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEPGSQL_LABEL_TAG,4,2          ## @SEPGSQL_LABEL_TAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unlabeled"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ## @ERRCODE_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"SELinux: failed to get initial security label: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_get_label              ; -- Begin function sepgsql_get_label
	.p2align	2
_sepgsql_get_label:                     ; @sepgsql_get_label
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	stp	x1, x0, [sp, #16]
	str	w2, [sp, #8]
Lloh0:
	adrp	x8, _SEPGSQL_LABEL_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEPGSQL_LABEL_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_GetSecurityLabel
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_security_check_context_raw
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #4
	bl	_security_get_initial_context_raw
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w19, [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.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_4:
	bl	_PG_TRY
	ldr	w0, [sp, #4]
	bl	_pstrdup
	mov	x19, x0
	bl	_PG_FINALLY
	ldr	w0, [sp, #4]
	bl	_freecon
	bl	_PG_END_TRY
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SEPGSQL_LABEL_TAG,4,2          ; @SEPGSQL_LABEL_TAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unlabeled"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ; @ERRCODE_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"SELinux: failed to get initial security label: %m"

.subsections_via_symbols
