	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getrlimit_proc
_getrlimit_proc:                        ## @getrlimit_proc
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_KERN_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_KERN_PROC_RLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%edi, -36(%rbp)
	movl	%esi, -32(%rbp)
	movq	$4, -56(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	movl	$5, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	cmpq	$4, -56(%rbp)
	je	LBB0_4
LBB0_3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_err
	cmpq	$4, -56(%rbp)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROC,4,2                  ## @KERN_PROC
	.comm	_KERN_PROC_RLIMIT,4,2           ## @KERN_PROC_RLIMIT
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl: kern.proc.rlimit: %d"

L_.str.1:                               ## @.str.1
	.asciz	"sysctl() returns wrong size"

	.no_dead_strip	_getrlimit_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getrlimit_proc
_getrlimit_proc:                        ; @getrlimit_proc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _KERN_PROC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KERN_PROC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #20]
Lloh9:
	adrp	x8, _KERN_PROC_RLIMIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_PROC_RLIMIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #28]
	str	w1, [sp, #36]
	mov	w8, #4
	str	x8, [sp, #8]
	add	x0, sp, #20
	add	x3, sp, #8
	mov	w1, #5
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_2:
	ldr	x8, [sp, #8]
	cmp	x8, #4
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROC,4,2                  ; @KERN_PROC
	.comm	_KERN_PROC_RLIMIT,4,2           ; @KERN_PROC_RLIMIT
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl: kern.proc.rlimit: %d"

l_.str.1:                               ; @.str.1
	.asciz	"sysctl() returns wrong size"

	.no_dead_strip	_getrlimit_proc
.subsections_via_symbols
