	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsonb_path_match_internal
_jsonb_path_match_internal:             ## @jsonb_path_match_internal
	.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
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_PG_GETARG_JSONB_P
	movq	%rax, %r15
	movl	$1, %edi
	callq	_PG_GETARG_JSONPATH_P
	movq	%rax, %r12
	movl	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_PG_NARGS
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.2:
	movl	$2, %edi
	callq	_PG_GETARG_JSONB_P
	movq	%rax, %rbx
	movl	$3, %edi
	callq	_PG_GETARG_BOOL
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movzbl	%r14b, %ecx
	leaq	-48(%rbp), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_executeJsonPath
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_PG_FREE_IF_COPY
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_PG_FREE_IF_COPY
	movq	%r13, %rdi
	callq	_JsonValueListLength
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.4:
	leaq	-48(%rbp), %rdi
	callq	_JsonValueListHead
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_jbvBool@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	callq	_PG_RETURN_BOOL
	movq	(%rbx), %rax
LBB0_6:
	movq	_jbvNull@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
LBB0_8:
	testb	%r14b, %r14b
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	xorl	%eax, %eax
	callq	_PG_RETURN_NULL
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jbvBool,8,3                    ## @jbvBool
	.comm	_jbvNull,8,3                    ## @jbvNull
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED,4,2 ## @ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"single boolean result is expected"

	.no_dead_strip	_jsonb_path_match_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jsonb_path_match_internal
_jsonb_path_match_internal:             ; @jsonb_path_match_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	w0, #0
	bl	_PG_GETARG_JSONB_P
	mov	x21, x0
	mov	w0, #1
	bl	_PG_GETARG_JSONPATH_P
	mov	x22, x0
	str	wzr, [sp, #8]
	bl	_PG_NARGS
	cmp	w0, #4
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #2
	bl	_PG_GETARG_JSONB_P
	mov	x23, x0
	mov	w0, #3
	bl	_PG_GETARG_BOOL
	cmp	w0, #0
	cset	w19, eq
	b	LBB0_3
LBB0_2:
	mov	w19, #0
	mov	x23, #0
LBB0_3:
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x19
	mov	x5, x20
	bl	_executeJsonPath
	mov	x0, x21
	mov	w1, #0
	bl	_PG_FREE_IF_COPY
	mov	x0, x22
	mov	w1, #1
	bl	_PG_FREE_IF_COPY
	add	x0, sp, #8
	bl	_JsonValueListLength
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.4:
	add	x0, sp, #8
	bl	_JsonValueListHead
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _jbvBool@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jbvBool@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_PG_RETURN_BOOL
	ldr	x8, [x20]
LBB0_6:
Lloh3:
	adrp	x9, _jbvNull@GOTPAGE
Lloh4:
	ldr	x9, [x9, _jbvNull@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	bl	_PG_RETURN_NULL
LBB0_8:
	cbz	w19, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_10:
	bl	_PG_RETURN_NULL
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jbvBool,8,3                    ; @jbvBool
	.comm	_jbvNull,8,3                    ; @jbvNull
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED,4,2 ; @ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"single boolean result is expected"

	.no_dead_strip	_jsonb_path_match_internal
.subsections_via_symbols
