	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_close_volume               ## -- Begin function ubi_close_volume
	.p2align	4, 0x90
_ubi_close_volume:                      ## @ubi_close_volume
	.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	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	24(%rbx), %r14
	movl	4(%r14), %esi
	movl	20(%rbx), %edx
	movl	(%rdi), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_dbg_gen
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	decl	(%rbx)
	jmp	LBB0_6
LBB0_4:
	decl	4(%rbx)
	jmp	LBB0_6
LBB0_5:
	movl	$0, 16(%rbx)
LBB0_6:
	decl	8(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_kfree
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_put_device
	movq	%r14, %rdi
	callq	_ubi_put_device
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_module_put                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close device %d, volume %d, mode %d"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_close_volume               ; -- Begin function ubi_close_volume
	.p2align	2
_ubi_close_volume:                      ; @ubi_close_volume
	.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	x20, x0
	ldr	x21, [x0, #8]
	ldr	x19, [x21, #24]
	ldr	w1, [x19, #4]
	ldr	w2, [x21, #20]
	ldr	w3, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_gen
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	str	w8, [x21, #4]
	b	LBB0_6
LBB0_5:
	str	wzr, [x21, #16]
LBB0_6:
	ldr	w8, [x21, #8]
	sub	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	bl	_kfree
	add	x0, x21, #12
	bl	_put_device
	mov	x0, x19
	bl	_ubi_put_device
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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	_module_put
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close device %d, volume %d, mode %d"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
.subsections_via_symbols
