	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imxmci_busy_wait_for_status
_imxmci_busy_wait_for_status:           ## @imxmci_busy_wait_for_status
	.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
	xorl	%ebx, %ebx
	testl	%edx, (%rsi)
	jne	LBB0_8
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	$2, %ebx
	cmpl	%r14d, %ebx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edi
	callq	_udelay
	movq	_MMC_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readw
	orl	(%r12), %eax
	movl	%eax, (%r12)
	testl	%r15d, %eax
	je	LBB0_2
## %bb.5:
	movq	_STATUS_END_CMD_RESP@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.6:
	cmpl	$8000000, (%rdi)                ## imm = 0x7A1200
	jl	LBB0_8
LBB0_7:
	callq	_mmc_dev
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r9d
	callq	_dev_info
	jmp	LBB0_8
LBB0_3:
	movq	(%r13), %rdi
	callq	_mmc_dev
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %r8d
	callq	_dev_dbg
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"busy wait timeout in %s, STATUS = 0x%x (0x%x)\n"

	.comm	_MMC_REG_STATUS,8,3             ## @MMC_REG_STATUS
	.comm	_STATUS_END_CMD_RESP,4,2        ## @STATUS_END_CMD_RESP
L_.str.1:                               ## @.str.1
	.asciz	"busy wait for %d usec in %s, STATUS = 0x%x (0x%x)\n"

	.no_dead_strip	_imxmci_busy_wait_for_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imxmci_busy_wait_for_status
_imxmci_busy_wait_for_status:           ; @imxmci_busy_wait_for_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_9
LBB0_2:
	mov	x20, x4
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	w21, #0
Lloh0:
	adrp	x25, _MMC_REG_STATUS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MMC_REG_STATUS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #2
	cmp	w21, w24
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x23, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readw
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.5:
Lloh2:
	adrp	x8, _STATUS_END_CMD_RESP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS_END_CMD_RESP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x0, [x23]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x0]
	mov	w9, #4608
	movk	w9, #122, lsl #16
	cmp	w8, w9
	b.lt	LBB0_9
LBB0_7:
	bl	_mmc_dev
	ldr	w4, [x22]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x5, x19
	bl	_dev_info
	b	LBB0_9
LBB0_8:
	ldr	x0, [x23]
	bl	_mmc_dev
	ldr	w3, [x22]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	bl	_dev_dbg
	mov	w21, #-1
LBB0_9:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"busy wait timeout in %s, STATUS = 0x%x (0x%x)\n"

	.comm	_MMC_REG_STATUS,8,3             ; @MMC_REG_STATUS
	.comm	_STATUS_END_CMD_RESP,4,2        ; @STATUS_END_CMD_RESP
l_.str.1:                               ; @.str.1
	.asciz	"busy wait for %d usec in %s, STATUS = 0x%x (0x%x)\n"

	.no_dead_strip	_imxmci_busy_wait_for_status
.subsections_via_symbols
