	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mvsd_probe
LCPI0_0:
	.long	2048                            ## 0x800
	.long	65535                           ## 0xffff
	.long	1                               ## 0x1
	.long	134215680                       ## 0x7fff800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mvsd_probe:                            ## @mvsd_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpq	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%r12, %r12
	je	LBB0_10
## %bb.2:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	$40, %edi
	movq	%r13, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	%r14, 32(%rax)
	movq	%r13, 24(%rax)
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_12:
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	4(%rbx), %edi
	callq	_clk_prepare_enable
	movq	_mvsd_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	_MMC_VDD_32_33@GOTPCREL(%rip), %rax
	movq	_MMC_VDD_33_34@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	(%rbx), %edi
	movq	_MVSD_BASE_DIV_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	movl	%eax, 40(%r14)
	movq	_MVSD_CLOCKRATE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2048,65535,1,134215680]
	movups	%xmm0, 4(%r14)
	movl	$134215680, 20(%r14)            ## imm = 0x7FFF800
	movl	4(%rbx), %edi
	callq	_clk_get_rate
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	callq	_mmc_of_parse
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	movq	_maxfreq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, 32(%r14)
LBB0_17:
	movq	_MMC_CAP_ERASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movl	12(%rbx), %edi
	callq	_PTR_ERR
LBB0_19:
	movl	%eax, %r15d
LBB0_6:
	movl	4(%rbx), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_8:
	movq	%r14, %rdi
	callq	_mmc_free_host
	jmp	LBB0_13
LBB0_20:
	xorl	%eax, %eax
	callq	_mv_mbus_dram_info
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mv_conf_mbus_windows
LBB0_22:
	movq	%rbx, %rdi
	callq	_mvsd_power_down
	movq	_mvsd_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_24:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_mvsd_timeout_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_mmc_add_host
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.25:
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_27
## %bb.26:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.3(%rip), %rsi
LBB0_28:
	movq	%r13, %rdi
	callq	_dev_dbg
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no DT node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"no clock associated\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mvsd_ops,4,2                   ## @mvsd_ops
	.comm	_MMC_VDD_32_33,4,2              ## @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ## @MMC_VDD_33_34
	.comm	_MVSD_BASE_DIV_MAX,4,2          ## @MVSD_BASE_DIV_MAX
	.comm	_MVSD_CLOCKRATE_MAX,8,3         ## @MVSD_CLOCKRATE_MAX
	.comm	_maxfreq,8,3                    ## @maxfreq
	.comm	_MMC_CAP_ERASE,4,2              ## @MMC_CAP_ERASE
	.comm	_mvsd_irq,4,2                   ## @mvsd_irq
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.2:                               ## @.str.2
	.asciz	"cannot assign irq %d\n"

	.comm	_mvsd_timeout_timer,4,2         ## @mvsd_timeout_timer
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ## @MMC_CAP_NEEDS_POLL
L_.str.3:                               ## @.str.3
	.asciz	"using GPIO for card detection\n"

L_.str.4:                               ## @.str.4
	.asciz	"lacking card detect (fall back to polling)\n"

	.no_dead_strip	_mvsd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mvsd_probe
lCPI0_0:
	.long	2048                            ; 0x800
	.long	65535                           ; 0xffff
	.long	1                               ; 0x1
	.long	134215680                       ; 0x7fff800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mvsd_probe:                            ; @mvsd_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	cbz	x23, LBB0_7
