	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxamci_stop_clock
_pxamci_stop_clock:                     ## @pxamci_stop_clock
	.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	%rdi, %r14
	movq	_MMC_STAT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_STAT_CLK_EN@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.1:
	movq	_STOP_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMC_STRPCL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	$-10001, %rbx                   ## imm = 0xD8EF
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_udelay
	incq	%rbx
	jne	LBB0_2
## %bb.4:
	testl	%r13d, (%r12)
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_STAT,8,3                   ## @MMC_STAT
	.comm	_STAT_CLK_EN,4,2                ## @STAT_CLK_EN
	.comm	_STOP_CLOCK,4,2                 ## @STOP_CLOCK
	.comm	_MMC_STRPCL,8,3                 ## @MMC_STRPCL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to stop clock\n"

	.no_dead_strip	_pxamci_stop_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxamci_stop_clock
_pxamci_stop_clock:                     ; @pxamci_stop_clock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _MMC_STAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMC_STAT@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x22, _STAT_CLK_EN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STAT_CLK_EN@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
Lloh4:
	adrp	x8, _STOP_CLOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STOP_CLOCK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _MMC_STRPCL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMC_STRPCL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x23, #-10001
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	mov	w0, #1
	bl	_udelay
	adds	x23, x23, #1
	b.lo	LBB0_2
; %bb.4:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_STAT,8,3                   ; @MMC_STAT
	.comm	_STAT_CLK_EN,4,2                ; @STAT_CLK_EN
	.comm	_STOP_CLOCK,4,2                 ; @STOP_CLOCK
	.comm	_MMC_STRPCL,8,3                 ; @MMC_STRPCL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to stop clock\n"

	.no_dead_strip	_pxamci_stop_clock
.subsections_via_symbols
