	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_check_third_page           ## -- Begin function _bt_check_third_page
	.p2align	4, 0x90
__bt_check_third_page:                  ## @_bt_check_third_page
	.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	%r8, %r12
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movq	%r8, %rdi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_BTMaxItemSize
	cmpq	%rax, %r13
	jle	LBB0_12
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_BTMaxItemSizeNoHeapTid
	cmpq	%rax, %r13
	jle	LBB0_12
LBB0_3:
	movl	%ebx, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %rdi
	callq	_P_ISLEAF
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_elog
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.7:
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_BTREE_VERSION@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
	movl	%ebx, %edi
	je	LBB0_10
## %bb.9:
	callq	_BTMaxItemSize
	jmp	LBB0_11
LBB0_10:
	callq	_BTMaxItemSizeNoHeapTid
LBB0_11:
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_errmsg
	movq	%r12, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r12d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_errdetail
	leaq	L_.str.3(%rip), %rdi
	callq	_errhint
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_errtableconstraint
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot insert oversized tuple of size %zu on internal page of index \"%s\""

	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
L_.str.1:                               ## @.str.1
	.asciz	"index row size %zu exceeds btree version %u maximum %zu for index \"%s\""

	.comm	_BTREE_VERSION,4,2              ## @BTREE_VERSION
	.comm	_BTREE_NOVAC_VERSION,4,2        ## @BTREE_NOVAC_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"Index row references tuple (%u,%u) in relation \"%s\"."

L_.str.3:                               ## @.str.3
	.asciz	"Values larger than 1/3 of a buffer page cannot be indexed.\nConsider a function index of an MD5 hash of the value, or use full text indexing."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_check_third_page           ; -- Begin function _bt_check_third_page
	.p2align	2
__bt_check_third_page:                  ; @_bt_check_third_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x4
	bl	_IndexTupleSize
	bl	_MAXALIGN
	mov	x22, x0
	mov	x0, x24
	bl	_BTMaxItemSize
	cmp	x22, x0
	b.le	LBB0_7
; %bb.1:
	cbnz	w25, LBB0_3
; %bb.2:
	mov	x0, x24
	bl	_BTMaxItemSizeNoHeapTid
	cmp	x22, x0
	b.le	LBB0_7
LBB0_3:
	mov	x0, x24
	bl	_PageGetSpecialPointer
	bl	_P_ISLEAF
Lloh0:
	adrp	x26, _ERROR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w23, [x26]
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_elog
LBB0_5:
	ldr	w23, [x26]
Lloh4:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_errcode
Lloh7:
	adrp	x8, _BTREE_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BTREE_VERSION@GOTPAGEOFF]
Lloh9:
	adrp	x9, _BTREE_NOVAC_VERSION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTREE_NOVAC_VERSION@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x9, x8, eq
	ldr	w26, [x8]
	mov	x0, x24
	cbz	w25, LBB0_8
; %bb.6:
	bl	_BTMaxItemSize
	b	LBB0_9
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	_BTMaxItemSizeNoHeapTid
LBB0_9:
	mov	x24, x0
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x4, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x26
	mov	x3, x24
	bl	_errmsg
	mov	x0, x21
	bl	_ItemPointerGetBlockNumber
	mov	x22, x0
	mov	x0, x21
	bl	_ItemPointerGetOffsetNumber
	mov	x21, x0
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_errdetail
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errhint
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
	mov	x0, x19
	bl	_errtableconstraint
	mov	x1, x0
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot insert oversized tuple of size %zu on internal page of index \"%s\""

	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
l_.str.1:                               ; @.str.1
	.asciz	"index row size %zu exceeds btree version %u maximum %zu for index \"%s\""

	.comm	_BTREE_VERSION,4,2              ; @BTREE_VERSION
	.comm	_BTREE_NOVAC_VERSION,4,2        ; @BTREE_NOVAC_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"Index row references tuple (%u,%u) in relation \"%s\"."

l_.str.3:                               ; @.str.3
	.asciz	"Values larger than 1/3 of a buffer page cannot be indexed.\nConsider a function index of an MD5 hash of the value, or use full text indexing."

.subsections_via_symbols
