	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLOGChooseNumBuffers
_XLOGChooseNumBuffers:                  ## @XLOGChooseNumBuffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NBuffers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movq	_wal_segment_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	sarl	$5, %ecx
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
	cmpl	$9, %eax
	movl	$8, %ecx
	cmovll	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBuffers,4,2                   ## @NBuffers
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_XLOG_BLCKSZ,4,2                ## @XLOG_BLCKSZ
	.no_dead_strip	_XLOGChooseNumBuffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLOGChooseNumBuffers
_XLOGChooseNumBuffers:                  ; @XLOGChooseNumBuffers
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NBuffers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBuffers@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
Lloh3:
	adrp	x9, _wal_segment_size@GOTPAGE
Lloh4:
	ldr	x9, [x9, _wal_segment_size@GOTPAGEOFF]
	asr	w8, w8, #5
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _XLOG_BLCKSZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _XLOG_BLCKSZ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	cmp	w8, w9
	csel	w8, w8, w9, lt
	mov	w9, #8
	cmp	w8, #8
	csel	w0, w8, w9, gt
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NBuffers,4,2                   ; @NBuffers
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_XLOG_BLCKSZ,4,2                ; @XLOG_BLCKSZ
	.no_dead_strip	_XLOGChooseNumBuffers
.subsections_via_symbols
