	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_sd_switch                  ## -- Begin function mmc_sd_switch
	.p2align	4, 0x90
_mmc_sd_switch:                         ## @mmc_sd_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
	callq	_BUG_ON
	andl	$15, %ebx
	leaq	-232(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	leaq	-120(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r15, -184(%rbp)
	movq	%r14, -192(%rbp)
	movq	_SD_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	$-2130706433, %edx              ## imm = 0x80FFFFFF
	cmovel	%eax, %edx
	shll	$2, %r13d
	movl	$15, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	notl	%eax
	shll	%cl, %ebx
	andl	%edx, %eax
	orl	%eax, %ebx
	movl	%ebx, -176(%rbp)
	movq	_MMC_RSP_SPI_R1@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_ADTC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -172(%rbp)
	movabsq	$4294967360, %rax               ## imm = 0x100000040
	movq	%rax, -112(%rbp)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%rdi, -96(%rbp)
	movl	$1, -104(%rbp)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$64, %edx
	callq	_sg_init_one
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mmc_set_data_timeout
	movl	(%r12), %edi
	leaq	-232(%rbp), %rsi
	callq	_mmc_wait_for_req
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-100(%rbp), %eax
LBB0_2:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_SWITCH,4,2                  ## @SD_SWITCH
	.comm	_MMC_RSP_SPI_R1,4,2             ## @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ## @MMC_CMD_ADTC
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mmc_sd_switch
lCPI0_0:
	.long	64                              ; 0x40
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mmc_sd_switch
	.p2align	2
_mmc_sd_switch:                         ; @mmc_sd_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	and	w21, w21, #0xf
	add	x0, sp, #120
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	add	x24, sp, #64
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	stp	x25, x24, [sp, #160]
Lloh0:
	adrp	x8, _SD_SWITCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_SWITCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #96]
	mov	w8, #-2130706433
	mov	w9, #16777215
	cmp	w23, #0
	csel	w8, w9, w8, eq
	lsl	w9, w22, #2
	mov	w10, #15
	lsl	w10, w10, w9
	bic	w8, w8, w10
	lsl	w9, w21, w9
	orr	w8, w8, w9
Lloh3:
	adrp	x9, _MMC_RSP_SPI_R1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MMC_RSP_R1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_RSP_R1@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _MMC_CMD_ADTC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	stp	w8, w9, [sp, #64]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
Lloh14:
	adrp	x8, _MMC_DATA_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMC_DATA_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x8, sp
	str	x8, [sp, #32]
	mov	w8, #1
	str	w8, [sp, #24]
	mov	x0, sp
	mov	x1, x20
	mov	w2, #64
	bl	_sg_init_one
	add	x0, sp, #8
	mov	x1, x19
	bl	_mmc_set_data_timeout
	ldr	w0, [x19]
	add	x1, sp, #120
	bl	_mmc_wait_for_req
	ldr	w8, [sp, #84]
	ldr	w9, [sp, #28]
	cmp	w8, #0
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_SWITCH,4,2                  ; @SD_SWITCH
	.comm	_MMC_RSP_SPI_R1,4,2             ; @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ; @MMC_CMD_ADTC
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
.subsections_via_symbols
