	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa2xx_drv_pcmcia_probe
_pxa2xx_drv_pcmcia_probe:               ## @pxa2xx_drv_pcmcia_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_cpu_is_pxa320
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$2, (%r12)
	jl	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_pxa2xx_drv_pcmcia_ops
	movl	(%r12), %edi
	callq	_SKT_DEV_INFO_SIZE
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %ecx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, (%rax)
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.12:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	leaq	(%rax,%r13), %rbx
	movq	8(%r12), %rcx
	addq	%r15, %rcx
	movq	%rcx, 8(%rax,%r13)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%r13)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_soc_pcmcia_init_one
	movq	%rbx, %rdi
	callq	_pxa2xx_drv_pcmcia_add_one
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$16, %r13
	cmpq	%rax, %r15
	jl	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pxa2xx_configure_sockets
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_dev_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_17:
	movl	%eax, %ebx
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.18:
	addq	$-16, %r13
	incq	%r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r13, %rdi
	callq	_soc_pcmcia_remove_one
	decq	%r15
	addq	$-16, %r13
	cmpq	$1, %r15
	jg	LBB0_19
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pxa320 supports only one pcmcia slot"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pxa2xx_drv_pcmcia_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa2xx_drv_pcmcia_probe
_pxa2xx_drv_pcmcia_probe:               ; @pxa2xx_drv_pcmcia_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_cpu_is_pxa320
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_pxa2xx_drv_pcmcia_ops
	ldr	w0, [x20]
	bl	_SKT_DEV_INFO_SIZE
	mov	x1, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x21, x0
	ldr	w8, [x20]
	str	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x25, #0
	mov	x24, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x23, x8, x25
	ldr	x8, [x20, #8]
	add	x8, x24, x8
	stp	x22, x8, [x23]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_soc_pcmcia_init_one
	mov	x0, x23
	bl	_pxa2xx_drv_pcmcia_add_one
	cbnz	w0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x25, x25, #16
	cmp	x24, x8
	b.lt	LBB0_11
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_pxa2xx_configure_sockets
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	w23, #0
	b	LBB0_7
LBB0_14:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
	mov	x23, x0
	cbz	w24, LBB0_7
; %bb.16:
	sub	x19, x25, #16
	add	x20, x24, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x19
	bl	_soc_pcmcia_remove_one
	sub	x20, x20, #1
	sub	x19, x19, #16
	cmp	x20, #1
	b.gt	LBB0_17
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pxa320 supports only one pcmcia slot"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pxa2xx_drv_pcmcia_probe
.subsections_via_symbols
