	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmci_prepare_data
_atmci_prepare_data:                    ## @atmci_prepare_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 20(%rsi)
	movl	16(%rsi), %eax
	movl	%eax, 36(%rdi)
	movl	12(%rsi), %eax
	movl	%eax, 32(%rdi)
	movq	%rsi, 24(%rdi)
	movq	$0, 16(%rdi)
	movq	_ATMCI_DATA_ERROR_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rsi), %ecx
	imull	(%rsi), %ecx
	cmpl	$12, %ecx
	jl	LBB0_2
## %bb.1:
	andl	$3, %ecx
	je	LBB0_3
LBB0_2:
	movl	$1, (%rdi)
LBB0_3:
	movq	$0, 8(%rdi)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rsi)
	jne	LBB0_4
## %bb.5:
	movq	_ATMCI_TXRDY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_ATMCI_RXRDY@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
	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	_ATMCI_RXRDY,4,2                ## @ATMCI_RXRDY
	.comm	_ATMCI_TXRDY,4,2                ## @ATMCI_TXRDY
	.no_dead_strip	_atmci_prepare_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmci_prepare_data
_atmci_prepare_data:                    ; @atmci_prepare_data
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x1, #20]
	ldur	d0, [x1, #12]
	str	d0, [x0, #32]
	stp	xzr, x1, [x0, #16]
Lloh3:
	adrp	x8, _ATMCI_DATA_ERROR_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATMCI_DATA_ERROR_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [x1]
	mul	w9, w10, w9
	and	w10, w9, #0x3
	cmp	w9, #12
	ccmp	w10, #0, #0, ge
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x0]
LBB0_2:
	str	xzr, [x0, #8]
	ldr	w9, [x1, #8]
Lloh6:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
Lloh8:
	adrp	x11, _ATMCI_TXRDY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ATMCI_TXRDY@GOTPAGEOFF]
Lloh10:
	adrp	x12, _ATMCI_RXRDY@GOTPAGE
Lloh11:
	ldr	x12, [x12, _ATMCI_RXRDY@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, 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	_ATMCI_RXRDY,4,2                ; @ATMCI_RXRDY
	.comm	_ATMCI_TXRDY,4,2                ; @ATMCI_TXRDY
	.no_dead_strip	_atmci_prepare_data
.subsections_via_symbols
