	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mg_update_metadata
_mg_update_metadata:                    ## @mg_update_metadata
	.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
	callq	_ws_to_mg
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.1:
	movq	16(%rbx), %r14
	cmpl	$130, %ecx
	je	LBB0_8
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_11
## %bb.3:
	movl	4(%r14), %edi
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	callq	_dm_cache_insert_mapping
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_cache_device_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR_LIMIT
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	jmp	LBB0_7
LBB0_8:
	movl	4(%r14), %edi
	movl	4(%rax), %esi
	callq	_dm_cache_remove_mapping
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_cache_device_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR_LIMIT
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_metadata_operation_failed
	movq	%rbx, %rdi
	xorl	%esi, %esi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mg_complete                    ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_mg_success@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_init_continuation
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_continue_after_commit
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_commit                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: migration failed; couldn't insert mapping"

L_.str.1:                               ## @.str.1
	.asciz	"dm_cache_insert_mapping"

L_.str.2:                               ## @.str.2
	.asciz	"%s: migration failed; couldn't update on disk metadata"

L_.str.3:                               ## @.str.3
	.asciz	"dm_cache_remove_mapping"

	.comm	_mg_success,4,2                 ## @mg_success
	.no_dead_strip	_mg_update_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mg_update_metadata
_mg_update_metadata:                    ; @mg_update_metadata
	.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
	bl	_ws_to_mg
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_5
; %bb.1:
	ldr	x20, [x19, #16]
	cmp	w9, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #129
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x20, #4]
	ldp	w1, w2, [x8, #4]
	bl	_dm_cache_insert_mapping
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	bl	_cache_device_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR_LIMIT
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_9
LBB0_6:
	ldr	w0, [x20, #4]
	ldr	w1, [x8, #4]
	bl	_dm_cache_remove_mapping
	cbz	w0, LBB0_11
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	_cache_device_name
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR_LIMIT
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x20
	mov	x2, x21
	bl	_metadata_operation_failed
	mov	x0, x19
	mov	w1, #0
LBB0_9:
	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	_mg_complete
LBB0_10:
	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_11:
Lloh8:
	adrp	x8, _mg_success@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mg_success@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_init_continuation
	mov	x0, x20
	mov	x1, x19
	bl	_continue_after_commit
	mov	x0, x20
	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	_schedule_commit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: migration failed; couldn't insert mapping"

l_.str.1:                               ; @.str.1
	.asciz	"dm_cache_insert_mapping"

l_.str.2:                               ; @.str.2
	.asciz	"%s: migration failed; couldn't update on disk metadata"

l_.str.3:                               ; @.str.3
	.asciz	"dm_cache_remove_mapping"

	.comm	_mg_success,4,2                 ; @mg_success
	.no_dead_strip	_mg_update_metadata
.subsections_via_symbols
