	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_proc_setrlimit_setup      ## -- Begin function priv_proc_setrlimit_setup
	.p2align	4, 0x90
_priv_proc_setrlimit_setup:             ## @priv_proc_setrlimit_setup
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_RLIMIT_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_rl_base@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_getrlimit
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	leal	-20(%rax), %ecx
	movq	_rl_lowered@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
	shrq	$32, %rax
	addl	$-10, %eax
	movl	%eax, 4(%rsi)
	movl	(%r14), %edi
	callq	_setrlimit
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_initialized@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_warn
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RLIMIT_DATA,4,2                ## @RLIMIT_DATA
	.comm	_rl_base,8,2                    ## @rl_base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_proc_setrlimit_setup: getrlimit"

	.comm	_rl_lowered,8,2                 ## @rl_lowered
L_.str.1:                               ## @.str.1
	.asciz	"priv_proc_setrlimit_setup: setrlimit"

	.comm	_initialized,4,2                ## @initialized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_proc_setrlimit_setup      ; -- Begin function priv_proc_setrlimit_setup
	.p2align	2
_priv_proc_setrlimit_setup:             ; @priv_proc_setrlimit_setup
	.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
Lloh0:
	adrp	x20, _RLIMIT_DATA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RLIMIT_DATA@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x19, _rl_base@GOTPAGE
Lloh3:
	ldr	x19, [x19, _rl_base@GOTPAGEOFF]
	mov	x1, x19
	bl	_getrlimit
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldp	w9, w8, [x19]
	sub	w9, w9, #20
Lloh4:
	adrp	x1, _rl_lowered@GOTPAGE
Lloh5:
	ldr	x1, [x1, _rl_lowered@GOTPAGEOFF]
	sub	w8, w8, #10
	stp	w9, w8, [x1]
	ldr	w0, [x20]
	bl	_setrlimit
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #0
Lloh6:
	adrp	x8, _initialized@GOTPAGE
Lloh7:
	ldr	x8, [x8, _initialized@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_warn
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RLIMIT_DATA,4,2                ; @RLIMIT_DATA
	.comm	_rl_base,8,2                    ; @rl_base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_proc_setrlimit_setup: getrlimit"

	.comm	_rl_lowered,8,2                 ; @rl_lowered
l_.str.1:                               ; @.str.1
	.asciz	"priv_proc_setrlimit_setup: setrlimit"

	.comm	_initialized,4,2                ; @initialized
.subsections_via_symbols
