	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_pcmcia_add_one             ## -- Begin function soc_pcmcia_add_one
	.p2align	4, 0x90
_soc_pcmcia_add_one:                    ## @soc_pcmcia_add_one
	.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, %rbx
	movq	_dead_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rdi)
	leaq	72(%rdi), %r15
	movq	_soc_common_pcmcia_poll_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_SOC_PCMCIA_POLL_PERIOD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 72(%rbx)
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_request_resource
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	leaq	4(%rbx), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_request_resource
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	leaq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_request_resource
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	12(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_request_resource
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_ioremap
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	88(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%rbx, %rdi
	callq	_soc_pcmcia_hw_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	leaq	24(%rbx), %r12
	movq	_soc_common_pcmcia_operations@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	_SS_CAP_STATIC_MAP@GOTPCREL(%rip), %rax
	movq	_SS_CAP_PCCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	_pccard_static_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_soc_common_pcmcia_skt_state
	movl	%eax, 96(%rbx)
	movq	%r12, %rdi
	callq	_pcmcia_register_socket
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	leaq	40(%rbx), %rdi
	movq	_dev_attr_status@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_del_timer_sync
	movq	%r12, %rdi
	callq	_pcmcia_unregister_socket
LBB0_11:
	movq	%rbx, %rdi
	callq	_soc_pcmcia_hw_shutdown
LBB0_12:
	movq	16(%rbx), %rdi
	callq	_iounmap
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_release_resource
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_release_resource
LBB0_15:
	movq	%r14, %rdi
	callq	_release_resource
LBB0_16:
	movq	%rbx, %rdi
	callq	_release_resource
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_dead_socket,4,2                ## @dead_socket
	.comm	_soc_common_pcmcia_poll_event,4,2 ## @soc_common_pcmcia_poll_event
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SOC_PCMCIA_POLL_PERIOD,8,3     ## @SOC_PCMCIA_POLL_PERIOD
	.comm	_iomem_resource,4,2             ## @iomem_resource
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_soc_common_pcmcia_operations,4,2 ## @soc_common_pcmcia_operations
	.comm	_SS_CAP_STATIC_MAP,4,2          ## @SS_CAP_STATIC_MAP
	.comm	_SS_CAP_PCCARD,4,2              ## @SS_CAP_PCCARD
	.comm	_pccard_static_ops,4,2          ## @pccard_static_ops
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_dev_attr_status,4,2            ## @dev_attr_status
	.comm	_CPUFREQ_TRANSITION_NOTIFIER,4,2 ## @CPUFREQ_TRANSITION_NOTIFIER
	.comm	_soc_common_pcmcia_cpufreq_nb,4,2 ## @soc_common_pcmcia_cpufreq_nb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_pcmcia_add_one             ; -- Begin function soc_pcmcia_add_one
	.p2align	2
_soc_pcmcia_add_one:                    ; @soc_pcmcia_add_one
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _dead_socket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dead_socket@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #100]
	add	x22, x0, #72
Lloh3:
	adrp	x8, _soc_common_pcmcia_poll_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _soc_common_pcmcia_poll_event@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_timer_setup
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SOC_PCMCIA_POLL_PERIOD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOC_PCMCIA_POLL_PERIOD@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #72]
Lloh12:
	adrp	x0, _iomem_resource@GOTPAGE
Lloh13:
	ldr	x0, [x0, _iomem_resource@GOTPAGEOFF]
	mov	x1, x19
	bl	_request_resource
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.1:
	add	x20, x19, #4
	mov	x0, x19
	mov	x1, x20
	bl	_request_resource
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.2:
	add	x21, x19, #8
	mov	x0, x19
	mov	x1, x21
	bl	_request_resource
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.3:
	add	x23, x19, #12
	mov	x0, x19
	mov	x1, x23
	bl	_request_resource
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.4:
	ldr	w0, [x19, #4]
	mov	w1, #65536
	bl	_ioremap
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.5:
	ldr	x8, [x19, #88]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_soc_pcmcia_hw_init
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.6:
Lloh14:
	adrp	x8, _SS_CAP_STATIC_MAP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SS_CAP_STATIC_MAP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SS_CAP_PCCARD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SS_CAP_PCCARD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x25, x19
	str	w8, [x25, #24]!
Lloh20:
	adrp	x8, _soc_common_pcmcia_operations@GOTPAGE
Lloh21:
	ldr	x8, [x8, _soc_common_pcmcia_operations@GOTPAGEOFF]
	str	x8, [x19, #64]
Lloh22:
	adrp	x8, _pccard_static_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pccard_static_ops@GOTPAGEOFF]
	stp	xzr, x8, [x19, #48]
Lloh24:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	x8, [x19, #16]
	str	x8, [x19, #32]
	mov	x0, x19
	bl	_soc_common_pcmcia_skt_state
	str	w0, [x19, #96]
	mov	x0, x25
	bl	_pcmcia_register_socket
	mov	x24, x0
	cbnz	w0, LBB0_9
; %bb.7:
	add	x0, x19, #40
Lloh27:
	adrp	x1, _dev_attr_status@GOTPAGE
Lloh28:
	ldr	x1, [x1, _dev_attr_status@GOTPAGEOFF]
	bl	_device_create_file
	mov	x24, x0
	cbz	w0, LBB0_16
; %bb.8:
	mov	x0, x22
	bl	_del_timer_sync
	mov	x0, x25
	bl	_pcmcia_unregister_socket
LBB0_9:
	mov	x0, x19
	bl	_soc_pcmcia_hw_shutdown
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_iounmap
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_12:
	mov	x0, x23
	bl	_release_resource
LBB0_13:
	mov	x0, x21
	bl	_release_resource
LBB0_14:
	mov	x0, x20
	bl	_release_resource
LBB0_15:
	mov	x0, x19
	bl	_release_resource
LBB0_16:
	mov	x0, x24
	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
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_dead_socket,4,2                ; @dead_socket
	.comm	_soc_common_pcmcia_poll_event,4,2 ; @soc_common_pcmcia_poll_event
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SOC_PCMCIA_POLL_PERIOD,8,3     ; @SOC_PCMCIA_POLL_PERIOD
	.comm	_iomem_resource,4,2             ; @iomem_resource
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_soc_common_pcmcia_operations,4,2 ; @soc_common_pcmcia_operations
	.comm	_SS_CAP_STATIC_MAP,4,2          ; @SS_CAP_STATIC_MAP
	.comm	_SS_CAP_PCCARD,4,2              ; @SS_CAP_PCCARD
	.comm	_pccard_static_ops,4,2          ; @pccard_static_ops
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_dev_attr_status,4,2            ; @dev_attr_status
	.comm	_CPUFREQ_TRANSITION_NOTIFIER,4,2 ; @CPUFREQ_TRANSITION_NOTIFIER
	.comm	_soc_common_pcmcia_cpufreq_nb,4,2 ; @soc_common_pcmcia_cpufreq_nb
.subsections_via_symbols
