	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_capsicate               ## -- Begin function kernel_capsicate
	.p2align	4, 0x90
_kernel_capsicate:                      ## @kernel_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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_CTL_ISCSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CAP_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movq	_ctl_fd@GOTPCREL(%rip), %r14
	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	-32(%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
	jns	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	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_ISCSI,8,3                  ## @CTL_ISCSI
	.comm	_CAP_IOCTL,4,2                  ## @CAP_IOCTL
	.comm	_ctl_fd,4,2                     ## @ctl_fd
	.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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_capsicate               ; -- Begin function kernel_capsicate
	.p2align	2
_kernel_capsicate:                      ; @kernel_capsicate
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CTL_ISCSI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTL_ISCSI@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh5:
	ldr	x8, [x9]
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, _CAP_IOCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAP_IOCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_cap_rights_init
Lloh9:
	adrp	x19, _ctl_fd@GOTPAGE
Lloh10:
	ldr	x19, [x19, _ctl_fd@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_caph_rights_limit
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	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
	tbnz	x0, #63, LBB0_6
; %bb.3:
	bl	_caph_enter
	tbnz	x0, #63, LBB0_7
LBB0_4:
	bl	_cap_sandboxed
	cbz	x0, LBB0_8
LBB0_5:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_debugx
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_err
	bl	_caph_enter
	tbz	x0, #63, LBB0_4
LBB0_7:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_log_err
	bl	_cap_sandboxed
	cbnz	x0, LBB0_5
LBB0_8:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_log_warnx
LBB0_9:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_ISCSI,8,3                  ; @CTL_ISCSI
	.comm	_CAP_IOCTL,4,2                  ; @CAP_IOCTL
	.comm	_ctl_fd,4,2                     ; @ctl_fd
	.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"

.subsections_via_symbols
