	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vol_cdev_release
_vol_cdev_release:                      ## @vol_cdev_release
	.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	(%rsi), %r14
	movq	8(%r14), %rbx
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg_gen
	cmpq	$0, 40(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	40(%rbx), %r15
	movl	16(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_ubi_warn
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_ubi_assert
	jmp	LBB0_4
LBB0_2:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.3:
	leaq	8(%rbx), %r15
	movl	36(%rbx), %esi
	movl	32(%rbx), %edx
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	movl	16(%rbx), %r8d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg_gen
LBB0_4:
	movq	$0, (%r15)
	movl	(%rbx), %edi
	callq	_vfree
LBB0_5:
	movq	%r14, %rdi
	callq	_ubi_close_volume
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"release device %d, volume %d, mode %d"

L_.str.1:                               ## @.str.1
	.asciz	"update of volume %d not finished, volume is damaged"

L_.str.2:                               ## @.str.2
	.asciz	"only %lld of %lld bytes received for atomic LEB change for volume %d:%d, cancel"

	.no_dead_strip	_vol_cdev_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vol_cdev_release
_vol_cdev_release:                      ; @vol_cdev_release
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x1]
	ldr	x20, [x19, #8]
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	ldr	w3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_gen
	mov	x21, x20
	ldr	x8, [x21, #40]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ubi_warn
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_ubi_assert
	b	LBB0_4
LBB0_2:
	mov	x21, x20
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_5
; %bb.3:
	ldp	w2, w1, [x20, #32]
	ldr	x8, [x20, #24]
	ldr	w3, [x8]
	ldr	w8, [x20, #16]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg_gen
LBB0_4:
	str	xzr, [x21]
	ldr	w0, [x20]
	bl	_vfree
LBB0_5:
	mov	x0, x19
	bl	_ubi_close_volume
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"release device %d, volume %d, mode %d"

l_.str.1:                               ; @.str.1
	.asciz	"update of volume %d not finished, volume is damaged"

l_.str.2:                               ; @.str.2
	.asciz	"only %lld of %lld bytes received for atomic LEB change for volume %d:%d, cancel"

	.no_dead_strip	_vol_cdev_release
.subsections_via_symbols
