	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_array_arg_replace_nulls
_fetch_array_arg_replace_nulls:         ## @fetch_array_arg_replace_nulls
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movl	8(%rax), %edi
	movl	$4, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %r14
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movq	%r14, (%rax)
LBB0_2:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_AggCheckCallContext
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
LBB0_4:
	movl	%r15d, %edi
	callq	_PG_ARGISNULL
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_get_fn_expr_argtype
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movl	%ebx, %edi
	callq	_get_element_type
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movl	-36(%rbp), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_construct_empty_expanded_array
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_5:
	movl	-36(%rbp), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_PG_GETARG_EXPANDED_ARRAYX
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
LBB0_11:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.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	"could not determine input data type"

	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
L_.str.1:                               ## @.str.1
	.asciz	"input data type is not an array"

	.no_dead_strip	_fetch_array_arg_replace_nulls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_array_arg_replace_nulls
_fetch_array_arg_replace_nulls:         ; @fetch_array_arg_replace_nulls
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	cbnz	x19, LBB0_2
; %bb.1:
	ldr	w0, [x8, #8]
	mov	w1, #4
	bl	_MemoryContextAlloc
	mov	x19, x0
Lloh0:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	x8, [x21]
	str	x0, [x8]
LBB0_2:
	add	x1, sp, #12
	mov	x0, x21
	bl	_AggCheckCallContext
	cbnz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_4:
	mov	x0, x20
	bl	_PG_ARGISNULL
	cbz	w0, LBB0_10
; %bb.5:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_get_fn_expr_argtype
	mov	x20, x0
	bl	_OidIsValid
	cbnz	w0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@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, x21
	bl	_ereport
LBB0_7:
	mov	x0, x20
	bl	_get_element_type
	mov	x20, x0
	bl	_OidIsValid
	cbnz	w0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
Lloh17:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_errcode
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_9:
	ldr	w1, [sp, #12]
	mov	x0, x20
	mov	x2, x19
	bl	_construct_empty_expanded_array
	mov	x19, x0
	b	LBB0_11
LBB0_10:
	ldr	w0, [sp, #12]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_PG_GETARG_EXPANDED_ARRAYX
	mov	x19, x0
	mov	x0, x21
	bl	_MemoryContextSwitchTo
LBB0_11:
	mov	x0, x19
	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
	.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 AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.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	"could not determine input data type"

	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
l_.str.1:                               ; @.str.1
	.asciz	"input data type is not an array"

	.no_dead_strip	_fetch_array_arg_replace_nulls
.subsections_via_symbols
