	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc91c92_config
_smc91c92_config:                       ## @smc91c92_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	$40, %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	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	16(%rbx), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movl	(%rbx), %ecx
	movl	%ecx, (%r15)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r15)
	cmpl	$130, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_PRODID_OSITECH_SEVEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_osi_config
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_10
LBB0_3:
	cmpl	$132, %ecx
	je	LBB0_7
## %bb.4:
	cmpl	$133, %ecx
	jne	LBB0_8
## %bb.5:
	movq	_PRODID_MEGAHERTZ_VARIOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_PRODID_MEGAHERTZ_EM3288@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_smc_config
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	callq	_mhz_mfc_config
	testl	%eax, %eax
	jne	LBB0_26
LBB0_10:
	movq	_smc_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pcmcia_request_irq
	testl	%eax, %eax
	jne	LBB0_26
## %bb.11:
	movq	%rbx, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	jne	LBB0_26
## %bb.12:
	cmpl	$132, (%r15)
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_mot_config
LBB0_14:
	movl	20(%rbx), %eax
	movl	%eax, 12(%r14)
	movq	_if_port@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	ja	LBB0_16
## %bb.15:
	movl	%eax, (%r14)
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_notice
LBB0_17:
	movl	(%r15), %esi
	leal	-128(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_18
## %bb.20:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_22:
	movq	%rbx, %rdi
	callq	_smc_setup
	jmp	LBB0_24
LBB0_21:
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_osi_setup
	jmp	LBB0_24
LBB0_18:
	cmpl	$296, %esi                      ## imm = 0x128
	jne	LBB0_23
LBB0_19:
	movq	%rbx, %rdi
	callq	_mhz_setup
	jmp	LBB0_24
LBB0_23:
	movq	%rbx, %rdi
	callq	_mot_setup
LBB0_24:
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_notice
	jmp	LBB0_26
LBB0_27:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movq	%rbx, %rdi
	callq	_check_sig
	movl	%eax, %r13d
	testl	%eax, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_35
## %bb.28:
	movl	%r13d, %eax
	shrl	$4, %eax
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addl	$-3, %eax
	cmpl	$6, %eax
	ja	LBB0_38
## %bb.29:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_36:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_37
LBB0_35:
	movl	16(%r15), %ecx
	xorl	%edx, %edx
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_44
LBB0_30:
	movl	%r13d, %eax
	andl	$14, %eax
	cmpl	$6, %eax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rcx
	cmovaeq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_38
LBB0_31:
	leaq	L_.str.7(%rip), %rax
	jmp	LBB0_37
LBB0_32:
	leaq	L_.str.8(%rip), %rax
	jmp	LBB0_37
LBB0_33:
	leaq	L_.str.9(%rip), %rax
	jmp	LBB0_37
LBB0_34:
	leaq	L_.str.10(%rip), %rax
LBB0_37:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_38:
	movl	4(%r14), %r13d
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_MEMINFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movzbl	%al, %eax
	cmpl	$255, %eax
	movl	$256, %ecx                      ## imm = 0x100
	cmovnel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %ecx
	cmpl	$64, -48(%rbp)                  ## 4-byte Folded Reload
	jb	LBB0_40
## %bb.39:
	movq	_MEMCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, %ecx
	shrl	$9, %ecx
	andl	$7, %ecx
LBB0_40:
	movl	$128, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_CONFIG@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rdi
	callq	_inw
	movq	_CFG_AUI_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_CFG_NO_WAIT@GOTPCREL(%rip), %rax
	movq	_CFG_16BIT@GOTPCREL(%rip), %rdx
	movq	_CFG_STATIC@GOTPCREL(%rip), %rsi
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	movl	%ecx, 16(%r15)
	cmpl	$130, (%r15)
	jne	LBB0_42
## %bb.41:
	movq	_CFG_IRQ_SEL_1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CFG_IRQ_SEL_0@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%r15)
LBB0_42:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	imull	-44(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	$112, %r13d
	jb	LBB0_44
## %bb.43:
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%r15)
LBB0_44:
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_45
## %bb.46:
	movl	$3, %edi
	callq	_SMC_SELECT_BANK
	xorl	%r13d, %r13d
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=1
	incl	%r13d
	cmpl	$32, %r13d
	je	LBB0_50
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_mdio_read
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	testl	%eax, %eax
	je	LBB0_49
