	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pretty_wal_size
_pretty_wal_size:                       ## @pretty_wal_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_wal_segment_size_mb@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	$14, %edi
	callq	_pg_malloc
	movq	%rax, %r14
	testl	$1023, %ebx                     ## imm = 0x3FF
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$14, %esi
	movl	%ebx, %ecx
	jmp	LBB0_3
LBB0_1:
	leal	1023(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	sarl	$10, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$14, %esi
LBB0_3:
	callq	_snprintf
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wal_segment_size_mb,4,2        ## @wal_segment_size_mb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dGB"

L_.str.1:                               ## @.str.1
	.asciz	"%dMB"

	.no_dead_strip	_pretty_wal_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pretty_wal_size
_pretty_wal_size:                       ; @pretty_wal_size
	.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
Lloh0:
	adrp	x8, _wal_segment_size_mb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wal_segment_size_mb@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w20, w8, w0
	mov	w0, #14
	bl	_pg_malloc
	mov	x19, x0
	tst	w20, #0x3ff
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #14
	mov	x3, x20
	b	LBB0_3
LBB0_2:
	add	w8, w20, #1023
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w3, w8, #10
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #14
LBB0_3:
	bl	_snprintf
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_wal_segment_size_mb,4,2        ; @wal_segment_size_mb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dGB"

l_.str.1:                               ; @.str.1
	.asciz	"%dMB"

	.no_dead_strip	_pretty_wal_size
.subsections_via_symbols
