	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_esdhc_imx_probe_nondt
_sdhci_esdhc_imx_probe_nondt:           ## @sdhci_esdhc_imx_probe_nondt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movups	(%rax), %xmm0
	movups	%xmm0, (%rdx)
	movq	(%rdx), %rax
	movq	_ESDHC_WP_GPIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mmc_gpiod_request_ro
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_mmc_dev
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_MMC_CAP2_RO_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	orl	%eax, 4(%rcx)
LBB0_7:
	movl	8(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_13
## %bb.8:
	cmpl	$131, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.10:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mmc_gpiod_request_cd
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_mmc_dev
	leaq	L_.str.4(%rip), %rsi
LBB0_5:
	movl	%eax, %edi
	callq	_dev_err
	jmp	LBB0_20
LBB0_12:
	movq	_SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_14
LBB0_13:
	movq	_MMC_CAP_NONREMOVABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	orl	%eax, (%rcx)
LBB0_14:
	movl	12(%r15), %eax
	cmpl	$4, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$8, %eax
	jne	LBB0_18
## %bb.16:
	movq	_MMC_CAP_8_BIT_DATA@GOTPCREL(%rip), %rax
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	8(%r14), %rax
	orl	%ecx, (%rax)
	jmp	LBB0_19
LBB0_17:
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_19
LBB0_18:
	movq	_SDHCI_QUIRK_FORCE_1_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no board data!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESDHC_WP_GPIO,8,3              ## @ESDHC_WP_GPIO
L_.str.1:                               ## @.str.1
	.asciz	"wp"

L_.str.2:                               ## @.str.2
	.asciz	"failed to request write-protect gpio!\n"

	.comm	_MMC_CAP2_RO_ACTIVE_HIGH,4,2    ## @MMC_CAP2_RO_ACTIVE_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"cd"

L_.str.4:                               ## @.str.4
	.asciz	"failed to request card-detect gpio!\n"

	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ## @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ## @MMC_CAP_NONREMOVABLE
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ## @MMC_CAP_8_BIT_DATA
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_SDHCI_QUIRK_FORCE_1_BIT_DATA,4,2 ## @SDHCI_QUIRK_FORCE_1_BIT_DATA
	.no_dead_strip	_sdhci_esdhc_imx_probe_nondt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_esdhc_imx_probe_nondt
_sdhci_esdhc_imx_probe_nondt:           ; @sdhci_esdhc_imx_probe_nondt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x0, [x1, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	ldr	q0, [x8]
	str	q0, [x2]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _ESDHC_WP_GPIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ESDHC_WP_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_mmc_gpiod_request_ro
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_mmc_dev
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_18
LBB0_4:
	bl	_mmc_dev
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_5:
Lloh12:
	adrp	x8, _MMC_CAP2_RO_ACTIVE_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_CAP2_RO_ACTIVE_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_6:
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #131
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.9:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_mmc_gpiod_request_cd
	cbz	w0, LBB0_11
; %bb.10:
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_mmc_dev
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_18
LBB0_11:
Lloh19:
	adrp	x8, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _MMC_CAP_NONREMOVABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMC_CAP_NONREMOVABLE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_13:
	ldr	w8, [x20, #12]
	cmp	w8, #4
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #8
	b.ne	LBB0_17
; %bb.15:
	mov	w21, #0
Lloh25:
	adrp	x8, _MMC_CAP_8_BIT_DATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMC_CAP_8_BIT_DATA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
	b	LBB0_18
LBB0_16:
	mov	w21, #0
Lloh31:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_18
LBB0_17:
	mov	w21, #0
Lloh34:
	adrp	x8, _SDHCI_QUIRK_FORCE_1_BIT_DATA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SDHCI_QUIRK_FORCE_1_BIT_DATA@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no board data!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESDHC_WP_GPIO,8,3              ; @ESDHC_WP_GPIO
l_.str.1:                               ; @.str.1
	.asciz	"wp"

l_.str.2:                               ; @.str.2
	.asciz	"failed to request write-protect gpio!\n"

	.comm	_MMC_CAP2_RO_ACTIVE_HIGH,4,2    ; @MMC_CAP2_RO_ACTIVE_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"cd"

l_.str.4:                               ; @.str.4
	.asciz	"failed to request card-detect gpio!\n"

	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ; @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ; @MMC_CAP_NONREMOVABLE
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ; @MMC_CAP_8_BIT_DATA
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_SDHCI_QUIRK_FORCE_1_BIT_DATA,4,2 ; @SDHCI_QUIRK_FORCE_1_BIT_DATA
	.no_dead_strip	_sdhci_esdhc_imx_probe_nondt
.subsections_via_symbols
