	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitWalSenderSlot
_InitWalSenderSlot:                     ## @InitWalSenderSlot
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WalSndCtl@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_Assert
	movq	_MyWalSnd@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	_max_wal_senders@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WalSndCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	(%r14,%rbx), %r12
	addq	$20, %r12
	movq	%r12, %rdi
	callq	_SpinLockAcquire
	cmpq	$0, (%r14,%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_SpinLockRelease
	incq	%r15
	movslq	(%r13), %rax
	addq	$80, %rbx
	cmpq	%rax, %r15
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	leaq	(%r14,%rbx), %r15
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14,%rbx)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 72(%r14,%rbx)
	movq	(%rax), %rcx
	movq	%rcx, 64(%r14,%rbx)
	movq	(%rax), %rcx
	movq	%rcx, 56(%r14,%rbx)
	movq	(%rax), %rax
	movq	%rax, 48(%r14,%rbx)
	movq	$-1, 8(%r14,%rbx)
	movl	$-1, 16(%r14,%rbx)
	movq	_WALSNDSTATE_STARTUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14,%rbx)
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14,%rbx)
	movq	$0, 24(%r14,%rbx)
	movq	%r12, %rdi
	callq	_SpinLockRelease
	movq	_MyWalSnd@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
LBB0_5:
	xorl	%edi, %edi
	movq	_MyWalSnd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%dil
	callq	_Assert
	movq	_WalSndKill@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_shmem_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WalSndCtl,8,3                  ## @WalSndCtl
	.comm	_MyWalSnd,8,3                   ## @MyWalSnd
	.comm	_max_wal_senders,4,2            ## @max_wal_senders
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_WALSNDSTATE_STARTUP,4,2        ## @WALSNDSTATE_STARTUP
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_WalSndKill,4,2                 ## @WalSndKill
	.no_dead_strip	_InitWalSenderSlot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitWalSenderSlot
_InitWalSenderSlot:                     ; @InitWalSenderSlot
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _WalSndCtl@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WalSndCtl@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh2:
	adrp	x20, _MyWalSnd@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MyWalSnd@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh4:
	adrp	x22, _max_wal_senders@GOTPAGE
Lloh5:
	ldr	x22, [x22, _max_wal_senders@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	w25, #72
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x24, x8, x25
	sub	x19, x24, #52
	mov	x0, x19
	bl	_SpinLockAcquire
	ldur	x8, [x24, #-72]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_SpinLockRelease
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x25, x25, #80
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x21, x24
	str	x8, [x21, #-72]!
Lloh9:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x24]
	ldr	x9, [x8]
	stur	x9, [x24, #-8]
	ldr	x9, [x8]
	stur	x9, [x24, #-16]
	ldr	x8, [x8]
	stur	x8, [x24, #-24]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x24, #-64]
	mov	w8, #-1
	stur	w8, [x24, #-56]
Lloh11:
	adrp	x8, _WALSNDSTATE_STARTUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WALSNDSTATE_STARTUP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stur	w8, [x24, #-32]
Lloh14:
	adrp	x8, _MyProc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MyProc@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	stp	xzr, x8, [x24, #-48]
	mov	x0, x19
	bl	_SpinLockRelease
	str	x21, [x20]
LBB0_5:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh17:
	adrp	x8, _WalSndKill@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WalSndKill@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_on_shmem_exit
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WalSndCtl,8,3                  ; @WalSndCtl
	.comm	_MyWalSnd,8,3                   ; @MyWalSnd
	.comm	_max_wal_senders,4,2            ; @max_wal_senders
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_WALSNDSTATE_STARTUP,4,2        ; @WALSNDSTATE_STARTUP
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_WalSndKill,4,2                 ; @WalSndKill
	.no_dead_strip	_InitWalSenderSlot
.subsections_via_symbols
