	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smack_setprocattr
_smack_setprocattr:                     ## @smack_setprocattr
	.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	_current@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_CAP_MAC_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	testq	%r15, %r15
	je	LBB0_7
## %bb.4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movq	_SMK_LABELLEN@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jbe	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_smk_import
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	%rax, %r15
	movq	_smack_known_web@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_1
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_prepare_creds
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, (%rax)
	movq	%rax, %rdi
	callq	_commit_creds
	movl	%r14d, %ebx
	jmp	LBB0_10
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CAP_MAC_ADMIN,4,2              ## @CAP_MAC_ADMIN
	.comm	_SMK_LABELLEN,8,3               ## @SMK_LABELLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current"

	.comm	_smack_known_web,8,3            ## @smack_known_web
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_smack_setprocattr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smack_setprocattr
_smack_setprocattr:                     ; @smack_setprocattr
	.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
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh5:
	adrp	x8, _CAP_MAC_ADMIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAP_MAC_ADMIN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_1
; %bb.3:
	cbz	x20, LBB0_7
; %bb.4:
	cbz	x19, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _SMK_LABELLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMK_LABELLEN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_7
; %bb.6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_smk_import
	cbz	x0, LBB0_7
; %bb.11:
	mov	x20, x0
Lloh15:
	adrp	x8, _smack_known_web@GOTPAGE
Lloh16:
	ldr	x8, [x8, _smack_known_web@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.12:
	bl	_prepare_creds
	cbz	x0, LBB0_14
; %bb.13:
	str	x20, [x0]
	bl	_commit_creds
	b	LBB0_9
LBB0_14:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CAP_MAC_ADMIN,4,2              ; @CAP_MAC_ADMIN
	.comm	_SMK_LABELLEN,8,3               ; @SMK_LABELLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current"

	.comm	_smack_known_web,8,3            ; @smack_known_web
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_smack_setprocattr
.subsections_via_symbols
