	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_omap_card_busy
_sdhci_omap_card_busy:                  ## @sdhci_omap_card_busy
	.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
	callq	_mmc_priv
	movq	%rax, %r12
	movl	(%rax), %r15d
	movq	%rax, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movq	_SDHCI_OMAP_CON@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_sdhci_omap_readl
	movl	%eax, %ebx
	movq	_SDHCI_OMAP_AC12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_omap_readl
	movq	_CON_CLKEXTFREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%ebx, %ecx
	movq	_AC12_V1V8_SIGEN@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	orl	%ebx, %edx
	testl	%eax, %eax
	cmovel	%ecx, %edx
	movq	_CON_PADEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_sdhci_omap_writel
	movl	4(%r12), %edi
	callq	_disable_irq
	movq	_SDHCI_INT_CARD_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sdhci_writel
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sdhci_writel
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	_SDHCI_OMAP_PSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_omap_readl
	movq	_PSTATE_DATI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_PSTATE_DLEV_DAT0@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	jne	LBB0_3
LBB0_2:
	movl	$1, %r15d
LBB0_3:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_sdhci_omap_readl
	movq	_CON_PADEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CON_CLKEXTFREE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_sdhci_omap_writel
	movl	(%r12), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_sdhci_writel
	movl	(%r12), %esi
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_sdhci_writel
	movl	4(%r12), %edi
	callq	_enable_irq
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_OMAP_CON,4,2             ## @SDHCI_OMAP_CON
	.comm	_SDHCI_OMAP_AC12,4,2            ## @SDHCI_OMAP_AC12
	.comm	_CON_CLKEXTFREE,4,2             ## @CON_CLKEXTFREE
	.comm	_AC12_V1V8_SIGEN,4,2            ## @AC12_V1V8_SIGEN
	.comm	_CON_PADEN,4,2                  ## @CON_PADEN
	.comm	_SDHCI_INT_CARD_INT,4,2         ## @SDHCI_INT_CARD_INT
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_OMAP_PSTATE,4,2          ## @SDHCI_OMAP_PSTATE
	.comm	_PSTATE_DATI,4,2                ## @PSTATE_DATI
	.comm	_PSTATE_DLEV_DAT0,4,2           ## @PSTATE_DLEV_DAT0
	.no_dead_strip	_sdhci_omap_card_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_omap_card_busy
_sdhci_omap_card_busy:                  ; @sdhci_omap_card_busy
	.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
	bl	_mmc_priv
	mov	x19, x0
	ldr	w25, [x0]
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _SDHCI_OMAP_CON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDHCI_OMAP_CON@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_sdhci_omap_readl
	mov	x21, x0
Lloh2:
	adrp	x8, _SDHCI_OMAP_AC12@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_OMAP_AC12@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh5:
	adrp	x23, _CON_CLKEXTFREE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CON_CLKEXTFREE@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w9, w21, w8
Lloh7:
	adrp	x10, _AC12_V1V8_SIGEN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _AC12_V1V8_SIGEN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w8, w8, w21
	tst	w10, w0
	csel	w8, w9, w8, eq
Lloh10:
	adrp	x24, _CON_PADEN@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CON_PADEN@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sdhci_omap_writel
	ldr	w0, [x19, #4]
	bl	_disable_irq
Lloh12:
	adrp	x8, _SDHCI_INT_CARD_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_INT_CARD_INT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w21, w8, w25
Lloh15:
	adrp	x25, _SDHCI_INT_ENABLE@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SDHCI_INT_ENABLE@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_writel
Lloh17:
	adrp	x26, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh18:
	ldr	x26, [x26, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_writel
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
Lloh19:
	adrp	x8, _SDHCI_OMAP_PSTATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDHCI_OMAP_PSTATE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh22:
	adrp	x8, _PSTATE_DATI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PSTATE_DATI@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	mov	w21, #1
	b	LBB0_4
LBB0_2:
Lloh25:
	adrp	x8, _PSTATE_DLEV_DAT0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PSTATE_DLEV_DAT0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.3:
	mov	w21, #0
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sdhci_omap_readl
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sdhci_omap_writel
	ldr	w1, [x19]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_sdhci_writel
	ldr	w1, [x19]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sdhci_writel
	ldr	w0, [x19, #4]
	bl	_enable_irq
	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 AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_OMAP_CON,4,2             ; @SDHCI_OMAP_CON
	.comm	_SDHCI_OMAP_AC12,4,2            ; @SDHCI_OMAP_AC12
	.comm	_CON_CLKEXTFREE,4,2             ; @CON_CLKEXTFREE
	.comm	_AC12_V1V8_SIGEN,4,2            ; @AC12_V1V8_SIGEN
	.comm	_CON_PADEN,4,2                  ; @CON_PADEN
	.comm	_SDHCI_INT_CARD_INT,4,2         ; @SDHCI_INT_CARD_INT
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_OMAP_PSTATE,4,2          ; @SDHCI_OMAP_PSTATE
	.comm	_PSTATE_DATI,4,2                ; @PSTATE_DATI
	.comm	_PSTATE_DLEV_DAT0,4,2           ; @PSTATE_DLEV_DAT0
	.no_dead_strip	_sdhci_omap_card_busy
.subsections_via_symbols
