	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function appendElement
_appendElement:                         ## @appendElement
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_jbvArray@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	16(%rbx), %rcx
	movq	_JSONB_MAX_ELEMS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rcx
	jl	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	16(%rbx), %rcx
LBB0_2:
	movslq	(%rbx), %rax
	cmpq	%rax, %rcx
	jge	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	jmp	LBB0_5
LBB0_4:
	leal	(%rax,%rax), %ecx
	movl	%ecx, (%rbx)
	movq	24(%rbx), %rdi
	shll	$4, %eax
	leal	(%rax,%rax,2), %esi
	callq	_repalloc
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rcx
LBB0_5:
	leaq	1(%rcx), %rdx
	movq	%rdx, 16(%rbx)
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%r14), %rdx
	movq	%rdx, 16(%rax,%rcx,8)
	movups	(%r14), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jbvArray,8,3                   ## @jbvArray
	.comm	_JSONB_MAX_ELEMS,8,3            ## @JSONB_MAX_ELEMS
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"number of jsonb array elements exceeds the maximum allowed (%zu)"

	.no_dead_strip	_appendElement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function appendElement
_appendElement:                         ; @appendElement
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _jbvArray@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jbvArray@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x22, _JSONB_MAX_ELEMS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _JSONB_MAX_ELEMS@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x1, [x22]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	ldr	x8, [x20, #16]
LBB0_2:
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	ldr	x0, [x20, #24]
	b	LBB0_5
LBB0_4:
	lsl	w8, w9, #1
	str	w8, [x20]
	ldr	x0, [x20, #24]
	add	w8, w8, w9
	lsl	w1, w8, #4
	bl	_repalloc
	str	x0, [x20, #24]
	ldr	x8, [x20, #16]
LBB0_5:
	add	x9, x8, #1
	str	x9, [x20, #16]
	mov	w9, #24
	madd	x8, x8, x9, x0
	ldr	q0, [x19]
	ldr	x9, [x19, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jbvArray,8,3                   ; @jbvArray
	.comm	_JSONB_MAX_ELEMS,8,3            ; @JSONB_MAX_ELEMS
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"number of jsonb array elements exceeds the maximum allowed (%zu)"

	.no_dead_strip	_appendElement
.subsections_via_symbols
