	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put_mtd_device                 ## -- Begin function put_mtd_device
	.p2align	4, 0x90
_put_mtd_device:                        ## @put_mtd_device
	.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
	movq	_mtd_table_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	(%rbx), %r14d
	leal	-1(%r14), %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_2:
	movq	_mtd_table_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setle	%dil
	callq	_BUG_ON
	movl	4(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_module_put                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mtd_table_mutex,4,2            ## @mtd_table_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put_mtd_device                 ; -- Begin function put_mtd_device
	.p2align	2
_put_mtd_device:                        ; @put_mtd_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _mtd_table_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mtd_table_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w20, [x19]
	sub	w8, w20, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
LBB0_2:
Lloh2:
	adrp	x0, _mtd_table_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mtd_table_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	cmp	w20, #1
	cset	w0, lt
	bl	_BUG_ON
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_module_put
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mtd_table_mutex,4,2            ; @mtd_table_mutex
.subsections_via_symbols
