	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogRegisterBlock              ## -- Begin function XLogRegisterBlock
	.p2align	4, 0x90
_XLogRegisterBlock:                     ## @XLogRegisterBlock
	.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	%r9d, %ebx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	_REGBUF_FORCE_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r9d, %edi
	callq	_Assert
	movq	_begininsert_called@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	movq	_max_registered_block_id@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_2
## %bb.1:
	leal	1(%r14), %ecx
	movl	%ecx, (%rax)
LBB0_2:
	movq	_max_registered_buffers@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	_registered_buffers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%r13), %edx
	shlq	$6, %rcx
	movl	%edx, 24(%rax,%rcx)
	movq	%r12, (%rax,%rcx)
	movq	%r15, 8(%rax,%rcx)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 56(%rax,%rcx)
	movl	%ebx, 16(%rax,%rcx)
	leaq	40(%rax,%rcx), %rdx
	movq	%rdx, 48(%rax,%rcx)
	movq	$0, 32(%rax,%rcx)
	movl	$1, 20(%rax,%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REGBUF_FORCE_IMAGE,4,2         ## @REGBUF_FORCE_IMAGE
	.comm	_begininsert_called,4,2         ## @begininsert_called
	.comm	_max_registered_block_id,4,2    ## @max_registered_block_id
	.comm	_max_registered_buffers,4,2     ## @max_registered_buffers
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many registered buffers"

	.comm	_registered_buffers,8,3         ## @registered_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogRegisterBlock              ; -- Begin function XLogRegisterBlock
	.p2align	2
_XLogRegisterBlock:                     ; @XLogRegisterBlock
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _REGBUF_FORCE_IMAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGBUF_FORCE_IMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w5
	bl	_Assert
Lloh3:
	adrp	x8, _begininsert_called@GOTPAGE
Lloh4:
	ldr	x8, [x8, _begininsert_called@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_Assert
Lloh6:
	adrp	x8, _max_registered_block_id@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max_registered_block_id@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w24
	b.gt	LBB0_2
; %bb.1:
	add	w9, w24, #1
	str	w9, [x8]
LBB0_2:
Lloh8:
	adrp	x8, _max_registered_buffers@GOTPAGE
Lloh9:
	ldr	x8, [x8, _max_registered_buffers@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w24
	b.gt	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_4:
Lloh16:
	adrp	x8, _registered_buffers@GOTPAGE
Lloh17:
	ldr	x8, [x8, _registered_buffers@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	sxtw	x9, w24
	ldr	w10, [x23]
	add	x8, x8, x9, lsl #6
	stp	x22, x21, [x8]
	str	w20, [x8, #56]
	add	x9, x8, #40
	str	x9, [x8, #48]
	str	xzr, [x8, #32]
	mov	w9, #1
	str	w19, [x8, #16]
	stp	w9, w10, [x8, #20]
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_REGBUF_FORCE_IMAGE,4,2         ; @REGBUF_FORCE_IMAGE
	.comm	_begininsert_called,4,2         ; @begininsert_called
	.comm	_max_registered_block_id,4,2    ; @max_registered_block_id
	.comm	_max_registered_buffers,4,2     ; @max_registered_buffers
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many registered buffers"

	.comm	_registered_buffers,8,3         ; @registered_buffers
.subsections_via_symbols
