	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_get_max_memlockable_bytes
_sdp_get_max_memlockable_bytes:         ## @sdp_get_max_memlockable_bytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CAP_IPC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_RLIMIT_MEMLOCK@GOTPCREL(%rip), %rsi
	movq	(%rdx), %rdx
	shlq	%cl, %rdx
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %rax
	addq	%rbx, %rdx
	subq	%rdx, %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_IPC_LOCK,4,2               ## @CAP_IPC_LOCK
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_current,8,3                    ## @current
	.comm	_RLIMIT_MEMLOCK,8,3             ## @RLIMIT_MEMLOCK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.no_dead_strip	_sdp_get_max_memlockable_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_get_max_memlockable_bytes
_sdp_get_max_memlockable_bytes:         ; @sdp_get_max_memlockable_bytes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _CAP_IPC_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_IPC_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _RLIMIT_MEMLOCK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RLIMIT_MEMLOCK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	ldr	x8, [x8]
Lloh12:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	lsl	x8, x8, x10
	add	x8, x8, x19
	sub	x0, x9, x8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_IPC_LOCK,4,2               ; @CAP_IPC_LOCK
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_current,8,3                    ; @current
	.comm	_RLIMIT_MEMLOCK,8,3             ; @RLIMIT_MEMLOCK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.no_dead_strip	_sdp_get_max_memlockable_bytes
.subsections_via_symbols
