	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SanityCheckBackgroundWorker
_SanityCheckBackgroundWorker:           ## @SanityCheckBackgroundWorker
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	_BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	_BGWORKER_SHMEM_ACCESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.4:
	movq	8(%r15), %rcx
	movq	_BgWorkerStart_PostmasterStart@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	20(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	movl	16(%r15), %ecx
	movq	_BGW_NEVER_RESTART@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %ecx
	jns	LBB0_8
## %bb.7:
	cmpl	%edx, %ecx
	jne	LBB0_9
LBB0_8:
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	imulq	$274877907, %rsi, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$38, %rsi
	addl	%edi, %esi
	cmpl	%esi, %ecx
	jle	LBB0_10
LBB0_9:
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	20(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	20(%r15), %esi
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	%edx, %ecx
	je	LBB0_13
## %bb.11:
	movq	_BGWORKER_CLASS_PARALLEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	20(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_13:
	movl	24(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movl	20(%r15), %esi
	movl	24(%r15), %edi
	callq	_strcpy
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWORKER_BACKEND_DATABASE_CONNECTION,4,2 ## @BGWORKER_BACKEND_DATABASE_CONNECTION
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ## @BGWORKER_SHMEM_ACCESS
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"background worker \"%s\": must attach to shared memory in order to request a database connection"

	.comm	_BgWorkerStart_PostmasterStart,8,3 ## @BgWorkerStart_PostmasterStart
L_.str.1:                               ## @.str.1
	.asciz	"background worker \"%s\": cannot request database access if starting at postmaster start"

	.comm	_BGW_NEVER_RESTART,4,2          ## @BGW_NEVER_RESTART
	.comm	_USECS_PER_DAY,4,2              ## @USECS_PER_DAY
L_.str.2:                               ## @.str.2
	.asciz	"background worker \"%s\": invalid restart interval"

	.comm	_BGWORKER_CLASS_PARALLEL,4,2    ## @BGWORKER_CLASS_PARALLEL
L_.str.3:                               ## @.str.3
	.asciz	"background worker \"%s\": parallel workers may not be configured for restart"

L_.str.4:                               ## @.str.4
	.space	1

	.no_dead_strip	_SanityCheckBackgroundWorker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SanityCheckBackgroundWorker
_SanityCheckBackgroundWorker:           ; @SanityCheckBackgroundWorker
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _BGWORKER_SHMEM_ACCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BGWORKER_SHMEM_ACCESS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	x9, [x20, #8]
Lloh6:
	adrp	x10, _BgWorkerStart_PostmasterStart@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BgWorkerStart_PostmasterStart@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20, #20]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w9, [x20, #16]
Lloh14:
	adrp	x10, _BGW_NEVER_RESTART@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BGW_NEVER_RESTART@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tbz	w9, #31, LBB0_6
; %bb.5:
	cmp	w9, w10
	b.ne	LBB0_7
LBB0_6:
Lloh17:
	adrp	x11, _USECS_PER_DAY@GOTPAGE
Lloh18:
	ldr	x11, [x11, _USECS_PER_DAY@GOTPAGEOFF]
Lloh19:
	ldrsw	x11, [x11]
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	mul	x11, x11, x12
	lsr	x12, x11, #63
	asr	x11, x11, #38
	add	w11, w11, w12
	cmp	w9, w11
	b.le	LBB0_11
LBB0_7:
Lloh20:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20, #20]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20, #20]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	w9, w10
	b.eq	LBB0_14
; %bb.12:
Lloh30:
	adrp	x9, _BGWORKER_CLASS_PARALLEL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BGWORKER_CLASS_PARALLEL@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20, #20]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_14:
	ldr	w0, [x20, #24]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_16
; %bb.15:
	ldp	w1, w0, [x20, #20]
	bl	_strcpy
LBB0_16:
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWORKER_BACKEND_DATABASE_CONNECTION,4,2 ; @BGWORKER_BACKEND_DATABASE_CONNECTION
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ; @BGWORKER_SHMEM_ACCESS
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"background worker \"%s\": must attach to shared memory in order to request a database connection"

	.comm	_BgWorkerStart_PostmasterStart,8,3 ; @BgWorkerStart_PostmasterStart
l_.str.1:                               ; @.str.1
	.asciz	"background worker \"%s\": cannot request database access if starting at postmaster start"

	.comm	_BGW_NEVER_RESTART,4,2          ; @BGW_NEVER_RESTART
	.comm	_USECS_PER_DAY,4,2              ; @USECS_PER_DAY
l_.str.2:                               ; @.str.2
	.asciz	"background worker \"%s\": invalid restart interval"

	.comm	_BGWORKER_CLASS_PARALLEL,4,2    ; @BGWORKER_CLASS_PARALLEL
l_.str.3:                               ; @.str.3
	.asciz	"background worker \"%s\": parallel workers may not be configured for restart"

l_.str.4:                               ; @.str.4
	.space	1

	.no_dead_strip	_SanityCheckBackgroundWorker
.subsections_via_symbols
