	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plpgsql_recognize_err_condition ## -- Begin function plpgsql_recognize_err_condition
	.p2align	4, 0x90
_plpgsql_recognize_err_condition:       ## @plpgsql_recognize_err_condition
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$5, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strspn
	cmpl	$5, %eax
	jne	LBB0_3
## %bb.10:
	movsbl	(%r15), %edi
	movsbl	1(%r15), %esi
	movsbl	2(%r15), %edx
	movsbl	3(%r15), %ecx
	movsbl	4(%r15), %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MAKE_SQLSTATE                  ## TAILCALL
LBB0_3:
	movq	_exception_label_map@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.4:
	movl	$24, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movl	%r12d, %eax
	movq	(%r14), %rcx
	shlq	$4, %rax
	movl	(%rcx,%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

	.comm	_exception_label_map,8,3        ## @exception_label_map
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"unrecognized exception condition \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plpgsql_recognize_err_condition ; -- Begin function plpgsql_recognize_err_condition
	.p2align	2
_plpgsql_recognize_err_condition:       ; @plpgsql_recognize_err_condition
	.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	x19, x0
	cbz	w1, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_strlen
	cmp	w0, #5
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strspn
	cmp	w0, #5
	b.ne	LBB0_4
; %bb.3:
	ldrsb	w0, [x19]
	ldrsb	w1, [x19, #1]
	ldrsb	w2, [x19, #2]
	ldrsb	w3, [x19, #3]
	ldrsb	w4, [x19, #4]
	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
	b	_MAKE_SQLSTATE
LBB0_4:
Lloh2:
	adrp	x20, _exception_label_map@GOTPAGE
Lloh3:
	ldr	x20, [x20, _exception_label_map@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_8
; %bb.5:
	mov	x21, #0
	mov	w22, #24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	ldr	x1, [x8, x22]
	add	x22, x22, #16
	cbnz	x1, LBB0_6
LBB0_8:
Lloh4:
	adrp	x8, _ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	and	x8, x21, #0xffffffff
	ldr	x9, [x20]
	lsl	x8, x8, #4
	ldr	w0, [x9, x8]
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

	.comm	_exception_label_map,8,3        ; @exception_label_map
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"unrecognized exception condition \"%s\""

.subsections_via_symbols
