	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pic32_sdhci_probe
_pic32_sdhci_probe:                     ## @pic32_sdhci_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_sdhci_pic32_pdata@GOTPCREL(%rip), %rsi
	movl	$16, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ADMA_FIFO_RD_THSHLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_ADMA_FIFO_WR_THSHLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*%rax
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	%r15, %rdi
	callq	_sdhci_pltfm_free
LBB0_2:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_15:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_19:
	movl	(%r12), %edi
	callq	_mmc_of_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_20
LBB0_18:
	movq	8(%r14), %rdi
	callq	_clk_disable_unprepare
LBB0_13:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_14
LBB0_20:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pic32_sdhci_probe_platform
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_22:
	movq	%r12, %rdi
	callq	_sdhci_add_host
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.23:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_pic32_pdata,4,2          ## @sdhci_pic32_pdata
	.comm	_ADMA_FIFO_RD_THSHLD,4,2        ## @ADMA_FIFO_RD_THSHLD
	.comm	_ADMA_FIFO_WR_THSHLD,4,2        ## @ADMA_FIFO_WR_THSHLD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sys_clk"

L_.str.1:                               ## @.str.1
	.asciz	"Error getting clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error enabling clock\n"

L_.str.3:                               ## @.str.3
	.asciz	"base_clk"

L_.str.4:                               ## @.str.4
	.asciz	"failed to probe platform!\n"

L_.str.5:                               ## @.str.5
	.asciz	"Successfully added sdhci host\n"

L_.str.6:                               ## @.str.6
	.asciz	"pic32-sdhci probe failed: %d\n"

	.no_dead_strip	_pic32_sdhci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pic32_sdhci_probe
_pic32_sdhci_probe:                     ; @pic32_sdhci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, _sdhci_pic32_pdata@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sdhci_pic32_pdata@GOTPAGEOFF]
	mov	w2, #16
	bl	_sdhci_pltfm_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_11
LBB0_2:
	mov	x0, x21
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x9, _ADMA_FIFO_RD_THSHLD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADMA_FIFO_RD_THSHLD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
Lloh5:
	adrp	x9, _ADMA_FIFO_WR_THSHLD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADMA_FIFO_WR_THSHLD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_10
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_PTR_ERR
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_13
; %bb.8:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_11:
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_15
; %bb.14:
	bl	_PTR_ERR
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_20
LBB0_15:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_18
; %bb.16:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_18:
	ldr	w0, [x21]
	bl	_mmc_of_parse
	mov	x22, x0
	cbz	w0, LBB0_21
LBB0_19:
	ldr	x0, [x20, #8]
	bl	_clk_disable_unprepare
LBB0_20:
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_10
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_pic32_sdhci_probe_platform
	cbz	w0, LBB0_23
; %bb.22:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_23:
	mov	x0, x21
	bl	_sdhci_add_host
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.24:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_pic32_pdata,4,2          ; @sdhci_pic32_pdata
	.comm	_ADMA_FIFO_RD_THSHLD,4,2        ; @ADMA_FIFO_RD_THSHLD
	.comm	_ADMA_FIFO_WR_THSHLD,4,2        ; @ADMA_FIFO_WR_THSHLD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sys_clk"

l_.str.1:                               ; @.str.1
	.asciz	"Error getting clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error enabling clock\n"

l_.str.3:                               ; @.str.3
	.asciz	"base_clk"

l_.str.4:                               ; @.str.4
	.asciz	"failed to probe platform!\n"

l_.str.5:                               ; @.str.5
	.asciz	"Successfully added sdhci host\n"

l_.str.6:                               ; @.str.6
	.asciz	"pic32-sdhci probe failed: %d\n"

	.no_dead_strip	_pic32_sdhci_probe
.subsections_via_symbols
