	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StartAutovacuumWorker
_StartAutovacuumWorker:                 ## @StartAutovacuumWorker
	.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	_BACKEND_TYPE_AUTOVAC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_canAcceptConnections
	movq	_CAC_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	_MyCancelKey@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_RandomCancelKey
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movl	(%r14), %eax
	movl	%eax, 28(%rbx)
	movl	$0, (%rbx)
	xorl	%eax, %eax
	callq	_AssignPostmasterChildSlot
	movq	_MyPMChildSlot@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 16(%rbx)
	movl	$0, 4(%rbx)
	xorl	%eax, %eax
	callq	_StartAutoVacWorker
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jle	LBB0_4
## %bb.10:
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	addq	$20, %rbx
	movq	_BackendList@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dlist_push_head                ## TAILCALL
LBB0_9:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_5:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_6
LBB0_4:
	movl	16(%rbx), %edi
	callq	_ReleasePostmasterChildSlot
	movq	%rbx, %rdi
	callq	_free
LBB0_6:
	movq	_AutoVacPID@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_AutoVacWorkerFailed
	movq	_avlauncher_needs_signal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BACKEND_TYPE_AUTOVAC,4,2       ## @BACKEND_TYPE_AUTOVAC
	.comm	_CAC_OK,8,3                     ## @CAC_OK
	.comm	_MyCancelKey,4,2                ## @MyCancelKey
	.comm	_LOG,4,2                        ## @LOG
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ## @ERRCODE_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not generate random cancel key"

	.comm	_MyPMChildSlot,4,2              ## @MyPMChildSlot
	.comm	_BackendList,4,2                ## @BackendList
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_AutoVacPID,8,3                 ## @AutoVacPID
	.comm	_avlauncher_needs_signal,4,2    ## @avlauncher_needs_signal
	.no_dead_strip	_StartAutovacuumWorker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StartAutovacuumWorker
_StartAutovacuumWorker:                 ; @StartAutovacuumWorker
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _BACKEND_TYPE_AUTOVAC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BACKEND_TYPE_AUTOVAC@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_canAcceptConnections
Lloh2:
	adrp	x8, _CAC_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAC_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
Lloh5:
	adrp	x20, _MyCancelKey@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MyCancelKey@GOTPAGEOFF]
	mov	x0, x20
	bl	_RandomCancelKey
	cbz	w0, LBB0_5
; %bb.2:
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	w8, [x20]
	str	w8, [x0, #28]
	str	wzr, [x0]
	bl	_AssignPostmasterChildSlot
Lloh7:
	adrp	x8, _MyPMChildSlot@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MyPMChildSlot@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
	str	w0, [x19, #16]
	str	wzr, [x19, #4]
	bl	_StartAutoVacWorker
	str	x0, [x19, #8]
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	w8, [x21]
	str	w8, [x19, #24]
	add	x1, x19, #20
Lloh10:
	adrp	x0, _BackendList@GOTPAGE
Lloh11:
	ldr	x0, [x0, _BackendList@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dlist_push_head
LBB0_5:
Lloh12:
	adrp	x8, _LOG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ereport
LBB0_6:
Lloh20:
	adrp	x8, _LOG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_ReleasePostmasterChildSlot
	mov	x0, x19
	bl	_free
LBB0_8:
Lloh28:
	adrp	x8, _AutoVacPID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AutoVacPID@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	bl	_AutoVacWorkerFailed
Lloh31:
	adrp	x8, _avlauncher_needs_signal@GOTPAGE
Lloh32:
	ldr	x8, [x8, _avlauncher_needs_signal@GOTPAGEOFF]
	mov	w9, #1
Lloh33:
	str	w9, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_BACKEND_TYPE_AUTOVAC,4,2       ; @BACKEND_TYPE_AUTOVAC
	.comm	_CAC_OK,8,3                     ; @CAC_OK
	.comm	_MyCancelKey,4,2                ; @MyCancelKey
	.comm	_LOG,4,2                        ; @LOG
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ; @ERRCODE_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not generate random cancel key"

	.comm	_MyPMChildSlot,4,2              ; @MyPMChildSlot
	.comm	_BackendList,4,2                ; @BackendList
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_AutoVacPID,8,3                 ; @AutoVacPID
	.comm	_avlauncher_needs_signal,4,2    ; @avlauncher_needs_signal
	.no_dead_strip	_StartAutovacuumWorker
.subsections_via_symbols
