	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwcmshc_probe
_dwcmshc_probe:                         ## @dwcmshc_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, %r14
	movq	_sdhci_dwcmshc_pdata@GOTPCREL(%rip), %rsi
	movl	$8, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_dma_get_required_mask
	movq	_SZ_128M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_UP_ULL
	movq	_SDHCI_MAX_SEGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	addl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_sdhci_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	callq	_clk_prepare_enable
LBB0_6:
	movl	(%rbx), %edi
	callq	_mmc_of_parse
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_sdhci_get_of_property
	movq	%rbx, %rdi
	callq	_sdhci_add_host
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	(%r12), %rdi
	callq	_clk_disable_unprepare
	movq	(%r15), %rdi
	callq	_clk_disable_unprepare
LBB0_10:
	movq	%r14, %rdi
	callq	_sdhci_pltfm_free
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_dwcmshc_pdata,4,2        ## @sdhci_dwcmshc_pdata
	.comm	_SZ_128M,4,2                    ## @SZ_128M
	.comm	_SDHCI_MAX_SEGS,8,3             ## @SDHCI_MAX_SEGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get core clk: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"bus"

	.no_dead_strip	_dwcmshc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwcmshc_probe
_dwcmshc_probe:                         ; @dwcmshc_probe
	.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
Lloh0:
	adrp	x1, _sdhci_dwcmshc_pdata@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sdhci_dwcmshc_pdata@GOTPAGEOFF]
	mov	w2, #8
	bl	_sdhci_pltfm_init
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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	_PTR_ERR
LBB0_2:
	mov	x0, x19
	bl	_dma_get_required_mask
Lloh2:
	adrp	x8, _SZ_128M@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_128M@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP_ULL
Lloh5:
	adrp	x8, _SDHCI_MAX_SEGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDHCI_MAX_SEGS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_sdhci_priv
	mov	x22, x0
	bl	_sdhci_pltfm_priv
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x22]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PTR_ERR
	mov	x23, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_10
LBB0_4:
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x21]
	bl	_clk_prepare_enable
LBB0_7:
	ldr	w0, [x20]
	bl	_mmc_of_parse
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_sdhci_get_of_property
	mov	x0, x20
	bl	_sdhci_add_host
	mov	x23, x0
	cbz	w0, LBB0_11
LBB0_9:
	ldr	x0, [x22]
	bl	_clk_disable_unprepare
	ldr	x0, [x21]
	bl	_clk_disable_unprepare
LBB0_10:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_11:
	mov	x0, x23
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_dwcmshc_pdata,4,2        ; @sdhci_dwcmshc_pdata
	.comm	_SZ_128M,4,2                    ; @SZ_128M
	.comm	_SDHCI_MAX_SEGS,8,3             ; @SDHCI_MAX_SEGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get core clk: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"bus"

	.no_dead_strip	_dwcmshc_probe
.subsections_via_symbols
