	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_cmdq_switch
_mmc_cmdq_switch:                       ## @mmc_cmdq_switch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %ecx
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	_EXT_CSD_CMDQ_MODE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXT_CSD_CMDQ_MODE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %r8d
	movq	%rbx, %rdi
	callq	_mmc_switch
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CSD_CMDQ_MODE_ENABLED,4,2  ## @EXT_CSD_CMDQ_MODE_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ## @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_CMDQ_MODE_EN,4,2       ## @EXT_CSD_CMDQ_MODE_EN
	.no_dead_strip	_mmc_cmdq_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_cmdq_switch
_mmc_cmdq_switch:                       ; @mmc_cmdq_switch
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EXT_CSD_CMDQ_MODE_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_CSD_CMDQ_MODE_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
	cmp	w1, #0
	csel	w3, wzr, w8, eq
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x8, _EXT_CSD_CMDQ_MODE_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXT_CSD_CMDQ_MODE_EN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w4, [x0, #4]
	bl	_mmc_switch
	cbnz	w0, LBB0_4
; %bb.2:
	str	w19, [x20]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CSD_CMDQ_MODE_ENABLED,4,2  ; @EXT_CSD_CMDQ_MODE_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ; @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_CMDQ_MODE_EN,4,2       ; @EXT_CSD_CMDQ_MODE_EN
	.no_dead_strip	_mmc_cmdq_switch
.subsections_via_symbols
