	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_signal_backend
_pg_signal_backend:                     ## @pg_signal_backend
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	callq	_BackendPidGetProc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_superuser_arg
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_GetUserId
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_has_privs_of_role
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_DEFAULT_ROLE_SIGNAL_BACKENDID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_has_privs_of_role
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_kill
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_10:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_SIGNAL_BACKEND_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SIGNAL_BACKEND_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_SIGNAL_BACKEND_NOSUPERUSER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_SIGNAL_BACKEND_NOPERMISSION@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PID %d is not a PostgreSQL server process"

	.comm	_SIGNAL_BACKEND_ERROR,4,2       ## @SIGNAL_BACKEND_ERROR
	.comm	_SIGNAL_BACKEND_NOSUPERUSER,4,2 ## @SIGNAL_BACKEND_NOSUPERUSER
	.comm	_DEFAULT_ROLE_SIGNAL_BACKENDID,4,2 ## @DEFAULT_ROLE_SIGNAL_BACKENDID
	.comm	_SIGNAL_BACKEND_NOPERMISSION,4,2 ## @SIGNAL_BACKEND_NOPERMISSION
L_.str.1:                               ## @.str.1
	.asciz	"could not send signal to process %d: %m"

	.comm	_SIGNAL_BACKEND_SUCCESS,4,2     ## @SIGNAL_BACKEND_SUCCESS
	.no_dead_strip	_pg_signal_backend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_signal_backend
_pg_signal_backend:                     ; @pg_signal_backend
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_BackendPidGetProc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_superuser_arg
	cbz	x0, LBB0_3
; %bb.2:
	bl	_superuser
	cbz	w0, LBB0_11
LBB0_3:
	bl	_GetUserId
	ldr	w1, [x21]
	bl	_has_privs_of_role
	cbnz	w0, LBB0_5
; %bb.4:
	bl	_GetUserId
Lloh0:
	adrp	x8, _DEFAULT_ROLE_SIGNAL_BACKENDID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_ROLE_SIGNAL_BACKENDID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_has_privs_of_role
	cbz	w0, LBB0_12
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_kill
	cbz	x0, LBB0_10
; %bb.6:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
Lloh7:
	adrp	x8, _WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
Lloh10:
	adrp	x8, _SIGNAL_BACKEND_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIGNAL_BACKEND_ERROR@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
LBB0_10:
Lloh12:
	adrp	x8, _SIGNAL_BACKEND_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGNAL_BACKEND_SUCCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_11:
Lloh14:
	adrp	x8, _SIGNAL_BACKEND_NOSUPERUSER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGNAL_BACKEND_NOSUPERUSER@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
Lloh16:
	adrp	x8, _SIGNAL_BACKEND_NOPERMISSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIGNAL_BACKEND_NOPERMISSION@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PID %d is not a PostgreSQL server process"

	.comm	_SIGNAL_BACKEND_ERROR,4,2       ; @SIGNAL_BACKEND_ERROR
	.comm	_SIGNAL_BACKEND_NOSUPERUSER,4,2 ; @SIGNAL_BACKEND_NOSUPERUSER
	.comm	_DEFAULT_ROLE_SIGNAL_BACKENDID,4,2 ; @DEFAULT_ROLE_SIGNAL_BACKENDID
	.comm	_SIGNAL_BACKEND_NOPERMISSION,4,2 ; @SIGNAL_BACKEND_NOPERMISSION
l_.str.1:                               ; @.str.1
	.asciz	"could not send signal to process %d: %m"

	.comm	_SIGNAL_BACKEND_SUCCESS,4,2     ; @SIGNAL_BACKEND_SUCCESS
	.no_dead_strip	_pg_signal_backend
.subsections_via_symbols