## %bb.51:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_52
LBB0_50:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$-1, %r13d
LBB0_52:
	movl	%r13d, 20(%r15)
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_53
LBB0_45:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_53:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	callq	_register_netdev
	testq	%rax, %rax
	je	LBB0_55
## %bb.54:
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_unregister_netdev
LBB0_26:
	movq	%rbx, %rdi
	callq	_smc91c92_release
	movq	%r14, %rdi
	callq	_free_netdev
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_67:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	movl	%r13d, %ecx
	andl	$15, %ecx
	movl	12(%r14), %r9d
	movl	4(%r14), %r8d
	movl	8(%r14), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.12(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_info
	testl	%r13d, %r13d
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %r12
	jle	LBB0_63
## %bb.56:
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	$1023, %edx                     ## imm = 0x3FF
	je	LBB0_58
## %bb.57:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_59
LBB0_58:
	shrl	$10, %edx
	leaq	L_.str.14(%rip), %rsi
LBB0_59:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	(%r12), %eax
	testl	%eax, 16(%r15)
	je	LBB0_61
## %bb.60:
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_62
LBB0_61:
	movq	_if_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
LBB0_62:
	leaq	L_.str.15(%rip), %rdi
	callq	_pr_cont
LBB0_63:
	movl	(%r12), %eax
	testl	%eax, 16(%r15)
	je	LBB0_67
## %bb.64:
	movl	20(%r15), %edx
	cmpl	$-1, %edx
	je	LBB0_66
## %bb.65:
	leaq	L_.str.17(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_netdev_dbg
	jmp	LBB0_67
LBB0_66:
	leaq	L_.str.18(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_notice
	jmp	LBB0_67
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_19
.set L0_1_set_36, LBB0_36-LJTI0_1
.set L0_1_set_30, LBB0_30-LJTI0_1
.set L0_1_set_31, LBB0_31-LJTI0_1
.set L0_1_set_38, LBB0_38-LJTI0_1
.set L0_1_set_32, LBB0_32-LJTI0_1
.set L0_1_set_33, LBB0_33-LJTI0_1
.set L0_1_set_34, LBB0_34-LJTI0_1
LJTI0_1:
	.long	L0_1_set_36
	.long	L0_1_set_30
	.long	L0_1_set_31
	.long	L0_1_set_38
	.long	L0_1_set_32
	.long	L0_1_set_33
	.long	L0_1_set_34
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smc91c92_config\n"

	.comm	_PRODID_OSITECH_SEVEN,8,3       ## @PRODID_OSITECH_SEVEN
	.comm	_PRODID_MEGAHERTZ_VARIOUS,8,3   ## @PRODID_MEGAHERTZ_VARIOUS
	.comm	_PRODID_MEGAHERTZ_EM3288,8,3    ## @PRODID_MEGAHERTZ_EM3288
	.comm	_smc_interrupt,4,2              ## @smc_interrupt
	.comm	_if_port,4,2                    ## @if_port
L_.str.1:                               ## @.str.1
	.asciz	"invalid if_port requested\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to find hardware address.\n"

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

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

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

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

L_.str.7:                               ## @.str.7
	.asciz	"95"

L_.str.8:                               ## @.str.8
	.asciz	"100"

L_.str.9:                               ## @.str.9
	.asciz	"100-FD"

L_.str.10:                              ## @.str.10
	.asciz	"110"

	.comm	_MEMINFO,8,3                    ## @MEMINFO
	.comm	_MEMCFG,8,3                     ## @MEMCFG
	.comm	_CONFIG,8,3                     ## @CONFIG
	.comm	_CFG_AUI_SELECT,4,2             ## @CFG_AUI_SELECT
	.comm	_CFG_NO_WAIT,4,2                ## @CFG_NO_WAIT
	.comm	_CFG_16BIT,4,2                  ## @CFG_16BIT
	.comm	_CFG_STATIC,4,2                 ## @CFG_STATIC
	.comm	_CFG_IRQ_SEL_1,4,2              ## @CFG_IRQ_SEL_1
	.comm	_CFG_IRQ_SEL_0,4,2              ## @CFG_IRQ_SEL_0
	.comm	_CFG_MII_SELECT,4,2             ## @CFG_MII_SELECT
L_.str.11:                              ## @.str.11
	.asciz	"register_netdev() failed\n"

L_.str.12:                              ## @.str.12
	.asciz	"smc91c%s rev %d: io %#3lx, irq %d, hw_addr %pM\n"

L_.str.13:                              ## @.str.13
	.asciz	"  %lu byte"

L_.str.14:                              ## @.str.14
	.asciz	"  %lu kb"

L_.str.15:                              ## @.str.15
	.asciz	" buffer, %s xcvr\n"

L_.str.16:                              ## @.str.16
	.asciz	"MII"

	.comm	_if_names,8,3                   ## @if_names
L_.str.17:                              ## @.str.17
	.asciz	"  MII transceiver at index %d, status %x\n"

L_.str.18:                              ## @.str.18
	.asciz	"  No MII transceivers found!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_smc91c92_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc91c92_config
_smc91c92_config:                       ; @smc91c92_config
	.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	x21, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	add	x22, x21, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	ldr	w9, [x21]
	str	w9, [x20]
	ldr	x8, [x21, #8]
	str	x8, [x20, #8]
Lloh2:
	adrp	x10, _PRODID_OSITECH_SEVEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PRODID_OSITECH_SEVEN@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	w9, #130
	ccmp	x8, x10, #4, eq
	b.ne	LBB0_5
; %bb.1:
	cmp	w9, #132
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #133
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x9, _PRODID_MEGAHERTZ_VARIOUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PRODID_MEGAHERTZ_VARIOUS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _PRODID_MEGAHERTZ_EM3288@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PRODID_MEGAHERTZ_EM3288@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_mhz_mfc_config
	cbnz	w0, LBB0_49
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_osi_config
	cbnz	w0, LBB0_49
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_smc_config
	cbnz	w0, LBB0_49
LBB0_7:
Lloh11:
	adrp	x8, _smc_interrupt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _smc_interrupt@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pcmcia_request_irq
	cbnz	w0, LBB0_49
; %bb.8:
	mov	x0, x21
	bl	_pcmcia_enable_device
	cbnz	w0, LBB0_49
; %bb.9:
	ldr	w8, [x20]
	cmp	w8, #132
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_mot_config
LBB0_11:
	ldr	w8, [x21, #20]
	str	w8, [x19, #12]
Lloh14:
	adrp	x8, _if_port@GOTPAGE
Lloh15:
	ldr	x8, [x8, _if_port@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #2
	b.hi	LBB0_13
; %bb.12:
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_notice
LBB0_14:
	ldr	w1, [x20]
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_18
; %bb.15:
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	mov	x0, x21
	bl	_smc_setup
	b	LBB0_21
LBB0_17:
	ldr	x2, [x20, #8]
	mov	x0, x21
	bl	_osi_setup
	b	LBB0_21
LBB0_18:
	cmp	w1, #296
	b.ne	LBB0_20
LBB0_19:
	mov	x0, x21
	bl	_mhz_setup
	b	LBB0_21
LBB0_20:
	mov	x0, x21
	bl	_mot_setup
LBB0_21:
	cbz	w0, LBB0_23
; %bb.22:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_notice
	b	LBB0_49
LBB0_23:
	stp	xzr, xzr, [x20, #24]
	mov	x0, x21
	bl	_check_sig
	mov	x23, x0
Lloh23:
	adrp	x28, _CFG_MII_SELECT@GOTPAGE
Lloh24:
	ldr	x28, [x28, _CFG_MII_SELECT@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.24:
	lsr	w8, w23, #4
Lloh25:
	adrp	x27, l_.str.3@PAGE
Lloh26:
	add	x27, x27, l_.str.3@PAGEOFF
	sub	w8, w8, #3
	cmp	w8, #6
	b.hi	LBB0_33
; %bb.25:
Lloh27:
	adrp	x9, lJTI0_1@PAGE
Lloh28:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_26
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_26:
Lloh29:
	adrp	x27, l_.str.4@PAGE
Lloh30:
	add	x27, x27, l_.str.4@PAGEOFF
	b	LBB0_33
LBB0_27:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w8, [x20, #16]
Lloh31:
	adrp	x27, l_.str.3@PAGE
Lloh32:
	add	x27, x27, l_.str.3@PAGEOFF
	b	LBB0_40
LBB0_28:
	and	w8, w23, #0xe
Lloh33:
	adrp	x9, l_.str.6@PAGE
Lloh34:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh35:
	adrp	x10, l_.str.5@PAGE
Lloh36:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #5
	csel	x27, x10, x9, hi
	b	LBB0_33
LBB0_29:
Lloh37:
	adrp	x27, l_.str.7@PAGE
Lloh38:
	add	x27, x27, l_.str.7@PAGEOFF
	b	LBB0_33
LBB0_30:
Lloh39:
	adrp	x27, l_.str.8@PAGE
Lloh40:
	add	x27, x27, l_.str.8@PAGEOFF
	b	LBB0_33
LBB0_31:
Lloh41:
	adrp	x27, l_.str.9@PAGE
Lloh42:
	add	x27, x27, l_.str.9@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh43:
	adrp	x27, l_.str.10@PAGE
Lloh44:
	add	x27, x27, l_.str.10@PAGEOFF
LBB0_33:
	ldr	w24, [x19, #4]
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh45:
	adrp	x8, _MEMINFO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MEMINFO@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inw
	and	w8, w0, #0xff
	mov	w9, #256
	cmp	w8, #255
	csel	w25, w9, w8, eq
	cmp	w23, #64
	b.lo	LBB0_35
; %bb.34:
Lloh48:
	adrp	x8, _MEMCFG@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MEMCFG@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inw
	ubfx	w8, w0, #9, #3
	b	LBB0_36
LBB0_35:
	mov	w8, #1
LBB0_36:
	mov	w9, #128
	lsl	w8, w9, w8
	mul	w8, w8, w25
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w0, #1
	bl	_SMC_SELECT_BANK
Lloh51:
	adrp	x8, _CONFIG@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inw
Lloh54:
	adrp	x8, _CFG_AUI_SELECT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CFG_AUI_SELECT@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh57:
	adrp	x9, _CFG_NO_WAIT@GOTPAGE
Lloh58:
	ldr	x9, [x9, _CFG_NO_WAIT@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
Lloh60:
	adrp	x10, _CFG_16BIT@GOTPAGE
Lloh61:
	ldr	x10, [x10, _CFG_16BIT@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
Lloh63:
	adrp	x11, _CFG_STATIC@GOTPAGE
Lloh64:
	ldr	x11, [x11, _CFG_STATIC@GOTPAGEOFF]
Lloh65:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [x20, #16]
	ldr	w9, [x20]
	cmp	w9, #130
	b.ne	LBB0_38
; %bb.37:
Lloh66:
	adrp	x9, _CFG_IRQ_SEL_1@GOTPAGE
Lloh67:
	ldr	x9, [x9, _CFG_IRQ_SEL_1@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
Lloh69:
	adrp	x10, _CFG_IRQ_SEL_0@GOTPAGE
Lloh70:
	ldr	x10, [x10, _CFG_IRQ_SEL_0@GOTPAGEOFF]
Lloh71:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x20, #16]
LBB0_38:
	cmp	w23, #112
	b.lo	LBB0_40
; %bb.39:
	ldr	w9, [x28]
	orr	w8, w8, w9
	str	w8, [x20, #16]
LBB0_40:
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_46
; %bb.41:
	mov	w0, #3
	bl	_SMC_SELECT_BANK
	mov	w25, #0
	mov	w26, #65535
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	w2, #1
	bl	_mdio_read
	mov	x24, x0
	cmp	w0, w26
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	add	w25, w25, #1
	cmp	w25, #32
	b.ne	LBB0_42
; %bb.44:
	mov	w25, #-1
LBB0_45:
	str	w25, [x20, #20]
	mov	w0, #0
	bl	_SMC_SELECT_BANK
	b	LBB0_47
LBB0_46:
	mov	w24, #0
LBB0_47:
	mov	x0, x19
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_register_netdev
	cbz	x0, LBB0_51
; %bb.48:
Lloh72:
	adrp	x1, l_.str.11@PAGE
Lloh73:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x19
	bl	_unregister_netdev
LBB0_49:
	mov	x0, x21
	bl	_smc91c92_release
	mov	x0, x19
	bl	_free_netdev
Lloh74:
	adrp	x8, _ENODEV@GOTPAGE
Lloh75:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_50:
	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
LBB0_51:
	and	w8, w23, #0xf
	ldp	w11, w9, [x19, #8]
	ldr	w10, [x19, #4]
	stp	x9, x11, [sp, #24]
	stp	x8, x10, [sp, #8]
	str	x27, [sp]
Lloh77:
	adrp	x1, l_.str.12@PAGE
Lloh78:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	cmp	w23, #1
	b.lt	LBB0_59
; %bb.52:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	tst	w8, #0x3ff
	b.eq	LBB0_54
; %bb.53:
	str	x8, [sp]
Lloh79:
	adrp	x1, l_.str.13@PAGE
Lloh80:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_55
LBB0_54:
	lsr	w8, w8, #10
	str	x8, [sp]
Lloh81:
	adrp	x1, l_.str.14@PAGE
Lloh82:
	add	x1, x1, l_.str.14@PAGEOFF
LBB0_55:
	mov	x0, x19
	bl	_netdev_info
	ldr	w8, [x20, #16]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_57
; %bb.56:
Lloh83:
	adrp	x1, l_.str.16@PAGE
Lloh84:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_58
LBB0_57:
Lloh85:
	adrp	x8, _if_names@GOTPAGE
Lloh86:
	ldr	x8, [x8, _if_names@GOTPAGEOFF]
Lloh87:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	ldr	x1, [x8, x9, lsl #3]
LBB0_58:
Lloh88:
	adrp	x0, l_.str.15@PAGE
Lloh89:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_pr_cont
LBB0_59:
	ldr	w8, [x20, #16]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_63
; %bb.60:
	ldr	w2, [x20, #20]
	cmn	w2, #1
	b.eq	LBB0_62
; %bb.61:
Lloh90:
	adrp	x1, l_.str.17@PAGE
Lloh91:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_netdev_dbg
	b	LBB0_63
LBB0_62:
Lloh92:
	adrp	x1, l_.str.18@PAGE
Lloh93:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_netdev_notice
LBB0_63:
	mov	w0, #0
	b	LBB0_50
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_20-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
lJTI0_1:
	.byte	(LBB0_26-LBB0_26)>>2
	.byte	(LBB0_28-LBB0_26)>>2
	.byte	(LBB0_29-LBB0_26)>>2
	.byte	(LBB0_33-LBB0_26)>>2
	.byte	(LBB0_30-LBB0_26)>>2
	.byte	(LBB0_31-LBB0_26)>>2
	.byte	(LBB0_32-LBB0_26)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smc91c92_config\n"

	.comm	_PRODID_OSITECH_SEVEN,8,3       ; @PRODID_OSITECH_SEVEN
	.comm	_PRODID_MEGAHERTZ_VARIOUS,8,3   ; @PRODID_MEGAHERTZ_VARIOUS
	.comm	_PRODID_MEGAHERTZ_EM3288,8,3    ; @PRODID_MEGAHERTZ_EM3288
	.comm	_smc_interrupt,4,2              ; @smc_interrupt
	.comm	_if_port,4,2                    ; @if_port
l_.str.1:                               ; @.str.1
	.asciz	"invalid if_port requested\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to find hardware address.\n"

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

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

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

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

l_.str.7:                               ; @.str.7
	.asciz	"95"

l_.str.8:                               ; @.str.8
	.asciz	"100"

l_.str.9:                               ; @.str.9
	.asciz	"100-FD"

l_.str.10:                              ; @.str.10
	.asciz	"110"

	.comm	_MEMINFO,8,3                    ; @MEMINFO
	.comm	_MEMCFG,8,3                     ; @MEMCFG
	.comm	_CONFIG,8,3                     ; @CONFIG
	.comm	_CFG_AUI_SELECT,4,2             ; @CFG_AUI_SELECT
	.comm	_CFG_NO_WAIT,4,2                ; @CFG_NO_WAIT
	.comm	_CFG_16BIT,4,2                  ; @CFG_16BIT
	.comm	_CFG_STATIC,4,2                 ; @CFG_STATIC
	.comm	_CFG_IRQ_SEL_1,4,2              ; @CFG_IRQ_SEL_1
	.comm	_CFG_IRQ_SEL_0,4,2              ; @CFG_IRQ_SEL_0
	.comm	_CFG_MII_SELECT,4,2             ; @CFG_MII_SELECT
l_.str.11:                              ; @.str.11
	.asciz	"register_netdev() failed\n"

l_.str.12:                              ; @.str.12
	.asciz	"smc91c%s rev %d: io %#3lx, irq %d, hw_addr %pM\n"

l_.str.13:                              ; @.str.13
	.asciz	"  %lu byte"

l_.str.14:                              ; @.str.14
	.asciz	"  %lu kb"

l_.str.15:                              ; @.str.15
	.asciz	" buffer, %s xcvr\n"

l_.str.16:                              ; @.str.16
	.asciz	"MII"

	.comm	_if_names,8,3                   ; @if_names
l_.str.17:                              ; @.str.17
	.asciz	"  MII transceiver at index %d, status %x\n"

l_.str.18:                              ; @.str.18
	.asciz	"  No MII transceivers found!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_smc91c92_config
.subsections_via_symbols
