	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davinci_mmcsd_probe
_davinci_mmcsd_probe:                   ## @davinci_mmcsd_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %r15
	testl	%r15d, %r15d
	js	LBB0_43
## %bb.3:
	movq	%rbx, %rdi
	callq	_resource_size
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	8(%r12), %ecx
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_devm_request_mem_region
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	movl	$64, %edi
	movq	%r12, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%r13, 32(%rax)
	movq	%rbx, 56(%rax)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%rax, %rbx
	callq	_devm_ioremap
	movl	%eax, 48(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	16(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_42
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_43
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_43
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_42
LBB0_12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_clk_prepare_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	callq	_clk_get_rate
	movl	%eax, 44(%rbx)
	movq	_davinci_mmc_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.14:
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r13, %rdi
	callq	_mmc_of_parse
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movl	%eax, %r14d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_41
## %bb.16:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_17
LBB0_18:
	movq	%r13, %rdi
	callq	_mmc_davinci_parse_pdata
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
LBB0_17:
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_41
LBB0_20:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	_MAX_NR_SG@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.21:
	cmpq	%rax, %rcx
	jle	LBB0_23
LBB0_22:
	movq	%rax, (%rbx)
LBB0_23:
	movq	%rbx, %rdi
	callq	_init_mmcsd_host
	movq	_use_dma@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	%r15d, 8(%rbx)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	movl	%eax, 12(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_27
## %bb.24:
	movq	%rbx, %rdi
	callq	_davinci_acquire_dma_channels
	movl	%eax, %r14d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_41
## %bb.25:
	testl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_27
## %bb.26:
	movq	$0, 24(%rbx)
LBB0_27:
	movq	_MMC_CAP_WAIT_WHILE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_platform_get_device_id
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
LBB0_29:
	movq	_mmc_davinci_ops@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 32(%rdx)
	movq	_MMC_VDD_32_33@GOTPCREL(%rip), %rax
	movq	_MMC_VDD_33_34@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	(%r13), %eax
	movq	%rdx, %r13
	movl	%eax, 8(%rdx)
	movq	_MAX_CCNT@GOTPCREL(%rip), %rax
	movq	_rw_threshold@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movabsq	$281470681747455, %rax          ## imm = 0xFFFF00000FFF
	movq	%rax, 16(%rdx)
	movl	$268365825, 24(%rdx)            ## imm = 0xFFEF001
	movq	32(%rbx), %rdi
	callq	_mmc_dev
	movl	8(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	32(%rbx), %rdi
	callq	_mmc_dev
	movl	16(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	32(%rbx), %rdi
	callq	_mmc_dev
	movl	24(%r13), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	32(%rbx), %rdi
	callq	_mmc_dev
	movl	12(%r13), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_mmc_davinci_cpufreq_register
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_40
LBB0_31:
	movq	%r13, %rdi
	callq	_mmc_add_host
	testl	%eax, %eax
	js	LBB0_32
## %bb.33:
	movq	_mmc_davinci_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_mmc_hostname
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_34
## %bb.38:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_mmc_remove_host
	jmp	LBB0_39
LBB0_32:
	movl	%eax, %r14d
LBB0_39:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mmc_davinci_cpufreq_deregister
LBB0_40:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_davinci_release_dma_channels
LBB0_41:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_clk_disable_unprepare
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_42:
	movq	%r13, %rdi
	callq	_mmc_free_host
	movl	%r14d, %r15d
LBB0_43:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx), %r15d
	testl	%r15d, %r15d
	js	LBB0_37
## %bb.35:
	movq	_mmc_davinci_sdio_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_mmc_hostname
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_37
## %bb.36:
	movq	_MMC_CAP_SDIO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
LBB0_37:
	movq	%r13, %rdi
	callq	_mmc_hostname
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_rename_region
	movq	32(%rbx), %rdi
	callq	_mmc_dev
	cmpq	$0, 24(%rbx)
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	andl	(%r13), %ecx
	setne	%sil
	leal	(%rsi,%rsi,2), %ecx
	incl	%ecx
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_davinci_mmc_dt_ids,4,2         ## @davinci_mmc_dt_ids
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not parse of data: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not parse platform data: %d\n"

	.comm	_MAX_NR_SG,8,3                  ## @MAX_NR_SG
	.comm	_use_dma,8,3                    ## @use_dma
	.comm	_MMC_CAP_WAIT_WHILE_BUSY,4,2    ## @MMC_CAP_WAIT_WHILE_BUSY
	.comm	_mmc_davinci_ops,4,2            ## @mmc_davinci_ops
	.comm	_MMC_VDD_32_33,4,2              ## @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ## @MMC_VDD_33_34
	.comm	_MAX_CCNT,4,2                   ## @MAX_CCNT
	.comm	_rw_threshold,4,2               ## @rw_threshold
L_.str.2:                               ## @.str.2
	.asciz	"max_segs=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"max_blk_size=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"max_req_size=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"max_seg_size=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to register cpufreq\n"

	.comm	_mmc_davinci_irq,4,2            ## @mmc_davinci_irq
	.comm	_mmc_davinci_sdio_irq,4,2       ## @mmc_davinci_sdio_irq
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ## @MMC_CAP_SDIO_IRQ
L_.str.7:                               ## @.str.7
	.asciz	"Using %s, %d-bit mode\n"

L_.str.8:                               ## @.str.8
	.asciz	"DMA"

L_.str.9:                               ## @.str.9
	.asciz	"PIO"

	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.no_dead_strip	_davinci_mmcsd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function davinci_mmcsd_probe
lCPI0_0:
	.long	4095                            ; 0xfff
	.long	65535                           ; 0xffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_davinci_mmcsd_probe:                   ; @davinci_mmcsd_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	tbnz	w23, #31, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_resource_size
	mov	x24, x0
	ldr	w1, [x19]
	ldr	w3, [x21, #8]
	mov	x0, x21
	mov	x2, x24
	bl	_devm_request_mem_region
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	mov	w0, #64
	mov	x1, x21
	bl	_mmc_alloc_host
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
	bl	_mmc_priv
	mov	x20, x0
	str	x19, [x0, #32]
	str	x22, [x0, #56]
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x24
	bl	_devm_ioremap
	str	w0, [x20, #48]
	cbz	w0, LBB0_12
; %bb.5:
	mov	x0, x21
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #16]
	cbz	x8, LBB0_13
; %bb.6:
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_38
LBB0_7:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_38
LBB0_13:
	bl	_clk_prepare_enable
	mov	x24, x0
	cbnz	w0, LBB0_38
; %bb.14:
	ldr	w0, [x20, #16]
	bl	_clk_get_rate
	str	w0, [x20, #44]
Lloh12:
	adrp	x8, _davinci_mmc_dt_ids@GOTPAGE
Lloh13:
	ldr	x8, [x8, _davinci_mmc_dt_ids@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_device
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w8, [x0]
	str	w8, [x21, #4]
	mov	x0, x19
	bl	_mmc_of_parse
	cbz	w0, LBB0_20
; %bb.16:
	mov	x24, x0
Lloh15:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_37
; %bb.17:
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_37
LBB0_18:
	mov	x0, x19
	bl	_mmc_davinci_parse_pdata
	cbz	w0, LBB0_20
; %bb.19:
	mov	x24, x0
	str	x24, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_37
LBB0_20:
	ldr	x9, [x20]
Lloh22:
	adrp	x25, _MAX_NR_SG@GOTPAGE
Lloh23:
	ldr	x25, [x25, _MAX_NR_SG@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x9, LBB0_22
; %bb.21:
	cmp	x9, x8
	b.le	LBB0_23
LBB0_22:
	str	x8, [x20]
LBB0_23:
	mov	x0, x20
	bl	_init_mmcsd_host
Lloh24:
	adrp	x8, _use_dma@GOTPAGE
Lloh25:
	ldr	x8, [x8, _use_dma@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	str	w23, [x20, #8]
	mov	x0, x21
	mov	w1, #1
	bl	_platform_get_irq
	str	w0, [x20, #12]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_27
; %bb.24:
	mov	x0, x20
	bl	_davinci_acquire_dma_channels
	mov	x24, x0
Lloh27:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_37
; %bb.25:
	cbz	w24, LBB0_27
; %bb.26:
	str	xzr, [x20, #24]
LBB0_27:
Lloh30:
	adrp	x8, _MMC_CAP_WAIT_WHILE_BUSY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMC_CAP_WAIT_WHILE_BUSY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x21
	bl	_platform_get_device_id
	cbz	x0, LBB0_29
; %bb.28:
	ldr	w8, [x0]
	str	w8, [x20, #40]
LBB0_29:
Lloh33:
	adrp	x8, _mmc_davinci_ops@GOTPAGE
Lloh34:
	ldr	x8, [x8, _mmc_davinci_ops@GOTPAGEOFF]
	str	x8, [x19, #32]
Lloh35:
	adrp	x8, _MMC_VDD_32_33@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MMC_VDD_32_33@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _MMC_VDD_33_34@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MMC_VDD_33_34@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x25]
	stp	w8, w9, [x19, #4]
Lloh41:
	adrp	x8, _MAX_CCNT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MAX_CCNT@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _rw_threshold@GOTPAGE
Lloh45:
	ldr	x9, [x9, _rw_threshold@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	mul	w8, w9, w8
	str	w8, [x19, #12]
Lloh47:
	adrp	x8, lCPI0_0@PAGE
Lloh48:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	mov	w8, #61441
	movk	w8, #4094, lsl #16
	str	w8, [x19, #24]
	ldr	x0, [x20, #32]
	bl	_mmc_dev
	ldr	w2, [x19, #8]
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20, #32]
	bl	_mmc_dev
	ldr	w2, [x19, #16]
Lloh51:
	adrp	x1, l_.str.3@PAGE
Lloh52:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20, #32]
	bl	_mmc_dev
	ldr	w2, [x19, #24]
Lloh53:
	adrp	x1, l_.str.4@PAGE
Lloh54:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x20, #32]
	bl	_mmc_dev
	ldr	w2, [x19, #12]
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_mmc_davinci_cpufreq_register
	cbz	w0, LBB0_31
; %bb.30:
	mov	x24, x0
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_36
LBB0_31:
	mov	x0, x19
	bl	_mmc_add_host
	tbnz	w0, #31, LBB0_34
; %bb.32:
Lloh59:
	adrp	x8, _mmc_davinci_irq@GOTPAGE
Lloh60:
	ldr	x8, [x8, _mmc_davinci_irq@GOTPAGEOFF]
Lloh61:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_mmc_hostname
	mov	x4, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_39
; %bb.33:
	mov	x24, x0
	mov	x0, x19
	bl	_mmc_remove_host
	b	LBB0_35
LBB0_34:
	mov	x24, x0
LBB0_35:
	mov	x0, x20
	bl	_mmc_davinci_cpufreq_deregister
LBB0_36:
	mov	x0, x20
	bl	_davinci_release_dma_channels
LBB0_37:
	ldr	w0, [x20, #16]
	bl	_clk_disable_unprepare
LBB0_38:
	mov	x0, x19
	bl	_mmc_free_host
	mov	x23, x24
	b	LBB0_11
LBB0_39:
	ldr	w23, [x20, #12]
	tbnz	w23, #31, LBB0_42
; %bb.40:
Lloh62:
	adrp	x8, _mmc_davinci_sdio_irq@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mmc_davinci_sdio_irq@GOTPAGEOFF]
Lloh64:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_mmc_hostname
	mov	x4, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbnz	w0, LBB0_42
; %bb.41:
Lloh65:
	adrp	x8, _MMC_CAP_SDIO_IRQ@GOTPAGE
Lloh66:
	ldr	x8, [x8, _MMC_CAP_SDIO_IRQ@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_42:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
	mov	x0, x22
	bl	_rename_region
	ldr	x0, [x20, #32]
	bl	_mmc_dev
Lloh68:
	adrp	x8, l_.str.8@PAGE
Lloh69:
	add	x8, x8, l_.str.8@PAGEOFF
	ldr	x9, [x20, #24]
Lloh70:
	adrp	x10, l_.str.9@PAGE
Lloh71:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	x9, #0
	csel	x2, x10, x8, eq
	ldr	w8, [x19]
Lloh72:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh73:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #4
	csinc	w3, w8, wzr, ne
Lloh75:
	adrp	x1, l_.str.7@PAGE
Lloh76:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_info
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdr	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_davinci_mmc_dt_ids,4,2         ; @davinci_mmc_dt_ids
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not parse of data: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not parse platform data: %d\n"

	.comm	_MAX_NR_SG,8,3                  ; @MAX_NR_SG
	.comm	_use_dma,8,3                    ; @use_dma
	.comm	_MMC_CAP_WAIT_WHILE_BUSY,4,2    ; @MMC_CAP_WAIT_WHILE_BUSY
	.comm	_mmc_davinci_ops,4,2            ; @mmc_davinci_ops
	.comm	_MMC_VDD_32_33,4,2              ; @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ; @MMC_VDD_33_34
	.comm	_MAX_CCNT,4,2                   ; @MAX_CCNT
	.comm	_rw_threshold,4,2               ; @rw_threshold
l_.str.2:                               ; @.str.2
	.asciz	"max_segs=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"max_blk_size=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"max_req_size=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"max_seg_size=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to register cpufreq\n"

	.comm	_mmc_davinci_irq,4,2            ; @mmc_davinci_irq
	.comm	_mmc_davinci_sdio_irq,4,2       ; @mmc_davinci_sdio_irq
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ; @MMC_CAP_SDIO_IRQ
l_.str.7:                               ; @.str.7
	.asciz	"Using %s, %d-bit mode\n"

l_.str.8:                               ; @.str.8
	.asciz	"DMA"

l_.str.9:                               ; @.str.9
	.asciz	"PIO"

	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.no_dead_strip	_davinci_mmcsd_probe
.subsections_via_symbols
