	.file	"extr_postmaster.c_do_start_bgworker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"starting background worker process \"%s\""
	.align 8
.LC1:
	.string	"could not fork worker process: %m"
	.text
	.p2align 4
	.type	do_start_bgworker, @function
do_start_bgworker:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR [rdi], 0
	sete	dil
	movzx	edi, dil
	call	Assert@PLT
	mov	rdi, rbx
	call	assign_backendlist_entry@PLT
	test	eax, eax
	je	.L10
	mov	esi, DWORD PTR 16[rbx]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR DEBUG1[rip]
	mov	esi, eax
	call	ereport@PLT
	xor	eax, eax
	call	fork_process@PLT
	cmp	rax, -1
	je	.L4
	test	rax, rax
	jne	.L11
	xor	eax, eax
	xor	r12d, r12d
	call	InitPostmasterChild@PLT
	xor	edi, edi
	call	ClosePostmasterPorts@PLT
	mov	edi, DWORD PTR TopMemoryContext[rip]
	mov	esi, 4
	call	MemoryContextAlloc@PLT
	lea	rsi, 16[rbx]
	mov	edx, 4
	mov	rdi, rax
	mov	QWORD PTR MyBgworkerEntry[rip], rax
	call	memcpy@PLT
	mov	edi, DWORD PTR TopMemoryContext[rip]
	call	MemoryContextSwitchTo@PLT
	mov	rdi, QWORD PTR PostmasterContext[rip]
	call	MemoryContextDelete@PLT
	xor	eax, eax
	mov	QWORD PTR PostmasterContext[rip], 0
	call	StartBackgroundWorker@PLT
	mov	edi, 1
	call	exit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], rax
	mov	rdi, rbx
	mov	r12d, 1
	mov	QWORD PTR [rdx], rax
	call	ReportBackgroundWorkerPID@PLT
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdi, BackendList[rip]
	add	rsi, 8
	call	dlist_push_head@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	errmsg@PLT
	mov	edi, DWORD PTR LOG[rip]
	mov	esi, eax
	call	ereport@PLT
	mov	edi, DWORD PTR 32[rbx]
	call	ReleasePostmasterChildSlot@PLT
	mov	DWORD PTR 32[rbx], 0
	mov	rdi, QWORD PTR 8[rbx]
	call	free@PLT
	mov	QWORD PTR 8[rbx], 0
	xor	eax, eax
	call	GetCurrentTimestamp@PLT
	mov	QWORD PTR 24[rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, eax
	xor	eax, eax
	call	GetCurrentTimestamp@PLT
	mov	QWORD PTR 24[rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	do_start_bgworker, .-do_start_bgworker
	.comm	TopMemoryContext,4,4
	.comm	PostmasterContext,8,8
	.comm	MyBgworkerEntry,8,8
	.comm	LOG,4,4
	.comm	DEBUG1,4,4
	.comm	BackendList,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_postmaster.c_do_start_bgworker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"starting background worker process \"%s\"\000"
	.align	2
.LC1:
	.ascii	"could not fork worker process: %m\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_start_bgworker, %function
do_start_bgworker:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r5
	bl	assign_backendlist_entry
	subs	r4, r0, #0
	beq	.L9
	ldr	r3, .L11
	ldr	r1, [r5, #8]
	ldr	r0, .L11+4
	ldr	r4, [r3]
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	bl	fork_process
	cmn	r0, #1
	mov	r4, r0
	beq	.L4
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r5, #4]
	str	r0, [r5]
	str	r4, [r3]
	mov	r4, #1
	mov	r0, r5
	bl	ReportBackgroundWorkerPID
	ldr	r1, [r5, #4]
	ldr	r0, .L11+8
	add	r1, r1, #4
	bl	dlist_push_head
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L11+12
	ldr	r0, .L11+16
	ldr	r6, [r3]
	bl	errmsg
	mov	r4, #0
	mov	r1, r0
	mov	r0, r6
	bl	ereport
	ldr	r0, [r5, #16]
	bl	ReleasePostmasterChildSlot
	ldr	r0, [r5, #4]
	str	r4, [r5, #16]
	bl	free
	str	r4, [r5, #4]
.L9:
	bl	GetCurrentTimestamp
	str	r0, [r5, #12]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r6, .L11+20
	bl	InitPostmasterChild
	mov	r0, r4
	bl	ClosePostmasterPorts
	mov	r1, #4
	ldr	r0, [r6]
	bl	MemoryContextAlloc
	ldr	r3, .L11+24
	add	r1, r5, #8
	mov	r2, #4
	ldr	r5, .L11+28
	str	r0, [r3]
	bl	memcpy
	ldr	r0, [r6]
	bl	MemoryContextSwitchTo
	ldr	r0, [r5]
	bl	MemoryContextDelete
	str	r4, [r5]
	bl	StartBackgroundWorker
	mov	r0, #1
	bl	exit
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	DEBUG1
	.word	.LC0
	.word	BackendList
	.word	LOG
	.word	.LC1
	.word	TopMemoryContext
	.word	MyBgworkerEntry
	.word	PostmasterContext
	.size	do_start_bgworker, .-do_start_bgworker
	.comm	TopMemoryContext,4,4
	.comm	PostmasterContext,4,4
	.comm	MyBgworkerEntry,4,4
	.comm	LOG,4,4
	.comm	DEBUG1,4,4
	.comm	BackendList,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
