	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ems_pci_add_card
_ems_pci_add_card:                      ## @ems_pci_add_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_pci_enable_device
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	movq	%r12, 40(%r15)
	movq	$0, 8(%r15)
	movq	(%r12), %rax
	movq	_PCI_VENDOR_ID_PLX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_EMS_PCI_V2_BASE_BAR@GOTPCREL(%rip), %rax
	movq	_EMS_PCI_V2_CONF_SIZE@GOTPCREL(%rip), %rcx
	movq	_EMS_PCI_V2_MAX_CHAN@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	jmp	LBB0_7
LBB0_1:
	addq	$8, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_3:
	movq	%r12, %rdi
	callq	_pci_disable_device
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_6:
	movq	_EMS_PCI_V1_BASE_BAR@GOTPCREL(%rip), %rax
	movq	_EMS_PCI_V1_CONF_SIZE@GOTPCREL(%rip), %rcx
	movq	_EMS_PCI_V1_MAX_CHAN@GOTPCREL(%rip), %rsi
	movl	$1, %edx
LBB0_7:
	movl	%edx, (%r15)
	movl	(%rax), %r14d
	movl	(%rcx), %edx
	movl	(%rsi), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pci_iomap
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_EMS_PCI_BASE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pci_iomap
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	cmpl	$1, (%r15)
	jne	LBB0_20
## %bb.12:
	movq	_PITA2_MISC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PITA2_MISC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	16(%r15), %rsi
	callq	_writel
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ems_pci_v1_readb
	cmpl	$85, %eax
	jne	LBB0_17
## %bb.13:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ems_pci_v1_readb
	cmpl	$170, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_ems_pci_v1_readb
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.15:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_ems_pci_v1_readb
	cmpl	$203, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_ems_pci_v1_readb
	cmpl	$17, %eax
	jne	LBB0_17
LBB0_20:
	movq	%r15, %rdi
	callq	_ems_pci_card_reset
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_21
## %bb.22:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %r13
	xorl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r12, %rdi
	callq	_free_sja1000dev
	incq	%r15
	movq	%rbx, %r13
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=1
	xorl	%ebx, %ebx
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_31
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_alloc_sja1000dev
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, %r12
	movq	%r13, %rbx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	32(%r13), %rax
	movq	%r12, (%rax,%r15,8)
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r13, 40(%rax)
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_EMS_PCI_CAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	24(%r13), %rax
	movq	_EMS_PCI_CAN_CTRL_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r15d, %rdx
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %rax
	movq	%rax, (%r14)
	cmpl	$1, (%r13)
	movq	_ems_pci_v2_post_irq@GOTPCREL(%rip), %rax
	cmoveq	_ems_pci_v1_post_irq@GOTPCREL(%rip), %rax
	movq	_ems_pci_v2_write_reg@GOTPCREL(%rip), %rcx
	cmoveq	_ems_pci_v1_write_reg@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movq	_ems_pci_v2_read_reg@GOTPCREL(%rip), %rdx
	cmoveq	_ems_pci_v1_read_reg@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 28(%r14)
	movl	%ecx, 24(%r14)
	movl	%eax, 20(%r14)
	movq	%r14, %rdi
	callq	_ems_pci_check_chan
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_EMS_PCI_CAN_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_EMS_PCI_OCR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_EMS_PCI_CDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%r12)
	movq	_PITA2_ICR_INT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PITA2_ICR_INT0_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	cmpl	$1, (%r13)
	movq	_PLX_ICSR_ENA_CLR@GOTPCREL(%rip), %rax
	cmovnel	(%rax), %edi
	movq	_PLX_ICSR@GOTPCREL(%rip), %rax
	cmoveq	_PITA2_ICR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	%r12, %rdi
	callq	_register_sja1000dev
	testl	%eax, %eax
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	8(%r13)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movq	(%r14), %rcx
	movl	4(%r12), %r8d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_info
	jmp	LBB0_30
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_17:
	leaq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %ebx
