	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxamci_probe
_pxamci_probe:                          ## @pxamci_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	(%rbx), %edi
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movl	$136, %edi
	movq	%r13, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_pxamci_ops@GOTPCREL(%rip), %rax
	movq	%rax, 128(%r14)
	movq	_NR_SG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r14)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, 120(%r14)
	xorl	%eax, %eax
	callq	_cpu_is_pxa25x
	testq	%rax, %rax
	movl	$2048, %eax                     ## imm = 0x800
	movl	$1023, %ecx                     ## imm = 0x3FF
	cmovel	%eax, %ecx
	movl	%ecx, (%r14)
	movl	$65535, 4(%r14)                 ## imm = 0xFFFF
	movq	%r14, %rdi
	callq	_mmc_priv
	movq	%rax, %r12
	movq	%r14, 112(%rax)
	movl	$-1, 8(%rax)
	movq	(%r13), %rax
	movq	%rax, 72(%r12)
	movq	_CLKRT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r12)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_clk_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	40(%r12), %rdi
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.5:
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	$0, 40(%r12)
	jmp	LBB0_27
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_37
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_37
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_36
LBB0_9:
	callq	_clk_get_rate
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 12(%r12)
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	callq	_cpu_is_pxa300
	movl	$26000000, %r14d                ## imm = 0x18CBA80
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_cpu_is_pxa310
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	12(%r12), %r14d
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r14d, 20(%rbx)
	movq	%r12, %rdi
	callq	_pxamci_init_ocr
	movl	$0, 24(%rbx)
	movl	$0, 100(%r12)
	xorl	%eax, %eax
	callq	_cpu_is_pxa25x
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movq	_MMC_CAP_SDIO_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 24(%rbx)
	movq	_CMDAT_SDIO_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 100(%r12)
	xorl	%eax, %eax
	callq	_cpu_is_pxa300
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_cpu_is_pxa310
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	_MMC_CAP_MMC_HIGHSPEED@GOTPCREL(%rip), %rax
	movq	_MMC_CAP_SD_HIGHSPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 24(%rbx)
