	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_send_cxd_data
_mmc_send_cxd_data:                     ## @mmc_send_cxd_data
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r8d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	-288(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	leaq	-216(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	leaq	-144(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	%rbx, -224(%rbp)
	movq	%r12, -232(%rbp)
	movq	%r13, -168(%rbp)
	movq	$0, -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, -216(%rbp)
	movl	%r15d, -140(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -136(%rbp)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	leaq	-72(%rbp), %rdi
	movq	%rdi, -112(%rbp)
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_sg_init_one
	movq	_MMC_SEND_CSD@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_MMC_SEND_CID@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_4
## %bb.5:
	leaq	-144(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mmc_set_data_timeout
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	movq	$0, -120(%rbp)
	movl	$64, -128(%rbp)
LBB0_6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-288(%rbp), %rsi
	callq	_mmc_wait_for_req
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_kfree
	movl	-196(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-124(%rbp), %eax
LBB0_8:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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
	.comm	_MMC_SEND_CSD,8,3               ## @MMC_SEND_CSD
	.comm	_MMC_SEND_CID,8,3               ## @MMC_SEND_CID
	.no_dead_strip	_mmc_send_cxd_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_send_cxd_data
_mmc_send_cxd_data:                     ; @mmc_send_cxd_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x4
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x0, sp, #152
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	add	x25, sp, #80
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	add	x26, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	stp	x26, x25, [sp, #208]
	stp	xzr, x24, [sp, #120]
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, _MMC_DATA_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_DATA_READ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w19, [sp, #8]
	mov	x8, sp
	str	x8, [sp, #40]
	movi.2s	v0, #1
	str	d0, [sp, #16]
	mov	x0, sp
	mov	x1, x21
	mov	x2, x19
	bl	_sg_init_one
Lloh15:
	adrp	x8, _MMC_SEND_CSD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMC_SEND_CSD@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x24
	b.eq	LBB0_5
; %bb.2:
Lloh18:
	adrp	x8, _MMC_SEND_CID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MMC_SEND_CID@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x24
	b.eq	LBB0_5
; %bb.3:
	add	x0, sp, #8
	mov	x1, x23
	bl	_mmc_set_data_timeout
	b	LBB0_6
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	str	xzr, [sp, #32]
	mov	w8, #64
	str	w8, [sp, #24]
LBB0_6:
	add	x1, sp, #152
	mov	x0, x22
	bl	_mmc_wait_for_req
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	mov	x0, x21
	bl	_kfree
	ldr	w0, [sp, #100]
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [sp, #28]
LBB0_8:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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
	.comm	_MMC_SEND_CSD,8,3               ; @MMC_SEND_CSD
	.comm	_MMC_SEND_CID,8,3               ; @MMC_SEND_CID
	.no_dead_strip	_mmc_send_cxd_data
.subsections_via_symbols
