	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_setrlimit
_check_setrlimit:                       ## @check_setrlimit
	.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	%rsi, %r14
	movl	%edi, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_superuser
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	movl	%r15d, %esi
	callq	_rlimit_get
	xorl	%ebx, %ebx
	cmpq	%r14, -32(%rbp)
	jge	LBB0_3
## %bb.2:
	movq	__EPERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	testl	%eax, %eax
	cmovsl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	__EPERM,4,2                     ## @_EPERM
	.no_dead_strip	_check_setrlimit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_setrlimit
_check_setrlimit:                       ; @check_setrlimit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_superuser
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x20
	bl	_rlimit_get
Lloh3:
	adrp	x8, __EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
	ldr	x9, [sp, #8]
Lloh5:
	ldr	w8, [x8]
	cmp	x9, x19
	csel	w8, w8, wzr, lt
	cmp	w0, #0
	csel	w0, w0, w8, lt
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	__EPERM,4,2                     ; @_EPERM
	.no_dead_strip	_check_setrlimit
.subsections_via_symbols
