	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RegisterBackgroundWorker       ## -- Begin function RegisterBackgroundWorker
	.p2align	4, 0x90
_RegisterBackgroundWorker:              ## @RegisterBackgroundWorker
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_process_shared_preload_libraries_in_progress@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_6:
	movq	_LOG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_SanityCheckBackgroundWorker
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.8:
	movl	(%r14), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_3:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%r15)
	je	LBB0_5
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	_RegisterBackgroundWorker.numworkers(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _RegisterBackgroundWorker.numworkers(%rip)
	movq	_max_worker_processes@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jge	LBB0_11
## %bb.12:
	movl	$56, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:
	movups	(%rbx), %xmm0
	movups	%xmm0, 40(%rax)
	movl	$0, (%rax)
	movq	%rax, %rsi
	addq	$4, %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movups	%xmm0, 24(%rax)
	movq	_BackgroundWorkerList@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slist_push_head                ## TAILCALL
LBB0_11:
	movl	(%r14), %ebx
	movq	_ERRCODE_CONFIGURATION_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	(%r15), %ecx
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%ecx, %edx
	callq	_errdetail_plural
	leaq	L_.str.7(%rip), %rdi
	callq	_errhint
	jmp	LBB0_14
LBB0_5:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	jmp	LBB0_15
LBB0_13:
	movl	(%r14), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
LBB0_14:
	movl	%ebx, %edi
LBB0_15:
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_RegisterBackgroundWorker.numworkers,4,2 ## @RegisterBackgroundWorker.numworkers
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registering background worker \"%s\""

	.comm	_process_shared_preload_libraries_in_progress,4,2 ## @process_shared_preload_libraries_in_progress
L_.str.1:                               ## @.str.1
	.asciz	"postgres"

	.comm	_LOG,4,2                        ## @LOG
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"background worker \"%s\": must be registered in shared_preload_libraries"

L_.str.3:                               ## @.str.3
	.asciz	"background worker \"%s\": only dynamic background workers can request notification"

	.comm	_max_worker_processes,4,2       ## @max_worker_processes
	.comm	_ERRCODE_CONFIGURATION_LIMIT_EXCEEDED,4,2 ## @ERRCODE_CONFIGURATION_LIMIT_EXCEEDED
L_.str.4:                               ## @.str.4
	.asciz	"too many background workers"

L_.str.5:                               ## @.str.5
	.asciz	"Up to %d background worker can be registered with the current settings."

L_.str.6:                               ## @.str.6
	.asciz	"Up to %d background workers can be registered with the current settings."

L_.str.7:                               ## @.str.7
	.asciz	"Consider increasing the configuration parameter \"max_worker_processes\"."

	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.8:                               ## @.str.8
	.asciz	"out of memory"

	.comm	_BackgroundWorkerList,4,2       ## @BackgroundWorkerList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RegisterBackgroundWorker       ; -- Begin function RegisterBackgroundWorker
	.p2align	2
_RegisterBackgroundWorker:              ; @RegisterBackgroundWorker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _IsUnderPostmaster@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IsUnderPostmaster@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
Lloh7:
	adrp	x8, _process_shared_preload_libraries_in_progress@GOTPAGE
Lloh8:
	ldr	x8, [x8, _process_shared_preload_libraries_in_progress@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
LBB0_3:
Lloh10:
	adrp	x20, _LOG@GOTPAGE
Lloh11:
	ldr	x20, [x20, _LOG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SanityCheckBackgroundWorker
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w20, [x20]
Lloh12:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	w0, [x19, #12]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.7:
	ldr	w8, [x21]
	cbz	w8, LBB0_13
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	adrp	x8, _RegisterBackgroundWorker.numworkers@PAGE
	ldr	w9, [x8, _RegisterBackgroundWorker.numworkers@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _RegisterBackgroundWorker.numworkers@PAGEOFF]
Lloh19:
	adrp	x21, _max_worker_processes@GOTPAGE
Lloh20:
	ldr	x21, [x21, _max_worker_processes@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w9, w8
	b.ge	LBB0_12
; %bb.10:
	mov	w0, #56
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.11:
	ldr	q0, [x19]
	stur	q0, [x0, #40]
	str	wzr, [x0]
	add	x1, x0, #4
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #8]
	stur	q0, [x0, #24]
Lloh21:
	adrp	x0, _BackgroundWorkerList@GOTPAGE
Lloh22:
	ldr	x0, [x0, _BackgroundWorkerList@GOTPAGEOFF]
	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
	add	sp, sp, #64
	b	_slist_push_head
LBB0_12:
	ldr	w19, [x20]
Lloh23:
	adrp	x8, _ERRCODE_CONFIGURATION_LIMIT_EXCEEDED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_CONFIGURATION_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	ldr	w2, [x21]
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x3, x2
	bl	_errdetail_plural
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_errhint
	b	LBB0_16
LBB0_13:
Lloh34:
	adrp	x8, _LOG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh36:
	ldr	w20, [x8]
Lloh37:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	b	LBB0_17
LBB0_15:
	ldr	w19, [x20]
Lloh42:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_errcode
Lloh45:
	adrp	x0, l_.str.8@PAGE
Lloh46:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errmsg
LBB0_16:
	mov	x1, x0
	mov	x0, x19
LBB0_17:
	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
	add	sp, sp, #64
	b	_ereport
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_RegisterBackgroundWorker.numworkers,4,2 ; @RegisterBackgroundWorker.numworkers
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registering background worker \"%s\""

	.comm	_process_shared_preload_libraries_in_progress,4,2 ; @process_shared_preload_libraries_in_progress
l_.str.1:                               ; @.str.1
	.asciz	"postgres"

	.comm	_LOG,4,2                        ; @LOG
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"background worker \"%s\": must be registered in shared_preload_libraries"

l_.str.3:                               ; @.str.3
	.asciz	"background worker \"%s\": only dynamic background workers can request notification"

	.comm	_max_worker_processes,4,2       ; @max_worker_processes
	.comm	_ERRCODE_CONFIGURATION_LIMIT_EXCEEDED,4,2 ; @ERRCODE_CONFIGURATION_LIMIT_EXCEEDED
l_.str.4:                               ; @.str.4
	.asciz	"too many background workers"

l_.str.5:                               ; @.str.5
	.asciz	"Up to %d background worker can be registered with the current settings."

l_.str.6:                               ; @.str.6
	.asciz	"Up to %d background workers can be registered with the current settings."

l_.str.7:                               ; @.str.7
	.asciz	"Consider increasing the configuration parameter \"max_worker_processes\"."

	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.8:                               ; @.str.8
	.asciz	"out of memory"

	.comm	_BackgroundWorkerList,4,2       ; @BackgroundWorkerList
.subsections_via_symbols
