	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxcmci_push
_mxcmci_push:                           ## @mxcmci_push
	.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, %r15
	movq	%rdi, %r14
	cmpl	$4, %edx
	jl	LBB0_1
## %bb.2:
	movq	_STATUS_BUF_WRITE_RDY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_mxcmci_poll_status
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	addq	$4, %r15
	callq	_cpu_to_le32
	movq	_MMC_REG_BUFFER_ACCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mxcmci_writel
	leal	-4(%rbx), %r12d
	cmpl	$7, %ebx
	movl	%r12d, %ebx
	jg	LBB0_3
## %bb.5:
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movl	%ebx, %r12d
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_6:
	movq	_STATUS_BUF_WRITE_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mxcmci_poll_status
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movq	_MMC_REG_BUFFER_ACCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mxcmci_writel
LBB0_8:
	movq	_STATUS_BUF_WRITE_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mxcmci_poll_status
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_BUF_WRITE_RDY,4,2       ## @STATUS_BUF_WRITE_RDY
	.comm	_MMC_REG_BUFFER_ACCESS,4,2      ## @MMC_REG_BUFFER_ACCESS
	.no_dead_strip	_mxcmci_push
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxcmci_push
_mxcmci_push:                           ; @mxcmci_push
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _STATUS_BUF_WRITE_RDY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STATUS_BUF_WRITE_RDY@GOTPAGEOFF]
	cmp	w2, #4
	b.lt	LBB0_5
; %bb.1:
Lloh2:
	adrp	x24, _MMC_REG_BUFFER_ACCESS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MMC_REG_BUFFER_ACCESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxcmci_poll_status
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20], #4
	bl	_cpu_to_le32
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x19
	bl	_mxcmci_writel
	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:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxcmci_poll_status
	cbnz	w0, LBB0_9
; %bb.7:
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	mov	x1, x0
Lloh4:
	adrp	x8, _MMC_REG_BUFFER_ACCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMC_REG_BUFFER_ACCESS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mxcmci_writel
LBB0_8:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxcmci_poll_status
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_BUF_WRITE_RDY,4,2       ; @STATUS_BUF_WRITE_RDY
	.comm	_MMC_REG_BUFFER_ACCESS,4,2      ; @MMC_REG_BUFFER_ACCESS
	.no_dead_strip	_mxcmci_push
.subsections_via_symbols
