	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BackendXidGetPid               ## -- Begin function BackendXidGetPid
	.p2align	4, 0x90
_BackendXidGetPid:                      ## @BackendXidGetPid
	.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
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%rdi, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_ProcArrayLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	8(%r14), %rcx
	movq	_allPgXact@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rsi,4), %rdi
	cmpq	%rbx, (%rdx,%rdi,8)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_3
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	movq	_allProcs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %r14d
LBB0_8:
	movl	(%r15), %edi
	callq	_LWLockRelease
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_allProcs,8,3                   ## @allProcs
	.comm	_allPgXact,8,3                  ## @allPgXact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BackendXidGetPid               ; -- Begin function BackendXidGetPid
	.p2align	2
_BackendXidGetPid:                      ; @BackendXidGetPid
	.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
Lloh0:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x8, _procArray@GOTPAGE
Lloh4:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
Lloh6:
	adrp	x20, _ProcArrayLock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x21, #8]
Lloh11:
	adrp	x10, _allPgXact@GOTPAGE
Lloh12:
	ldr	x10, [x10, _allPgXact@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x9]
	ldr	x12, [x10, x11, lsl #3]
	cmp	x12, x19
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w19, #0
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _allProcs@GOTPAGE
Lloh15:
	ldr	x8, [x8, _allProcs@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w19, [x8, x11, lsl #2]
LBB0_8:
	ldr	w0, [x20]
	bl	_LWLockRelease
LBB0_9:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_allProcs,8,3                   ; @allProcs
	.comm	_allPgXact,8,3                  ; @allPgXact
.subsections_via_symbols
