	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_lsn_in_internal             ## -- Begin function pg_lsn_in_internal
	.p2align	4, 0x90
_pg_lsn_in_internal:                    ## @pg_lsn_in_internal
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_Assert
	movl	$0, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strspn
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	_MAXPG_LSNCOMPONENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	%r13d, %eax
	jg	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	cmpb	$47, (%r14,%r12)
	jne	LBB0_3
## %bb.4:
	leaq	(%r14,%r12), %r15
	incq	%r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strspn
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:
	cmpl	%r13d, %eax
	jg	LBB0_3
## %bb.6:
	movl	%eax, %eax
	addq	%r12, %rax
	cmpb	$0, 1(%r14,%rax)
	je	LBB0_7
LBB0_3:
	movl	$1, (%rbx)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
                                        ## implicit-def: $eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdefABCDEF"

	.comm	_MAXPG_LSNCOMPONENT,4,2         ## @MAXPG_LSNCOMPONENT
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_lsn_in_internal             ; -- Begin function pg_lsn_in_internal
	.p2align	2
_pg_lsn_in_internal:                    ; @pg_lsn_in_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_Assert
	str	wzr, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strspn
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _MAXPG_LSNCOMPONENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAXPG_LSNCOMPONENT@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	cmp	w0, w23
	b.gt	LBB0_5
; %bb.2:
	add	x8, x20, w21, uxtw
	ldrb	w9, [x8]
	cmp	w9, #47
	b.ne	LBB0_5
; %bb.3:
	add	x22, x8, #1
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strspn
	cmp	w0, #1
	ccmp	w0, w23, #0, ge
	b.gt	LBB0_5
; %bb.4:
	add	w8, w21, #1
	add	x8, x8, w0, uxtw
	ldrb	w8, [x20, x8]
	cbz	w8, LBB0_7
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
Lloh7:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	mov	x0, x22
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
                                        ; implicit-def: $w0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdefABCDEF"

	.comm	_MAXPG_LSNCOMPONENT,4,2         ; @MAXPG_LSNCOMPONENT
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
.subsections_via_symbols
