	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function digestControlFile
_digestControlFile:                     ## @digestControlFile
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PG_CONTROL_FILE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %edi
	movq	_WalSegSz@GOTPCREL(%rip), %r14
	movl	%edi, (%r14)
	callq	_IsValidWalSegSize
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_ngettext
	movslq	%eax, %rdi
	movl	(%r14), %esi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_checkControlFile               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_CONTROL_FILE_SIZE,8,3       ## @PG_CONTROL_FILE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected control file size %d, expected %d"

	.comm	_WalSegSz,4,2                   ## @WalSegSz
L_.str.1:                               ## @.str.1
	.asciz	"WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d byte"

L_.str.2:                               ## @.str.2
	.asciz	"WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d bytes"

	.no_dead_strip	_digestControlFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function digestControlFile
_digestControlFile:                     ; @digestControlFile
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PG_CONTROL_FILE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_CONTROL_FILE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.eq	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_pg_fatal
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
Lloh5:
	adrp	x20, _WalSegSz@GOTPAGE
Lloh6:
	ldr	x20, [x20, _WalSegSz@GOTPAGEOFF]
	str	w0, [x20]
	bl	_IsValidWalSegSize
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w2, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ngettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	ldr	w1, [x20]
	bl	_pg_fatal
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_checkControlFile
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_CONTROL_FILE_SIZE,8,3       ; @PG_CONTROL_FILE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected control file size %d, expected %d"

	.comm	_WalSegSz,4,2                   ; @WalSegSz
l_.str.1:                               ; @.str.1
	.asciz	"WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d byte"

l_.str.2:                               ; @.str.2
	.asciz	"WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d bytes"

	.no_dead_strip	_digestControlFile
.subsections_via_symbols
