	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DeadLockReport                 ## -- Begin function DeadLockReport
	.p2align	4, 0x90
_DeadLockReport:                        ## @DeadLockReport
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-48(%rbp), %rdi
	callq	_initStringInfo
	leaq	-64(%rbp), %rdi
	callq	_initStringInfo
	leaq	-56(%rbp), %rdi
	callq	_initStringInfo
	movq	_nDeadlockDetails@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	_deadlockDetails@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	setne	%cl
	leaq	(%rcx,%rcx,2), %rax
	movl	(%rbx,%rax,4), %r14d
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_resetStringInfo
	leaq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_DescribeLockTag
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	movl	(%rbx), %r12d
	movl	4(%rbx), %esi
	callq	_GetLockmodeName
	movl	-56(%rbp), %r8d
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_appendStringInfo
	movl	(%r13), %eax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.2:
	movl	$1, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_deadlockDetails@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	decl	%eax
	cltq
	cmpq	%rax, %r14
	leaq	20(%r13,%r12), %rbx
	leaq	24(%r13,%r12), %rax
	cmovgeq	%r13, %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_resetStringInfo
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_DescribeLockTag
	leaq	-48(%rbp), %rdi
	movl	$10, %esi
	callq	_appendStringInfoChar
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movl	20(%r13,%r12), %edi
	movl	12(%r13,%r12), %r15d
	movl	16(%r13,%r12), %esi
	movq	_nDeadlockDetails@GOTPCREL(%rip), %r13
	callq	_GetLockmodeName
	movl	-56(%rbp), %r8d
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_appendStringInfo
	incq	%r14
	movslq	(%r13), %rax
	addq	$12, %r12
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_4:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	-64(%rbp), %rdi
	callq	_appendBinaryStringInfo
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.5:
	movq	%r13, %r15
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_deadlockDetails@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	-64(%rbp), %rdi
	movl	$10, %esi
	callq	_appendStringInfoChar
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movl	(%rbx,%r13), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_pgstat_get_backend_current_activity
	leaq	-64(%rbp), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_appendStringInfo
	incq	%r14
	movslq	(%r15), %rax
	addq	$12, %r13
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_pgstat_report_deadlock
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_T_R_DEADLOCK_DETECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	-48(%rbp), %esi
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdi
	callq	_errdetail_internal
	movl	-64(%rbp), %esi
	movq	%rbx, %rdi
	callq	_errdetail_log
	leaq	L_.str.4(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nDeadlockDetails,4,2           ## @nDeadlockDetails
	.comm	_deadlockDetails,8,3            ## @deadlockDetails
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Process %d waits for %s on %s; blocked by process %d."

L_.str.1:                               ## @.str.1
	.asciz	"Process %d: %s"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_T_R_DEADLOCK_DETECTED,4,2 ## @ERRCODE_T_R_DEADLOCK_DETECTED
L_.str.2:                               ## @.str.2
	.asciz	"deadlock detected"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"See server log for query details."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DeadLockReport                 ; -- Begin function DeadLockReport
	.p2align	2
_DeadLockReport:                        ; @DeadLockReport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	add	x0, sp, #40
	bl	_initStringInfo
	add	x0, sp, #32
	bl	_initStringInfo
	add	x0, sp, #24
	bl	_initStringInfo
Lloh0:
	adrp	x22, _nDeadlockDetails@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nDeadlockDetails@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _deadlockDetails@GOTPAGE
Lloh3:
	ldr	x23, [x23, _deadlockDetails@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x21, [x23]
	cset	w8, ne
	mov	w9, #12
	umull	x8, w8, w9
	ldr	w24, [x21, x8]
	add	x0, sp, #24
	bl	_resetStringInfo
	add	x1, x21, #8
	add	x0, sp, #24
	bl	_DescribeLockTag
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
	ldp	w1, w0, [x21, #4]
	ldr	w20, [x21]
	bl	_GetLockmodeName
	mov	x3, x0
	ldr	w8, [sp, #24]
	stp	x8, x24, [sp]
	add	x0, sp, #40
	mov	x1, x19
	mov	x2, x20
	bl	_appendStringInfo
	ldr	w8, [x22]
	cmp	w8, #1
	b.le	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	w25, #1
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	sub	w8, w8, #1
	add	x26, x9, x24
	add	x10, x26, #24
	cmp	x25, w8, sxtw
	csel	x8, x10, x9, lt
	ldr	w27, [x8]
	add	x0, sp, #24
	bl	_resetStringInfo
	add	x1, x26, #20
	add	x0, sp, #24
	bl	_DescribeLockTag
	add	x0, sp, #40
	mov	w1, #10
	bl	_appendStringInfoChar
	mov	x0, x19
	bl	__
	mov	x20, x0
	ldp	w1, w0, [x26, #16]
	ldr	w21, [x26, #12]
	bl	_GetLockmodeName
	mov	x3, x0
	ldr	w8, [sp, #24]
	stp	x8, x27, [sp]
	add	x0, sp, #40
	mov	x1, x20
	mov	x2, x21
	bl	_appendStringInfo
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #12
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	ldp	w1, w2, [sp, #40]
	add	x0, sp, #32
	bl	_appendBinaryStringInfo
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x24, #0
	mov	x25, #0
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x23]
	add	x0, sp, #32
	mov	w1, #10
	bl	_appendStringInfoChar
	mov	x0, x19
	bl	__
	mov	x20, x0
	ldr	w21, [x21, x24]
	mov	x0, x21
	mov	w1, #0
	bl	_pgstat_get_backend_current_activity
	mov	x3, x0
	add	x0, sp, #32
	mov	x1, x20
	mov	x2, x21
	bl	_appendStringInfo
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #12
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_7:
	bl	_pgstat_report_deadlock
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
Lloh13:
	adrp	x8, _ERRCODE_T_R_DEADLOCK_DETECTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_T_R_DEADLOCK_DETECTED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	ldr	w1, [sp, #40]
Lloh18:
	adrp	x20, l_.str.3@PAGE
Lloh19:
	add	x20, x20, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_errdetail_internal
	ldr	w1, [sp, #32]
	mov	x0, x20
	bl	_errdetail_log
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nDeadlockDetails,4,2           ; @nDeadlockDetails
	.comm	_deadlockDetails,8,3            ; @deadlockDetails
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Process %d waits for %s on %s; blocked by process %d."

l_.str.1:                               ; @.str.1
	.asciz	"Process %d: %s"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_T_R_DEADLOCK_DETECTED,4,2 ; @ERRCODE_T_R_DEADLOCK_DETECTED
l_.str.2:                               ; @.str.2
	.asciz	"deadlock detected"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"See server log for query details."

.subsections_via_symbols
