	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_issue_discard_rq
_mmc_blk_issue_discard_rq:              ## @mmc_blk_issue_discard_rq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r13
	movq	(%r13), %rbx
	movq	_MMC_BLK_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mmc_can_erase
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_blk_rq_sectors
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MMC_QUIRK_INAND_CMD38@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rcx
	movq	_INAND_CMD38_ARG_ERASE@GOTPCREL(%rip), %rax
	movq	_MMC_TRIM_ARG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INAND_CMD38_ARG_TRIM@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_INAND_CMD38_ARG_EXT_CSD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_mmc_switch
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rcx
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_mmc_erase
	movl	%eax, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mmc_blk_reset
	testl	%eax, %eax
	je	LBB0_3
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_1:
	movq	_BLK_STS_NOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_13
LBB0_12:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_mmc_blk_reset_success
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_13:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_mq_end_request             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_BLK_DISCARD,4,2            ## @MMC_BLK_DISCARD
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
	.comm	_BLK_STS_NOTSUPP,4,2            ## @BLK_STS_NOTSUPP
	.comm	_MMC_QUIRK_INAND_CMD38,4,2      ## @MMC_QUIRK_INAND_CMD38
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ## @EXT_CSD_CMD_SET_NORMAL
	.comm	_INAND_CMD38_ARG_EXT_CSD,4,2    ## @INAND_CMD38_ARG_EXT_CSD
	.comm	_MMC_TRIM_ARG,8,3               ## @MMC_TRIM_ARG
	.comm	_INAND_CMD38_ARG_TRIM,4,2       ## @INAND_CMD38_ARG_TRIM
	.comm	_INAND_CMD38_ARG_ERASE,4,2      ## @INAND_CMD38_ARG_ERASE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.no_dead_strip	_mmc_blk_issue_discard_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_issue_discard_rq
_mmc_blk_issue_discard_rq:              ; @mmc_blk_issue_discard_rq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x23, [x21]
Lloh0:
	adrp	x8, _MMC_BLK_DISCARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_BLK_DISCARD@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _BLK_STS_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_STS_OK@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x23
	bl	_mmc_can_erase
	cbz	w0, LBB0_9
; %bb.1:
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_blk_rq_pos
	mov	x24, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_blk_rq_sectors
	mov	x25, x0
Lloh6:
	adrp	x27, _MMC_QUIRK_INAND_CMD38@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MMC_QUIRK_INAND_CMD38@GOTPAGEOFF]
Lloh8:
	adrp	x28, _EIO@GOTPAGE
Lloh9:
	ldr	x28, [x28, _EIO@GOTPAGEOFF]
Lloh10:
	adrp	x19, _INAND_CMD38_ARG_TRIM@GOTPAGE
Lloh11:
	ldr	x19, [x19, _INAND_CMD38_ARG_TRIM@GOTPAGEOFF]
Lloh12:
	adrp	x20, _INAND_CMD38_ARG_ERASE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _INAND_CMD38_ARG_ERASE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _INAND_CMD38_ARG_EXT_CSD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INAND_CMD38_ARG_EXT_CSD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldr	x8, [x23, #8]
Lloh20:
	adrp	x9, _MMC_TRIM_ARG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MMC_TRIM_ARG@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x19, x20, eq
	ldr	w3, [x8]
	mov	x0, x23
	mov	w4, #0
	bl	_mmc_switch
	mov	x26, x0
	cbnz	w0, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x3, [x23, #8]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_mmc_erase
	mov	x26, x0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	cmn	w26, w8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23, #16]
	mov	x0, x21
	mov	x2, x22
	bl	_mmc_blk_reset
	cbz	w0, LBB0_2
LBB0_7:
	cbz	w26, LBB0_10
; %bb.8:
Lloh23:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_11
LBB0_9:
Lloh26:
	adrp	x8, _BLK_STS_NOTSUPP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BLK_STS_NOTSUPP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x22
	bl	_mmc_blk_reset_success
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_blk_mq_end_request
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BLK_DISCARD,4,2            ; @MMC_BLK_DISCARD
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
	.comm	_BLK_STS_NOTSUPP,4,2            ; @BLK_STS_NOTSUPP
	.comm	_MMC_QUIRK_INAND_CMD38,4,2      ; @MMC_QUIRK_INAND_CMD38
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ; @EXT_CSD_CMD_SET_NORMAL
	.comm	_INAND_CMD38_ARG_EXT_CSD,4,2    ; @INAND_CMD38_ARG_EXT_CSD
	.comm	_MMC_TRIM_ARG,8,3               ; @MMC_TRIM_ARG
	.comm	_INAND_CMD38_ARG_TRIM,4,2       ; @INAND_CMD38_ARG_TRIM
	.comm	_INAND_CMD38_ARG_ERASE,4,2      ; @INAND_CMD38_ARG_ERASE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.no_dead_strip	_mmc_blk_issue_discard_rq
.subsections_via_symbols
