	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AbortBufferIO                  ## -- Begin function AbortBufferIO
	.p2align	4, 0x90
_AbortBufferIO:                         ## @AbortBufferIO
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_InProgressBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_BufferDescriptorGetIOLock
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	movq	%r14, %rdi
	callq	_LockBufHdr
	movl	%eax, %ebx
	movq	_BM_IO_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_Assert
	movq	_IsForInput@GOTPCREL(%rip), %rax
	movq	_BM_DIRTY@GOTPCREL(%rip), %rcx
	movl	%ebx, %edi
	andl	(%rcx), %edi
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	testl	%edi, %edi
	sete	%al
	movl	%eax, %edi
	callq	_Assert
	movq	_BM_VALID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%ebx, %eax
	sete	%dil
	callq	_Assert
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_UnlockBufHdr
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	callq	_Assert
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_UnlockBufHdr
	movq	_BM_IO_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_relpathperm
	movq	%rax, %rbx
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%rbx, %rdi
	callq	_pfree
LBB0_5:
	movq	_BM_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TerminateBufferIO              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_InProgressBuf,8,3              ## @InProgressBuf
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_BM_IO_IN_PROGRESS,4,2          ## @BM_IO_IN_PROGRESS
	.comm	_IsForInput,8,3                 ## @IsForInput
	.comm	_BM_DIRTY,4,2                   ## @BM_DIRTY
	.comm	_BM_VALID,4,2                   ## @BM_VALID
	.comm	_BM_IO_ERROR,4,2                ## @BM_IO_ERROR
	.comm	_WARNING,4,2                    ## @WARNING
	.comm	_ERRCODE_IO_ERROR,4,2           ## @ERRCODE_IO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write block %u of %s"

L_.str.1:                               ## @.str.1
	.asciz	"Multiple failures --- write error might be permanent."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AbortBufferIO                  ; -- Begin function AbortBufferIO
	.p2align	2
_AbortBufferIO:                         ; @AbortBufferIO
	.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
Lloh0:
	adrp	x8, _InProgressBuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InProgressBuf@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_BufferDescriptorGetIOLock
Lloh3:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	mov	x0, x19
	bl	_LockBufHdr
	mov	x20, x0
Lloh6:
	adrp	x8, _BM_IO_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BM_IO_IN_PROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_Assert
Lloh9:
	adrp	x8, _IsForInput@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IsForInput@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _BM_DIRTY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BM_DIRTY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w0, w9, w20
Lloh15:
	adrp	x22, _BM_IO_ERROR@GOTPAGE
Lloh16:
	ldr	x22, [x22, _BM_IO_ERROR@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.2:
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh17:
	adrp	x8, _BM_VALID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BM_VALID@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	mov	x1, x20
	bl	_UnlockBufHdr
	b	LBB0_6
LBB0_3:
	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
LBB0_4:
	bl	_Assert
	mov	x0, x19
	mov	x1, x20
	bl	_UnlockBufHdr
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldp	w1, w0, [x19, #4]
	bl	_relpathperm
	mov	x20, x0
Lloh20:
	adrp	x8, _WARNING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
Lloh23:
	adrp	x8, _ERRCODE_IO_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_IO_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x19]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_errmsg
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	mov	x0, x20
	bl	_pfree
LBB0_6:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	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
	b	_TerminateBufferIO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_InProgressBuf,8,3              ; @InProgressBuf
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_BM_IO_IN_PROGRESS,4,2          ; @BM_IO_IN_PROGRESS
	.comm	_IsForInput,8,3                 ; @IsForInput
	.comm	_BM_DIRTY,4,2                   ; @BM_DIRTY
	.comm	_BM_VALID,4,2                   ; @BM_VALID
	.comm	_BM_IO_ERROR,4,2                ; @BM_IO_ERROR
	.comm	_WARNING,4,2                    ; @WARNING
	.comm	_ERRCODE_IO_ERROR,4,2           ; @ERRCODE_IO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write block %u of %s"

l_.str.1:                               ; @.str.1
	.asciz	"Multiple failures --- write error might be permanent."

.subsections_via_symbols