LBB0_19:
	leaq	8(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_ems_pci_del_card
LBB0_31:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_27:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_free_sja1000dev
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling PCI device failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_VENDOR_ID_PLX,8,3          ## @PCI_VENDOR_ID_PLX
	.comm	_EMS_PCI_V2_MAX_CHAN,4,2        ## @EMS_PCI_V2_MAX_CHAN
	.comm	_EMS_PCI_V2_BASE_BAR,4,2        ## @EMS_PCI_V2_BASE_BAR
	.comm	_EMS_PCI_V2_CONF_SIZE,4,2       ## @EMS_PCI_V2_CONF_SIZE
	.comm	_EMS_PCI_V1_MAX_CHAN,4,2        ## @EMS_PCI_V1_MAX_CHAN
	.comm	_EMS_PCI_V1_BASE_BAR,4,2        ## @EMS_PCI_V1_BASE_BAR
	.comm	_EMS_PCI_V1_CONF_SIZE,4,2       ## @EMS_PCI_V1_CONF_SIZE
	.comm	_EMS_PCI_BASE_SIZE,4,2          ## @EMS_PCI_BASE_SIZE
	.comm	_PITA2_MISC_CONFIG,4,2          ## @PITA2_MISC_CONFIG
	.comm	_PITA2_MISC,4,2                 ## @PITA2_MISC
L_.str.1:                               ## @.str.1
	.asciz	"Not EMS Dr. Thomas Wuensche interface\n"

	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_EMS_PCI_CAN_BASE_OFFSET,4,2    ## @EMS_PCI_CAN_BASE_OFFSET
	.comm	_EMS_PCI_CAN_CTRL_SIZE,4,2      ## @EMS_PCI_CAN_CTRL_SIZE
	.comm	_ems_pci_v1_read_reg,4,2        ## @ems_pci_v1_read_reg
	.comm	_ems_pci_v1_write_reg,4,2       ## @ems_pci_v1_write_reg
	.comm	_ems_pci_v1_post_irq,4,2        ## @ems_pci_v1_post_irq
	.comm	_ems_pci_v2_read_reg,4,2        ## @ems_pci_v2_read_reg
	.comm	_ems_pci_v2_write_reg,4,2       ## @ems_pci_v2_write_reg
	.comm	_ems_pci_v2_post_irq,4,2        ## @ems_pci_v2_post_irq
	.comm	_EMS_PCI_CAN_CLOCK,4,2          ## @EMS_PCI_CAN_CLOCK
	.comm	_EMS_PCI_OCR,4,2                ## @EMS_PCI_OCR
	.comm	_EMS_PCI_CDR,4,2                ## @EMS_PCI_CDR
	.comm	_PITA2_ICR_INT0_EN,4,2          ## @PITA2_ICR_INT0_EN
	.comm	_PITA2_ICR_INT0,4,2             ## @PITA2_ICR_INT0
	.comm	_PITA2_ICR,4,2                  ## @PITA2_ICR
	.comm	_PLX_ICSR_ENA_CLR,4,2           ## @PLX_ICSR_ENA_CLR
	.comm	_PLX_ICSR,4,2                   ## @PLX_ICSR
L_.str.2:                               ## @.str.2
	.asciz	"Registering device failed (err=%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Channel #%d at 0x%p, irq %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error: %d. Cleaning Up.\n"

	.no_dead_strip	_ems_pci_add_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ems_pci_add_card
_ems_pci_add_card:                      ; @ems_pci_add_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	_pci_enable_device
	tbnz	x0, #63, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	str	x19, [x20, #40]
	str	xzr, [x20, #8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PCI_VENDOR_ID_PLX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_VENDOR_ID_PLX@GOTPAGEOFF]
Lloh5:
	adrp	x10, _EMS_PCI_V2_BASE_BAR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EMS_PCI_V2_BASE_BAR@GOTPAGEOFF]
Lloh7:
	adrp	x11, _EMS_PCI_V2_CONF_SIZE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _EMS_PCI_V2_CONF_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x12, _EMS_PCI_V2_MAX_CHAN@GOTPAGE
Lloh10:
	ldr	x12, [x12, _EMS_PCI_V2_MAX_CHAN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w13, #2
Lloh12:
	adrp	x14, _EMS_PCI_V1_BASE_BAR@GOTPAGE
Lloh13:
	ldr	x14, [x14, _EMS_PCI_V1_BASE_BAR@GOTPAGEOFF]
Lloh14:
	adrp	x15, _EMS_PCI_V1_CONF_SIZE@GOTPAGE
Lloh15:
	ldr	x15, [x15, _EMS_PCI_V1_CONF_SIZE@GOTPAGEOFF]
Lloh16:
	adrp	x16, _EMS_PCI_V1_MAX_CHAN@GOTPAGE
Lloh17:
	ldr	x16, [x16, _EMS_PCI_V1_MAX_CHAN@GOTPAGEOFF]
	mov	w17, #1
	cmp	x8, x9
	csel	x8, x12, x16, eq
	csel	w9, w13, w17, eq
	csel	x11, x11, x15, eq
	csel	x10, x10, x14, eq
	str	w9, [x20]
	ldr	w21, [x10]
	ldr	w2, [x11]
	ldr	w27, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_iomap
	str	x0, [x20, #16]
	cbz	x0, LBB0_21
; %bb.3:
Lloh18:
	adrp	x8, _EMS_PCI_BASE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EMS_PCI_BASE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_pci_iomap
	str	x0, [x20, #24]
	cbz	x0, LBB0_21
; %bb.4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.5:
Lloh21:
	adrp	x8, _PITA2_MISC_CONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PITA2_MISC_CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
Lloh24:
	adrp	x9, _PITA2_MISC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PITA2_MISC@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_writel
	mov	x0, x20
	mov	w1, #0
	bl	_ems_pci_v1_readb
	cmp	w0, #85
	b.ne	LBB0_22
; %bb.6:
	mov	x0, x20
	mov	w1, #1
	bl	_ems_pci_v1_readb
	cmp	w0, #170
	b.ne	LBB0_22
; %bb.7:
	mov	x0, x20
	mov	w1, #2
	bl	_ems_pci_v1_readb
	cmp	w0, #1
	b.ne	LBB0_22
; %bb.8:
	mov	x0, x20
	mov	w1, #3
	bl	_ems_pci_v1_readb
	cmp	w0, #203
	b.ne	LBB0_22
; %bb.9:
	mov	x0, x20
	mov	w1, #4
	bl	_ems_pci_v1_readb
	cmp	w0, #17
	b.ne	LBB0_22
LBB0_10:
	mov	x0, x20
	bl	_ems_pci_card_reset
	cmp	w27, #1
	b.lt	LBB0_26
; %bb.11:
	mov	x22, #0
	add	x21, x19, #8
Lloh27:
	adrp	x23, _ems_pci_v1_read_reg@GOTPAGE
Lloh28:
	ldr	x23, [x23, _ems_pci_v1_read_reg@GOTPAGEOFF]
Lloh29:
	adrp	x28, _ems_pci_v2_read_reg@GOTPAGE
Lloh30:
	ldr	x28, [x28, _ems_pci_v2_read_reg@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	add	x0, x19, #8
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_pci_disable_device
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_25
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x24
	bl	_free_sja1000dev
	add	x22, x22, #1
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w24, #0
	cmp	x22, x27
	b.eq	LBB0_25
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_alloc_sja1000dev
	cbz	x0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x24, x0
	ldr	x8, [x20, #32]
	str	x0, [x8, x22, lsl #3]
	bl	_netdev_priv
	mov	x25, x0
	str	x20, [x0, #40]
Lloh37:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w8, [x19, #12]
	str	w8, [x24, #4]
	ldr	x8, [x20, #24]
Lloh40:
	adrp	x9, _EMS_PCI_CAN_BASE_OFFSET@GOTPAGE
Lloh41:
	ldr	x9, [x9, _EMS_PCI_CAN_BASE_OFFSET@GOTPAGEOFF]
Lloh42:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
Lloh43:
	adrp	x9, _EMS_PCI_CAN_CTRL_SIZE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _EMS_PCI_CAN_CTRL_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	mul	w9, w9, w22
	add	x8, x8, w9, sxtw #2
	str	x8, [x0]
	ldr	w8, [x20]
	cmp	w8, #1
Lloh46:
	adrp	x8, _ems_pci_v1_post_irq@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ems_pci_v1_post_irq@GOTPAGEOFF]
Lloh48:
	adrp	x9, _ems_pci_v2_post_irq@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ems_pci_v2_post_irq@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _ems_pci_v1_write_reg@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ems_pci_v1_write_reg@GOTPAGEOFF]
Lloh52:
	adrp	x10, _ems_pci_v2_write_reg@GOTPAGE
Lloh53:
	ldr	x10, [x10, _ems_pci_v2_write_reg@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	csel	x10, x23, x28, eq
	ldr	w10, [x10]
	stp	w9, w10, [x0, #24]
	str	w8, [x0, #20]
	bl	_ems_pci_check_chan
	cbz	x0, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh54:
	adrp	x8, _EMS_PCI_CAN_CLOCK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EMS_PCI_CAN_CLOCK@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [x25, #16]
Lloh57:
	adrp	x8, _EMS_PCI_OCR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EMS_PCI_OCR@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _EMS_PCI_CDR@GOTPAGE
Lloh61:
	ldr	x9, [x9, _EMS_PCI_CDR@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	stp	w9, w8, [x25, #8]
	mov	x0, x24
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	str	w22, [x24]
	ldr	w8, [x20]
Lloh63:
	adrp	x9, _PLX_ICSR_ENA_CLR@GOTPAGE
Lloh64:
	ldr	x9, [x9, _PLX_ICSR_ENA_CLR@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
Lloh66:
	adrp	x10, _PITA2_ICR_INT0_EN@GOTPAGE
Lloh67:
	ldr	x10, [x10, _PITA2_ICR_INT0_EN@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
Lloh69:
	adrp	x11, _PITA2_ICR_INT0@GOTPAGE
Lloh70:
	ldr	x11, [x11, _PITA2_ICR_INT0@GOTPAGEOFF]
Lloh71:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	w8, #1
	csel	w0, w10, w9, eq
	ldr	x8, [x20, #16]
Lloh72:
	adrp	x9, _PITA2_ICR@GOTPAGE
Lloh73:
	ldr	x9, [x9, _PITA2_ICR@GOTPAGEOFF]
Lloh74:
	adrp	x10, _PLX_ICSR@GOTPAGE
Lloh75:
	ldr	x10, [x10, _PLX_ICSR@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_writel
	mov	x0, x24
	bl	_register_sja1000dev
	cbnz	w0, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	add	x22, x22, #1
	ldr	x3, [x25]
	ldr	w4, [x24, #4]
	mov	x0, x21
Lloh76:
	adrp	x1, l_.str.3@PAGE
Lloh77:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_dev_info
	b	LBB0_16
LBB0_21:
Lloh78:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh79:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
	add	x0, x19, #8
Lloh80:
	adrp	x1, l_.str.1@PAGE
Lloh81:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh82:
	adrp	x8, _ENODEV@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_24:
	add	x0, x19, #8
	str	x24, [sp]
Lloh84:
	adrp	x1, l_.str.4@PAGE
Lloh85:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_ems_pci_del_card
LBB0_25:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	mov	w24, #0
	b	LBB0_25
LBB0_27:
	mov	x26, x0
	str	x26, [sp]
Lloh86:
	adrp	x1, l_.str.2@PAGE
Lloh87:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x24
	bl	_free_sja1000dev
	mov	x24, x26
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling PCI device failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_VENDOR_ID_PLX,8,3          ; @PCI_VENDOR_ID_PLX
	.comm	_EMS_PCI_V2_MAX_CHAN,4,2        ; @EMS_PCI_V2_MAX_CHAN
	.comm	_EMS_PCI_V2_BASE_BAR,4,2        ; @EMS_PCI_V2_BASE_BAR
	.comm	_EMS_PCI_V2_CONF_SIZE,4,2       ; @EMS_PCI_V2_CONF_SIZE
	.comm	_EMS_PCI_V1_MAX_CHAN,4,2        ; @EMS_PCI_V1_MAX_CHAN
	.comm	_EMS_PCI_V1_BASE_BAR,4,2        ; @EMS_PCI_V1_BASE_BAR
	.comm	_EMS_PCI_V1_CONF_SIZE,4,2       ; @EMS_PCI_V1_CONF_SIZE
	.comm	_EMS_PCI_BASE_SIZE,4,2          ; @EMS_PCI_BASE_SIZE
	.comm	_PITA2_MISC_CONFIG,4,2          ; @PITA2_MISC_CONFIG
	.comm	_PITA2_MISC,4,2                 ; @PITA2_MISC
l_.str.1:                               ; @.str.1
	.asciz	"Not EMS Dr. Thomas Wuensche interface\n"

	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_EMS_PCI_CAN_BASE_OFFSET,4,2    ; @EMS_PCI_CAN_BASE_OFFSET
	.comm	_EMS_PCI_CAN_CTRL_SIZE,4,2      ; @EMS_PCI_CAN_CTRL_SIZE
	.comm	_ems_pci_v1_read_reg,4,2        ; @ems_pci_v1_read_reg
	.comm	_ems_pci_v1_write_reg,4,2       ; @ems_pci_v1_write_reg
	.comm	_ems_pci_v1_post_irq,4,2        ; @ems_pci_v1_post_irq
	.comm	_ems_pci_v2_read_reg,4,2        ; @ems_pci_v2_read_reg
	.comm	_ems_pci_v2_write_reg,4,2       ; @ems_pci_v2_write_reg
	.comm	_ems_pci_v2_post_irq,4,2        ; @ems_pci_v2_post_irq
	.comm	_EMS_PCI_CAN_CLOCK,4,2          ; @EMS_PCI_CAN_CLOCK
	.comm	_EMS_PCI_OCR,4,2                ; @EMS_PCI_OCR
	.comm	_EMS_PCI_CDR,4,2                ; @EMS_PCI_CDR
	.comm	_PITA2_ICR_INT0_EN,4,2          ; @PITA2_ICR_INT0_EN
	.comm	_PITA2_ICR_INT0,4,2             ; @PITA2_ICR_INT0
	.comm	_PITA2_ICR,4,2                  ; @PITA2_ICR
	.comm	_PLX_ICSR_ENA_CLR,4,2           ; @PLX_ICSR_ENA_CLR
	.comm	_PLX_ICSR,4,2                   ; @PLX_ICSR
l_.str.2:                               ; @.str.2
	.asciz	"Registering device failed (err=%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Channel #%d at 0x%p, irq %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error: %d. Cleaning Up.\n"

	.no_dead_strip	_ems_pci_add_card
.subsections_via_symbols
