	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __scif_check_inc_pinned_vm
___scif_check_inc_pinned_vm:            ## @__scif_check_inc_pinned_vm
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	testl	%esi, %esi
	je	LBB0_6
## %bb.2:
	movq	_scif_ulimit_check@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	movq	_RLIMIT_MEMLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rlimit
	movq	%rax, %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r12
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_atomic64_add_return
	cmpq	%r12, %rax
	jbe	LBB0_6
## %bb.4:
	movq	%rax, %r13
	movq	_CAP_IPC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_atomic64_sub
	movq	_scif_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scif_ulimit_check,4,2          ## @scif_ulimit_check
	.comm	_RLIMIT_MEMLOCK,4,2             ## @RLIMIT_MEMLOCK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_CAP_IPC_LOCK,4,2               ## @CAP_IPC_LOCK
	.comm	_scif_info,4,2                  ## @scif_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"locked(%lu) > lock_limit(%lu)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___scif_check_inc_pinned_vm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __scif_check_inc_pinned_vm
___scif_check_inc_pinned_vm:            ; @__scif_check_inc_pinned_vm
	.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
	mov	w0, #0
	cbz	x19, LBB0_7
; %bb.1:
	mov	x20, x1
	cbz	w1, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _scif_ulimit_check@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scif_ulimit_check@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _RLIMIT_MEMLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RLIMIT_MEMLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rlimit
Lloh6:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsr	x21, x0, x8
	mov	x0, x20
	mov	x1, x19
	bl	_atomic64_add_return
	cmp	x0, x21
	b.ls	LBB0_5
; %bb.4:
	mov	x22, x0
Lloh9:
	adrp	x8, _CAP_IPC_LOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAP_IPC_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_atomic64_sub
Lloh12:
	adrp	x8, _scif_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _scif_info@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_scif_ulimit_check,4,2          ; @scif_ulimit_check
	.comm	_RLIMIT_MEMLOCK,4,2             ; @RLIMIT_MEMLOCK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_CAP_IPC_LOCK,4,2               ; @CAP_IPC_LOCK
	.comm	_scif_info,4,2                  ; @scif_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"locked(%lu) > lock_limit(%lu)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___scif_check_inc_pinned_vm
.subsections_via_symbols
