	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_reset_controller
_au1xmmc_reset_controller:              ## @au1xmmc_reset_controller
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SD_ENABLE_CE@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	callq	_HOST_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$1, %edi
	callq	_mdelay
	movq	_SD_ENABLE_R@GOTPCREL(%rip), %rax
	movl	(%r15), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_HOST_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$5, %edi
	callq	_mdelay
	movq	%r14, %rdi
	callq	_HOST_STATUS
	movl	$-1, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_HOST_BLKSIZE
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	%r14, %rdi
	callq	_HOST_TIMEOUT
	movl	$2097151, %edi                  ## imm = 0x1FFFFF
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	_SD_CONFIG2_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	_SD_CONFIG2_FF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_HOST_CONFIG2
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	_AU1XMMC_INTERRUPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_HOST_CONFIG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_ENABLE_CE,4,2               ## @SD_ENABLE_CE
	.comm	_SD_ENABLE_R,4,2                ## @SD_ENABLE_R
	.comm	_SD_CONFIG2_EN,4,2              ## @SD_CONFIG2_EN
	.comm	_SD_CONFIG2_FF,4,2              ## @SD_CONFIG2_FF
	.comm	_AU1XMMC_INTERRUPTS,4,2         ## @AU1XMMC_INTERRUPTS
	.no_dead_strip	_au1xmmc_reset_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_reset_controller
_au1xmmc_reset_controller:              ; @au1xmmc_reset_controller
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _SD_ENABLE_CE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SD_ENABLE_CE@GOTPAGEOFF]
	ldr	w20, [x21]
	bl	_HOST_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	bl	_wmb
	mov	w0, #1
	bl	_mdelay
Lloh2:
	adrp	x8, _SD_ENABLE_R@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SD_ENABLE_R@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_HOST_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	bl	_wmb
	mov	w0, #5
	bl	_mdelay
	mov	x0, x19
	bl	_HOST_STATUS
	mov	x1, x0
	mov	w0, #-1
	bl	___raw_writel
	bl	_wmb
	mov	x0, x19
	bl	_HOST_BLKSIZE
	mov	x1, x0
	mov	w0, #0
	bl	___raw_writel
	mov	x0, x19
	bl	_HOST_TIMEOUT
	mov	x1, x0
	mov	w0, #2097151
	bl	___raw_writel
	bl	_wmb
Lloh5:
	adrp	x21, _SD_CONFIG2_EN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SD_CONFIG2_EN@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x19
	bl	_HOST_CONFIG2
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	bl	_wmb
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _SD_CONFIG2_FF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SD_CONFIG2_FF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_HOST_CONFIG2
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	bl	_wmb
	mov	w0, #1
	bl	_mdelay
	ldr	w20, [x21]
	mov	x0, x19
	bl	_HOST_CONFIG2
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	bl	_wmb
Lloh10:
	adrp	x8, _AU1XMMC_INTERRUPTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AU1XMMC_INTERRUPTS@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_HOST_CONFIG
	mov	x1, x0
	mov	x0, x20
	bl	___raw_writel
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wmb
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_ENABLE_CE,4,2               ; @SD_ENABLE_CE
	.comm	_SD_ENABLE_R,4,2                ; @SD_ENABLE_R
	.comm	_SD_CONFIG2_EN,4,2              ; @SD_CONFIG2_EN
	.comm	_SD_CONFIG2_FF,4,2              ; @SD_CONFIG2_FF
	.comm	_AU1XMMC_INTERRUPTS,4,2         ; @AU1XMMC_INTERRUPTS
	.no_dead_strip	_au1xmmc_reset_controller
.subsections_via_symbols
