	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsonb_path_query_internal
_jsonb_path_query_internal:             ## @jsonb_path_query_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, %r12d
	xorl	%eax, %eax
	callq	_SRF_IS_FIRSTCALL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_SRF_FIRSTCALL_INIT
	movq	%rax, %r13
	movl	8(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_PG_GETARG_JSONB_P_COPY
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_PG_GETARG_JSONPATH_P_COPY
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_PG_GETARG_JSONB_P_COPY
	movq	%rax, %r15
	movl	$3, %edi
	callq	_PG_GETARG_BOOL
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %r8
	movl	%r12d, %r9d
	callq	_executeJsonPath
	movq	%r14, %rdi
	callq	_JsonValueListGetList
	movq	%rax, (%r13)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
LBB0_2:
	xorl	%eax, %eax
	callq	_SRF_PERCALL_SETUP
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_list_head
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_SRF_RETURN_DONE
LBB0_4:
	movq	%rbx, %rdi
	callq	_lfirst
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_list_delete_first
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_JsonbValueToJsonb
	movl	%eax, %edi
	callq	_JsonbPGetDatum
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_SRF_RETURN_NEXT
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_jsonb_path_query_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_query_internal
_jsonb_path_query_internal:             ; @jsonb_path_query_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	x19, x1
	bl	_SRF_IS_FIRSTCALL
	cbz	x0, LBB0_2
; %bb.1:
	str	wzr, [sp, #8]
	bl	_SRF_FIRSTCALL_INIT
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	mov	w0, #0
	bl	_PG_GETARG_JSONB_P_COPY
	mov	x22, x0
	mov	w0, #1
	bl	_PG_GETARG_JSONPATH_P_COPY
	mov	x23, x0
	mov	w0, #2
	bl	_PG_GETARG_JSONB_P_COPY
	mov	x24, x0
	mov	w0, #3
	bl	_PG_GETARG_BOOL
	cmp	w0, #0
	cset	w3, eq
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x5, x19
	bl	_executeJsonPath
	add	x0, sp, #8
	bl	_JsonValueListGetList
	str	x0, [x20]
	mov	x0, x21
	bl	_MemoryContextSwitchTo
LBB0_2:
	bl	_SRF_PERCALL_SETUP
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_list_head
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_SRF_RETURN_DONE
LBB0_4:
	mov	x0, x21
	bl	_lfirst
	mov	x21, x0
	mov	x0, x20
	bl	_list_delete_first
	str	x0, [x19]
	mov	x0, x21
	bl	_JsonbValueToJsonb
	bl	_JsonbPGetDatum
	mov	x1, x0
	mov	x0, x19
	bl	_SRF_RETURN_NEXT
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_jsonb_path_query_internal
.subsections_via_symbols
