	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_report_activity         ## -- Begin function pgstat_report_activity
	.p2align	4, 0x90
_pgstat_report_activity:                ## @pgstat_report_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	%rsi, %r14
	movq	%rdi, %r15
	movq	_MyBEEntry@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rsi, %rdi
	callq	_TRACE_POSTGRESQL_STATEMENT_STATUS
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	_pgstat_track_activities@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_GetCurrentStatementStartTimestamp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_strlen
	movq	_pgstat_track_activity_query_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	decq	%rsi
	movl	%eax, %edi
	callq	_Min
	movl	%eax, %r13d
LBB0_6:
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_PGSTAT_BEGIN_WRITE_ACTIVITY
	movq	%r15, (%rbx)
	movq	%r12, 24(%rbx)
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movslq	%r13d, %rcx
	movb	$0, (%rax,%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	jmp	LBB0_8
LBB0_2:
	movq	(%rbx), %rax
	movq	_STATE_DISABLED@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_PGSTAT_BEGIN_WRITE_ACTIVITY
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	$0, 24(%rbx)
	movq	8(%rbx), %rax
	movb	$0, (%rax)
	movq	$0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	$0, (%r15)
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PGSTAT_END_WRITE_ACTIVITY      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyBEEntry,8,3                  ## @MyBEEntry
	.comm	_pgstat_track_activities,4,2    ## @pgstat_track_activities
	.comm	_STATE_DISABLED,8,3             ## @STATE_DISABLED
	.comm	_MyProc,8,3                     ## @MyProc
	.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_report_activity         ; -- Begin function pgstat_report_activity
	.p2align	2
_pgstat_report_activity:                ; @pgstat_report_activity
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MyBEEntry@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyBEEntry@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	x0, x1
	bl	_TRACE_POSTGRESQL_STATEMENT_STATUS
	cbz	x19, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _pgstat_track_activities@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pgstat_track_activities@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	bl	_GetCurrentStatementStartTimestamp
	mov	x22, x0
	cbz	x20, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_strlen
Lloh6:
	adrp	x8, _pgstat_track_activity_query_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pgstat_track_activity_query_size@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sub	x1, x8, #1
	bl	_Min
	mov	x23, x0
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
Lloh9:
	adrp	x20, _STATE_DISABLED@GOTPAGE
Lloh10:
	ldr	x20, [x20, _STATE_DISABLED@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_5:
	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_6:
	mov	w23, #0
LBB0_7:
	bl	_GetCurrentTimestamp
	mov	x24, x0
	mov	x0, x19
	bl	_PGSTAT_BEGIN_WRITE_ACTIVITY
	str	x21, [x19]
	str	x24, [x19, #24]
	cbz	x20, LBB0_10
; %bb.8:
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x19, #8]
	strb	wzr, [x8, w23, sxtw]
	str	x22, [x19, #16]
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _MyProc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MyProc@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_PGSTAT_BEGIN_WRITE_ACTIVITY
	ldr	x8, [x20]
	str	x8, [x19]
	str	xzr, [x19, #24]
	ldr	x8, [x19, #8]
	strb	wzr, [x8]
	str	xzr, [x19, #16]
	str	xzr, [x19, #32]
	str	xzr, [x21]
LBB0_10:
	mov	x0, x19
	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	_PGSTAT_END_WRITE_ACTIVITY
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MyBEEntry,8,3                  ; @MyBEEntry
	.comm	_pgstat_track_activities,4,2    ; @pgstat_track_activities
	.comm	_STATE_DISABLED,8,3             ; @STATE_DISABLED
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_pgstat_track_activity_query_size,8,3 ; @pgstat_track_activity_query_size
.subsections_via_symbols
