	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SyncRepUpdateSyncStandbysDefined ## -- Begin function SyncRepUpdateSyncStandbysDefined
	.p2align	4, 0x90
_SyncRepUpdateSyncStandbysDefined:      ## @SyncRepUpdateSyncStandbysDefined
	.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
	xorl	%eax, %eax
	callq	_SyncStandbysDefined
	movl	%eax, %r14d
	movq	_WalSndCtl@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_SyncRepLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.2:
	movq	_NUM_SYNC_REP_WAIT_MODE@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_SyncRepWakeQueue
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_4
LBB0_5:
	movq	(%r15), %rax
	movl	%r14d, (%rax)
	movl	(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WalSndCtl,8,3                  ## @WalSndCtl
	.comm	_SyncRepLock,4,2                ## @SyncRepLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_NUM_SYNC_REP_WAIT_MODE,4,2     ## @NUM_SYNC_REP_WAIT_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SyncRepUpdateSyncStandbysDefined ; -- Begin function SyncRepUpdateSyncStandbysDefined
	.p2align	2
_SyncRepUpdateSyncStandbysDefined:      ; @SyncRepUpdateSyncStandbysDefined
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_SyncStandbysDefined
Lloh0:
	adrp	x21, _WalSndCtl@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WalSndCtl@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x22, _SyncRepLock@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SyncRepLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	cbnz	w19, LBB0_6
; %bb.3:
Lloh7:
	adrp	x23, _NUM_SYNC_REP_WAIT_MODE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _NUM_SYNC_REP_WAIT_MODE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_SyncRepWakeQueue
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_6:
	ldr	x8, [x21]
	str	w19, [x8]
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WalSndCtl,8,3                  ; @WalSndCtl
	.comm	_SyncRepLock,4,2                ; @SyncRepLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_NUM_SYNC_REP_WAIT_MODE,4,2     ; @NUM_SYNC_REP_WAIT_MODE
.subsections_via_symbols
