	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_get_crashed_backend_activity ## -- Begin function pgstat_get_crashed_backend_activity
	.p2align	4, 0x90
_pgstat_get_crashed_backend_activity:   ## @pgstat_get_crashed_backend_activity
	.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	%rsi, %r15
	movq	_BackendStatusArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	_BackendActivityBuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_14
## %bb.2:
	movq	_MaxBackends@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.3:
	addq	$8, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rsi), %ecx
	cmpl	%edi, %ecx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rsi
	decl	%ebx
	jne	LBB0_4
	jmp	LBB0_14
LBB0_7:
	movq	(%rsi), %r14
	cmpq	%r8, %r14
	jb	LBB0_13
## %bb.9:
	movq	_pgstat_track_activity_query_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BackendActivityBufferSize@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r8
	subq	%rsi, %r8
	cmpq	%r8, %r14
	ja	LBB0_13
## %bb.11:
	cmpb	$0, (%r14)
	je	LBB0_13
## %bb.12:
	movl	%edx, %edi
	callq	_Min
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ascii_safe_strlcpy
	movq	%r15, %rax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BackendStatusArray,8,3         ## @BackendStatusArray
	.comm	_BackendActivityBuffer,8,3      ## @BackendActivityBuffer
	.comm	_MaxBackends,4,2                ## @MaxBackends
	.comm	_BackendActivityBufferSize,4,2  ## @BackendActivityBufferSize
	.comm	_pgstat_track_activity_query_size,8,3 ## @pgstat_track_activity_query_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_get_crashed_backend_activity ; -- Begin function pgstat_get_crashed_backend_activity
	.p2align	2
_pgstat_get_crashed_backend_activity:   ; @pgstat_get_crashed_backend_activity
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _BackendStatusArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BackendStatusArray@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _BackendActivityBuffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BackendActivityBuffer@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x10, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_9
; %bb.1:
Lloh6:
	adrp	x9, _MaxBackends@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MaxBackends@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x19, x1
	add	x10, x10, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	cmp	w11, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #16
	subs	w9, w9, #1
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:
	ldr	x20, [x10]
	cmp	x20, x8
	b.lo	LBB0_9
; %bb.6:
Lloh9:
	adrp	x9, _pgstat_track_activity_query_size@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pgstat_track_activity_query_size@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x9]
Lloh12:
	adrp	x9, _BackendActivityBufferSize@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BackendActivityBufferSize@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	sub	x8, x8, x1
	cmp	x20, x8
	b.hi	LBB0_9
; %bb.7:
	ldrb	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x2
	bl	_Min
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ascii_safe_strlcpy
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BackendStatusArray,8,3         ; @BackendStatusArray
	.comm	_BackendActivityBuffer,8,3      ; @BackendActivityBuffer
	.comm	_MaxBackends,4,2                ; @MaxBackends
	.comm	_BackendActivityBufferSize,4,2  ; @BackendActivityBufferSize
	.comm	_pgstat_track_activity_query_size,8,3 ; @pgstat_track_activity_query_size
.subsections_via_symbols
