	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_omap_init_74_clocks
_sdhci_omap_init_74_clocks:             ## @sdhci_omap_init_74_clocks
	.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
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	cmpq	%rbx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_disable_irq
	movq	_SDHCI_OMAP_CON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sdhci_omap_readl
	movq	_CON_INIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_sdhci_omap_writel
	movq	_SDHCI_OMAP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sdhci_omap_writel
	xorl	%eax, %eax
	callq	_ktime_get
	movq	_SDHCI_OMAP_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ktime_add_ms
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_ktime_after
	movl	%eax, %ebx
	movq	_SDHCI_OMAP_STAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_sdhci_omap_readl
	movq	_INT_CC_EN@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$5, %edi
	movl	$10, %esi
	callq	_usleep_range
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_ktime_after
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_sdhci_omap_readl
	testl	%eax, (%r14)
	je	LBB0_4
LBB0_6:
	movq	_SDHCI_OMAP_CON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sdhci_omap_readl
	movq	_CON_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sdhci_omap_writel
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_sdhci_omap_writel
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_irq                     ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_SDHCI_OMAP_CON,4,2             ## @SDHCI_OMAP_CON
	.comm	_CON_INIT,4,2                   ## @CON_INIT
	.comm	_SDHCI_OMAP_CMD,4,2             ## @SDHCI_OMAP_CMD
	.comm	_SDHCI_OMAP_TIMEOUT,4,2         ## @SDHCI_OMAP_TIMEOUT
	.comm	_SDHCI_OMAP_STAT,4,2            ## @SDHCI_OMAP_STAT
	.comm	_INT_CC_EN,4,2                  ## @INT_CC_EN
	.no_dead_strip	_sdhci_omap_init_74_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_omap_init_74_clocks
_sdhci_omap_init_74_clocks:             ; @sdhci_omap_init_74_clocks
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MMC_POWER_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_POWER_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x21, #0, ne
	b.eq	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_disable_irq
Lloh3:
	adrp	x23, _SDHCI_OMAP_CON@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SDHCI_OMAP_CON@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh5:
	adrp	x24, _CON_INIT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CON_INIT@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w2, w8, w0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sdhci_omap_writel
Lloh7:
	adrp	x8, _SDHCI_OMAP_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDHCI_OMAP_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_sdhci_omap_writel
	bl	_ktime_get
Lloh10:
	adrp	x8, _SDHCI_OMAP_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDHCI_OMAP_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ktime_add_ms
	mov	x21, x0
	bl	_ktime_get
	mov	x1, x21
	bl	_ktime_after
	mov	x22, x0
Lloh13:
	adrp	x25, _SDHCI_OMAP_STAT@GOTPAGE
Lloh14:
	ldr	x25, [x25, _SDHCI_OMAP_STAT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh15:
	adrp	x26, _INT_CC_EN@GOTPAGE
Lloh16:
	ldr	x26, [x26, _INT_CC_EN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_WARN_ON
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	mov	w1, #10
	bl	_usleep_range
	bl	_ktime_get
	mov	x1, x21
	bl	_ktime_after
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_sdhci_omap_readl
	b	LBB0_3
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sdhci_omap_readl
	ldr	w8, [x24]
	bic	w2, w0, w8
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sdhci_omap_writel
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_sdhci_omap_writel
	ldr	w0, [x19]
	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
	b	_enable_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_SDHCI_OMAP_CON,4,2             ; @SDHCI_OMAP_CON
	.comm	_CON_INIT,4,2                   ; @CON_INIT
	.comm	_SDHCI_OMAP_CMD,4,2             ; @SDHCI_OMAP_CMD
	.comm	_SDHCI_OMAP_TIMEOUT,4,2         ; @SDHCI_OMAP_TIMEOUT
	.comm	_SDHCI_OMAP_STAT,4,2            ; @SDHCI_OMAP_STAT
	.comm	_INT_CC_EN,4,2                  ; @INT_CC_EN
	.no_dead_strip	_sdhci_omap_init_74_clocks
.subsections_via_symbols
