	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assign_backendlist_entry
_assign_backendlist_entry:              ## @assign_backendlist_entry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_BACKEND_TYPE_BGWORKER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_canAcceptConnections
	movq	_CAC_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_MyCancelKey@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_RandomCancelKey
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	$20, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_AssignPostmasterChildSlot
	movq	_MyPMChildSlot@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 8(%rbx)
	movl	(%r12), %ecx
	movl	%ecx, 12(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, 8(%r14)
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CONFIGURATION_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BACKEND_TYPE_BGWORKER,4,2      ## @BACKEND_TYPE_BGWORKER
	.comm	_CAC_OK,8,3                     ## @CAC_OK
	.comm	_LOG,4,2                        ## @LOG
	.comm	_ERRCODE_CONFIGURATION_LIMIT_EXCEEDED,4,2 ## @ERRCODE_CONFIGURATION_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no slot available for new worker process"

	.comm	_MyCancelKey,4,2                ## @MyCancelKey
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ## @ERRCODE_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not generate random cancel key"

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

	.comm	_MyPMChildSlot,4,2              ## @MyPMChildSlot
	.no_dead_strip	_assign_backendlist_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assign_backendlist_entry
_assign_backendlist_entry:              ; @assign_backendlist_entry
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _BACKEND_TYPE_BGWORKER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BACKEND_TYPE_BGWORKER@GOTPAGEOFF]
	ldr	w0, [x22]
	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_4
; %bb.1:
Lloh5:
	adrp	x21, _MyCancelKey@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MyCancelKey@GOTPAGEOFF]
	mov	x0, x21
	bl	_RandomCancelKey
	cbz	w0, LBB0_5
; %bb.2:
	mov	w0, #20
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [x0, #16]
	bl	_AssignPostmasterChildSlot
Lloh7:
	adrp	x8, _MyPMChildSlot@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MyPMChildSlot@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
	ldr	w8, [x22]
	stp	w0, w8, [x20, #8]
	str	xzr, [x20]
	str	x20, [x19, #8]
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _LOG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
Lloh13:
	adrp	x8, _ERRCODE_CONFIGURATION_LIMIT_EXCEEDED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_CONFIGURATION_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x8, _LOG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x8, _ERRCODE_INTERNAL_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh26:
	adrp	x8, _LOG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
Lloh29:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_errcode
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	w0, #0
LBB0_8:
	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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BACKEND_TYPE_BGWORKER,4,2      ; @BACKEND_TYPE_BGWORKER
	.comm	_CAC_OK,8,3                     ; @CAC_OK
	.comm	_LOG,4,2                        ; @LOG
	.comm	_ERRCODE_CONFIGURATION_LIMIT_EXCEEDED,4,2 ; @ERRCODE_CONFIGURATION_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no slot available for new worker process"

	.comm	_MyCancelKey,4,2                ; @MyCancelKey
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ; @ERRCODE_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not generate random cancel key"

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

	.comm	_MyPMChildSlot,4,2              ; @MyPMChildSlot
	.no_dead_strip	_assign_backendlist_entry
.subsections_via_symbols
