	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ApplyLauncherRegister          ## -- Begin function ApplyLauncherRegister
	.p2align	4, 0x90
_ApplyLauncherRegister:                 ## @ApplyLauncherRegister
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_max_logical_replication_workers@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_BGWORKER_SHMEM_ACCESS@GOTPCREL(%rip), %rax
	movq	_BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movq	_BgWorkerStart_RecoveryFinished@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	-36(%rbp), %edi
	movq	_BGW_MAXLEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movl	-40(%rbp), %edi
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movl	-44(%rbp), %edi
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %r15
	movq	%r15, %rdx
	callq	_snprintf
	movl	-48(%rbp), %edi
	movl	(%rbx), %esi
	movq	%r15, %rdx
	callq	_snprintf
	movl	$5, -68(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movq	%r14, %rdi
	callq	_RegisterBackgroundWorker
LBB0_2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_logical_replication_workers,8,3 ## @max_logical_replication_workers
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ## @BGWORKER_SHMEM_ACCESS
	.comm	_BGWORKER_BACKEND_DATABASE_CONNECTION,4,2 ## @BGWORKER_BACKEND_DATABASE_CONNECTION
	.comm	_BgWorkerStart_RecoveryFinished,4,2 ## @BgWorkerStart_RecoveryFinished
	.comm	_BGW_MAXLEN,4,2                 ## @BGW_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"postgres"

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

L_.str.2:                               ## @.str.2
	.asciz	"logical replication launcher"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ApplyLauncherRegister          ; -- Begin function ApplyLauncherRegister
	.p2align	2
_ApplyLauncherRegister:                 ; @ApplyLauncherRegister
	.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
Lloh0:
	adrp	x8, _max_logical_replication_workers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_logical_replication_workers@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh3:
	adrp	x8, _BGWORKER_SHMEM_ACCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BGWORKER_SHMEM_ACCESS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BGWORKER_BACKEND_DATABASE_CONNECTION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _BgWorkerStart_RecoveryFinished@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BgWorkerStart_RecoveryFinished@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w8, [sp]
	str	w9, [sp, #40]
	ldr	w0, [sp, #36]
Lloh12:
	adrp	x20, _BGW_MAXLEN@GOTPAGE
Lloh13:
	ldr	x20, [x20, _BGW_MAXLEN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	ldr	w0, [sp, #32]
	ldr	w1, [x20]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	ldr	w0, [sp, #28]
	ldr	w1, [x20]
Lloh18:
	adrp	x19, l_.str.2@PAGE
Lloh19:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_snprintf
	ldr	w0, [sp, #24]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_snprintf
	mov	w8, #5
	str	w8, [sp, #4]
	stp	xzr, xzr, [sp, #8]
	mov	x0, sp
	bl	_RegisterBackgroundWorker
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_max_logical_replication_workers,8,3 ; @max_logical_replication_workers
	.comm	_BGWORKER_SHMEM_ACCESS,4,2      ; @BGWORKER_SHMEM_ACCESS
	.comm	_BGWORKER_BACKEND_DATABASE_CONNECTION,4,2 ; @BGWORKER_BACKEND_DATABASE_CONNECTION
	.comm	_BgWorkerStart_RecoveryFinished,4,2 ; @BgWorkerStart_RecoveryFinished
	.comm	_BGW_MAXLEN,4,2                 ; @BGW_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"postgres"

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

l_.str.2:                               ; @.str.2
	.asciz	"logical replication launcher"

.subsections_via_symbols
