	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apw_start_master_worker
_apw_start_master_worker:               ## @apw_start_master_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_MemSet
	movq	_BGWORKER_SHMEM_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_BgWorkerStart_ConsistentState@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movl	-28(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movl	-32(%rbp), %edi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rsi
	callq	_strcpy
	movl	-36(%rbp), %edi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	_process_shared_preload_libraries_in_progress@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rdi
	callq	_RegisterBackgroundWorker
	jmp	LBB0_6
LBB0_2:
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_RegisterDynamicBackgroundWorker
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	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_4:
	movq	-48(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_WaitForBackgroundWorkerStartup
	movq	_BGWH_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.5(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.6(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ## @BGWORKER_SHMEM_ACCESS
	.comm	_BgWorkerStart_ConsistentState,4,2 ## @BgWorkerStart_ConsistentState
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_prewarm"

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

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

	.comm	_process_shared_preload_libraries_in_progress,8,3 ## @process_shared_preload_libraries_in_progress
	.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	"could not register background process"

L_.str.4:                               ## @.str.4
	.asciz	"You may need to increase max_worker_processes."

	.comm	_BGWH_STARTED,8,3               ## @BGWH_STARTED
L_.str.5:                               ## @.str.5
	.asciz	"could not start background process"

L_.str.6:                               ## @.str.6
	.asciz	"More details may be available in the server log."

	.no_dead_strip	_apw_start_master_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_master_worker
_apw_start_master_worker:               ; @apw_start_master_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, #28
	bl	_MemSet
Lloh0:
	adrp	x8, _BGWORKER_SHMEM_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BGWORKER_SHMEM_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BgWorkerStart_ConsistentState@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BgWorkerStart_ConsistentState@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
	ldr	w0, [sp, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	w0, [sp, #28]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	ldr	w0, [sp, #24]
Lloh10:
	adrp	x19, l_.str.2@PAGE
Lloh11:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_strcpy
	ldr	w0, [sp, #20]
	mov	x1, x19
	bl	_strcpy
Lloh12:
	adrp	x8, _process_shared_preload_libraries_in_progress@GOTPAGE
Lloh13:
	ldr	x8, [x8, _process_shared_preload_libraries_in_progress@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, sp, #16
	bl	_RegisterBackgroundWorker
	b	LBB0_6
LBB0_2:
Lloh15:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_RegisterDynamicBackgroundWorker
	cbnz	w0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_4:
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	bl	_WaitForBackgroundWorkerStartup
Lloh28:
	adrp	x8, _BGWH_STARTED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BGWH_STARTED@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
Lloh31:
	adrp	x8, _ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
Lloh34:
	adrp	x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_errcode
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_6:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ; @BGWORKER_SHMEM_ACCESS
	.comm	_BgWorkerStart_ConsistentState,4,2 ; @BgWorkerStart_ConsistentState
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_prewarm"

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

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

	.comm	_process_shared_preload_libraries_in_progress,8,3 ; @process_shared_preload_libraries_in_progress
	.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	"could not register background process"

l_.str.4:                               ; @.str.4
	.asciz	"You may need to increase max_worker_processes."

	.comm	_BGWH_STARTED,8,3               ; @BGWH_STARTED
l_.str.5:                               ; @.str.5
	.asciz	"could not start background process"

l_.str.6:                               ; @.str.6
	.asciz	"More details may be available in the server log."

	.no_dead_strip	_apw_start_master_worker
.subsections_via_symbols