LBB0_16:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	48(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 56(%r12)
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	movq	%r12, %rdi
	addq	$96, %rdi
	callq	_spin_lock_init
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 88(%r12)
	movl	%r15d, 28(%r12)
	movq	_MMC_I_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	(%rcx), %edi
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioremap
	movq	%rax, 64(%r12)
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:
	movq	%r12, %rdi
	callq	_pxamci_stop_clock
	movq	_MMC_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	64(%r12), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	movq	_MMC_RESTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	64(%r12), %rsi
	movl	$64, %edi
	callq	_writel
	movl	32(%r12), %edi
	movq	_MMC_I_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	64(%r12), %rsi
	callq	_writel
	movq	_DRIVER_NAME@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_DMA_PRIO_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pxamci_dma_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rcx
	callq	_pxa_request_dma
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	js	LBB0_38
## %bb.19:
	movl	28(%r12), %edi
	movq	_pxamci_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.20:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_platform_set_drvdata
	movq	_IORESOURCE_DMA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_39
## %bb.21:
	movl	(%rax), %eax
	movl	%eax, 84(%r12)
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_40
## %bb.22:
	movl	(%rax), %eax
	movl	%eax, 80(%r12)
	movq	72(%r12), %rax
	testq	%rax, %rax
	je	LBB0_41
## %bb.23:
	movl	(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r14d
	movl	8(%rax), %r15d
	jmp	LBB0_42
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_25:
	xorl	%r14d, %r14d
LBB0_26:
	subl	(%rax), %r14d
LBB0_27:
	movl	8(%r12), %edi
	testl	%edi, %edi
	js	LBB0_29
## %bb.28:
	callq	_pxa_free_dma
LBB0_29:
	movq	64(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_iounmap
LBB0_31:
	movq	56(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_33
## %bb.32:
	movl	(%rbx), %esi
	movl	48(%r12), %ecx
	movq	%r13, %rdi
	callq	_dma_free_coherent
LBB0_33:
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	callq	_clk_put
LBB0_35:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mmc_free_host
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_36:
	movq	%rbx, %rdi
	callq	_release_resource
LBB0_37:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_29
LBB0_39:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_40:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_41:
	movl	$-1, -64(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, %r14d
	movl	$-1, %r15d
LBB0_42:
	movl	%r15d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_46
## %bb.43:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_gpio_request
	testl	%eax, %eax
	je	LBB0_45
## %bb.44:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_45:
	movq	72(%r12), %rax
	movl	40(%rax), %esi
	movl	%r15d, %edi
	callq	_gpio_direction_output
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_46:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_50
## %bb.47:
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	callq	_gpio_request
	movl	%r14d, %r15d
	testl	%eax, %eax
	je	LBB0_49
## %bb.48:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_56
LBB0_49:
	movl	%r15d, %edi
	callq	_gpio_direction_input
LBB0_50:
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_57
## %bb.51:
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	callq	_gpio_request
	testl	%eax, %eax
	je	LBB0_53
## %bb.52:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_55
LBB0_53:
	movl	%r15d, %edi
	callq	_gpio_direction_input
	movl	%r15d, %edi
	callq	_gpio_to_irq
	movq	_pxamci_detect_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	leaq	L_.str.4(%rip), %rcx
	movl	%eax, %edi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_57
## %bb.54:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %edi
	callq	_gpio_free
LBB0_55:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_gpio_free
LBB0_56:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_gpio_free
	jmp	LBB0_27
LBB0_57:
	movq	72(%r12), %rax
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_60
## %bb.58:
	movq	32(%rax), %rax
	testq	%rax, %rax
	je	LBB0_60
## %bb.59:
	movq	_pxamci_detect_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	*%rax
LBB0_60:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_gpio_is_valid
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_63
## %bb.61:
	movq	72(%r12), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_63
## %bb.62:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_63:
	movl	%ebx, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_66
## %bb.64:
	movq	72(%r12), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_66
## %bb.65:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_66:
	movq	%r14, %rdi
	callq	_mmc_add_host
	xorl	%r14d, %r14d
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.comm	_DRIVER_NAME,8,3                ## @DRIVER_NAME
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pxamci_ops,4,2                 ## @pxamci_ops
	.comm	_NR_SG,4,2                      ## @NR_SG
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_CLKRT_OFF,4,2                  ## @CLKRT_OFF
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ## @MMC_CAP_SDIO_IRQ
	.comm	_CMDAT_SDIO_INT_EN,4,2          ## @CMDAT_SDIO_INT_EN
	.comm	_MMC_CAP_MMC_HIGHSPEED,4,2      ## @MMC_CAP_MMC_HIGHSPEED
	.comm	_MMC_CAP_SD_HIGHSPEED,4,2       ## @MMC_CAP_SD_HIGHSPEED
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MMC_I_MASK_ALL,4,2             ## @MMC_I_MASK_ALL
	.comm	_MMC_SPI,8,3                    ## @MMC_SPI
	.comm	_MMC_RESTO,8,3                  ## @MMC_RESTO
	.comm	_MMC_I_MASK,8,3                 ## @MMC_I_MASK
	.comm	_DMA_PRIO_LOW,4,2               ## @DMA_PRIO_LOW
	.comm	_pxamci_dma_irq,4,2             ## @pxamci_dma_irq
	.comm	_pxamci_irq,4,2                 ## @pxamci_irq
	.comm	_IORESOURCE_DMA,4,2             ## @IORESOURCE_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmc card power"

L_.str.1:                               ## @.str.1
	.asciz	"Failed requesting gpio_power %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mmc card read only"

L_.str.3:                               ## @.str.3
	.asciz	"Failed requesting gpio_ro %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"mmc card detect"

L_.str.5:                               ## @.str.5
	.asciz	"Failed requesting gpio_cd %d\n"

	.comm	_pxamci_detect_irq,4,2          ## @pxamci_detect_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.6:                               ## @.str.6
	.asciz	"failed to request card detect IRQ\n"

L_.str.7:                               ## @.str.7
	.asciz	"gpio_power and setpower() both defined\n"

L_.str.8:                               ## @.str.8
	.asciz	"gpio_ro and get_ro() both defined\n"

	.no_dead_strip	_pxamci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxamci_probe
_pxamci_probe:                          ; @pxamci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	cbz	x20, LBB0_6
; %bb.1:
	mov	x23, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x20]
Lloh3:
	adrp	x25, _SZ_4K@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SZ_4K@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh5:
	adrp	x24, _DRIVER_NAME@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DRIVER_NAME@GOTPAGEOFF]
	ldr	x2, [x24]
	bl	_request_mem_region
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	w0, #136
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
Lloh7:
	adrp	x8, _pxamci_ops@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pxamci_ops@GOTPAGEOFF]
	str	x8, [x0, #128]
Lloh9:
	adrp	x8, _NR_SG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NR_SG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x27]
	stp	w9, w8, [x0, #120]
	bl	_cpu_is_pxa25x
	cmp	x0, #0
	mov	w8, #1023
	mov	w9, #2048
	csel	w8, w9, w8, eq
	mov	w9, #65535
	stp	w8, w9, [x20]
	mov	x0, x20
	bl	_mmc_priv
	mov	x22, x0
	str	x20, [x0, #112]
	mov	w8, #-1
	str	w8, [x0, #8]
	ldr	x8, [x19]
	str	x8, [x0, #72]
Lloh14:
	adrp	x8, _CLKRT_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CLKRT_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x0, #104]
	mov	x0, x19
	mov	x1, #0
	bl	_clk_get
	str	x0, [x22, #40]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22, #40]
	cbz	x8, LBB0_10
; %bb.5:
	bl	_PTR_ERR
	mov	x23, x0
	str	xzr, [x22, #40]
	b	LBB0_27
LBB0_6:
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_37
LBB0_9:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_36
LBB0_10:
	mov	w26, #47744
	movk	w26, #396, lsl #16
	bl	_clk_get_rate
	str	w0, [x22, #12]
	add	w8, w0, #63
	add	w9, w0, #126
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #6
	str	w8, [x20, #16]
	bl	_cpu_is_pxa300
	cbnz	x0, LBB0_13
; %bb.11:
	bl	_cpu_is_pxa310
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w26, [x22, #12]
LBB0_13:
	str	w26, [x20, #20]
	mov	x0, x22
	bl	_pxamci_init_ocr
	str	wzr, [x20, #24]
	str	wzr, [x22, #100]
	bl	_cpu_is_pxa25x
	cbnz	x0, LBB0_17
; %bb.14:
Lloh24:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh26:
	adrp	x9, _MMC_CAP_SDIO_IRQ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MMC_CAP_SDIO_IRQ@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #24]
	orr	w8, w8, w9
	str	w8, [x20, #24]
Lloh30:
	adrp	x8, _CMDAT_SDIO_INT_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CMDAT_SDIO_INT_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x22, #100]
	orr	w8, w9, w8
	str	w8, [x22, #100]
	bl	_cpu_is_pxa300
	cbnz	x0, LBB0_16
; %bb.15:
	bl	_cpu_is_pxa310
	cbz	x0, LBB0_17
LBB0_16:
Lloh33:
	adrp	x8, _MMC_CAP_MMC_HIGHSPEED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MMC_CAP_MMC_HIGHSPEED@GOTPAGEOFF]
Lloh35:
	adrp	x9, _MMC_CAP_SD_HIGHSPEED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MMC_CAP_SD_HIGHSPEED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #24]
	orr	w8, w8, w9
	str	w8, [x20, #24]
LBB0_17:
	ldr	w1, [x27]
	add	x2, x22, #48
Lloh39:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_dma_alloc_coherent
	str	x0, [x22, #56]
	cbz	x0, LBB0_25
; %bb.18:
	add	x0, x22, #96
	bl	_spin_lock_init
Lloh42:
	adrp	x8, _MMC_I_MASK_ALL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MMC_I_MASK_ALL@GOTPAGEOFF]
	str	x21, [x22, #88]
Lloh44:
	ldr	w8, [x8]
	stp	w23, w8, [x22, #28]
	ldr	w0, [x21]
	ldr	w1, [x25]
	bl	_ioremap
	str	x0, [x22, #64]
	cbz	x0, LBB0_25
; %bb.19:
	mov	x0, x22
	bl	_pxamci_stop_clock
	ldr	x8, [x22, #64]
Lloh45:
	adrp	x9, _MMC_SPI@GOTPAGE
Lloh46:
	ldr	x9, [x9, _MMC_SPI@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x22, #64]
Lloh48:
	adrp	x9, _MMC_RESTO@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MMC_RESTO@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #64
	bl	_writel
	ldr	w0, [x22, #32]
	ldr	x8, [x22, #64]
Lloh51:
	adrp	x9, _MMC_I_MASK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MMC_I_MASK@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x24]
Lloh54:
	adrp	x8, _DMA_PRIO_LOW@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DMA_PRIO_LOW@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _pxamci_dma_irq@GOTPAGE
Lloh58:
	ldr	x8, [x8, _pxamci_dma_irq@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x3, x22
	bl	_pxa_request_dma
	str	w0, [x22, #8]
	tbnz	w0, #31, LBB0_38
; %bb.20:
	ldr	w0, [x22, #28]
Lloh60:
	adrp	x8, _pxamci_irq@GOTPAGE
Lloh61:
	ldr	x8, [x8, _pxamci_irq@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	ldr	x3, [x24]
	mov	w2, #0
	mov	x4, x22
	bl	_request_irq
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh63:
	adrp	x23, _IORESOURCE_DMA@GOTPAGE
Lloh64:
	ldr	x23, [x23, _IORESOURCE_DMA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_39
; %bb.22:
	ldr	w8, [x0]
	str	w8, [x22, #84]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	cbz	x0, LBB0_39
; %bb.23:
	ldr	w8, [x0]
	str	w8, [x22, #80]
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_40
; %bb.24:
	ldp	w26, w24, [x8]
	ldr	w25, [x8, #8]
	b	LBB0_41
LBB0_25:
Lloh65:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_27:
	ldr	w0, [x22, #8]
	tbnz	w0, #31, LBB0_29
; %bb.28:
	bl	_pxa_free_dma
LBB0_29:
	ldr	x0, [x22, #64]
	cbz	x0, LBB0_31
LBB0_30:
	bl	_iounmap
LBB0_31:
	ldr	x2, [x22, #56]
	cbz	x2, LBB0_33
; %bb.32:
	ldr	w1, [x27]
	ldr	w3, [x22, #48]
	mov	x0, x19
	bl	_dma_free_coherent
LBB0_33:
	ldr	x0, [x22, #40]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_clk_put
LBB0_35:
	mov	x0, x20
	bl	_mmc_free_host
LBB0_36:
	mov	x0, x21
	bl	_release_resource
LBB0_37:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_38:
Lloh67:
	adrp	x8, _EBUSY@GOTPAGE
Lloh68:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	neg	w23, w8
	ldr	x0, [x22, #64]
	cbnz	x0, LBB0_30
	b	LBB0_31
LBB0_39:
Lloh70:
	adrp	x8, _ENXIO@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_26
LBB0_40:
	mov	w26, #-1
	mov	w24, #-1
	mov	w25, #-1
LBB0_41:
	mov	x0, x25
	bl	_gpio_is_valid
	cbz	x0, LBB0_45
; %bb.42:
Lloh72:
	adrp	x1, l_.str@PAGE
Lloh73:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_gpio_request
	cbz	w0, LBB0_44
; %bb.43:
	mov	x23, x0
	str	x25, [sp]
Lloh74:
	adrp	x1, l_.str.1@PAGE
Lloh75:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_27
LBB0_44:
	ldr	x8, [x22, #72]
	ldr	w1, [x8, #40]
	mov	x0, x25
	bl	_gpio_direction_output
LBB0_45:
	mov	x0, x24
	bl	_gpio_is_valid
	cbz	x0, LBB0_49
; %bb.46:
Lloh76:
	adrp	x1, l_.str.2@PAGE
Lloh77:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_gpio_request
	cbz	w0, LBB0_48
; %bb.47:
	mov	x23, x0
	str	x24, [sp]
Lloh78:
	adrp	x1, l_.str.3@PAGE
Lloh79:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_55
LBB0_48:
	mov	x0, x24
	bl	_gpio_direction_input
LBB0_49:
	mov	x0, x26
	bl	_gpio_is_valid
	cbz	x0, LBB0_56
; %bb.50:
Lloh80:
	adrp	x1, l_.str.4@PAGE
Lloh81:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x26
	bl	_gpio_request
	cbz	w0, LBB0_52
; %bb.51:
	mov	x23, x0
	str	x26, [sp]
Lloh82:
	adrp	x1, l_.str.5@PAGE
Lloh83:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_54
LBB0_52:
	mov	x0, x26
	bl	_gpio_direction_input
	mov	x0, x26
	bl	_gpio_to_irq
Lloh84:
	adrp	x8, _pxamci_detect_irq@GOTPAGE
Lloh85:
	ldr	x8, [x8, _pxamci_detect_irq@GOTPAGEOFF]
Lloh86:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh87:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
Lloh89:
	ldr	w8, [x9]
Lloh90:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh91:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh93:
	adrp	x3, l_.str.4@PAGE
Lloh94:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_56
; %bb.53:
	mov	x23, x0
Lloh95:
	adrp	x1, l_.str.6@PAGE
Lloh96:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x26
	bl	_gpio_free
LBB0_54:
	mov	x0, x24
	bl	_gpio_free
LBB0_55:
	mov	x0, x25
	bl	_gpio_free
	b	LBB0_27
LBB0_56:
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_59
; %bb.57:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_59
; %bb.58:
Lloh97:
	adrp	x9, _pxamci_detect_irq@GOTPAGE
Lloh98:
	ldr	x9, [x9, _pxamci_detect_irq@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x20
	blr	x8
LBB0_59:
	mov	x0, x25
	bl	_gpio_is_valid
	cbz	x0, LBB0_62
; %bb.60:
	ldr	x8, [x22, #72]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_62
; %bb.61:
Lloh100:
	adrp	x1, l_.str.7@PAGE
Lloh101:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_62:
	mov	x0, x24
	bl	_gpio_is_valid
	cbz	x0, LBB0_65
; %bb.63:
	ldr	x8, [x22, #72]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_65
; %bb.64:
Lloh102:
	adrp	x1, l_.str.8@PAGE
Lloh103:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_65:
	mov	x0, x20
	bl	_mmc_add_host
	mov	w23, #0
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh88
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.comm	_DRIVER_NAME,8,3                ; @DRIVER_NAME
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pxamci_ops,4,2                 ; @pxamci_ops
	.comm	_NR_SG,4,2                      ; @NR_SG
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_CLKRT_OFF,4,2                  ; @CLKRT_OFF
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_SDIO_IRQ,4,2           ; @MMC_CAP_SDIO_IRQ
	.comm	_CMDAT_SDIO_INT_EN,4,2          ; @CMDAT_SDIO_INT_EN
	.comm	_MMC_CAP_MMC_HIGHSPEED,4,2      ; @MMC_CAP_MMC_HIGHSPEED
	.comm	_MMC_CAP_SD_HIGHSPEED,4,2       ; @MMC_CAP_SD_HIGHSPEED
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MMC_I_MASK_ALL,4,2             ; @MMC_I_MASK_ALL
	.comm	_MMC_SPI,8,3                    ; @MMC_SPI
	.comm	_MMC_RESTO,8,3                  ; @MMC_RESTO
	.comm	_MMC_I_MASK,8,3                 ; @MMC_I_MASK
	.comm	_DMA_PRIO_LOW,4,2               ; @DMA_PRIO_LOW
	.comm	_pxamci_dma_irq,4,2             ; @pxamci_dma_irq
	.comm	_pxamci_irq,4,2                 ; @pxamci_irq
	.comm	_IORESOURCE_DMA,4,2             ; @IORESOURCE_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmc card power"

l_.str.1:                               ; @.str.1
	.asciz	"Failed requesting gpio_power %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mmc card read only"

l_.str.3:                               ; @.str.3
	.asciz	"Failed requesting gpio_ro %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"mmc card detect"

l_.str.5:                               ; @.str.5
	.asciz	"Failed requesting gpio_cd %d\n"

	.comm	_pxamci_detect_irq,4,2          ; @pxamci_detect_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.6:                               ; @.str.6
	.asciz	"failed to request card detect IRQ\n"

l_.str.7:                               ; @.str.7
	.asciz	"gpio_power and setpower() both defined\n"

l_.str.8:                               ; @.str.8
	.asciz	"gpio_ro and get_ro() both defined\n"

	.no_dead_strip	_pxamci_probe
.subsections_via_symbols
