	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpc_init_card
_cpc_init_card:                         ## @cpc_init_card
	.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, %r13
	callq	_plx_init
	movq	96(%r13), %rbx
	addq	88(%r13), %rbx
	movq	%rbx, %rdi
	callq	_cpc_readw
	orl	$64, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cpc_writew
	movq	80(%r13), %rbx
	addq	88(%r13), %rbx
	movq	%rbx, %rdi
	callq	_cpc_readl
	andl	$-5, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cpc_writel
	movq	_PC300_OSC_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	movq	%r13, %rdi
	callq	_detect_ram
	movl	%eax, 8(%r13)
	movq	_PCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r13), %rdi
	movq	_PCR_PR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpc_writeb
	movq	_BTCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r13), %rdi
	movl	$16, %esi
	callq	_cpc_writeb
	movq	_WCRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r13), %rdi
	xorl	%esi, %esi
	callq	_cpc_writeb
	movq	_DMER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r13), %rdi
	movl	$128, %esi
	callq	_cpc_writeb
	cmpl	$129, 12(%r13)
	jne	LBB0_5
## %bb.1:
	movq	_CPLD_REG1@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	48(%r13), %rdi
	callq	_cpc_readb
	movl	%eax, %ebx
	movq	(%r14), %rdi
	addq	48(%r13), %rdi
	leal	90(%rbx), %esi
	callq	_cpc_writeb
	movq	(%r14), %rdi
	addq	48(%r13), %rdi
	callq	_cpc_readb
	cmpl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	movq	_CPLD_ID_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	48(%r13), %rdi
	callq	_cpc_readb
	movl	%eax, 16(%r13)
	movq	_CPLD_V2_REG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, 40(%r13)
	movq	_CPLD_V2_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	jmp	LBB0_4
LBB0_3:
	movl	$0, 16(%r13)
	movq	(%r14), %rdi
	movq	%rdi, 40(%r13)
	movq	_CPLD_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	addq	48(%r13), %rdi
	movl	%ebx, %esi
	callq	_cpc_writeb
	movq	40(%r13), %rbx
LBB0_4:
	addq	48(%r13), %rbx
	movq	%rbx, %rdi
	callq	_cpc_readb
	movq	_CPLD_REG1_GLOBAL_CLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cpc_writeb
LBB0_5:
	cmpl	$0, 20(%r13)
	jle	LBB0_23
## %bb.6:
	movq	_N_DMA_TX_BUF@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	20(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	104(%r13), %rax
	leaq	(%rbx,%rbx,8), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdx
	movq	%r13, 96(%rax,%rcx)
	movl	%ebx, (%rax,%rcx)
	movq	$0, 88(%rax,%rcx)
	movq	_CLOCK_EXT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 80(%rax,%rcx)
	movq	_ENCODING_NRZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 72(%rax,%rcx)
	movq	_PARITY_CRC16_PR1_CCITT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 68(%rax,%rcx)
	movl	12(%r13), %esi
	cmpl	$128, %esi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %esi
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_IF_IFACE_T1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 48(%rax,%rcx)
	movq	_PC300_LC_B8ZS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 64(%rax,%rcx)
	movq	_PC300_FR_ESF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 60(%rax,%rcx)
	movq	_PC300_LBO_0_DB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 56(%rax,%rcx)
	movq	_PC300_RX_SENS_SH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 52(%rax,%rcx)
	movl	$-1, 40(%rax,%rcx)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_IF_IFACE_X21@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_IF_IFACE_V35@GOTPCREL(%rip), %rsi
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rsi), %esi
	movl	%esi, 48(%rax,%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rax,%rcx), %r15
	addq	$104, %r15
	movq	_IF_PROTO_PPP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 44(%rax,%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%rcx)
	movq	$0, 32(%rax,%rcx)
	movq	_N_DMA_RX_BUF@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	decq	%rsi
	movq	%rsi, 8(%rax,%rcx)
	movl	(%r12), %esi
	movl	%esi, 4(%rax,%rcx)
	movq	%rdx, 136(%rax,%rcx)
	movups	%xmm0, 112(%rax,%rcx)
	movq	$0, 128(%rax,%rcx)
	movq	%r15, %rdi
	callq	_alloc_hdlcdev
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_dev_to_hdlc
	movq	_cpc_queue_xmit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_cpc_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r14, (%r15)
	movl	24(%r13), %eax
	movl	%eax, (%r14)
	movl	8(%r13), %ecx
	leal	-1(%rax,%rcx), %eax
	movl	%eax, 4(%r14)
	movl	28(%r13), %eax
	movl	%eax, 32(%r14)
	movq	_PC300_TX_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_PC300_DEF_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_cpc_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_PC300_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_register_hdlc_device
	testq	%rax, %rax
	je	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movl	24(%r13), %edx
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printk
	movq	%r14, %rdi
	callq	_free_netdev
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	12(%r13), %eax
	leaq	L_.str.3(%rip), %rdi
	cmpl	$128, %eax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r13), %eax
	movq	_PC300_PMC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdi
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.4(%rip), %rdi
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_printk
	movl	_cpc_init_card.board_nbr(%rip), %esi
	movl	8(%r13), %eax
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	movl	24(%r13), %ecx
	sarl	$10, %edx
	movl	28(%r13), %r8d
	incq	%rbx
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_22
LBB0_23:
	movq	%r13, %rdi
	callq	_spin_lock_init
	incl	_cpc_init_card.board_nbr(%rip)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @cpc_init_card.board_nbr
