	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movups	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	8(%rdi), %edi
	movq	%rbx, %rsi
	callq	_mmc_app_cmd
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	leaq	-48(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-88(%rbp), %r15
	movq	%r15, -104(%rbp)
	movq	_SD_APP_SEND_SCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%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, -48(%rbp)
	movabsq	$4294967304, %rax               ## imm = 0x100000008
	movq	%rax, -88(%rbp)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-56(%rbp), %rdi
	movq	%rdi, -72(%rbp)
	movl	$1, -80(%rbp)
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_sg_init_one
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmc_set_data_timeout
	movl	8(%rbx), %edi
	leaq	-104(%rbp), %rsi
	callq	_mmc_wait_for_req
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	4(%r14), %edi
	callq	_be32_to_cpu
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r14, %rdi
	callq	_kfree
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-76(%rbp), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #56]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	ldr	w0, [x0, #8]
	mov	x1, x19
	bl	_mmc_app_cmd
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	add	x8, sp, #40
	add	x9, sp, #8
	stp	x9, x8, [x29, #-32]
Lloh3:
	adrp	x8, _SD_APP_SEND_SCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_APP_SEND_SCR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	xzr, [sp, #48]
Lloh6:
	adrp	x8, _MMC_RSP_SPI_R1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MMC_CMD_ADTC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #40]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh17:
	adrp	x8, _MMC_DATA_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMC_DATA_READ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	x8, sp
	str	x8, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #16]
	mov	x0, sp
	mov	x1, x20
	mov	w2, #8
	bl	_sg_init_one
	add	x0, sp, #8
	mov	x1, x19
	bl	_mmc_set_data_timeout
	ldr	w0, [x19, #8]
	sub	x1, x29, #32
	bl	_mmc_wait_for_req
	ldr	w0, [x20]
	bl	_be32_to_cpu
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	ldr	x8, [x19]
	str	x0, [x8, #8]
	mov	x0, x20
	bl	_kfree
	ldr	w0, [sp, #44]
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	w0, [sp, #20]
	b	LBB0_1
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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
