	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_app_send_scr               ## -- Begin function mmc_app_send_scr
	.p2align	4, 0x90
_mmc_app_send_scr:                      ## @mmc_app_send_scr
	.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	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_mmc_app_cmd
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-240(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r13, -184(%rbp)
	movq	%r12, -192(%rbp)
	movq	_SD_APP_SEND_SCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	$0, -144(%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, -176(%rbp)
	movabsq	$4294967304, %rax               ## imm = 0x100000008
	movq	%rax, -108(%rbp)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%rdi, -88(%rbp)
	movl	$1, -100(%rbp)
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_sg_init_one
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mmc_set_data_timeout
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_mmc_wait_for_req
	movl	-160(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-96(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, (%r14)
	movl	4(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_APP_SEND_SCR,4,2            ## @SD_APP_SEND_SCR
	.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_app_send_scr
lCPI0_0:
	.long	8                               ; 0x8
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mmc_app_send_scr
	.p2align	2
_mmc_app_send_scr:                      ; @mmc_app_send_scr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x20]
	mov	x1, x20
	bl	_mmc_app_cmd
	cbnz	w0, LBB0_4
; %bb.1:
	sub	x0, x29, #112
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x21, sp, #80
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x22, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	stp	x22, x21, [x29, #-64]
Lloh0:
	adrp	x8, _SD_APP_SEND_SCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_APP_SEND_SCR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #120]
	str	xzr, [sp, #112]
Lloh3:
	adrp	x8, _MMC_RSP_SPI_R1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MMC_CMD_ADTC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #80]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #20]
Lloh14:
	adrp	x8, _MMC_DATA_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMC_DATA_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x8, sp, #8
	str	x8, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #28]
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #8
	bl	_sg_init_one
	add	x0, sp, #16
	mov	x1, x20
	bl	_mmc_set_data_timeout
	ldr	w0, [x20]
	sub	x1, x29, #112
	bl	_mmc_wait_for_req
	ldr	w0, [sp, #96]
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #32]
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_be32_to_cpu
	str	w0, [x19]
	ldr	w0, [x19, #4]
	bl	_be32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #272
	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_APP_SEND_SCR,4,2            ; @SD_APP_SEND_SCR
	.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
