	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenericXLogRegisterBuffer      ## -- Begin function GenericXLogRegisterBuffer
	.p2align	4, 0x90
_GenericXLogRegisterBuffer:             ## @GenericXLogRegisterBuffer
	.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, %eax
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$12, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movq	-12(%r14,%rbx), %rdi
	callq	_BufferIsInvalid
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, -12(%r14,%rbx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_MAX_GENERIC_XLOG_PAGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	addq	$16, %rbx
	cmpq	%rdx, %r13
	jl	LBB0_2
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elog
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	%r15, -12(%r14,%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -4(%r14,%rbx)
	movl	(%r14,%rbx), %r12d
	movq	%r15, %rdi
	callq	_BufferGetPage
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_memcpy
LBB0_7:
	movslq	(%r14,%rbx), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GENERIC_XLOG_PAGES,4,2     ## @MAX_GENERIC_XLOG_PAGES
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"maximum number %d of generic xlog buffers is exceeded"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenericXLogRegisterBuffer      ; -- Begin function GenericXLogRegisterBuffer
	.p2align	2
_GenericXLogRegisterBuffer:             ; @GenericXLogRegisterBuffer
	.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	x20, x2
Lloh0:
	adrp	x22, _MAX_GENERIC_XLOG_PAGES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_GENERIC_XLOG_PAGES@GOTPAGEOFF]
	ldr	w2, [x22]
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x21]
	ldr	x0, [x25, x23]
	bl	_BufferIsInvalid
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25, x23]
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldrsw	x2, [x22]
	add	x23, x23, #16
	cmp	x24, x2
	b.lt	LBB0_2
LBB0_5:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_elog
	mov	x0, #0
	b	LBB0_8
LBB0_6:
	add	x21, x25, x23
	str	x19, [x21]
	str	w20, [x21, #8]
	ldr	w20, [x21, #12]
	mov	x0, x19
	bl	_BufferGetPage
	mov	x1, x0
Lloh7:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcpy
	ldrsw	x0, [x21, #12]
	b	LBB0_8
LBB0_7:
	add	x8, x25, x23
	ldrsw	x0, [x8, #12]
LBB0_8:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GENERIC_XLOG_PAGES,4,2     ; @MAX_GENERIC_XLOG_PAGES
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"maximum number %d of generic xlog buffers is exceeded"

.subsections_via_symbols
