	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_remove_req
_mmc_blk_remove_req:                    ## @mmc_blk_remove_req
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	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
	leaq	8(%rdi), %r14
	movq	16(%rdi), %rdi
	movq	_GENHD_FL_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.2:
	movq	8(%rbx), %r15
	callq	_disk_to_dev
	leaq	28(%rbx), %rsi
	movl	%eax, %edi
	callq	_device_remove_file
	movq	_MMC_BLK_DATA_AREA_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	callq	_disk_to_dev
	leaq	24(%rbx), %rsi
	movl	%eax, %edi
	callq	_device_remove_file
LBB0_5:
	movq	16(%rbx), %rdi
	callq	_del_gendisk
LBB0_6:
	movq	%r14, %rdi
	callq	_mmc_cleanup_queue
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_blk_put                    ## TAILCALL
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENHD_FL_UP,4,2                ## @GENHD_FL_UP
	.comm	_MMC_BLK_DATA_AREA_BOOT,4,2     ## @MMC_BLK_DATA_AREA_BOOT
	.no_dead_strip	_mmc_blk_remove_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_remove_req
_mmc_blk_remove_req:                    ; @mmc_blk_remove_req
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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	x19, x0
	mov	x20, x0
	ldp	x21, x0, [x20, #8]!
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _GENHD_FL_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GENHD_FL_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	bl	_disk_to_dev
	add	x1, x19, #28
	bl	_device_remove_file
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _MMC_BLK_DATA_AREA_BOOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_BLK_DATA_AREA_BOOT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_disk_to_dev
	add	x1, x19, #24
	bl	_device_remove_file
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_del_gendisk
LBB0_6:
	mov	x0, x20
	bl	_mmc_cleanup_queue
	mov	x0, x19
	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	_mmc_blk_put
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GENHD_FL_UP,4,2                ; @GENHD_FL_UP
	.comm	_MMC_BLK_DATA_AREA_BOOT,4,2     ; @MMC_BLK_DATA_AREA_BOOT
	.no_dead_strip	_mmc_blk_remove_req
.subsections_via_symbols
