	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadPageInternal
_ReadPageInternal:                      ## @ReadPageInternal
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_Assert
	movl	44(%r13), %edx
	movq	%r14, %rdi
	callq	_XLByteToSeg
	movl	44(%r13), %esi
	movq	%r14, %rdi
	callq	_XLogSegmentOffset
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rbx
	movq	_SizeOfXLogShortPHD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_Max
	movl	40(%r13), %ecx
	movq	16(%r13), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	*%rbx
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movl	%eax, %ebx
	movl	%eax, %eax
	xorl	%edi, %edi
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	setge	%dil
	callq	_Assert
	cmpl	(%r15), %ebx
	jle	LBB0_9
## %bb.5:
	xorl	%edi, %edi
	cmpl	%r12d, %ebx
	setge	%dil
	callq	_Assert
	movq	16(%r13), %r12
	movq	%r12, %rdi
	callq	_XLogPageHeaderSize
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.6:
	movq	8(%r13), %rbx
	movq	%r12, %rdi
	callq	_XLogPageHeaderSize
	movslq	%eax, %rdx
	movl	40(%r13), %ecx
	movq	16(%r13), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*%rbx
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_XLogReaderValidatePageHeader
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r13)
	movl	%ebx, (%r13)
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	callq	_XLogReaderInvalReadState
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLOG_BLCKSZ,8,3                ## @XLOG_BLCKSZ
	.comm	_SizeOfXLogShortPHD,4,2         ## @SizeOfXLogShortPHD
	.no_dead_strip	_ReadPageInternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadPageInternal
_ReadPageInternal:                      ; @ReadPageInternal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _XLOG_BLCKSZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XLOG_BLCKSZ@GOTPAGEOFF]
	ldr	x8, [x24]
	sdiv	x9, x1, x8
	msub	x8, x9, x8, x1
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w2, [x19, #44]
	mov	x0, x20
	bl	_XLByteToSeg
	ldr	w1, [x19, #44]
	mov	x0, x20
	bl	_XLogSegmentOffset
	mov	x21, x0
	ldr	x23, [x19, #8]
Lloh2:
	adrp	x25, _SizeOfXLogShortPHD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SizeOfXLogShortPHD@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_Max
	mov	x2, x0
	ldr	w3, [x19, #40]
	ldr	x4, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x23
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x23, x0
	ldr	x8, [x24]
	cmp	x8, w0, uxtw
	cset	w0, ge
	bl	_Assert
	ldr	w8, [x25]
	cmp	w23, w8
	b.le	LBB0_6
; %bb.2:
	cmp	w23, w22
	cset	w0, ge
	bl	_Assert
	ldr	x22, [x19, #16]
	mov	x0, x22
	bl	_XLogPageHeaderSize
	cmp	w23, w0
	b.ge	LBB0_4
; %bb.3:
	ldr	x23, [x19, #8]
	mov	x0, x22
	bl	_XLogPageHeaderSize
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	ldr	w3, [x19, #40]
	ldr	x4, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x23
	mov	x23, x0
	tbnz	w0, #31, LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_XLogReaderValidatePageHeader
	cbz	w0, LBB0_6
; %bb.5:
	str	x21, [x19, #32]
	str	w23, [x19]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_XLogReaderInvalReadState
	mov	w23, #-1
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XLOG_BLCKSZ,8,3                ; @XLOG_BLCKSZ
	.comm	_SizeOfXLogShortPHD,4,2         ; @SizeOfXLogShortPHD
	.no_dead_strip	_ReadPageInternal
.subsections_via_symbols
