	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setclassresources              ## -- Begin function setclassresources
	.p2align	4, 0x90
_setclassresources:                     ## @setclassresources
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	_resources@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.2:
	leaq	-152(%rbp), %rbx
	movq	-160(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%r14)
	leaq	24(%r14), %r14
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_getrlimit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-152(%rbp), %r13d
	movl	-148(%rbp), %r12d
	movq	(%r14), %rdx
	leaq	-96(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	(%r14), %rdx
	leaq	-144(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	callq	*16(%r14)
	movl	%eax, %ebx
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%r13d, %ecx
	callq	*16(%r14)
	movl	%eax, %r12d
	movq	%r15, %rdi
	leaq	-96(%rbp), %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	leaq	-152(%rbp), %rbx
	callq	*16(%r14)
	movl	%eax, -148(%rbp)
	movq	%r15, %rdi
	leaq	-144(%rbp), %rsi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	callq	*16(%r14)
	movl	%eax, -152(%rbp)
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_setrlimit
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rdx
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_resources,8,3                  ## @resources
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getting %s resource limit: %m"

L_.str.1:                               ## @.str.1
	.asciz	"%s-cur"

L_.str.2:                               ## @.str.2
	.asciz	"%s-max"

	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"set class '%s' resource limit %s: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setclassresources              ; -- Begin function setclassresources
	.p2align	2
_setclassresources:                     ; @setclassresources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _resources@GOTPAGE
Lloh4:
	ldr	x8, [x8, _resources@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	ldr	x8, [x26]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x19, x0
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh8:
	adrp	x21, l_.str.2@PAGE
Lloh9:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh10:
	adrp	x27, _LOG_WARNING@GOTPAGE
Lloh11:
	ldr	x27, [x27, _LOG_WARNING@GOTPAGEOFF]
Lloh12:
	adrp	x22, l_.str.3@PAGE
Lloh13:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh14:
	adrp	x28, _LOG_ERR@GOTPAGE
Lloh15:
	ldr	x28, [x28, _LOG_ERR@GOTPAGEOFF]
Lloh16:
	adrp	x23, l_.str@PAGE
Lloh17:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x28]
	ldr	x2, [x26]
	mov	x1, x23
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_syslog
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #24]!
	cbz	x8, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, #8]
	add	x1, sp, #16
	bl	_getrlimit
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w25, w24, [sp, #16]
	ldr	x2, [x26]
	add	x0, sp, #64
	mov	x1, x20
	bl	_sprintf
	ldr	x2, [x26]
	add	x0, sp, #24
	mov	x1, x21
	bl	_sprintf
	ldr	x8, [x26, #16]
	ldr	x1, [x26]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x24
	blr	x8
	mov	x24, x0
	ldr	x8, [x26, #16]
	ldr	x1, [x26]
	mov	x0, x19
	mov	x2, x25
	mov	x3, x25
	blr	x8
	mov	x25, x0
	ldr	x8, [x26, #16]
	add	x1, sp, #64
	mov	x0, x19
	mov	x2, x24
	mov	x3, x24
	blr	x8
	str	w0, [sp, #20]
	ldr	x8, [x26, #16]
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x25
	mov	x3, x25
	blr	x8
	str	w0, [sp, #16]
	ldr	w0, [x26, #8]
	add	x1, sp, #16
	bl	_setrlimit
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27]
	ldrsw	x2, [x19]
	ldr	x8, [x26]
	str	x8, [sp]
	mov	x1, x22
	b	LBB0_4
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_resources,8,3                  ; @resources
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getting %s resource limit: %m"

l_.str.1:                               ; @.str.1
	.asciz	"%s-cur"

l_.str.2:                               ; @.str.2
	.asciz	"%s-max"

	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"set class '%s' resource limit %s: %m"

.subsections_via_symbols
