	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sepgsql_set_client_label
_sepgsql_set_client_label:              ## @sepgsql_set_client_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	callq	_security_check_context_raw
	movq	%r15, %r14
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%r15, %r14
	jmp	LBB0_4
LBB0_1:
	movq	_client_label_peer@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_4:
	xorl	%eax, %eax
	callq	_sepgsql_get_client_label
	movq	_SEPG_CLASS_PROCESS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SEPG_PROCESS__SETCURRENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms_label
	movl	(%rbx), %esi
	movq	_SEPG_PROCESS__DYNTRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms_label
	movq	_CurTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	$8, %edi
	callq	_palloc0
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetCurrentSubTransactionId
	movl	%eax, 4(%rbx)
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_pstrdup
	movl	%eax, (%rbx)
LBB0_6:
	movq	_client_label_pending@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_lappend
	movl	%eax, (%r15)
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_client_label_peer,8,3          ## @client_label_peer
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ## @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELinux: invalid security label: \"%s\""

	.comm	_SEPG_CLASS_PROCESS,4,2         ## @SEPG_CLASS_PROCESS
	.comm	_SEPG_PROCESS__SETCURRENT,4,2   ## @SEPG_PROCESS__SETCURRENT
	.comm	_SEPG_PROCESS__DYNTRANSITION,4,2 ## @SEPG_PROCESS__DYNTRANSITION
	.comm	_CurTransactionContext,4,2      ## @CurTransactionContext
	.comm	_client_label_pending,4,2       ## @client_label_pending
	.no_dead_strip	_sepgsql_set_client_label
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sepgsql_set_client_label
_sepgsql_set_client_label:              ; @sepgsql_set_client_label
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_security_check_context_raw
	mov	x20, x19
	tbz	x0, #63, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x20, x19
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _client_label_peer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _client_label_peer@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
LBB0_4:
	bl	_sepgsql_get_client_label
Lloh11:
	adrp	x21, _SEPG_CLASS_PROCESS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _SEPG_CLASS_PROCESS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _SEPG_PROCESS__SETCURRENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEPG_PROCESS__SETCURRENT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #1
	bl	_sepgsql_avc_check_perms_label
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _SEPG_PROCESS__DYNTRANSITION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEPG_PROCESS__DYNTRANSITION@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #1
	bl	_sepgsql_avc_check_perms_label
Lloh19:
	adrp	x8, _CurTransactionContext@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CurTransactionContext@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	mov	w0, #8
	bl	_palloc0
	mov	x21, x0
	bl	_GetCurrentSubTransactionId
	str	w0, [x21, #4]
	cbz	x19, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pstrdup
	str	w0, [x21]
LBB0_6:
Lloh22:
	adrp	x19, _client_label_pending@GOTPAGE
Lloh23:
	ldr	x19, [x19, _client_label_pending@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_lappend
	str	w0, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_MemoryContextSwitchTo
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_client_label_peer,8,3          ; @client_label_peer
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ; @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELinux: invalid security label: \"%s\""

	.comm	_SEPG_CLASS_PROCESS,4,2         ; @SEPG_CLASS_PROCESS
	.comm	_SEPG_PROCESS__SETCURRENT,4,2   ; @SEPG_PROCESS__SETCURRENT
	.comm	_SEPG_PROCESS__DYNTRANSITION,4,2 ; @SEPG_PROCESS__DYNTRANSITION
	.comm	_CurTransactionContext,4,2      ; @CurTransactionContext
	.comm	_client_label_pending,4,2       ; @client_label_pending
	.no_dead_strip	_sepgsql_set_client_label
.subsections_via_symbols