; %bb.2:
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	w0, #40
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	stp	x19, x20, [x0, #24]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.5:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	w0, [x21, #4]
	bl	_clk_prepare_enable
Lloh16:
	adrp	x8, _mvsd_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mvsd_ops@GOTPAGEOFF]
	str	x8, [x20, #48]
Lloh18:
	adrp	x8, _MMC_VDD_32_33@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MMC_VDD_32_33@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MMC_VDD_33_34@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MMC_VDD_33_34@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w0, [x21]
Lloh24:
	adrp	x8, _MVSD_BASE_DIV_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MVSD_BASE_DIV_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	str	w0, [x20, #40]
Lloh27:
	adrp	x8, _MVSD_CLOCKRATE_MAX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MVSD_CLOCKRATE_MAX@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x20, #32]
Lloh30:
	adrp	x8, lCPI0_0@PAGE
Lloh31:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x20, #4]
	mov	w8, #134215680
	str	w8, [x20, #20]
	ldr	w0, [x21, #4]
	bl	_clk_get_rate
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_mmc_of_parse
	tbnz	w0, #31, LBB0_16
; %bb.12:
Lloh32:
	adrp	x8, _maxfreq@GOTPAGE
Lloh33:
	ldr	x8, [x8, _maxfreq@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	str	x8, [x20, #32]
LBB0_14:
Lloh35:
	adrp	x8, _MMC_CAP_ERASE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MMC_CAP_ERASE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	add	x0, x21, #16
	bl	_spin_lock_init
	mov	x0, x19
	mov	x1, x23
	bl	_devm_ioremap_resource
	str	w0, [x21, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.15:
	ldr	w0, [x21, #12]
	bl	_PTR_ERR
LBB0_16:
	mov	x24, x0
LBB0_17:
	ldr	w0, [x21, #4]
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.18:
	ldr	w0, [x21, #4]
	bl	_clk_disable_unprepare
LBB0_19:
	mov	x0, x20
	bl	_mmc_free_host
	b	LBB0_10
LBB0_20:
	bl	_mv_mbus_dram_info
	cbz	x0, LBB0_22
; %bb.21:
	mov	x1, x0
	mov	x0, x21
	bl	_mv_conf_mbus_windows
LBB0_22:
	mov	x0, x21
	bl	_mvsd_power_down
Lloh38:
	adrp	x8, _mvsd_irq@GOTPAGE
Lloh39:
	ldr	x8, [x8, _mvsd_irq@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	cbz	w0, LBB0_24
; %bb.23:
	mov	x24, x0
	str	x22, [sp]
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_24:
	add	x0, x21, #8
Lloh46:
	adrp	x8, _mvsd_timeout_timer@GOTPAGE
Lloh47:
	ldr	x8, [x8, _mvsd_timeout_timer@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_mmc_add_host
	mov	x24, x0
	cbnz	w0, LBB0_17
; %bb.25:
	ldr	w8, [x20, #24]
Lloh49:
	adrp	x9, _MMC_CAP_NEEDS_POLL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MMC_CAP_NEEDS_POLL@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_27:
Lloh54:
	adrp	x1, l_.str.3@PAGE
Lloh55:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_28:
	mov	x0, x19
	bl	_dev_dbg
	mov	w24, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no DT node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"no clock associated\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mvsd_ops,4,2                   ; @mvsd_ops
	.comm	_MMC_VDD_32_33,4,2              ; @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ; @MMC_VDD_33_34
	.comm	_MVSD_BASE_DIV_MAX,4,2          ; @MVSD_BASE_DIV_MAX
	.comm	_MVSD_CLOCKRATE_MAX,8,3         ; @MVSD_CLOCKRATE_MAX
	.comm	_maxfreq,8,3                    ; @maxfreq
	.comm	_MMC_CAP_ERASE,4,2              ; @MMC_CAP_ERASE
	.comm	_mvsd_irq,4,2                   ; @mvsd_irq
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.2:                               ; @.str.2
	.asciz	"cannot assign irq %d\n"

	.comm	_mvsd_timeout_timer,4,2         ; @mvsd_timeout_timer
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ; @MMC_CAP_NEEDS_POLL
l_.str.3:                               ; @.str.3
	.asciz	"using GPIO for card detection\n"

l_.str.4:                               ; @.str.4
	.asciz	"lacking card detect (fall back to polling)\n"

	.no_dead_strip	_mvsd_probe
.subsections_via_symbols
