	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxcmci_pull
_mxcmci_pull:                           ## @mxcmci_pull
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpl	$4, %edx
	jl	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STATUS_READ_OP_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STATUS_BUF_READ_RDY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mxcmci_poll_status
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MMC_REG_BUFFER_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mxcmci_readl
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	addq	$8, %r12
	leal	-4(%rbx), %r13d
	cmpl	$7, %ebx
	movl	%r13d, %ebx
	jg	LBB0_2
	jmp	LBB0_4
LBB0_1:
	movl	%ebx, %r13d
LBB0_4:
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.5:
	movq	_STATUS_BUF_READ_RDY@GOTPCREL(%rip), %rax
	movq	_STATUS_READ_OP_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mxcmci_poll_status
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_6:
	movq	_MMC_REG_BUFFER_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mxcmci_readl
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_BUF_READ_RDY,4,2        ## @STATUS_BUF_READ_RDY
	.comm	_STATUS_READ_OP_DONE,4,2        ## @STATUS_READ_OP_DONE
	.comm	_MMC_REG_BUFFER_ACCESS,4,2      ## @MMC_REG_BUFFER_ACCESS
	.no_dead_strip	_mxcmci_pull
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxcmci_pull
_mxcmci_pull:                           ; @mxcmci_pull
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #4
	b.lt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x23, _STATUS_BUF_READ_RDY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STATUS_BUF_READ_RDY@GOTPAGEOFF]
Lloh2:
	adrp	x24, _STATUS_READ_OP_DONE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STATUS_READ_OP_DONE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MMC_REG_BUFFER_ACCESS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MMC_REG_BUFFER_ACCESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_mxcmci_poll_status
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_mxcmci_readl
	bl	_cpu_to_le32
	str	x0, [x19], #8
	sub	w22, w21, #4
	cmp	w21, #7
	mov	x21, x22
	b.gt	LBB0_2
; %bb.4:
	cbnz	w22, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	x22, x21
	cbz	w22, LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _STATUS_BUF_READ_RDY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_BUF_READ_RDY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _STATUS_READ_OP_DONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STATUS_READ_OP_DONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_mxcmci_poll_status
	cbnz	w0, LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _MMC_REG_BUFFER_ACCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_REG_BUFFER_ACCESS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mxcmci_readl
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_memcpy
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_BUF_READ_RDY,4,2        ; @STATUS_BUF_READ_RDY
	.comm	_STATUS_READ_OP_DONE,4,2        ; @STATUS_READ_OP_DONE
	.comm	_MMC_REG_BUFFER_ACCESS,4,2      ; @MMC_REG_BUFFER_ACCESS
	.no_dead_strip	_mxcmci_pull
.subsections_via_symbols
