	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getArrayIndex
_getArrayIndex:                         ## @getArrayIndex
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	$0, -32(%rbp)
	leaq	-32(%rbp), %rcx
	callq	_executeItem
	movl	%eax, %ebx
	movl	$0, -36(%rbp)
	movl	%eax, %edi
	callq	_jperIsError
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	leaq	-32(%rbp), %rdi
	callq	_JsonValueListLength
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rdi
	callq	_JsonValueListHead
	movq	_jbvNumeric@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_getScalar
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_numeric_trunc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	(%rax), %edi
	callq	_NumericGetDatum
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_Int32GetDatum
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DirectFunctionCall2
	movl	%eax, %edi
	callq	_DatumGetNumeric
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	callq	_numeric_int4_opt_error
	movl	%eax, (%r14)
	cmpl	$0, -36(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_SQL_JSON_SUBSCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%eax, %edi
	callq	_RETURN_ERROR
LBB0_6:
	movq	_jperOk@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	callq	_getArrayIndex.cold.1
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function getArrayIndex.cold.1
_getArrayIndex.cold.1:                  ## @getArrayIndex.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_SQL_JSON_SUBSCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%eax, %edi
	callq	_RETURN_ERROR
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_jbvNumeric,4,2                 ## @jbvNumeric
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_SQL_JSON_SUBSCRIPT,4,2 ## @ERRCODE_INVALID_SQL_JSON_SUBSCRIPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"jsonpath array subscript is not a single numeric value"

	.comm	_numeric_trunc,4,2              ## @numeric_trunc
L_.str.1:                               ## @.str.1
	.asciz	"jsonpath array subscript is out of integer range"

	.comm	_jperOk,4,2                     ## @jperOk
	.no_dead_strip	_getArrayIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getArrayIndex
_getArrayIndex:                         ; @getArrayIndex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	str	wzr, [sp, #8]
	add	x3, sp, #8
	bl	_executeItem
	mov	x20, x0
	str	wzr, [sp, #4]
	bl	_jperIsError
	cbnz	x0, LBB0_6
; %bb.1:
	add	x0, sp, #8
	bl	_JsonValueListLength
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	add	x0, sp, #8
	bl	_JsonValueListHead
Lloh0:
	adrp	x8, _jbvNumeric@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jbvNumeric@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_getScalar
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _numeric_trunc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _numeric_trunc@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	w0, [x0]
	bl	_NumericGetDatum
	mov	x21, x0
	mov	w0, #0
	bl	_Int32GetDatum
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_DirectFunctionCall2
	bl	_DatumGetNumeric
	add	x1, sp, #4
	bl	_numeric_int4_opt_error
	str	w0, [x19]
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _ERRCODE_INVALID_SQL_JSON_SUBSCRIPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_INVALID_SQL_JSON_SUBSCRIPT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	bl	_RETURN_ERROR
LBB0_5:
Lloh14:
	adrp	x8, _jperOk@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jperOk@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	_getArrayIndex.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function getArrayIndex.cold.1
_getArrayIndex.cold.1:                  ; @getArrayIndex.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
Lloh20:
	adrp	x8, _ERRCODE_INVALID_SQL_JSON_SUBSCRIPT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_INVALID_SQL_JSON_SUBSCRIPT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	bl	_RETURN_ERROR
	brk	#0x1
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jbvNumeric,4,2                 ; @jbvNumeric
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_SQL_JSON_SUBSCRIPT,4,2 ; @ERRCODE_INVALID_SQL_JSON_SUBSCRIPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"jsonpath array subscript is not a single numeric value"

	.comm	_numeric_trunc,4,2              ; @numeric_trunc
l_.str.1:                               ; @.str.1
	.asciz	"jsonpath array subscript is out of integer range"

	.comm	_jperOk,4,2                     ; @jperOk
	.no_dead_strip	_getArrayIndex
.subsections_via_symbols
