	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xirc2ps_config
_xirc2ps_config:                        ## @xirc2ps_config
	.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
	movq	48(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	$0, 32(%rax)
	leaq	16(%r12), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.3:
	movl	8(%r12), %esi
	leal	-128(%rsi), %eax
	cmpl	$6, %eax
	jae	LBB0_4
## %bb.5:
	cltq
	leaq	l_switch.table.xirc2ps_config(%rip), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, (%r15)
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_set_card_type
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_get_mac_from_cis
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movl	$137, %esi
	callq	_pcmcia_get_tuple
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:
	cmpq	$8, %rax
	jne	LBB0_12
## %bb.10:
	movq	(%rdi), %rax
	movq	_CISTPL_FUNCE_LAN_NODE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	8(%rbx), %rax
	movq	32(%rdi), %rcx
	movq	%rcx, 16(%rax)
	movq	40(%rdi), %rcx
	movq	%rcx, 24(%rax)
	movq	48(%rdi), %rcx
	movq	%rcx, 32(%rax)
	movq	56(%rdi), %rcx
	movq	%rcx, 40(%rax)
LBB0_12:
	callq	_kfree
	movq	_CISTPL_FUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pcmcia_get_mac_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rcx
	callq	_pcmcia_loop_tuple
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.7(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_notice
	jmp	LBB0_59
LBB0_14:
	cmpq	$0, 40(%r15)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.15:
	movq	_CONF_AUTO_SET_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r12)
	cmpq	$0, 16(%r15)
	je	LBB0_16
## %bb.61:
	movq	_xirc2ps_config_modem@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_loop_config
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_37
LBB0_6:
	leaq	L_.str.9(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_59:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_60:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$10, 12(%r12)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$16, (%rax)
	movq	_IO_DATA_PATH_WIDTH_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
	movl	$768, 8(%rax)                   ## imm = 0x300
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.21:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$784, 8(%rax)                   ## imm = 0x310
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.22:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$800, 8(%rax)                   ## imm = 0x320
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.23:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$816, 8(%rax)                   ## imm = 0x330
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.24:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$832, 8(%rax)                   ## imm = 0x340
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.25:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$848, 8(%rax)                   ## imm = 0x350
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.26:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$864, 8(%rax)                   ## imm = 0x360
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.27:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$880, 8(%rax)                   ## imm = 0x370
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.28:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$896, 8(%rax)                   ## imm = 0x380
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.29:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$912, 8(%rax)                   ## imm = 0x390
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.30:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$928, 8(%rax)                   ## imm = 0x3A0
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.31:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$944, 8(%rax)                   ## imm = 0x3B0
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.32:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$960, 8(%rax)                   ## imm = 0x3C0
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.33:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$976, 8(%rax)                   ## imm = 0x3D0
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.34:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$992, 8(%rax)                   ## imm = 0x3E0
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.35:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$1008, 8(%rax)                  ## imm = 0x3F0
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_37
## %bb.36:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	$0, 8(%rax)
	movq	%r12, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	jne	LBB0_58
	jmp	LBB0_37
LBB0_16:
	movl	$0, -44(%rbp)
	movq	_xirc2ps_config_check@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_pcmcia_loop_config
	testl	%eax, %eax
	je	LBB0_37
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_17
LBB0_19:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_37:
	movq	_xirc2ps_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pcmcia_request_irq
	testl	%eax, %eax
	jne	LBB0_58
## %bb.38:
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rcx
	movl	40(%r12), %eax
	orl	(%rcx), %eax
	movl	%eax, 40(%r12)
	movq	_do_sound@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_40
## %bb.39:
	movq	_CONF_ENABLE_SPKR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 40(%r12)
LBB0_40:
	movq	%r12, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	je	LBB0_41
LBB0_58:
	movq	%r12, %rdi
	callq	_xirc2ps_release
	jmp	LBB0_59
LBB0_41:
	cmpq	$0, 16(%r15)
	je	LBB0_47
## %bb.42:
	movq	_CISREG_IOBASE_0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	24(%r12), %rax
	movq	8(%rax), %rax
	movzbl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_pcmcia_write_config_byte
	testl	%eax, %eax
	jne	LBB0_58
## %bb.43:
	movq	_CISREG_IOBASE_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	24(%r12), %rax
	movq	8(%rax), %rax
	movzbl	9(%rax), %edx
	movq	%r12, %rdi
	callq	_pcmcia_write_config_byte
	testl	%eax, %eax
	jne	LBB0_58
## %bb.44:
	movq	_WIN_DATA_WIDTH_8@GOTPCREL(%rip), %rax
	movq	_WIN_MEMORY_TYPE_AM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WIN_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	24(%r12), %rax
	movq	16(%rax), %rsi
	movl	%ecx, 4(%rsi)
	movl	$0, (%rsi)
	movl	$0, 8(%rsi)
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_request_window
	testl	%eax, %eax
	jne	LBB0_58
## %bb.45:
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	movl	8(%rax), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ioremap
	addq	$8192, %rax                     ## imm = 0x2000
	movq	%rax, 32(%r15)
	movq	24(%r12), %rax
	movq	16(%rax), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_map_mem_page
	testl	%eax, %eax
	jne	LBB0_58
## %bb.46:
	movq	_CISREG_COR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	movl	$71, %edi
	callq	_writeb
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	8(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movzbl	%al, %edi
	movslq	(%r13), %rsi
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	callq	_writeb
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movzbl	%ah, %edi
	movslq	(%r14), %rsi
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	callq	_writeb
	movq	32(%r15), %rsi
	subq	$-128, %rsi
	movl	$1, %edi
	callq	_writeb
	movl	$136, %esi
	addq	32(%r15), %rsi
	movl	$12, %edi
	callq	_writeb
	movl	$144, %esi
	addq	32(%r15), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movl	$152, %esi
	addq	32(%r15), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movl	$160, %esi
	addq	32(%r15), %rsi
	xorl	%edi, %edi
	callq	_writeb
LBB0_47:
	movl	$0, 8(%r15)
	movq	_if_port@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_48
## %bb.49:
	leal	-1(%rax), %ecx
	cmpl	$2, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_52
## %bb.50:
	cmpq	$0, 24(%r15)
	je	LBB0_53
## %bb.51:
	cmpl	$4, %eax
	jne	LBB0_53
LBB0_52:
	movl	%eax, (%rbx)
	jmp	LBB0_54
LBB0_48:
	movl	$1, (%rbx)
	movl	$1, 8(%r15)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_54
LBB0_53:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_54:
	movq	32(%r12), %rax
	movq	%rax, 16(%rbx)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	8(%rax), %eax
	movl	%eax, 4(%rbx)
	cmpq	$0, 16(%r15)
	je	LBB0_56
## %bb.55:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_do_reset
LBB0_56:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_62
## %bb.57:
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
	jmp	LBB0_58
LBB0_62:
	movq	(%r15), %rdx
	movl	4(%rbx), %ecx
	movl	16(%rbx), %r8d
	movq	8(%rbx), %r9
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
	xorl	%eax, %eax
	jmp	LBB0_60
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config\n"

L_.str.1:                               ## @.str.1
	.asciz	"manfid not found in CIS\n"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"Intel"

L_.str.6:                               ## @.str.6
	.asciz	"Toshiba"

L_.str.7:                               ## @.str.7
	.asciz	"Unknown Card Manufacturer ID: 0x%04x\n"

L_.str.8:                               ## @.str.8
	.asciz	"found %s card\n"

L_.str.9:                               ## @.str.9
	.asciz	"this card is not supported\n"

	.comm	_CISTPL_FUNCE_LAN_NODE_ID,8,3   ## @CISTPL_FUNCE_LAN_NODE_ID
	.comm	_CISTPL_FUNCE,4,2               ## @CISTPL_FUNCE
	.comm	_pcmcia_get_mac_ce,4,2          ## @pcmcia_get_mac_ce
L_.str.10:                              ## @.str.10
	.asciz	"node-id not found in CIS\n"

	.comm	_CONF_AUTO_SET_IO,4,2           ## @CONF_AUTO_SET_IO
	.comm	_xirc2ps_config_modem,4,2       ## @xirc2ps_config_modem
	.comm	_xirc2ps_config_check,4,2       ## @xirc2ps_config_check
L_.str.11:                              ## @.str.11
	.asciz	"no ports available\n"

	.comm	_IO_DATA_PATH_WIDTH_16,4,2      ## @IO_DATA_PATH_WIDTH_16
	.comm	_xirc2ps_interrupt,4,2          ## @xirc2ps_interrupt
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_do_sound,8,3                   ## @do_sound
	.comm	_CONF_ENABLE_SPKR,4,2           ## @CONF_ENABLE_SPKR
	.comm	_CISREG_IOBASE_0,4,2            ## @CISREG_IOBASE_0
	.comm	_CISREG_IOBASE_1,4,2            ## @CISREG_IOBASE_1
	.comm	_WIN_DATA_WIDTH_8,4,2           ## @WIN_DATA_WIDTH_8
	.comm	_WIN_MEMORY_TYPE_AM,4,2         ## @WIN_MEMORY_TYPE_AM
	.comm	_WIN_ENABLE,4,2                 ## @WIN_ENABLE
	.comm	_CISREG_COR,4,2                 ## @CISREG_COR
	.comm	_if_port,4,2                    ## @if_port
L_.str.12:                              ## @.str.12
	.asciz	"invalid if_port requested\n"

L_.str.13:                              ## @.str.13
	.asciz	"register_netdev() failed\n"

L_.str.14:                              ## @.str.14
	.asciz	"%s: port %#3lx, irq %d, hwaddr %pM\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i,4,2                          ## @i
	.no_dead_strip	_xirc2ps_config
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.xirc2ps_config
l_switch.table.xirc2ps_config:
	.quad	L_.str.2
	.quad	L_.str.6
	.quad	L_.str.5
	.quad	L_.str.4
	.quad	L_.str.4
	.quad	L_.str.3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xirc2ps_config
_xirc2ps_config:                        ; @xirc2ps_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldr	x20, [x0, #48]
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	str	xzr, [x0, #32]
	add	x22, x19, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	w8, [x19, #8]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hs	LBB0_11
; %bb.2:
Lloh2:
	adrp	x8, l_switch.table.xirc2ps_config@PAGE
Lloh3:
	add	x8, x8, l_switch.table.xirc2ps_config@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [x21]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.8@PAGE
Lloh5:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	mov	x0, x19
	bl	_set_card_type
	cbz	w0, LBB0_15
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_pcmcia_get_mac_from_cis
	cbz	w0, LBB0_12
; %bb.4:
	add	x2, sp, #24
	mov	x0, x19
	mov	w1, #137
	bl	_pcmcia_get_tuple
	mov	x8, x0
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_8
; %bb.5:
	cmp	x8, #8
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _CISTPL_FUNCE_LAN_NODE_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CISTPL_FUNCE_LAN_NODE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	x9, [x0, #32]
	str	x9, [x8, #16]
	ldr	x9, [x0, #40]
	str	x9, [x8, #24]
	ldr	x9, [x0, #48]
	str	x9, [x8, #32]
	ldr	x9, [x0, #56]
	str	x9, [x8, #40]
LBB0_8:
	bl	_kfree
Lloh9:
	adrp	x8, _CISTPL_FUNCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CISTPL_FUNCE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _pcmcia_get_mac_ce@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pcmcia_get_mac_ce@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_pcmcia_loop_tuple
	cbz	w0, LBB0_12
; %bb.9:
Lloh15:
	adrp	x0, l_.str.10@PAGE
Lloh16:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_notice
	b	LBB0_42
LBB0_10:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
	b	LBB0_42
LBB0_11:
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_notice
	b	LBB0_42
LBB0_12:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_16
; %bb.13:
Lloh21:
	adrp	x8, _CONF_AUTO_SET_IO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONF_AUTO_SET_IO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_33
; %bb.14:
Lloh24:
	adrp	x8, _xirc2ps_config_modem@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xirc2ps_config_modem@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_pcmcia_loop_config
	cbnz	w0, LBB0_36
	b	LBB0_37
LBB0_15:
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_notice
	b	LBB0_42
LBB0_16:
	mov	w8, #10
	str	w8, [x19, #12]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #16
	str	w9, [x8]
Lloh29:
	adrp	x9, _IO_DATA_PATH_WIDTH_16@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IO_DATA_PATH_WIDTH_16@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
	mov	w10, #768
	stp	w9, w10, [x8, #4]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.17:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #784
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.18:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #800
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.19:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #816
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.20:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #832
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.21:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #848
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.22:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #864
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.23:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #880
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.24:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #896
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.25:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #912
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.26:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #928
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.27:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #944
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.28:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #960
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.29:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #976
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.30:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #992
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.31:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	w9, #1008
	str	w9, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_37
; %bb.32:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	wzr, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbnz	w0, LBB0_41
	b	LBB0_37
LBB0_33:
	str	wzr, [sp, #20]
Lloh32:
	adrp	x23, _xirc2ps_config_check@GOTPAGE
Lloh33:
	ldr	x23, [x23, _xirc2ps_config_check@GOTPAGEOFF]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #20
	mov	x0, x19
	bl	_pcmcia_loop_config
	cbz	w0, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w8, [sp, #20]
	add	w9, w8, #1
	str	w9, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_34
LBB0_36:
Lloh34:
	adrp	x0, l_.str.11@PAGE
Lloh35:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_notice
LBB0_37:
Lloh36:
	adrp	x8, _xirc2ps_interrupt@GOTPAGE
Lloh37:
	ldr	x8, [x8, _xirc2ps_interrupt@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pcmcia_request_irq
	cbnz	w0, LBB0_41
; %bb.38:
Lloh39:
	adrp	x8, _CONF_ENABLE_IRQ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
Lloh42:
	adrp	x9, _do_sound@GOTPAGE
Lloh43:
	ldr	x9, [x9, _do_sound@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cbz	x9, LBB0_40
; %bb.39:
Lloh45:
	adrp	x9, _CONF_ENABLE_SPKR@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CONF_ENABLE_SPKR@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #40]
LBB0_40:
	mov	x0, x19
	bl	_pcmcia_enable_device
	cbz	w0, LBB0_44
LBB0_41:
	mov	x0, x19
	bl	_xirc2ps_release
LBB0_42:
Lloh48:
	adrp	x8, _ENODEV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_43:
	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
	add	sp, sp, #112
	ret
LBB0_44:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_50
; %bb.45:
Lloh51:
	adrp	x23, _CISREG_IOBASE_0@GOTPAGE
Lloh52:
	ldr	x23, [x23, _CISREG_IOBASE_0@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldrb	w2, [x8, #8]
	mov	x0, x19
	bl	_pcmcia_write_config_byte
	cbnz	w0, LBB0_41
; %bb.46:
Lloh53:
	adrp	x24, _CISREG_IOBASE_1@GOTPAGE
Lloh54:
	ldr	x24, [x24, _CISREG_IOBASE_1@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldrb	w2, [x8, #9]
	mov	x0, x19
	bl	_pcmcia_write_config_byte
	cbnz	w0, LBB0_41
; %bb.47:
Lloh55:
	adrp	x8, _WIN_DATA_WIDTH_8@GOTPAGE
Lloh56:
	ldr	x8, [x8, _WIN_DATA_WIDTH_8@GOTPAGEOFF]
Lloh57:
	adrp	x9, _WIN_MEMORY_TYPE_AM@GOTPAGE
Lloh58:
	ldr	x9, [x9, _WIN_MEMORY_TYPE_AM@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh61:
	adrp	x9, _WIN_ENABLE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _WIN_ENABLE@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x19, #24]
	ldr	x1, [x9, #16]
	stp	wzr, w8, [x1]
	str	wzr, [x1, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_pcmcia_request_window
	cbnz	w0, LBB0_41
; %bb.48:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	ldr	w0, [x8, #8]
	mov	w1, #4096
	bl	_ioremap
	add	x8, x0, #2, lsl #12             ; =8192
	str	x8, [x21, #32]
	ldr	x8, [x19, #24]
	ldr	x1, [x8, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_pcmcia_map_mem_page
	cbnz	w0, LBB0_41
; %bb.49:
	ldr	x8, [x21, #32]
Lloh64:
	adrp	x9, _CISREG_COR@GOTPAGE
Lloh65:
	ldr	x9, [x9, _CISREG_COR@GOTPAGEOFF]
Lloh66:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	w0, #71
	bl	_writeb
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w25, [x8, #8]
	and	w0, w25, #0xff
	ldr	x8, [x21, #32]
	ldrsw	x9, [x23]
	add	x1, x8, x9, lsl #2
	bl	_writeb
	ubfx	w0, w25, #8, #8
	ldr	x8, [x21, #32]
	ldrsw	x9, [x24]
	add	x1, x8, x9, lsl #2
	bl	_writeb
	ldr	x8, [x21, #32]
	add	x1, x8, #128
	mov	w0, #1
	bl	_writeb
	ldr	x8, [x21, #32]
	add	x1, x8, #136
	mov	w0, #12
	bl	_writeb
	ldr	x8, [x21, #32]
	add	x1, x8, #144
	mov	w0, #0
	bl	_writeb
	ldr	x8, [x21, #32]
	add	x1, x8, #152
	mov	w0, #0
	bl	_writeb
	ldr	x8, [x21, #32]
	add	x1, x8, #160
	mov	w0, #0
	bl	_writeb
LBB0_50:
	str	wzr, [x21, #8]
Lloh67:
	adrp	x8, _if_port@GOTPAGE
Lloh68:
	ldr	x8, [x8, _if_port@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	cbz	w8, LBB0_55
; %bb.51:
	sub	w9, w8, #1
	cmp	w9, #2
	b.lo	LBB0_54
; %bb.52:
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_56
; %bb.53:
	cmp	w8, #4
	b.ne	LBB0_56
LBB0_54:
	str	w8, [x20]
	b	LBB0_57
LBB0_55:
	mov	w8, #1
	str	w8, [x20]
	str	w8, [x21, #8]
	b	LBB0_57
LBB0_56:
Lloh70:
	adrp	x0, l_.str.12@PAGE
Lloh71:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_pr_notice
LBB0_57:
	ldp	x9, x8, [x19, #24]
	str	x8, [x20, #16]
	ldr	x8, [x9]
	ldr	w8, [x8, #8]
	str	w8, [x20, #4]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_59
; %bb.58:
	mov	x0, x20
	mov	w1, #1
	bl	_do_reset
LBB0_59:
	mov	x0, x20
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_register_netdev
	cbz	w0, LBB0_61
; %bb.60:
Lloh72:
	adrp	x0, l_.str.13@PAGE
Lloh73:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_pr_notice
	b	LBB0_41
LBB0_61:
	ldr	x2, [x21]
	ldr	w3, [x20, #4]
	ldr	w4, [x20, #16]
	ldr	x5, [x20, #8]
Lloh74:
	adrp	x1, l_.str.14@PAGE
Lloh75:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_43
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh59
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config\n"

l_.str.1:                               ; @.str.1
	.asciz	"manfid not found in CIS\n"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"Intel"

l_.str.6:                               ; @.str.6
	.asciz	"Toshiba"

l_.str.7:                               ; @.str.7
	.asciz	"Unknown Card Manufacturer ID: 0x%04x\n"

l_.str.8:                               ; @.str.8
	.asciz	"found %s card\n"

l_.str.9:                               ; @.str.9
	.asciz	"this card is not supported\n"

	.comm	_CISTPL_FUNCE_LAN_NODE_ID,8,3   ; @CISTPL_FUNCE_LAN_NODE_ID
	.comm	_CISTPL_FUNCE,4,2               ; @CISTPL_FUNCE
	.comm	_pcmcia_get_mac_ce,4,2          ; @pcmcia_get_mac_ce
l_.str.10:                              ; @.str.10
	.asciz	"node-id not found in CIS\n"

	.comm	_CONF_AUTO_SET_IO,4,2           ; @CONF_AUTO_SET_IO
	.comm	_xirc2ps_config_modem,4,2       ; @xirc2ps_config_modem
	.comm	_xirc2ps_config_check,4,2       ; @xirc2ps_config_check
l_.str.11:                              ; @.str.11
	.asciz	"no ports available\n"

	.comm	_IO_DATA_PATH_WIDTH_16,4,2      ; @IO_DATA_PATH_WIDTH_16
	.comm	_xirc2ps_interrupt,4,2          ; @xirc2ps_interrupt
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_do_sound,8,3                   ; @do_sound
	.comm	_CONF_ENABLE_SPKR,4,2           ; @CONF_ENABLE_SPKR
	.comm	_CISREG_IOBASE_0,4,2            ; @CISREG_IOBASE_0
	.comm	_CISREG_IOBASE_1,4,2            ; @CISREG_IOBASE_1
	.comm	_WIN_DATA_WIDTH_8,4,2           ; @WIN_DATA_WIDTH_8
	.comm	_WIN_MEMORY_TYPE_AM,4,2         ; @WIN_MEMORY_TYPE_AM
	.comm	_WIN_ENABLE,4,2                 ; @WIN_ENABLE
	.comm	_CISREG_COR,4,2                 ; @CISREG_COR
	.comm	_if_port,4,2                    ; @if_port
l_.str.12:                              ; @.str.12
	.asciz	"invalid if_port requested\n"

l_.str.13:                              ; @.str.13
	.asciz	"register_netdev() failed\n"

l_.str.14:                              ; @.str.14
	.asciz	"%s: port %#3lx, irq %d, hwaddr %pM\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i,4,2                          ; @i
	.no_dead_strip	_xirc2ps_config
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.xirc2ps_config
l_switch.table.xirc2ps_config:
	.quad	l_.str.2
	.quad	l_.str.6
	.quad	l_.str.5
	.quad	l_.str.4
	.quad	l_.str.4
	.quad	l_.str.3

.subsections_via_symbols
