	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_pxav2_probe
_sdhci_pxav2_probe:                     ## @sdhci_pxav2_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	(%rdi), %r12
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.23:
	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	%rbx, %rdi
	callq	_sdhci_priv
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_21
LBB0_3:
	movq	%r15, (%r13)
	movq	%r15, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_5:
	movq	_SDHCI_QUIRK_BROKEN_ADMA@GOTPCREL(%rip), %rax
	movq	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_sdhci_pxav2_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_ptr
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_pxav2_get_mmc_pdata
	movq	%rax, %r12
LBB0_7:
	testq	%r12, %r12
	je	LBB0_18
## %bb.8:
	movl	(%r12), %eax
	movq	_PXA_FLAG_CARD_PERMANENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	movq	_MMC_CAP_NONREMOVABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%rbx), %rdx
	orl	%ecx, (%rdx)
LBB0_10:
	movq	_PXA_FLAG_SD_8_BIT_CAPABLE_SLOT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_MMC_CAP_8_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	orl	%eax, (%rcx)
LBB0_12:
	movl	4(%r12), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	orl	%eax, (%rbx)
LBB0_14:
	movl	8(%r12), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	16(%rbx), %rcx
	orl	%eax, (%rcx)
LBB0_16:
	movl	12(%r12), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	16(%rbx), %rcx
	orl	%eax, 4(%rcx)
LBB0_18:
	movq	_pxav2_sdhci_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_sdhci_add_host
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_clk_disable_unprepare
LBB0_21:
	movq	%r14, %rdi
	callq	_sdhci_pltfm_free
LBB0_22:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PXA-SDHCLK"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get io clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable io clock\n"

	.comm	_SDHCI_QUIRK_BROKEN_ADMA,4,2    ## @SDHCI_QUIRK_BROKEN_ADMA
	.comm	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,2 ## @SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
	.comm	_SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,4,2 ## @SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN
	.comm	_sdhci_pxav2_of_match,4,2       ## @sdhci_pxav2_of_match
	.comm	_PXA_FLAG_CARD_PERMANENT,4,2    ## @PXA_FLAG_CARD_PERMANENT
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ## @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ## @MMC_CAP_NONREMOVABLE
	.comm	_PXA_FLAG_SD_8_BIT_CAPABLE_SLOT,4,2 ## @PXA_FLAG_SD_8_BIT_CAPABLE_SLOT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ## @MMC_CAP_8_BIT_DATA
	.comm	_pxav2_sdhci_ops,4,2            ## @pxav2_sdhci_ops
	.no_dead_strip	_sdhci_pxav2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_pxav2_probe
_sdhci_pxav2_probe:                     ; @sdhci_pxav2_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
	ldr	x22, [x0]
	mov	x1, #0
	mov	w2, #0
	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, x20
	bl	_sdhci_priv
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_21
LBB0_4:
	str	x21, [x23]
	mov	x0, x21
	bl	_clk_prepare_enable
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_21
LBB0_6:
Lloh6:
	adrp	x8, _SDHCI_QUIRK_BROKEN_ADMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_QUIRK_BROKEN_ADMA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
Lloh15:
	adrp	x8, _sdhci_pxav2_of_match@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sdhci_pxav2_of_match@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_of_match_ptr
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_pxav2_get_mmc_pdata
	mov	x22, x0
LBB0_8:
	cbz	x22, LBB0_19
; %bb.9:
	ldr	w8, [x22]
Lloh18:
	adrp	x9, _PXA_FLAG_CARD_PERMANENT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PXA_FLAG_CARD_PERMANENT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh21:
	adrp	x9, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldr	w10, [x20]
	orr	w9, w10, w9
Lloh24:
	adrp	x10, _MMC_CAP_NONREMOVABLE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MMC_CAP_NONREMOVABLE@GOTPAGEOFF]
	str	w9, [x20]
Lloh26:
	ldr	w9, [x10]
	ldr	x10, [x20, #16]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
LBB0_11:
Lloh27:
	adrp	x9, _PXA_FLAG_SD_8_BIT_CAPABLE_SLOT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PXA_FLAG_SD_8_BIT_CAPABLE_SLOT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh30:
	adrp	x8, _MMC_CAP_8_BIT_DATA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMC_CAP_8_BIT_DATA@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_13:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_15:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_17
; %bb.16:
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_17:
	ldr	w8, [x22, #12]
	cbz	w8, LBB0_19
; %bb.18:
	ldr	x9, [x20, #16]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_19:
Lloh33:
	adrp	x8, _pxav2_sdhci_ops@GOTPAGE
Lloh34:
	ldr	x8, [x8, _pxav2_sdhci_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_sdhci_add_host
	mov	x23, x0
	cbz	w0, LBB0_22
; %bb.20:
	mov	x0, x21
	bl	_clk_disable_unprepare
LBB0_21:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_22:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PXA-SDHCLK"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get io clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable io clock\n"

	.comm	_SDHCI_QUIRK_BROKEN_ADMA,4,2    ; @SDHCI_QUIRK_BROKEN_ADMA
	.comm	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,2 ; @SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
	.comm	_SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,4,2 ; @SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN
	.comm	_sdhci_pxav2_of_match,4,2       ; @sdhci_pxav2_of_match
	.comm	_PXA_FLAG_CARD_PERMANENT,4,2    ; @PXA_FLAG_CARD_PERMANENT
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ; @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ; @MMC_CAP_NONREMOVABLE
	.comm	_PXA_FLAG_SD_8_BIT_CAPABLE_SLOT,4,2 ; @PXA_FLAG_SD_8_BIT_CAPABLE_SLOT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ; @MMC_CAP_8_BIT_DATA
	.comm	_pxav2_sdhci_ops,4,2            ; @pxav2_sdhci_ops
	.no_dead_strip	_sdhci_pxav2_probe
.subsections_via_symbols
