	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assign_simple_var
_assign_simple_var:                     ## @assign_simple_var
	.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	%rsi, %r12
	movq	(%rsi), %rax
	movq	_PLPGSQL_DTYPE_VAR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%bl
	movq	_PLPGSQL_DTYPE_PROMISE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %r13
	sete	%al
	orb	%bl, %al
	movzbl	%al, %edi
	callq	_Assert
	movl	(%r13), %eax
	movl	%r15d, %ebx
	orl	%r15d, %eax
	jne	LBB0_1
## %bb.2:
	movq	24(%r12), %rax
	cmpl	$-1, (%rax)
	je	LBB0_4
LBB0_1:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_8:
	cmpl	$0, 8(%r12)
	je	LBB0_12
## %bb.9:
	movl	12(%r12), %esi
	movl	20(%r12), %edi
	movq	24(%r12), %rax
	movl	(%rax), %edx
	callq	_DatumIsReadWriteExpandedObject
	movl	20(%r12), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	callq	_DeleteExpandedObject
	jmp	LBB0_12
LBB0_11:
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_pfree
LBB0_12:
	movl	%r14d, 20(%r12)
	movl	%ebx, 12(%r12)
	movl	%r15d, 8(%r12)
	movq	_PLPGSQL_PROMISE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL_NON_EXPANDED
	testq	%rax, %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_8
## %bb.5:
	movq	%r13, %rdi
	callq	_get_eval_mcontext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_detoast_external_attr
	movl	%eax, %edi
	callq	_PointerGetDatum
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_pfree
LBB0_7:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_datumCopy
	movl	%eax, %r14d
	movl	$1, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PLPGSQL_DTYPE_VAR,8,3          ## @PLPGSQL_DTYPE_VAR
	.comm	_PLPGSQL_DTYPE_PROMISE,8,3      ## @PLPGSQL_DTYPE_PROMISE
	.comm	_PLPGSQL_PROMISE_NONE,4,2       ## @PLPGSQL_PROMISE_NONE
	.no_dead_strip	_assign_simple_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assign_simple_var
_assign_simple_var:                     ; @assign_simple_var
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PLPGSQL_DTYPE_VAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLPGSQL_DTYPE_VAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _PLPGSQL_DTYPE_PROMISE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLPGSQL_DTYPE_PROMISE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x23]
	orr	w8, w8, w20
	cbnz	w8, LBB0_6
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmn	w8, #1
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL_NON_EXPANDED
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_get_eval_mcontext
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	mov	x0, x21
	bl	_DatumGetPointer
	bl	_detoast_external_attr
	bl	_PointerGetDatum
	mov	x23, x0
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	cbz	w22, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_DatumGetPointer
	bl	_pfree
LBB0_5:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #-1
	bl	_datumCopy
	mov	x21, x0
	mov	w22, #1
LBB0_6:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #12]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	bl	_DatumIsReadWriteExpandedObject
	mov	x8, x0
	ldr	w0, [x19, #20]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_DeleteExpandedObject
	b	LBB0_10
LBB0_9:
	bl	_DatumGetPointer
	bl	_pfree
LBB0_10:
	stp	w22, w20, [x19, #8]
Lloh6:
	adrp	x8, _PLPGSQL_PROMISE_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLPGSQL_PROMISE_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w21, [x19, #16]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PLPGSQL_DTYPE_VAR,8,3          ; @PLPGSQL_DTYPE_VAR
	.comm	_PLPGSQL_DTYPE_PROMISE,8,3      ; @PLPGSQL_DTYPE_PROMISE
	.comm	_PLPGSQL_PROMISE_NONE,4,2       ; @PLPGSQL_PROMISE_NONE
	.no_dead_strip	_assign_simple_var
.subsections_via_symbols
