	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_delete_datum             ## -- Begin function toast_delete_datum
	.p2align	4, 0x90
_toast_delete_datum:                    ## @toast_delete_datum
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL_ONDISK
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_VARATT_EXTERNAL_GET_POINTER
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_table_open
	movl	%eax, %r15d
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%eax, %edi
	callq	_toast_open_indexes
	movl	%eax, %r12d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_ObjectIdGetDatum
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_toast_snapshot
	movq	-56(%rbp), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movl	$1, %ecx
	leaq	-48(%rbp), %r8
	callq	_systable_beginscan_ordered
	movl	%eax, %ebx
	movq	_ForwardScanDirection@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_simple_heap_delete
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	%ebx, %edi
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_systable_getnext_ordered
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	movq	%rax, %rsi
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_heap_abort_speculative
	jmp	LBB0_6
LBB0_7:
	movl	%ebx, %edi
	callq	_systable_endscan_ordered
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_toast_close_indexes
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_table_close
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_toast_delete_datum             ; -- Begin function toast_delete_datum
	.p2align	2
_toast_delete_datum:                    ; @toast_delete_datum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x0, x1
	bl	_DatumGetPointer
	mov	x20, x0
	bl	_VARATT_IS_EXTERNAL_ONDISK
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, #0
	mov	x1, x20
	bl	_VARATT_EXTERNAL_GET_POINTER
Lloh0:
	adrp	x24, _RowExclusiveLock@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x20, x0
	ldr	w1, [x24]
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_toast_open_indexes
	mov	x21, x0
Lloh2:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #20
	mov	w1, #1
	mov	x2, x22
	mov	x3, x23
	bl	_ScanKeyInit
	add	x0, sp, #12
	bl	_init_toast_snapshot
	ldr	x8, [sp, #24]
	ldr	w1, [x8, w21, sxtw #2]
	add	x2, sp, #12
	add	x4, sp, #20
	mov	x0, x20
	mov	w3, #1
	bl	_systable_beginscan_ordered
	mov	x21, x0
Lloh8:
	adrp	x22, _ForwardScanDirection@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ForwardScanDirection@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_systable_getnext_ordered
	cbz	x0, LBB0_7
; %bb.2:
	mov	x1, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_simple_heap_delete
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x22]
	mov	x0, x21
	bl	_systable_getnext_ordered
	mov	x1, x0
	cbz	x0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	cbz	w19, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_heap_abort_speculative
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	bl	_systable_endscan_ordered
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #16]
	ldr	w2, [x24]
	bl	_toast_close_indexes
	ldr	w1, [x24]
	mov	x0, x20
	bl	_table_close
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
.subsections_via_symbols
