	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_mmcsd_host
_init_mmcsd_host:                       ## @init_mmcsd_host
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_mmc_davinci_reset_ctrl
	movq	_DAVINCI_MMCCLK@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MMCCLK_CLKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_DAVINCI_MMCTOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$8191, %edi                     ## imm = 0x1FFF
	callq	_writel
	movq	_DAVINCI_MMCTOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmc_davinci_reset_ctrl         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DAVINCI_MMCCLK,8,3             ## @DAVINCI_MMCCLK
	.comm	_MMCCLK_CLKEN,4,2               ## @MMCCLK_CLKEN
	.comm	_DAVINCI_MMCTOR,8,3             ## @DAVINCI_MMCTOR
	.comm	_DAVINCI_MMCTOD,8,3             ## @DAVINCI_MMCTOD
	.no_dead_strip	_init_mmcsd_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_mmcsd_host
_init_mmcsd_host:                       ; @init_mmcsd_host
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1
	bl	_mmc_davinci_reset_ctrl
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _DAVINCI_MMCCLK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DAVINCI_MMCCLK@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh2:
	adrp	x8, _MMCCLK_CLKEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMCCLK_CLKEN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _DAVINCI_MMCTOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DAVINCI_MMCTOR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #8191
	bl	_writel
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _DAVINCI_MMCTOD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DAVINCI_MMCTOD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #65535
	bl	_writel
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_davinci_reset_ctrl
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DAVINCI_MMCCLK,8,3             ; @DAVINCI_MMCCLK
	.comm	_MMCCLK_CLKEN,4,2               ; @MMCCLK_CLKEN
	.comm	_DAVINCI_MMCTOR,8,3             ; @DAVINCI_MMCTOR
	.comm	_DAVINCI_MMCTOD,8,3             ; @DAVINCI_MMCTOD
	.no_dead_strip	_init_mmcsd_host
.subsections_via_symbols
