	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_max_stack_depth          ## -- Begin function check_max_stack_depth
	.p2align	4, 0x90
_check_max_stack_depth:                 ## @check_max_stack_depth
	.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
	movslq	(%rdi), %rbx
	xorl	%eax, %eax
	callq	_get_stack_depth_rlimit
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jle	LBB0_3
## %bb.1:
	shlq	$10, %rbx
	movq	_STACK_DEPTH_SLOP@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, %rbx
	jle	LBB0_3
## %bb.2:
	leaq	1023(%rcx), %rsi
	testq	%rcx, %rcx
	cmovnsq	%rcx, %rsi
	sarq	$10, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_GUC_check_errdetail
	leaq	L_.str.1(%rip), %rdi
	callq	_GUC_check_errhint
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STACK_DEPTH_SLOP,8,3           ## @STACK_DEPTH_SLOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"max_stack_depth\" must not exceed %ldkB."

L_.str.1:                               ## @.str.1
	.asciz	"Increase the platform's stack depth limit via \"ulimit -s\" or local equivalent."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_max_stack_depth          ; -- Begin function check_max_stack_depth
	.p2align	2
_check_max_stack_depth:                 ; @check_max_stack_depth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldrsw	x19, [x0]
	bl	_get_stack_depth_rlimit
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _STACK_DEPTH_SLOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STACK_DEPTH_SLOP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x0, x8
	cmp	x8, x19, lsl #10
	b.ge	LBB0_3
; %bb.2:
	add	x9, x8, #1023
	cmp	x8, #0
	csel	x8, x9, x8, lt
	asr	x1, x8, #10
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GUC_check_errdetail
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_GUC_check_errhint
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STACK_DEPTH_SLOP,8,3           ; @STACK_DEPTH_SLOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"max_stack_depth\" must not exceed %ldkB."

l_.str.1:                               ; @.str.1
	.asciz	"Increase the platform's stack depth limit via \"ulimit -s\" or local equivalent."

.subsections_via_symbols
