	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_issue_drv_op
_mmc_blk_issue_drv_op:                  ## @mmc_blk_issue_drv_op
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	%rsi, %rdi
	callq	_req_to_mmc_queue_req
	movq	%rax, %r14
	movl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	$0, 4(%r14)
	jle	LBB0_3
## %bb.6:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	movq	16(%r14), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rdx
	movq	%r13, %rbx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	___mmc_blk_ioctl_cmd
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	4(%r12), %rax
	cmpq	%rax, %r15
	movq	%rbx, %r13
	jl	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_16:
	movq	16(%r14), %rsi
	movq	%r13, %rdi
	callq	_mmc_get_ext_csd
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_14:
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mmc_send_status
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movl	-52(%rbp), %r13d
	jmp	LBB0_18
LBB0_12:
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXT_CSD_BOOT_WP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EXT_CSD_BOOT_WP_B_PWR_WP_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	movl	4(%r13), %r8d
	movq	%r13, %rdi
	callq	_mmc_switch
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_err
	movl	%ebx, 8(%r14)
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_3:
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	cmpl	$128, %edx
	je	LBB0_11
	jmp	LBB0_18
LBB0_8:
	movl	%eax, %r13d
LBB0_9:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, %r14
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$128, %edx
	jne	LBB0_18
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mmc_blk_part_switch
LBB0_18:
	movl	%r13d, 8(%r14)
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.19:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movl	(%r12), %eax
	orl	%eax, (%r13)
	movl	$0, 8(%r14)
LBB0_21:
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_blk_mq_end_request
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ## @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_BOOT_WP,4,2            ## @EXT_CSD_BOOT_WP
	.comm	_EXT_CSD_BOOT_WP_B_PWR_WP_EN,4,2 ## @EXT_CSD_BOOT_WP_B_PWR_WP_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Locking boot partition ro until next power on failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: unknown driver specific operation\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
	.no_dead_strip	_mmc_blk_issue_drv_op
.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_drv_op
_mmc_blk_issue_drv_op:                  ; @mmc_blk_issue_drv_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	ldp	x22, x21, [x0]
	mov	x0, x1
	bl	_req_to_mmc_queue_req
	mov	x20, x0
	ldr	w24, [x0]
	sub	w8, w24, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x25, #0
	ldr	x26, [x20, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x26, x25, lsl #3]
	mov	x0, x21
	mov	x1, x22
	bl	___mmc_blk_ioctl_cmd
	cbnz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x20, #4]
	cmp	x25, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w23, #0
	cmp	w24, #128
	b.ne	LBB0_14
	b	LBB0_13
LBB0_7:
	ldr	x8, [x22]
	ldr	w1, [x8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_8:
	ldr	x1, [x20, #16]
	mov	x0, x21
	bl	_mmc_get_ext_csd
	mov	x23, x0
	b	LBB0_14
LBB0_9:
	add	x1, sp, #12
	mov	x0, x21
	bl	_mmc_send_status
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w23, w8, w0, eq
	b	LBB0_14
LBB0_10:
Lloh7:
	adrp	x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _EXT_CSD_BOOT_WP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXT_CSD_BOOT_WP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x24, _EXT_CSD_BOOT_WP_B_PWR_WP_EN@GOTPAGE
Lloh14:
	ldr	x24, [x24, _EXT_CSD_BOOT_WP_B_PWR_WP_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	ldp	w9, w4, [x21]
	orr	w3, w8, w9
	mov	x0, x21
	bl	_mmc_switch
	cbz	w0, LBB0_16
; %bb.11:
	mov	x23, x0
	ldr	x8, [x22]
	ldr	w1, [x8]
	str	x23, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	w23, [x20, #8]
	b	LBB0_15
LBB0_12:
	mov	x23, x0
	cmp	w24, #128
	b.ne	LBB0_14
LBB0_13:
	mov	x0, x21
	mov	w1, #0
	bl	_mmc_blk_part_switch
LBB0_14:
	str	w23, [x20, #8]
	cbz	w23, LBB0_17
LBB0_15:
Lloh17:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	w8, [x24]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	str	wzr, [x20, #8]
LBB0_17:
Lloh19:
	adrp	x8, _BLK_STS_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BLK_STS_OK@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_blk_mq_end_request
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ; @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_BOOT_WP,4,2            ; @EXT_CSD_BOOT_WP
	.comm	_EXT_CSD_BOOT_WP_B_PWR_WP_EN,4,2 ; @EXT_CSD_BOOT_WP_B_PWR_WP_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Locking boot partition ro until next power on failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: unknown driver specific operation\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
	.no_dead_strip	_mmc_blk_issue_drv_op
.subsections_via_symbols
