	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmci_submit_data
_atmci_submit_data:                     ## @atmci_submit_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 24(%rsi)
	movq	32(%rdi), %rdi
	callq	_WARN_ON
	movq	$0, 16(%rbx)
	movq	%r15, 32(%rbx)
	movq	_ATMCI_DATA_ERROR_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atmci_submit_data_dma
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	$0, 24(%rbx)
	movl	4(%r15), %eax
	imull	(%r15), %eax
	cmpl	$12, %eax
	jl	LBB0_3
## %bb.2:
	andl	$3, %eax
	je	LBB0_4
LBB0_3:
	movl	$1, (%rbx)
LBB0_4:
	movq	16(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	_MCI_RXRDY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_MCI_TXRDY@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_ATMCI_DATA_ERROR_FLAGS,4,2     ## @ATMCI_DATA_ERROR_FLAGS
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_MCI_RXRDY,4,2                  ## @MCI_RXRDY
	.comm	_MCI_TXRDY,4,2                  ## @MCI_TXRDY
	.no_dead_strip	_atmci_submit_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmci_submit_data
_atmci_submit_data:                     ; @atmci_submit_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x1, #24]
	ldr	x0, [x0, #32]
	bl	_WARN_ON
	str	xzr, [x21, #16]
	str	x20, [x21, #32]
Lloh3:
	adrp	x8, _ATMCI_DATA_ERROR_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATMCI_DATA_ERROR_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_atmci_submit_data_dma
	cbz	x0, LBB0_7
; %bb.1:
	str	xzr, [x21, #24]
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	and	w9, w8, #0x3
	cmp	w8, #12
	ccmp	w9, #0, #0, ge
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
	ldr	x8, [x20, #16]
	stp	xzr, x8, [x21, #8]
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _MCI_RXRDY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCI_RXRDY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _MCI_TXRDY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCI_TXRDY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_ATMCI_DATA_ERROR_FLAGS,4,2     ; @ATMCI_DATA_ERROR_FLAGS
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_MCI_RXRDY,4,2                  ; @MCI_RXRDY
	.comm	_MCI_TXRDY,4,2                  ; @MCI_TXRDY
	.no_dead_strip	_atmci_submit_data
.subsections_via_symbols
