	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_prlimit64                  ## -- Begin function sys_prlimit64
	.p2align	4, 0x90
_sys_prlimit64:                         ## @sys_prlimit64
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_STRACE
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_2:
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %esi
	callq	_rlimit_get
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	-48(%rbp), %rsi
	movl	-40(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_STRACE
	movq	-48(%rbp), %rsi
	movl	-40(%rbp), %edx
	movq	%r12, %rdi
	callq	_user_put
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_user_get
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_STRACE
	movl	%r15d, %edi
	callq	_check_setrlimit
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_rlimit_set
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prlimit64(%d, %d)"

	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_current,4,2                    ## @current
L_.str.1:                               ## @.str.1
	.asciz	" old={cur=%#x, max=%#x}"

	.comm	__EFAULT,4,2                    ## @_EFAULT
L_.str.2:                               ## @.str.2
	.asciz	" new={cur=%#x, max=%#x}"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_prlimit64                  ; -- Begin function sys_prlimit64
	.p2align	2
_sys_prlimit64:                         ; @sys_prlimit64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_STRACE
	cbz	x22, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, __EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
	cbz	x21, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _current@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x2, sp
	mov	x1, x19
	bl	_rlimit_get
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	x1, [sp]
	ldr	w2, [sp, #8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_STRACE
	ldp	x1, x2, [sp]
	mov	x0, x21
	bl	_user_put
	cbnz	x0, LBB0_7
LBB0_5:
	cbz	x20, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_user_get
	cbz	x0, LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, __EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_STRACE
	mov	x0, x19
	bl	_check_setrlimit
	tbnz	w0, #31, LBB0_11
; %bb.10:
Lloh15:
	adrp	x8, _current@GOTPAGE
Lloh16:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_rlimit_set
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prlimit64(%d, %d)"

	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_current,4,2                    ; @current
l_.str.1:                               ; @.str.1
	.asciz	" old={cur=%#x, max=%#x}"

	.comm	__EFAULT,4,2                    ; @_EFAULT
l_.str.2:                               ; @.str.2
	.asciz	" new={cur=%#x, max=%#x}"

.subsections_via_symbols