_cpc_init_card.board_nbr:
	.long	1                               ## 0x1

	.comm	_PC300_OSC_CLOCK,4,2            ## @PC300_OSC_CLOCK
	.comm	_PCR,8,3                        ## @PCR
	.comm	_PCR_PR2,4,2                    ## @PCR_PR2
	.comm	_BTCR,8,3                       ## @BTCR
	.comm	_WCRL,8,3                       ## @WCRL
	.comm	_DMER,8,3                       ## @DMER
	.comm	_CPLD_REG1,8,3                  ## @CPLD_REG1
	.comm	_CPLD_ID_REG,8,3                ## @CPLD_ID_REG
	.comm	_CPLD_V2_REG1,8,3               ## @CPLD_V2_REG1
	.comm	_CPLD_V2_REG2,4,2               ## @CPLD_V2_REG2
	.comm	_CPLD_REG2,4,2                  ## @CPLD_REG2
	.comm	_CPLD_REG1_GLOBAL_CLK,4,2       ## @CPLD_REG1_GLOBAL_CLK
	.comm	_CLOCK_EXT,4,2                  ## @CLOCK_EXT
	.comm	_ENCODING_NRZ,4,2               ## @ENCODING_NRZ
	.comm	_PARITY_CRC16_PR1_CCITT,4,2     ## @PARITY_CRC16_PR1_CCITT
	.comm	_IF_IFACE_T1,4,2                ## @IF_IFACE_T1
	.comm	_PC300_LC_B8ZS,4,2              ## @PC300_LC_B8ZS
	.comm	_PC300_FR_ESF,4,2               ## @PC300_FR_ESF
	.comm	_PC300_LBO_0_DB,4,2             ## @PC300_LBO_0_DB
	.comm	_PC300_RX_SENS_SH,4,2           ## @PC300_RX_SENS_SH
	.comm	_IF_IFACE_X21,4,2               ## @IF_IFACE_X21
	.comm	_IF_IFACE_V35,4,2               ## @IF_IFACE_V35
	.comm	_IF_PROTO_PPP,4,2               ## @IF_PROTO_PPP
	.comm	_N_DMA_RX_BUF,8,3               ## @N_DMA_RX_BUF
	.comm	_N_DMA_TX_BUF,4,2               ## @N_DMA_TX_BUF
	.comm	_cpc_queue_xmit,4,2             ## @cpc_queue_xmit
	.comm	_cpc_attach,4,2                 ## @cpc_attach
	.comm	_PC300_TX_QUEUE_LEN,4,2         ## @PC300_TX_QUEUE_LEN
	.comm	_PC300_DEF_MTU,4,2              ## @PC300_DEF_MTU
	.comm	_cpc_netdev_ops,4,2             ## @cpc_netdev_ops
	.comm	_PC300_TX_TIMEOUT,4,2           ## @PC300_TX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Cyclades-PC300/"

	.comm	_PC300_PMC,4,2                  ## @PC300_PMC
L_.str.1:                               ## @.str.1
	.asciz	"TE-M"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	" #%d, %dKB of RAM at 0x%08x, IRQ%d, channel %d.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Dev%d on card(0x%08x): unable to allocate i/f name.\n"

	.comm	_PC300_PCI_CLOCK,4,2            ## @PC300_PCI_CLOCK
	.no_dead_strip	_cpc_init_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpc_init_card
