	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_getprocattr
_selinux_getprocattr:                   ## @selinux_getprocattr
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_current@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PROCESS__GETATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_current_has_perm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_2:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r12, %rdi
	callq	___task_cred
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.16:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	addq	$20, %rbx
	jmp	LBB0_13
LBB0_5:
	addq	$16, %rbx
	jmp	LBB0_13
LBB0_7:
	addq	$12, %rbx
	jmp	LBB0_13
LBB0_9:
	addq	$8, %rbx
	jmp	LBB0_13
LBB0_11:
	addq	$4, %rbx
LBB0_13:
	movl	(%rbx), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.14:
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_security_sid_to_context
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movl	-36(%rbp), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_PROCESS__GETATTR,4,2           ## @PROCESS__GETATTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current"

L_.str.1:                               ## @.str.1
	.asciz	"prev"

L_.str.2:                               ## @.str.2
	.asciz	"exec"

L_.str.3:                               ## @.str.3
	.asciz	"fscreate"

L_.str.4:                               ## @.str.4
	.asciz	"keycreate"

L_.str.5:                               ## @.str.5
	.asciz	"sockcreate"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_selinux_getprocattr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_getprocattr
_selinux_getprocattr:                   ; @selinux_getprocattr
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PROCESS__GETATTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROCESS__GETATTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_current_has_perm
	cbnz	w0, LBB0_17
LBB0_2:
	bl	_rcu_read_lock
	mov	x0, x21
	bl	___task_cred
	ldr	x21, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.5:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.6:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.7:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.8:
	bl	_rcu_read_unlock
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_9:
	add	x21, x21, #20
	b	LBB0_14
LBB0_10:
	add	x21, x21, #16
	b	LBB0_14
LBB0_11:
	add	x21, x21, #12
	b	LBB0_14
LBB0_12:
	add	x21, x21, #8
	b	LBB0_14
LBB0_13:
	add	x21, x21, #4
LBB0_14:
	ldr	w20, [x21]
	bl	_rcu_read_unlock
	cbz	w20, LBB0_16
; %bb.15:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_security_sid_to_context
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PROCESS__GETATTR,4,2           ; @PROCESS__GETATTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current"

l_.str.1:                               ; @.str.1
	.asciz	"prev"

l_.str.2:                               ; @.str.2
	.asciz	"exec"

l_.str.3:                               ; @.str.3
	.asciz	"fscreate"

l_.str.4:                               ; @.str.4
	.asciz	"keycreate"

l_.str.5:                               ; @.str.5
	.asciz	"sockcreate"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_selinux_getprocattr
.subsections_via_symbols
