	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_cf_probe
_at91_cf_probe:                         ## @at91_cf_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, %r12
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_16
LBB0_1:
	movl	4(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movl	12(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	%rax, %r15
	movq	%r13, 80(%rax)
	movq	%r12, 72(%rax)
	movq	(%r14), %rax
	movq	%rax, 64(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	js	LBB0_21
## %bb.6:
	movl	4(%r13), %edi
	callq	_gpio_to_irq
	movq	_at91_cf_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %r8
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_21
## %bb.7:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movl	12(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	js	LBB0_26
## %bb.8:
	movl	8(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	8(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	js	LBB0_26
LBB0_10:
	movl	(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	js	LBB0_26
## %bb.12:
	movl	(%r13), %edi
	callq	_gpio_to_irq
	movq	_at91_cf_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.5(%rip), %r8
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_26
## %bb.13:
	movl	(%r13), %edi
	callq	_gpio_to_irq
	jmp	LBB0_23
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_16:
	movq	%r12, %rdi
	callq	_at91_cf_dt_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.17:
	movq	(%r12), %r13
	jmp	LBB0_1
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_22:
	movq	_nr_irqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
LBB0_23:
	movq	%rax, 56(%r15)
	movl	$65536, (%r15)                  ## imm = 0x10000
	movq	_CF_IO_PHYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	64(%r15), %rsi
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_pci_ioremap_io
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_resource_size
	leaq	L_.str.5(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_29
## %bb.25:
	movl	4(%r13), %edi
	callq	_gpio_to_irq
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_gpio_to_irq
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_dev_info
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	%r12, 40(%r15)
	movq	_at91_cf_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_pccard_static_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_SS_CAP_PCCARD@GOTPCREL(%rip), %rax
	movq	_SS_CAP_STATIC_MAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SS_CAP_MEM_ALIGN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	_SZ_2K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	8(%r15), %rax
	movq	%r14, (%rax)
	movq	%r15, %rdi
	callq	_pcmcia_register_socket
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_28
LBB0_26:
	movl	%eax, %ebx
LBB0_27:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_device_init_wakeup
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cf_det"

	.comm	_at91_cf_irq,4,2                ## @at91_cf_irq
L_.str.1:                               ## @.str.1
	.asciz	"at91_cf detect"

L_.str.2:                               ## @.str.2
	.asciz	"cf_rst"

L_.str.3:                               ## @.str.3
	.asciz	"cf_vcc"

L_.str.4:                               ## @.str.4
	.asciz	"cf_irq"

	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.5:                               ## @.str.5
	.asciz	"at91_cf"

	.comm	_nr_irqs,8,3                    ## @nr_irqs
	.comm	_CF_IO_PHYS,8,3                 ## @CF_IO_PHYS
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.6:                               ## @.str.6
	.asciz	"irqs det #%d, io #%d\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_at91_cf_ops,4,2                ## @at91_cf_ops
	.comm	_pccard_static_ops,4,2          ## @pccard_static_ops
	.comm	_SS_CAP_PCCARD,4,2              ## @SS_CAP_PCCARD
	.comm	_SS_CAP_STATIC_MAP,4,2          ## @SS_CAP_STATIC_MAP
	.comm	_SS_CAP_MEM_ALIGN,4,2           ## @SS_CAP_MEM_ALIGN
	.comm	_SZ_2K,4,2                      ## @SZ_2K
	.no_dead_strip	_at91_cf_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_cf_probe
_at91_cf_probe:                         ; @at91_cf_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	x23, [x0]
	cbz	x23, LBB0_16
LBB0_1:
	ldr	w0, [x23, #4]
	bl	_gpio_is_valid
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w0, [x23, #12]
	bl	_gpio_is_valid
	cbz	x0, LBB0_14
; %bb.3:
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_14
; %bb.4:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_19
; %bb.5:
	mov	x21, x0
	str	x23, [x0, #80]
	ldr	x8, [x20]
	stp	x8, x19, [x0, #64]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	w1, [x23, #4]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpio_request
	tbnz	w0, #31, LBB0_18
; %bb.6:
	ldr	w0, [x23, #4]
	bl	_gpio_to_irq
	mov	x1, x0
Lloh8:
	adrp	x24, _at91_cf_irq@GOTPAGE
Lloh9:
	ldr	x24, [x24, _at91_cf_irq@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh10:
	adrp	x4, l_.str.1@PAGE
Lloh11:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_18
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	ldr	w1, [x23, #12]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpio_request
	tbnz	w0, #31, LBB0_25
; %bb.8:
	ldr	w0, [x23, #8]
	bl	_gpio_is_valid
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x23, #8]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_gpio_request
	tbnz	w0, #31, LBB0_25
LBB0_10:
	ldr	w0, [x23]
	bl	_gpio_is_valid
	cbz	x0, LBB0_20
; %bb.11:
	ldr	w1, [x23]
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpio_request
	tbnz	w0, #31, LBB0_25
; %bb.12:
	ldr	w0, [x23]
	bl	_gpio_to_irq
	mov	x1, x0
	ldr	w2, [x24]
Lloh18:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x4, l_.str.5@PAGE
Lloh22:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x5, x21
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_25
; %bb.13:
	ldr	w0, [x23]
	bl	_gpio_to_irq
	b	LBB0_21
LBB0_14:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_27
LBB0_16:
	mov	x0, x19
	bl	_at91_cf_dt_init
	mov	x22, x0
	cbnz	w0, LBB0_27
; %bb.17:
	ldr	x23, [x19]
	b	LBB0_1
LBB0_18:
	mov	x22, x0
	b	LBB0_27
LBB0_19:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_20:
Lloh27:
	adrp	x8, _nr_irqs@GOTPAGE
Lloh28:
	ldr	x8, [x8, _nr_irqs@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	add	x0, x8, #1
LBB0_21:
	str	x0, [x21, #56]
	mov	w8, #65536
	str	w8, [x21]
	ldr	x8, [x21, #64]
Lloh30:
	adrp	x9, _CF_IO_PHYS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CF_IO_PHYS@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #65536
	bl	_pci_ioremap_io
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.22:
	ldr	x22, [x20]
	mov	x0, x20
	bl	_resource_size
	mov	x2, x0
Lloh33:
	adrp	x3, l_.str.5@PAGE
Lloh34:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_devm_request_mem_region
	cbz	w0, LBB0_28
; %bb.23:
	ldr	w0, [x23, #4]
	bl	_gpio_to_irq
	mov	x22, x0
	ldr	w0, [x23]
	bl	_gpio_to_irq
	mov	x3, x0
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_info
Lloh37:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x21, #48]
	str	x19, [x21, #40]
Lloh40:
	adrp	x8, _at91_cf_ops@GOTPAGE
Lloh41:
	ldr	x8, [x8, _at91_cf_ops@GOTPAGEOFF]
Lloh42:
	adrp	x9, _pccard_static_ops@GOTPAGE
Lloh43:
	ldr	x9, [x9, _pccard_static_ops@GOTPAGEOFF]
	stp	x9, x8, [x21, #24]
Lloh44:
	adrp	x8, _SS_CAP_PCCARD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SS_CAP_PCCARD@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _SS_CAP_STATIC_MAP@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SS_CAP_STATIC_MAP@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh50:
	adrp	x9, _SS_CAP_MEM_ALIGN@GOTPAGE
Lloh51:
	ldr	x9, [x9, _SS_CAP_MEM_ALIGN@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21, #4]
Lloh53:
	adrp	x8, _SZ_2K@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SZ_2K@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x8, [x21, #8]
	str	x20, [x8]
	mov	x0, x21
	bl	_pcmcia_register_socket
	tbnz	w0, #31, LBB0_25
; %bb.24:
	mov	w22, #0
	b	LBB0_27
LBB0_25:
	mov	x22, x0
LBB0_26:
	mov	x0, x19
	mov	w1, #0
	bl	_device_init_wakeup
LBB0_27:
	mov	x0, x22
	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
LBB0_28:
Lloh56:
	adrp	x8, _ENXIO@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cf_det"

	.comm	_at91_cf_irq,4,2                ; @at91_cf_irq
l_.str.1:                               ; @.str.1
	.asciz	"at91_cf detect"

l_.str.2:                               ; @.str.2
	.asciz	"cf_rst"

l_.str.3:                               ; @.str.3
	.asciz	"cf_vcc"

l_.str.4:                               ; @.str.4
	.asciz	"cf_irq"

	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.5:                               ; @.str.5
	.asciz	"at91_cf"

	.comm	_nr_irqs,8,3                    ; @nr_irqs
	.comm	_CF_IO_PHYS,8,3                 ; @CF_IO_PHYS
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.6:                               ; @.str.6
	.asciz	"irqs det #%d, io #%d\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_at91_cf_ops,4,2                ; @at91_cf_ops
	.comm	_pccard_static_ops,4,2          ; @pccard_static_ops
	.comm	_SS_CAP_PCCARD,4,2              ; @SS_CAP_PCCARD
	.comm	_SS_CAP_STATIC_MAP,4,2          ; @SS_CAP_STATIC_MAP
	.comm	_SS_CAP_MEM_ALIGN,4,2           ; @SS_CAP_MEM_ALIGN
	.comm	_SZ_2K,4,2                      ; @SZ_2K
	.no_dead_strip	_at91_cf_probe
.subsections_via_symbols
