	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_any_priv_string
_convert_any_priv_string:               ## @convert_any_priv_string
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	callq	_text_to_cstring
	testq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	leaq	16(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r12
	testq	%r15, %r15
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r12, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movzbl	1(%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movl	%eax, %r14d
	sarl	$31, %r14d
	andl	%eax, %r14d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movzbl	-1(%r12,%rbx), %edi
	decq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rax
	movb	$0, (%r12,%rax)
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rsi
	callq	_pg_strcasecmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	(%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_16
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	-8(%rbx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, -16(%rbx)
	jne	LBB0_20
	jmp	LBB0_19
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized privilege type: \"%s\""

	.no_dead_strip	_convert_any_priv_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_any_priv_string
_convert_any_priv_string:               ; @convert_any_priv_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	bl	_text_to_cstring
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w21, #0
	cbz	x0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x26, _ERROR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	add	x27, x20, #16
Lloh2:
	adrp	x28, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
	mov	x23, x0
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x26]
	ldr	w0, [x28]
	bl	_errcode
	mov	x0, x22
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x24
	cbz	x24, LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x23
	mov	w1, #44
	bl	_strchr
	mov	x24, x0
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x24], #1
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x23]
	cbz	w8, LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w8, [x23, #1]!
	cbnz	w8, LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_strlen
	mov	w8, w0
	cmp	w0, #0
	csel	w25, w0, wzr, lt
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	sub	x19, x8, #1
	add	x8, x23, x8
	ldurb	w0, [x8, #-1]
	bl	_isspace
	mov	x8, x19
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w19, #1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x23, w25, sxtw]
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x27
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x23
	bl	_pg_strcasecmp
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x0, [x25], #16
	cbnz	x0, LBB0_15
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x25, #-8]
	orr	w21, w8, w21
	ldur	x8, [x25, #-16]
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_18:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_pfree
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized privilege type: \"%s\""

	.no_dead_strip	_convert_any_priv_string
.subsections_via_symbols
