	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abort_transaction
_abort_transaction:                     ## @abort_transaction
	.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
	movq	%rdi, %rbx
	callq	_cache_device_name
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_cache_mode
	movq	_CM_READ_ONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	callq	_dm_cache_metadata_set_needs_check
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_DMERR
	movq	_CM_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_cache_mode
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_DMERR_LIMIT
	movl	(%rbx), %edi
	callq	_dm_cache_metadata_abort
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_DMERR
	movq	_CM_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_set_cache_mode                 ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_READ_ONLY,8,3               ## @CM_READ_ONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: failed to set 'needs_check' flag in metadata"

	.comm	_CM_FAIL,4,2                    ## @CM_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"%s: aborting current metadata transaction"

L_.str.2:                               ## @.str.2
	.asciz	"%s: failed to abort metadata transaction"

	.no_dead_strip	_abort_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abort_transaction
_abort_transaction:                     ; @abort_transaction
	.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, x0
	bl	_cache_device_name
	mov	x20, x0
	mov	x0, x19
	bl	_get_cache_mode
Lloh0:
	adrp	x8, _CM_READ_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_READ_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.1:
	ldr	w0, [x19]
	bl	_dm_cache_metadata_set_needs_check
Lloh3:
	adrp	x21, _CM_FAIL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CM_FAIL@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DMERR
	ldr	w1, [x21]
	mov	x0, x19
	bl	_set_cache_mode
LBB0_3:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DMERR_LIMIT
	ldr	w0, [x19]
	bl	_dm_cache_metadata_abort
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DMERR
	ldr	w1, [x21]
	mov	x0, x19
	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	_set_cache_mode
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_READ_ONLY,8,3               ; @CM_READ_ONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: failed to set 'needs_check' flag in metadata"

	.comm	_CM_FAIL,4,2                    ; @CM_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"%s: aborting current metadata transaction"

l_.str.2:                               ; @.str.2
	.asciz	"%s: failed to abort metadata transaction"

	.no_dead_strip	_abort_transaction
.subsections_via_symbols
