	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_get_backend_current_activity ## -- Begin function pgstat_get_backend_current_activity
	.p2align	4, 0x90
_pgstat_get_backend_current_activity:   ## @pgstat_get_backend_current_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	%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	_MaxBackends@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %rax
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.1:
	movl	%edi, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_BackendStatusArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$1, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_pgstat_begin_read_activity
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_pgstat_end_read_activity
	callq	_pgstat_read_activity_complete
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r12d, %r14d
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
	leal	1(%r15), %eax
	cmpl	(%r13), %r15d
	movl	%eax, %r15d
	jl	LBB0_3
## %bb.13:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	8(%rbx), %r14
	xorl	%eax, %eax
	callq	_GetUserId
	cmpq	%rax, %r14
	jne	LBB0_8
LBB0_9:
	movq	16(%rbx), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_10
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pgstat_clip_activity           ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str(%rip), %rax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BackendStatusArray,8,3         ## @BackendStatusArray
	.comm	_MaxBackends,4,2                ## @MaxBackends
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<insufficient privilege>"

L_.str.1:                               ## @.str.1
	.asciz	"<command string not enabled>"

L_.str.2:                               ## @.str.2
	.asciz	"<backend information not available>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_get_backend_current_activity ; -- Begin function pgstat_get_backend_current_activity
	.p2align	2
_pgstat_get_backend_current_activity:   ; @pgstat_get_backend_current_activity
	.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	x23, _MaxBackends@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MaxBackends@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x22, x0
Lloh2:
	adrp	x8, _BackendStatusArray@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BackendStatusArray@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	mov	w24, #1
Lloh5:
	adrp	x20, l_.str.2@PAGE
Lloh6:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_pgstat_begin_read_activity
	ldr	w25, [x19]
	mov	x0, x19
	bl	_pgstat_end_read_activity
	bl	_pgstat_read_activity_complete
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w22
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #24
	add	w8, w24, #1
	ldr	w9, [x23]
	cmp	w24, w9
	mov	x24, x8
	b.lt	LBB0_3
	b	LBB0_14
LBB0_6:
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_7:
	cbz	w21, LBB0_10
; %bb.8:
	bl	_superuser
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x20, [x19, #8]
	bl	_GetUserId
	cmp	x20, x0
	b.ne	LBB0_13
LBB0_10:
	ldr	x0, [x19, #16]
	ldrb	w8, [x0]
	cbz	w8, LBB0_12
; %bb.11:
	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	_pgstat_clip_activity
LBB0_12:
Lloh9:
	adrp	x20, l_.str.1@PAGE
Lloh10:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BackendStatusArray,8,3         ; @BackendStatusArray
	.comm	_MaxBackends,4,2                ; @MaxBackends
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<insufficient privilege>"

l_.str.1:                               ; @.str.1
	.asciz	"<command string not enabled>"

l_.str.2:                               ; @.str.2
	.asciz	"<backend information not available>"

.subsections_via_symbols
