	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plpgsql_param_fetch
_plpgsql_param_fetch:                   ## @plpgsql_param_fetch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	leal	-1(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	cmpl	%esi, (%rbx)
	setge	%dil
LBB0_2:
	callq	_Assert
	movq	16(%rbx), %r13
	movq	8(%rbx), %r14
	movl	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	sete	%dil
	callq	_Assert
	movq	8(%r13), %rax
	movslq	-44(%rbp), %rdi                 ## 4-byte Folded Reload
	movq	(%rax,%rdi,8), %rbx
	movl	4(%r14), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_bms_is_member
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.4:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.5:
	cmpl	$2, %eax
	je	LBB0_6
LBB0_10:
	leaq	24(%r15), %rdx
	leaq	8(%r15), %r8
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r9
	callq	_exec_eval_datum
	movq	_PARAM_FLAG_CONST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%r14), %eax
	je	LBB0_16
## %bb.11:
	movl	(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.13:
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	jmp	LBB0_15
LBB0_14:
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	movl	$-1, %edx
LBB0_15:
	callq	_MakeExpandedObjectReadOnly
	movq	%rax, 8(%r15)
	jmp	LBB0_16
LBB0_6:
	movq	8(%r13), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movl	8(%rbx), %ecx
	xorl	%edi, %edi
	cmpl	(%rax), %ecx
	setne	%dil
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	(%r12), %rdi
	movl	16(%rbx), %esi
	leaq	12(%rbx), %rdx
	callq	_expanded_record_lookup_field
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_10
LBB0_17:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movl	$1, (%r15)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_PARAM_FLAG_CONST,8,3           ## @PARAM_FLAG_CONST
	.no_dead_strip	_plpgsql_param_fetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plpgsql_param_fetch
_plpgsql_param_fetch:                   ; @plpgsql_param_fetch
	.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, x3
	mov	x23, x2
	mov	x21, x0
	subs	w20, w1, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w1
	cset	w0, ge
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldp	x24, x22, [x21, #8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x22, #8]
	ldr	x21, [x8, w20, sxtw #3]
	ldr	w1, [x24, #4]
	mov	x0, x20
	bl	_bms_is_member
	cbz	w0, LBB0_17
; %bb.4:
	cbz	w23, LBB0_7
; %bb.5:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_17
; %bb.6:
	cmp	w8, #2
	b.eq	LBB0_13
LBB0_7:
	add	x2, x19, #24
	add	x4, x19, #8
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x5, x19
	bl	_exec_eval_datum
Lloh0:
	adrp	x8, _PARAM_FLAG_CONST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARAM_FLAG_CONST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w8, [x24]
	cmp	w20, w8
	b.eq	LBB0_18
; %bb.8:
	ldr	w8, [x21]
	cmp	w8, #131
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.10:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	ldr	x8, [x21]
	ldr	w2, [x8]
	b	LBB0_12
LBB0_11:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	w2, #-1
LBB0_12:
	bl	_MakeExpandedObjectReadOnly
	str	x0, [x19, #8]
	b	LBB0_18
LBB0_13:
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	ldr	x23, [x8, x9, lsl #3]
	ldr	x8, [x23]
	cbz	x8, LBB0_17
; %bb.14:
	ldr	w9, [x21, #8]
	ldr	w8, [x8]
	cmp	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbz	w0, LBB0_7
; %bb.15:
	ldr	x0, [x23]
	ldr	w1, [x21, #16]
	add	x2, x21, #12
	bl	_expanded_record_lookup_field
	cbz	w0, LBB0_17
; %bb.16:
	ldr	x8, [x23]
	ldr	w8, [x8]
	str	w8, [x21, #8]
	b	LBB0_7
LBB0_17:
	stp	xzr, xzr, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_18:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_PARAM_FLAG_CONST,8,3           ; @PARAM_FLAG_CONST
	.no_dead_strip	_plpgsql_param_fetch
.subsections_via_symbols
