	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_issue_secdiscard_rq
_mmc_blk_issue_secdiscard_rq:           ## @mmc_blk_issue_secdiscard_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_SECDISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mmc_can_secure_erase_trim
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_blk_rq_sectors
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mmc_can_trim
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_mmc_erase_group_aligned
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_MMC_SECURE_ERASE_ARG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_BLK_STS_NOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_23
LBB0_4:
	movq	_MMC_SECURE_TRIM1_ARG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	je	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_mmc_blk_reset
	testl	%eax, %eax
	jne	LBB0_22
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MMC_QUIRK_INAND_CMD38@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_INAND_CMD38_ARG_SECERASE@GOTPCREL(%rip), %rax
	movq	_MMC_SECURE_TRIM1_ARG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_INAND_CMD38_ARG_SECTRIM1@GOTPCREL(%rip), %rax
LBB0_10:                                ##   in Loop: Header=BB0_7 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
	testl	%eax, %eax
	jne	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_mmc_erase
	movq	_EIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MMC_SECURE_TRIM1_ARG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MMC_QUIRK_INAND_CMD38@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INAND_CMD38_ARG_EXT_CSD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INAND_CMD38_ARG_SECTRIM2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_mmc_switch
	testl	%eax, %eax
	jne	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MMC_SECURE_TRIM2_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_mmc_erase
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_19
LBB0_13:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_21:
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_mmc_blk_reset_success
LBB0_22:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_23:
	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_SECDISCARD,4,2         ## @MMC_BLK_SECDISCARD
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
	.comm	_BLK_STS_NOTSUPP,4,2            ## @BLK_STS_NOTSUPP
	.comm	_MMC_SECURE_TRIM1_ARG,4,2       ## @MMC_SECURE_TRIM1_ARG
	.comm	_MMC_SECURE_ERASE_ARG,4,2       ## @MMC_SECURE_ERASE_ARG
	.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	_INAND_CMD38_ARG_SECTRIM1,4,2   ## @INAND_CMD38_ARG_SECTRIM1
	.comm	_INAND_CMD38_ARG_SECERASE,4,2   ## @INAND_CMD38_ARG_SECERASE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.comm	_INAND_CMD38_ARG_SECTRIM2,4,2   ## @INAND_CMD38_ARG_SECTRIM2
	.comm	_MMC_SECURE_TRIM2_ARG,4,2       ## @MMC_SECURE_TRIM2_ARG
	.no_dead_strip	_mmc_blk_issue_secdiscard_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_secdiscard_rq
_mmc_blk_issue_secdiscard_rq:           ; @mmc_blk_issue_secdiscard_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_SECDISCARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_BLK_SECDISCARD@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_secure_erase_trim
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_blk_rq_pos
	mov	x24, x0
	mov	x0, x19
	bl	_blk_rq_sectors
	mov	x25, x0
	mov	x0, x23
	bl	_mmc_can_trim
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_mmc_erase_group_aligned
	cbz	w0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _MMC_SECURE_ERASE_ARG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_SECURE_ERASE_ARG@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _BLK_STS_NOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLK_STS_NOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	LBB0_20
LBB0_5:
Lloh11:
	adrp	x8, _MMC_SECURE_TRIM1_ARG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMC_SECURE_TRIM1_ARG@GOTPAGEOFF]
LBB0_6:
Lloh13:
	adrp	x27, _MMC_SECURE_TRIM1_ARG@GOTPAGE
Lloh14:
	ldr	x27, [x27, _MMC_SECURE_TRIM1_ARG@GOTPAGEOFF]
	ldr	w26, [x8]
Lloh15:
	adrp	x28, _MMC_QUIRK_INAND_CMD38@GOTPAGE
Lloh16:
	ldr	x28, [x28, _MMC_QUIRK_INAND_CMD38@GOTPAGEOFF]
Lloh17:
	adrp	x19, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh18:
	ldr	x19, [x19, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
Lloh19:
	adrp	x20, _INAND_CMD38_ARG_EXT_CSD@GOTPAGE
Lloh20:
	ldr	x20, [x20, _INAND_CMD38_ARG_EXT_CSD@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh21:
	adrp	x8, _MMC_SECURE_TRIM2_ARG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MMC_SECURE_TRIM2_ARG@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_mmc_erase
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	cbz	w0, LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x23, #4]
	mov	x0, x21
	mov	x2, x22
	bl	_mmc_blk_reset
	cbnz	w0, LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19]
	ldr	w2, [x20]
	ldr	w8, [x27]
	cmp	w26, w8
Lloh27:
	adrp	x8, _INAND_CMD38_ARG_SECTRIM1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INAND_CMD38_ARG_SECTRIM1@GOTPAGEOFF]
Lloh29:
	adrp	x9, _INAND_CMD38_ARG_SECERASE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _INAND_CMD38_ARG_SECERASE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x0, x23
	mov	w4, #0
	bl	_mmc_switch
	cbnz	w0, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_mmc_erase
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x27]
	cmp	w26, w8
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x19]
	ldr	w2, [x20]
Lloh34:
	adrp	x8, _INAND_CMD38_ARG_SECTRIM2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _INAND_CMD38_ARG_SECTRIM2@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w4, #0
	bl	_mmc_switch
	cbnz	w0, LBB0_9
	b	LBB0_7
LBB0_17:
	mov	x0, x21
	mov	x1, x22
	bl	_mmc_blk_reset_success
LBB0_18:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	b	LBB0_20
LBB0_19:
Lloh37:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_20:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BLK_SECDISCARD,4,2         ; @MMC_BLK_SECDISCARD
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
	.comm	_BLK_STS_NOTSUPP,4,2            ; @BLK_STS_NOTSUPP
	.comm	_MMC_SECURE_TRIM1_ARG,4,2       ; @MMC_SECURE_TRIM1_ARG
	.comm	_MMC_SECURE_ERASE_ARG,4,2       ; @MMC_SECURE_ERASE_ARG
	.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	_INAND_CMD38_ARG_SECTRIM1,4,2   ; @INAND_CMD38_ARG_SECTRIM1
	.comm	_INAND_CMD38_ARG_SECERASE,4,2   ; @INAND_CMD38_ARG_SECERASE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.comm	_INAND_CMD38_ARG_SECTRIM2,4,2   ; @INAND_CMD38_ARG_SECTRIM2
	.comm	_MMC_SECURE_TRIM2_ARG,4,2       ; @MMC_SECURE_TRIM2_ARG
	.no_dead_strip	_mmc_blk_issue_secdiscard_rq
.subsections_via_symbols
