	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_open_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	decq	(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_disk_devt
	movl	%eax, %edi
	callq	_MAJOR
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_disk_devt
	movl	%eax, %edi
	callq	_MINOR
	movl	%eax, %r14d
	movq	_MMC_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
LBB0_3:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r14d
	movl	16(%rbx), %edi
	callq	_blk_cleanup_queue
	movq	_dev_use@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	___clear_bit
	movq	8(%rbx), %rdi
	callq	_put_disk
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	movq	_open_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_open_lock,4,2                  ## @open_lock
	.comm	_MMC_SHIFT,4,2                  ## @MMC_SHIFT
	.comm	_dev_use,4,2                    ## @dev_use
	.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_4
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_disk_devt
	bl	_MAJOR
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_disk_devt
	bl	_MINOR
Lloh2:
	adrp	x8, _MMC_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMC_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbnz	w20, LBB0_3
; %bb.2:
	ldr	x9, [x19, #8]
	ldr	w0, [x9]
LBB0_3:
	asr	w20, w0, w8
	ldr	w0, [x19, #16]
	bl	_blk_cleanup_queue
Lloh5:
	adrp	x8, _dev_use@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dev_use@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	___clear_bit
	ldr	x0, [x19, #8]
	bl	_put_disk
	mov	x0, x19
	bl	_kfree
LBB0_4:
Lloh8:
	adrp	x0, _open_lock@GOTPAGE
Lloh9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_open_lock,4,2                  ; @open_lock
	.comm	_MMC_SHIFT,4,2                  ; @MMC_SHIFT
	.comm	_dev_use,4,2                    ; @dev_use
	.no_dead_strip	_mmc_blk_put
.subsections_via_symbols
