	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_stklim
_set_stklim:                            ## @set_stklim
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_RLIMIT_STACK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-16(%rbp), %rsi
	callq	_getrlimit
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rcx
	movq	_RLIM_INFINITY@GOTPCREL(%rip), %rdx
	movq	_STACKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	cmpq	%rax, %rcx
	jle	LBB0_6
LBB0_4:
	movq	%rax, -16(%rbp)
	movl	(%rbx), %edi
	leaq	-16(%rbp), %rsi
	callq	_setrlimit
	testq	%rax, %rax
	js	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	callq	_set_stklim.cold.1
	jmp	LBB0_6
LBB0_5:
	callq	_set_stklim.cold.2
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function set_stklim.cold.1
_set_stklim.cold.1:                     ## @set_stklim.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function set_stklim.cold.2
_set_stklim.cold.2:                     ## @set_stklim.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_RLIMIT_STACK,4,2               ## @RLIMIT_STACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getrlimit"

	.comm	_RLIM_INFINITY,8,3              ## @RLIM_INFINITY
	.comm	_STACKSIZE,8,3                  ## @STACKSIZE
L_.str.1:                               ## @.str.1
	.asciz	"setrlimit"

	.no_dead_strip	_set_stklim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_stklim
_set_stklim:                            ; @set_stklim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _RLIMIT_STACK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _RLIMIT_STACK@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_getrlimit
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x9, [sp, #8]
Lloh2:
	adrp	x8, _RLIM_INFINITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RLIM_INFINITY@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x8]
Lloh5:
	adrp	x8, _STACKSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STACKSIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x9, x10
	ccmp	x9, x8, #0, ne
	b.le	LBB0_3
; %bb.2:
	str	x8, [sp, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_setrlimit
	tbnz	x0, #63, LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	bl	_set_stklim.cold.1
LBB0_5:
	bl	_set_stklim.cold.2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function set_stklim.cold.1
_set_stklim.cold.1:                     ; @set_stklim.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function set_stklim.cold.2
_set_stklim.cold.2:                     ; @set_stklim.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RLIMIT_STACK,4,2               ; @RLIMIT_STACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getrlimit"

	.comm	_RLIM_INFINITY,8,3              ; @RLIM_INFINITY
	.comm	_STACKSIZE,8,3                  ; @STACKSIZE
l_.str.1:                               ; @.str.1
	.asciz	"setrlimit"

	.no_dead_strip	_set_stklim
.subsections_via_symbols
