	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apw_start_database_worker
_apw_start_database_worker:             ## @apw_start_database_worker
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_MemSet
	movq	_BGWORKER_SHMEM_ACCESS@GOTPCREL(%rip), %rax
	movq	_BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	_BgWorkerStart_ConsistentState@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_BGW_NEVER_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-28(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movl	-32(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movl	-36(%rbp), %edi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rsi
	callq	_strcpy
	movl	-40(%rbp), %edi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_RegisterDynamicBackgroundWorker
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.4(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	-56(%rbp), %rdi
	callq	_WaitForBackgroundWorkerShutdown
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ## @BGWORKER_SHMEM_ACCESS
	.comm	_BGWORKER_BACKEND_DATABASE_CONNECTION,4,2 ## @BGWORKER_BACKEND_DATABASE_CONNECTION
	.comm	_BgWorkerStart_ConsistentState,4,2 ## @BgWorkerStart_ConsistentState
	.comm	_BGW_NEVER_RESTART,4,2          ## @BGW_NEVER_RESTART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_prewarm"

L_.str.1:                               ## @.str.1
	.asciz	"autoprewarm_database_main"

L_.str.2:                               ## @.str.2
	.asciz	"autoprewarm worker"

	.comm	_MyProcPid,4,2                  ## @MyProcPid
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_RESOURCES,4,2 ## @ERRCODE_INSUFFICIENT_RESOURCES
L_.str.3:                               ## @.str.3
	.asciz	"registering dynamic bgworker autoprewarm failed"

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

	.no_dead_strip	_apw_start_database_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apw_start_database_worker
_apw_start_database_worker:             ; @apw_start_database_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_MemSet
Lloh0:
	adrp	x8, _BGWORKER_SHMEM_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BGWORKER_SHMEM_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _BgWorkerStart_ConsistentState@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BgWorkerStart_ConsistentState@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [sp, #44]
Lloh9:
	adrp	x9, _BGW_NEVER_RESTART@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BGW_NEVER_RESTART@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w8, [sp, #16]
	str	w9, [sp, #40]
	ldr	w0, [sp, #36]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	w0, [sp, #32]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	ldr	w0, [sp, #28]
Lloh16:
	adrp	x19, l_.str.2@PAGE
Lloh17:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_strcpy
	ldr	w0, [sp, #24]
	mov	x1, x19
	bl	_strcpy
Lloh18:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_RegisterDynamicBackgroundWorker
	cbnz	w0, LBB0_2
; %bb.1:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
Lloh24:
	adrp	x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_errcode
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_WaitForBackgroundWorkerShutdown
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ; @BGWORKER_SHMEM_ACCESS
	.comm	_BGWORKER_BACKEND_DATABASE_CONNECTION,4,2 ; @BGWORKER_BACKEND_DATABASE_CONNECTION
	.comm	_BgWorkerStart_ConsistentState,4,2 ; @BgWorkerStart_ConsistentState
	.comm	_BGW_NEVER_RESTART,4,2          ; @BGW_NEVER_RESTART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_prewarm"

l_.str.1:                               ; @.str.1
	.asciz	"autoprewarm_database_main"

l_.str.2:                               ; @.str.2
	.asciz	"autoprewarm worker"

	.comm	_MyProcPid,4,2                  ; @MyProcPid
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_RESOURCES,4,2 ; @ERRCODE_INSUFFICIENT_RESOURCES
l_.str.3:                               ; @.str.3
	.asciz	"registering dynamic bgworker autoprewarm failed"

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

	.no_dead_strip	_apw_start_database_worker
.subsections_via_symbols