_cpc_init_card:                         ; @cpc_init_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	bl	_plx_init
	ldp	x8, x9, [x19, #88]
	add	x20, x9, x8
	mov	x0, x20
	bl	_cpc_readw
	orr	w1, w0, #0x40
	mov	x0, x20
	bl	_cpc_writew
	ldp	x9, x8, [x19, #80]
	add	x20, x9, x8
	mov	x0, x20
	bl	_cpc_readl
	and	w1, w0, #0xfffffffb
	mov	x0, x20
	bl	_cpc_writel
Lloh0:
	adrp	x8, _PC300_OSC_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PC300_OSC_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	mov	x0, x19
	bl	_detect_ram
	str	w0, [x19, #8]
Lloh3:
	adrp	x8, _PCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCR@GOTPAGEOFF]
	ldr	x9, [x19, #64]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh6:
	adrp	x8, _PCR_PR2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCR_PR2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_cpc_writeb
	ldr	x8, [x19, #64]
Lloh9:
	adrp	x9, _BTCR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTCR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #16
	bl	_cpc_writeb
	ldr	x8, [x19, #64]
Lloh12:
	adrp	x9, _WCRL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WCRL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cpc_writeb
	ldr	x8, [x19, #64]
Lloh15:
	adrp	x9, _DMER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DMER@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #128
	bl	_cpc_writeb
	ldr	w8, [x19, #12]
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #48]
Lloh18:
	adrp	x21, _CPLD_REG1@GOTPAGE
Lloh19:
	ldr	x21, [x21, _CPLD_REG1@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_cpc_readb
	mov	x20, x0
	ldr	x8, [x19, #48]
	ldr	x9, [x21]
	add	x0, x9, x8
	add	w1, w20, #90
	bl	_cpc_writeb
	ldr	x8, [x19, #48]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_cpc_readb
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #48]
Lloh20:
	adrp	x9, _CPLD_ID_REG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CPLD_ID_REG@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_cpc_readb
	str	w0, [x19, #16]
Lloh23:
	adrp	x8, _CPLD_V2_REG1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CPLD_V2_REG1@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19, #40]
Lloh26:
	adrp	x9, _CPLD_V2_REG2@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CPLD_V2_REG2@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	str	w9, [x19, #56]
	b	LBB0_4
LBB0_3:
	str	wzr, [x19, #16]
	ldr	x8, [x21]
	str	x8, [x19, #40]
Lloh29:
	adrp	x9, _CPLD_REG2@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CPLD_REG2@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	str	w9, [x19, #56]
	ldr	x9, [x19, #48]
	add	x0, x9, x8
	mov	x1, x20
	bl	_cpc_writeb
	ldr	x8, [x19, #40]
LBB0_4:
	ldr	x9, [x19, #48]
	add	x20, x8, x9
	mov	x0, x20
	bl	_cpc_readb
Lloh32:
	adrp	x8, _CPLD_REG1_GLOBAL_CLK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CPLD_REG1_GLOBAL_CLK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_cpc_writeb
LBB0_5:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.6:
	mov	x26, #0
Lloh35:
	adrp	x28, _ENCODING_NRZ@GOTPAGE
Lloh36:
	ldr	x28, [x28, _ENCODING_NRZ@GOTPAGEOFF]
Lloh37:
	adrp	x20, _PARITY_CRC16_PR1_CCITT@GOTPAGE
Lloh38:
	ldr	x20, [x20, _PARITY_CRC16_PR1_CCITT@GOTPAGEOFF]
Lloh39:
	adrp	x25, _IF_PROTO_PPP@GOTPAGE
Lloh40:
	ldr	x25, [x25, _IF_PROTO_PPP@GOTPAGEOFF]
Lloh41:
	adrp	x21, _N_DMA_RX_BUF@GOTPAGE
Lloh42:
	ldr	x21, [x21, _N_DMA_RX_BUF@GOTPAGEOFF]
Lloh43:
	adrp	x22, _N_DMA_TX_BUF@GOTPAGE
Lloh44:
	ldr	x22, [x22, _N_DMA_TX_BUF@GOTPAGEOFF]
	mov	w27, #144
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x8, [x19, #20]
	cmp	x26, x8
	b.ge	LBB0_24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #104]
	madd	x8, x26, x27, x9
	str	w26, [x8]
	stp	xzr, x19, [x8, #88]
Lloh45:
	adrp	x10, _CLOCK_EXT@GOTPAGE
Lloh46:
	ldr	x10, [x10, _CLOCK_EXT@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	str	w10, [x8, #80]
	ldr	w10, [x28]
	str	w10, [x8, #72]
	ldr	w10, [x20]
	str	w10, [x8, #68]
	ldr	w10, [x19, #12]
	cmp	w10, #128
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w10, #129
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh48:
	adrp	x10, _IF_IFACE_T1@GOTPAGE
Lloh49:
	ldr	x10, [x10, _IF_IFACE_T1@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	madd	x11, x26, x27, x9
	str	w10, [x11, #48]
Lloh51:
	adrp	x10, _PC300_LC_B8ZS@GOTPAGE
Lloh52:
	ldr	x10, [x10, _PC300_LC_B8ZS@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	str	w10, [x11, #64]
Lloh54:
	adrp	x10, _PC300_FR_ESF@GOTPAGE
Lloh55:
	ldr	x10, [x10, _PC300_FR_ESF@GOTPAGEOFF]
Lloh56:
	ldr	w10, [x10]
	str	w10, [x11, #60]
Lloh57:
	adrp	x10, _PC300_LBO_0_DB@GOTPAGE
Lloh58:
	ldr	x10, [x10, _PC300_LBO_0_DB@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	str	w10, [x11, #56]
Lloh60:
	adrp	x10, _PC300_RX_SENS_SH@GOTPAGE
Lloh61:
	ldr	x10, [x10, _PC300_RX_SENS_SH@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	str	w10, [x11, #52]
	mov	w10, #-1
	str	w10, [x11, #40]
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh63:
	adrp	x10, _IF_IFACE_X21@GOTPAGE
Lloh64:
	ldr	x10, [x10, _IF_IFACE_X21@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh65:
	adrp	x10, _IF_IFACE_V35@GOTPAGE
Lloh66:
	ldr	x10, [x10, _IF_IFACE_V35@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x10]
	madd	x11, x26, x27, x9
	str	w10, [x11, #48]
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x8, #104
	ldr	w10, [x25]
	madd	x9, x26, x27, x9
	str	w10, [x9, #44]
	stp	xzr, xzr, [x9, #24]
	str	xzr, [x9, #16]
	ldr	x10, [x21]
	sub	x10, x10, #1
	str	x10, [x9, #8]
	ldr	w10, [x22]
	str	w10, [x9, #4]
	stp	xzr, x8, [x9, #128]
	stp	xzr, xzr, [x9, #112]
	mov	x0, x24
	bl	_alloc_hdlcdev
	cbz	x0, LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	bl	_dev_to_hdlc
Lloh67:
	adrp	x8, _cpc_queue_xmit@GOTPAGE
Lloh68:
	ldr	x8, [x8, _cpc_queue_xmit@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x9, _cpc_attach@GOTPAGE
Lloh71:
	ldr	x9, [x9, _cpc_attach@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	str	x23, [x24]
	ldr	w8, [x19, #8]
	ldp	w9, w10, [x19, #24]
	add	w8, w9, w8
	sub	w8, w8, #1
	stp	w9, w8, [x23]
	str	w10, [x23, #32]
Lloh73:
	adrp	x8, _PC300_TX_QUEUE_LEN@GOTPAGE
Lloh74:
	ldr	x8, [x8, _PC300_TX_QUEUE_LEN@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x9, _PC300_DEF_MTU@GOTPAGE
Lloh77:
	ldr	x9, [x9, _PC300_DEF_MTU@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #24]
Lloh79:
	adrp	x8, _cpc_netdev_ops@GOTPAGE
Lloh80:
	ldr	x8, [x8, _cpc_netdev_ops@GOTPAGEOFF]
	str	x8, [x23, #16]
Lloh81:
	adrp	x8, _PC300_TX_TIMEOUT@GOTPAGE
Lloh82:
	ldr	x8, [x8, _PC300_TX_TIMEOUT@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	str	w8, [x23, #12]
	mov	x0, x23
	bl	_register_hdlc_device
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	ldr	w8, [x19, #24]
	stp	x26, x8, [sp]
Lloh84:
	adrp	x0, l_.str.6@PAGE
Lloh85:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printk
	mov	x0, x23
	bl	_free_netdev
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23, #8]
	str	x8, [sp]
Lloh86:
	adrp	x0, l_.str@PAGE
Lloh87:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #129
	b.ne	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #32]
Lloh88:
	adrp	x9, _PC300_PMC@GOTPAGE
Lloh89:
	ldr	x9, [x9, _PC300_PMC@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh91:
	adrp	x8, l_.str.2@PAGE
Lloh92:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh93:
	adrp	x9, l_.str.1@PAGE
Lloh94:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x0, x9, x8, eq
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh95:
	adrp	x0, l_.str.3@PAGE
Lloh96:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh97:
	adrp	x0, l_.str.4@PAGE
Lloh98:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_printk
	ldr	w8, [x19, #8]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #10
	add	x26, x26, #1
Lloh99:
	adrp	x9, _cpc_init_card.board_nbr@PAGE
Lloh100:
	ldr	w9, [x9, _cpc_init_card.board_nbr@PAGEOFF]
	ldp	w10, w11, [x19, #24]
	stp	x11, x26, [sp, #24]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh101:
	adrp	x0, l_.str.5@PAGE
Lloh102:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printk
	b	LBB0_8
LBB0_24:
	mov	x0, x19
	bl	_spin_lock_init
	adrp	x9, _cpc_init_card.board_nbr@PAGE
	ldr	w8, [x9, _cpc_init_card.board_nbr@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x9, _cpc_init_card.board_nbr@PAGEOFF]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdr	Lloh99, Lloh100
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @cpc_init_card.board_nbr
_cpc_init_card.board_nbr:
	.long	1                               ; 0x1

	.comm	_PC300_OSC_CLOCK,4,2            ; @PC300_OSC_CLOCK
	.comm	_PCR,8,3                        ; @PCR
	.comm	_PCR_PR2,4,2                    ; @PCR_PR2
	.comm	_BTCR,8,3                       ; @BTCR
	.comm	_WCRL,8,3                       ; @WCRL
	.comm	_DMER,8,3                       ; @DMER
	.comm	_CPLD_REG1,8,3                  ; @CPLD_REG1
	.comm	_CPLD_ID_REG,8,3                ; @CPLD_ID_REG
	.comm	_CPLD_V2_REG1,8,3               ; @CPLD_V2_REG1
	.comm	_CPLD_V2_REG2,4,2               ; @CPLD_V2_REG2
	.comm	_CPLD_REG2,4,2                  ; @CPLD_REG2
	.comm	_CPLD_REG1_GLOBAL_CLK,4,2       ; @CPLD_REG1_GLOBAL_CLK
	.comm	_CLOCK_EXT,4,2                  ; @CLOCK_EXT
	.comm	_ENCODING_NRZ,4,2               ; @ENCODING_NRZ
	.comm	_PARITY_CRC16_PR1_CCITT,4,2     ; @PARITY_CRC16_PR1_CCITT
	.comm	_IF_IFACE_T1,4,2                ; @IF_IFACE_T1
	.comm	_PC300_LC_B8ZS,4,2              ; @PC300_LC_B8ZS
	.comm	_PC300_FR_ESF,4,2               ; @PC300_FR_ESF
	.comm	_PC300_LBO_0_DB,4,2             ; @PC300_LBO_0_DB
	.comm	_PC300_RX_SENS_SH,4,2           ; @PC300_RX_SENS_SH
	.comm	_IF_IFACE_X21,4,2               ; @IF_IFACE_X21
	.comm	_IF_IFACE_V35,4,2               ; @IF_IFACE_V35
	.comm	_IF_PROTO_PPP,4,2               ; @IF_PROTO_PPP
	.comm	_N_DMA_RX_BUF,8,3               ; @N_DMA_RX_BUF
	.comm	_N_DMA_TX_BUF,4,2               ; @N_DMA_TX_BUF
	.comm	_cpc_queue_xmit,4,2             ; @cpc_queue_xmit
	.comm	_cpc_attach,4,2                 ; @cpc_attach
	.comm	_PC300_TX_QUEUE_LEN,4,2         ; @PC300_TX_QUEUE_LEN
	.comm	_PC300_DEF_MTU,4,2              ; @PC300_DEF_MTU
	.comm	_cpc_netdev_ops,4,2             ; @cpc_netdev_ops
	.comm	_PC300_TX_TIMEOUT,4,2           ; @PC300_TX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Cyclades-PC300/"

	.comm	_PC300_PMC,4,2                  ; @PC300_PMC
l_.str.1:                               ; @.str.1
	.asciz	"TE-M"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	" #%d, %dKB of RAM at 0x%08x, IRQ%d, channel %d.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Dev%d on card(0x%08x): unable to allocate i/f name.\n"

	.comm	_PC300_PCI_CLOCK,4,2            ; @PC300_PCI_CLOCK
	.no_dead_strip	_cpc_init_card
.subsections_via_symbols
