	.file	"extr_sa11xx_base.c_sa11xx_drv_pcmcia_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sa11xx_drv_pcmcia_probe
	.type	sa11xx_drv_pcmcia_probe, @function
sa11xx_drv_pcmcia_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], edx
	call	devm_clk_get@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, r14
	call	sa11xx_drv_pcmcia_ops@PLT
	mov	r15d, DWORD PTR GFP_KERNEL[rip]
	mov	edi, ebx
	call	SKT_DEV_INFO_SIZE@PLT
	mov	rdi, r12
	mov	edx, r15d
	mov	esi, eax
	call	devm_kzalloc@PLT
	mov	r15d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r15d
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rax], ebx
	test	ebx, ebx
	jle	.L5
	lea	eax, -1[rbx]
	xor	ebx, ebx
	mov	QWORD PTR [rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rax, 1[rbx]
	cmp	rbx, QWORD PTR [rsp]
	je	.L5
	mov	rbx, rax
.L8:
	mov	eax, DWORD PTR 8[rsp]
	mov	rdi, rbx
	mov	rdx, r12
	mov	rsi, r14
	sal	rdi, 4
	add	rdi, QWORD PTR 8[rbp]
	mov	DWORD PTR 12[rsp], ebx
	add	eax, ebx
	mov	QWORD PTR 8[rdi], r13
	mov	r15, rdi
	mov	DWORD PTR [rdi], eax
	call	soc_pcmcia_init_one@PLT
	mov	rdi, r15
	call	sa11xx_drv_pcmcia_add_one@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L6
	lea	r12d, -1[rbx]
	test	ebx, ebx
	je	.L1
	movsx	rdx, DWORD PTR 12[rsp]
	lea	eax, -1[rbx]
	movsx	r12, r12d
	sal	r12, 4
	sub	rdx, rax
	mov	rbx, rdx
	sal	rbx, 4
	sub	rbx, 32
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	add	rdi, r12
	sub	r12, 16
	call	soc_pcmcia_remove_one@PLT
	cmp	rbx, r12
	jne	.L9
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	xor	r15d, r15d
	call	dev_set_drvdata@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sa11xx_drv_pcmcia_probe, .-sa11xx_drv_pcmcia_probe
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sa11xx_base.c_sa11xx_drv_pcmcia_probe.c"
	.text
	.align	2
	.global	sa11xx_drv_pcmcia_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	sa11xx_drv_pcmcia_probe, %function
sa11xx_drv_pcmcia_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	mov	r1, #0
	mov	r10, r2
	mov	r6, r3
	mov	r7, r0
	bl	devm_clk_get
	mov	r9, r0
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L14
	mov	r0, r8
	bl	sa11xx_drv_pcmcia_ops
	mov	r0, r6
	bl	SKT_DEV_INFO_SIZE
	ldr	r3, .L16
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r7
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L15
	cmp	r6, #0
	str	r6, [r5]
	bgt	.L8
	b	.L5
.L6:
	add	r4, r4, #1
	cmp	r6, r4
	beq	.L5
.L8:
	ldr	r2, [r5, #4]
	add	r3, r10, r4
	add	fp, r2, r4, lsl #3
	str	r3, [r2, r4, lsl #3]
	mov	r0, fp
	mov	r2, r7
	mov	r1, r8
	str	r9, [fp, #4]
	bl	soc_pcmcia_init_one
	mov	r0, fp
	bl	sa11xx_drv_pcmcia_add_one
	subs	fp, r0, #0
	beq	.L6
	cmp	r4, #0
	sub	r4, r4, #1
	beq	.L1
.L7:
	ldr	r0, [r5, #4]
	add	r0, r0, r4, lsl #3
	sub	r4, r4, #1
	bl	soc_pcmcia_remove_one
	cmn	r4, #1
	bne	.L7
.L1:
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L5:
	mov	fp, #0
	mov	r1, r5
	mov	r0, r7
	bl	dev_set_drvdata
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L16+4
	ldr	r0, [r3]
	rsb	fp, r0, #0
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	sa11xx_drv_pcmcia_probe, .-sa11xx_drv_pcmcia_probe
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
