	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capsicate
_capsicate:                             ## @capsicate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ISCSIDHANDOFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_ISCSIDFAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	_ISCSISADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ISCSISREMOVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_ISCSISMODIFY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CAP_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_2:
	movl	(%r14), %ebx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_nitems
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_caph_ioctls_limit
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_4:
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_6:
	xorl	%eax, %eax
	callq	_cap_sandboxed
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_log_debugx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	callq	_log_warnx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ISCSIDHANDOFF,8,3              ## @ISCSIDHANDOFF
	.comm	_ISCSIDFAIL,8,3                 ## @ISCSIDFAIL
	.comm	_ISCSISADD,8,3                  ## @ISCSISADD
	.comm	_ISCSISREMOVE,8,3               ## @ISCSISREMOVE
	.comm	_ISCSISMODIFY,8,3               ## @ISCSISMODIFY
	.comm	_CAP_IOCTL,4,2                  ## @CAP_IOCTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cap_rights_limit"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Capsicum capability mode enabled"

L_.str.4:                               ## @.str.4
	.asciz	"Capsicum capability mode not supported"

	.comm	_ISCSIDCONNECT,8,3              ## @ISCSIDCONNECT
	.comm	_ISCSIDRECEIVE,8,3              ## @ISCSIDRECEIVE
	.comm	_ISCSIDSEND,8,3                 ## @ISCSIDSEND
	.no_dead_strip	_capsicate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capsicate
_capsicate:                             ; @capsicate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ISCSIDHANDOFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISCSIDHANDOFF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ISCSIDFAIL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISCSIDFAIL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x8, x9, [sp, #16]
Lloh9:
	adrp	x8, _ISCSISADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISCSISADD@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ISCSISREMOVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISCSISREMOVE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _ISCSISMODIFY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ISCSISMODIFY@GOTPAGEOFF]
	stp	x8, x9, [sp, #32]
Lloh17:
	ldr	x8, [x10]
	str	x8, [sp, #48]
Lloh18:
	adrp	x8, _CAP_IOCTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAP_IOCTL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_cap_rights_init
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_caph_rights_limit
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_2:
	ldr	w19, [x19]
	add	x0, sp, #16
	bl	_nitems
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x19
	bl	_caph_ioctls_limit
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_4:
	bl	_caph_enter
	cbz	x0, LBB0_6
; %bb.5:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_6:
	bl	_cap_sandboxed
	cbz	x0, LBB0_8
; %bb.7:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_debugx
	b	LBB0_9
LBB0_8:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_log_warnx
LBB0_9:
	ldur	x8, [x29, #-24]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ISCSIDHANDOFF,8,3              ; @ISCSIDHANDOFF
	.comm	_ISCSIDFAIL,8,3                 ; @ISCSIDFAIL
	.comm	_ISCSISADD,8,3                  ; @ISCSISADD
	.comm	_ISCSISREMOVE,8,3               ; @ISCSISREMOVE
	.comm	_ISCSISMODIFY,8,3               ; @ISCSISMODIFY
	.comm	_CAP_IOCTL,4,2                  ; @CAP_IOCTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cap_rights_limit"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Capsicum capability mode enabled"

l_.str.4:                               ; @.str.4
	.asciz	"Capsicum capability mode not supported"

	.comm	_ISCSIDCONNECT,8,3              ; @ISCSIDCONNECT
	.comm	_ISCSIDRECEIVE,8,3              ; @ISCSIDRECEIVE
	.comm	_ISCSIDSEND,8,3                 ; @ISCSIDSEND
	.no_dead_strip	_capsicate
.subsections_via_symbols
