	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text_length
_text_length:                           ## @text_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_pg_database_encoding_max_length
	movl	%ebx, %edi
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	callq	_toast_raw_datum_size
	movq	_VARHDRSZ@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jmp	LBB0_3
LBB0_2:
	callq	_DatumGetTextPP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VARDATA_ANY
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_VARSIZE_ANY_EXHDR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pg_mbstrlen_with_len
LBB0_3:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PG_RETURN_INT32                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.no_dead_strip	_text_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text_length
_text_length:                           ; @text_length
	.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
	mov	x19, x0
	bl	_pg_database_encoding_max_length
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_toast_raw_datum_size
Lloh0:
	adrp	x8, _VARHDRSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VARHDRSZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x0, x0, x8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_DatumGetTextPP
	mov	x19, x0
	bl	_VARDATA_ANY
	mov	x20, x0
	mov	x0, x19
	bl	_VARSIZE_ANY_EXHDR
	mov	x1, x0
	mov	x0, x20
	bl	_pg_mbstrlen_with_len
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PG_RETURN_INT32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.no_dead_strip	_text_length
.subsections_via_symbols
