	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLOGShmemSize                  ## -- Begin function XLOGShmemSize
	.p2align	4, 0x90
_XLOGShmemSize:                         ## @XLOGShmemSize
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_XLOGbuffers@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_XLOGChooseNumBuffers
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	_PGC_POSTMASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PGC_S_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_SetConfigOption
	movl	(%r14), %eax
LBB0_2:
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_Assert
	movq	_NUM_XLOGINSERT_LOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	$4, %edi
	callq	_mul_size
	movl	$4, %edi
	movl	%eax, %esi
	callq	_add_size
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	$4, %edi
	callq	_mul_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_add_size
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_add_size
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_mul_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_add_size
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XLOGbuffers,4,2                ## @XLOGbuffers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"wal_buffers"

	.comm	_PGC_POSTMASTER,4,2             ## @PGC_POSTMASTER
	.comm	_PGC_S_OVERRIDE,4,2             ## @PGC_S_OVERRIDE
	.comm	_NUM_XLOGINSERT_LOCKS,4,2       ## @NUM_XLOGINSERT_LOCKS
	.comm	_XLOG_BLCKSZ,4,2                ## @XLOG_BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLOGShmemSize                  ; -- Begin function XLOGShmemSize
	.p2align	2
_XLOGShmemSize:                         ; @XLOGShmemSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x20, _XLOGbuffers@GOTPAGE
Lloh4:
	ldr	x20, [x20, _XLOGbuffers@GOTPAGEOFF]
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_XLOGChooseNumBuffers
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #32
	bl	_snprintf
Lloh7:
	adrp	x8, _PGC_POSTMASTER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PGC_POSTMASTER@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _PGC_S_OVERRIDE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PGC_S_OVERRIDE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_SetConfigOption
	ldr	w8, [x20]
LBB0_2:
	cmp	w8, #0
	cset	w0, gt
	bl	_Assert
Lloh15:
	adrp	x8, _NUM_XLOGINSERT_LOCKS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NUM_XLOGINSERT_LOCKS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w1, w8, #1
	mov	w0, #4
	bl	_mul_size
	mov	x1, x0
	mov	w0, #4
	bl	_add_size
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #4
	bl	_mul_size
	mov	x1, x0
	mov	x0, x19
	bl	_add_size
Lloh18:
	adrp	x21, _XLOG_BLCKSZ@GOTPAGE
Lloh19:
	ldr	x21, [x21, _XLOG_BLCKSZ@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_add_size
	mov	x19, x0
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_mul_size
	mov	x1, x0
	mov	x0, x19
	bl	_add_size
	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_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_XLOGbuffers,4,2                ; @XLOGbuffers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"wal_buffers"

	.comm	_PGC_POSTMASTER,4,2             ; @PGC_POSTMASTER
	.comm	_PGC_S_OVERRIDE,4,2             ; @PGC_S_OVERRIDE
	.comm	_NUM_XLOGINSERT_LOCKS,4,2       ; @NUM_XLOGINSERT_LOCKS
	.comm	_XLOG_BLCKSZ,4,2                ; @XLOG_BLCKSZ
.subsections_via_symbols
