	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_note_procstat_rlimit
_elf_note_procstat_rlimit:              ## @elf_note_procstat_rlimit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %r12d
	movq	_RLIM_NLIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	(,%r15,4), %r14d
	leal	4(,%r15,4), %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	_RLIM_NLIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%r14d, (%rbx)
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_KERN_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_KERN_PROC_RLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	%r12d, -68(%rbp)
	movq	$4, -88(%rbp)
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.3:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	addq	$4, %rbx
	leaq	-80(%rbp), %r13
	leaq	-88(%rbp), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %rbx
	incl	%r15d
	movq	_RLIM_NLIMITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -64(%rbp)
	movq	%r13, %rdi
	movl	$5, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_err
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, %eax
	cmpq	$4, -88(%rbp)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_errx
	movq	-88(%rbp), %rax
	jmp	LBB0_8
LBB0_9:
	movslq	-92(%rbp), %rax                 ## 4-byte Folded Reload
	addq	$4, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RLIM_NLIMITS,4,2               ## @RLIM_NLIMITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROC,4,2                  ## @KERN_PROC
	.comm	_KERN_PROC_RLIMIT,4,2           ## @KERN_PROC_RLIMIT
L_.str.1:                               ## @.str.1
	.asciz	"kern.proc.rlimit.%u"

L_.str.2:                               ## @.str.2
	.asciz	"kern.proc.rlimit.%u: short read"

	.no_dead_strip	_elf_note_procstat_rlimit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_note_procstat_rlimit
_elf_note_procstat_rlimit:              ; @elf_note_procstat_rlimit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w20, [x0]
Lloh3:
	adrp	x25, _RLIM_NLIMITS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RLIM_NLIMITS@GOTPAGEOFF]
	ldr	w22, [x25]
	lsl	w26, w22, #2
	add	w1, w26, #4
	mov	w0, #1
	bl	_calloc
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	w22, [x25]
LBB0_2:
	str	w26, [x21]
Lloh7:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh9:
	adrp	x9, _KERN_PROC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KERN_PROC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #20]
Lloh13:
	adrp	x8, _KERN_PROC_RLIMIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_PROC_RLIMIT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w8, w20, [sp, #28]
	mov	w8, #4
	str	x8, [sp, #8]
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w27, #0
	add	x22, x21, #4
Lloh16:
	adrp	x23, l_.str.1@PAGE
Lloh17:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh18:
	adrp	x24, l_.str.2@PAGE
Lloh19:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, x8
	add	w27, w27, #1
	ldr	w8, [x25]
	cmp	w27, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	w27, [sp, #36]
	add	x0, sp, #20
	add	x3, sp, #8
	mov	w1, #5
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	x1, x23
	mov	x2, x20
	bl	_err
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, #4
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x20, [sp]
	mov	w0, #1
	mov	x1, x24
	bl	_errx
	ldr	x8, [sp, #8]
	b	LBB0_4
LBB0_9:
	sxtw	x8, w26
	add	x8, x8, #4
	str	x8, [x19]
	ldr	x8, [sp, #40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RLIM_NLIMITS,4,2               ; @RLIM_NLIMITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROC,4,2                  ; @KERN_PROC
	.comm	_KERN_PROC_RLIMIT,4,2           ; @KERN_PROC_RLIMIT
l_.str.1:                               ; @.str.1
	.asciz	"kern.proc.rlimit.%u"

l_.str.2:                               ; @.str.2
	.asciz	"kern.proc.rlimit.%u: short read"

	.no_dead_strip	_elf_note_procstat_rlimit
.subsections_via_symbols
