	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_put
_mmc_blk_put:                           ## @mmc_blk_put
	.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	_open_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	decq	(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_mmc_get_devidx
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	callq	_blk_put_queue
	movq	_mmc_blk_ida@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_ida_simple_remove
	movl	8(%rbx), %edi
	callq	_put_disk
	movq	%rbx, %rdi
	callq	_kfree
LBB0_2:
	movq	_open_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_open_lock,4,2                  ## @open_lock
	.comm	_mmc_blk_ida,4,2                ## @mmc_blk_ida
	.no_dead_strip	_mmc_blk_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_put
_mmc_blk_put:                           ; @mmc_blk_put
	.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, _open_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _open_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_mmc_get_devidx
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_blk_put_queue
Lloh2:
	adrp	x0, _mmc_blk_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mmc_blk_ida@GOTPAGEOFF]
	mov	x1, x20
	bl	_ida_simple_remove
	ldr	w0, [x19, #8]
	bl	_put_disk
	mov	x0, x19
	bl	_kfree
LBB0_2:
Lloh4:
	adrp	x0, _open_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _open_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_open_lock,4,2                  ; @open_lock
	.comm	_mmc_blk_ida,4,2                ; @mmc_blk_ida
	.no_dead_strip	_mmc_blk_put
.subsections_via_symbols
