	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc574_config
_tc574_config:                          ## @tc574_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %r12
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r15
	leaq	16(%r14), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$16, (%r14)
	movl	$-32, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	$32, %ebx
	movl	%ebx, %eax
	xorl	$768, %eax                      ## imm = 0x300
	movq	24(%r14), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$991, %ebx                      ## imm = 0x3DF
	jbe	LBB0_2
	jmp	LBB0_21
LBB0_3:
	movq	_el3_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pcmcia_request_irq
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	movq	%r14, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	jne	LBB0_21
## %bb.5:
	movl	32(%r14), %eax
	movl	%eax, 16(%r12)
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%r12)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$136, %esi
	callq	_pcmcia_get_tuple
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.6:
	cmpq	$6, %rax
	jb	LBB0_16
## %bb.7:
	movl	(%rdi), %edi
	callq	_le16_to_cpu
	movl	%eax, %edi
	callq	_htons
	movl	%eax, (%r15)
	movq	-48(%rbp), %rax
	movl	8(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %edi
	callq	_htons
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rax
	movl	16(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %edi
	callq	_htons
	movl	%eax, 8(%r15)
	movq	-48(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_16:
	callq	_kfree
	xorl	%edi, %edi
	callq	_EL3WINDOW
	movl	%ebx, %edi
	movl	$10, %esi
	callq	_read_eeprom
	movl	%eax, %edi
	callq	_htons
	movl	%eax, (%r15)
	movl	%ebx, %edi
	movl	$11, %esi
	callq	_read_eeprom
	movl	%eax, %edi
	callq	_htons
	movl	%eax, 4(%r15)
	movl	%ebx, %edi
	movl	$12, %esi
	callq	_read_eeprom
	movl	%eax, %edi
	callq	_htons
	movl	%eax, 8(%r15)
	movl	(%r15), %r15d
	movl	$24672, %edi                    ## imm = 0x6060
	callq	_htons
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.17:
	movl	(%r12), %esi
	leal	15(%rsi), %edx
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_notice
	jmp	LBB0_21
LBB0_8:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	_RunnerRdCtrl@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_outw
	leal	2(%rbx), %edi
	callq	_inb
	movl	%eax, %r15d
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outw
	sarl	$3, %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_info
	movl	$3, %edi
	callq	_EL3WINDOW
	movq	_Wn3_Config@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inl
	movq	_Xcvr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_Xcvr_shift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, (%rdi)
	movq	_Autoselect@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	andl	(%rsi), %ecx
	setne	%dl
	movl	%edx, 4(%rdi)
	addq	$16, %rdi
	movq	_media_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_Wn3_Options@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	$32832, %edi                    ## imm = 0x8040
	callq	_outw
	movl	$1, %r13d
	movl	$1, %edi
	callq	_mdelay
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	$49216, %edi                    ## imm = 0xC040
	callq	_outw
	movq	_TxReset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_tc574_wait_for_completion
	movq	_RxReset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_tc574_wait_for_completion
	movl	$1, %edi
	callq	_mdelay
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movl	$32832, %edi                    ## imm = 0x8040
	callq	_outw
	movl	$4, %edi
	callq	_EL3WINDOW
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	$32, %esi
	callq	_mdio_sync
	movl	%r13d, %r12d
	andl	$31, %r12d
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_mdio_read
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%r13d
	cmpl	$33, %r13d
	jne	LBB0_9
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_20
LBB0_10:
	movl	%eax, %r15d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, 8(%rbx)
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	testb	$64, %r15b
	jne	LBB0_12
## %bb.11:
	movq	_mii_preamble_required@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_12:
	movl	8(%rbx), %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edi
	movl	$16, %edx
	callq	_mdio_read
	orl	$64, %eax
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	movl	$16, %edx
	movl	%eax, %ecx
	callq	_mdio_write
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	movl	$4, %edx
	callq	_mdio_read
	movl	%eax, 12(%rbx)
	movq	_full_duplex@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	andl	$-673, %eax                     ## imm = 0xFD5F
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	movl	$4, %edx
	movl	%eax, %ecx
	callq	_mdio_write
LBB0_14:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_register_netdev
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	leaq	L_.str.6(%rip), %rdi
LBB0_20:
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_21:
	movq	%r14, %rdi
	callq	_tc574_release
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	(%r15), %ecx
	movl	16(%r15), %r8d
	movq	8(%r15), %r9
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_info
	movq	_Ram_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	andl	%edi, %ecx
	movl	$8, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	_ram_split@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Ram_split@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%edi, %esi
	movq	_Ram_split_shift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_Autoselect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.9(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"3c574_config()\n"

	.comm	_el3_interrupt,4,2              ## @el3_interrupt
L_.str.1:                               ## @.str.1
	.asciz	"IO port conflict at 0x%03lx-0x%03lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"3Com 3c574"

	.comm	_RunnerRdCtrl,8,3               ## @RunnerRdCtrl
L_.str.3:                               ## @.str.3
	.asciz	"  ASIC rev %d,"

	.comm	_Wn3_Config,8,3                 ## @Wn3_Config
	.comm	_Xcvr,4,2                       ## @Xcvr
	.comm	_Xcvr_shift,4,2                 ## @Xcvr_shift
	.comm	_Autoselect,4,2                 ## @Autoselect
	.comm	_media_check,4,2                ## @media_check
	.comm	_Wn3_Options,8,3                ## @Wn3_Options
	.comm	_TxReset,4,2                    ## @TxReset
	.comm	_RxReset,4,2                    ## @RxReset
L_.str.4:                               ## @.str.4
	.asciz	"  MII transceiver at index %d, status %x.\n"

	.comm	_mii_preamble_required,4,2      ## @mii_preamble_required
L_.str.5:                               ## @.str.5
	.asciz	"  No MII transceivers found!\n"

	.comm	_full_duplex,8,3                ## @full_duplex
L_.str.6:                               ## @.str.6
	.asciz	"register_netdev() failed\n"

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

L_.str.8:                               ## @.str.8
	.asciz	" %dK FIFO split %s Rx:Tx, %sMII interface.\n"

	.comm	_Ram_size,4,2                   ## @Ram_size
	.comm	_ram_split,8,3                  ## @ram_split
	.comm	_Ram_split,4,2                  ## @Ram_split
	.comm	_Ram_split_shift,4,2            ## @Ram_split_shift
L_.str.9:                               ## @.str.9
	.asciz	"autoselect "

L_.str.10:                              ## @.str.10
	.space	1

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc574_config
_tc574_config:                          ; @tc574_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	x20, x0
	ldr	x19, [x0, #40]
	mov	x0, x19
	bl	_netdev_priv
	mov	x22, x0
	ldr	x24, [x19, #8]
	add	x21, x20, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	w8, #16
	str	w8, [x20]
	mov	w23, #-32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #32
	eor	w8, w23, #0x300
	ldr	x9, [x20, #24]
	ldr	x9, [x9]
	str	w8, [x9]
	mov	x0, x20
	bl	_pcmcia_request_io
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w23, #991
	b.ls	LBB0_1
	b	LBB0_21
LBB0_3:
Lloh2:
	adrp	x8, _el3_interrupt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _el3_interrupt@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pcmcia_request_irq
	cbnz	w0, LBB0_21
; %bb.4:
	mov	x0, x20
	bl	_pcmcia_enable_device
	cbnz	w0, LBB0_21
; %bb.5:
	ldr	w8, [x20, #32]
	str	w8, [x19, #16]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	w23, [x8]
	str	w23, [x19]
	add	x2, sp, #40
	mov	x0, x20
	mov	w1, #136
	bl	_pcmcia_get_tuple
	mov	x8, x0
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_8
; %bb.6:
	cmp	x8, #6
	b.lo	LBB0_8
; %bb.7:
	ldr	w0, [x0]
	bl	_le16_to_cpu
	bl	_htons
	str	w0, [x24]
	ldr	x8, [sp, #40]
	ldr	w0, [x8, #8]
	bl	_le16_to_cpu
	bl	_htons
	str	w0, [x24, #4]
	ldr	x8, [sp, #40]
	ldr	w0, [x8, #16]
	bl	_le16_to_cpu
	bl	_htons
	str	w0, [x24, #8]
	ldr	x0, [sp, #40]
	bl	_kfree
	b	LBB0_10
LBB0_8:
	bl	_kfree
	mov	w0, #0
	bl	_EL3WINDOW
	mov	x0, x23
	mov	w1, #10
	bl	_read_eeprom
	bl	_htons
	str	w0, [x24]
	mov	x0, x23
	mov	w1, #11
	bl	_read_eeprom
	bl	_htons
	str	w0, [x24, #4]
	mov	x0, x23
	mov	w1, #12
	bl	_read_eeprom
	bl	_htons
	str	w0, [x24, #8]
	ldr	w24, [x24]
	mov	w0, #24672
	bl	_htons
	cmp	w24, w0
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x19]
	add	w9, w8, #15
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh9:
	adrp	x25, _RunnerRdCtrl@GOTPAGE
Lloh10:
	ldr	x25, [x25, _RunnerRdCtrl@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x23
	mov	w0, #4096
	bl	_outw
	add	w0, w23, #2
	bl	_inb
	mov	x24, x0
	ldr	x8, [x25]
	add	x1, x8, x23
	mov	w0, #0
	bl	_outw
	asr	w1, w24, #3
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	w0, #3
	bl	_EL3WINDOW
Lloh13:
	adrp	x8, _Wn3_Config@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Wn3_Config@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x0, x8, x23
	bl	_inl
	mov	x24, x0
Lloh16:
	adrp	x8, _Xcvr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Xcvr@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh19:
	adrp	x9, _Xcvr_shift@GOTPAGE
Lloh20:
	ldr	x9, [x9, _Xcvr_shift@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x22]
Lloh22:
	adrp	x8, _Autoselect@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Autoselect@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x22, #4]
	add	x0, x22, #16
Lloh25:
	adrp	x8, _media_check@GOTPAGE
Lloh26:
	ldr	x8, [x8, _media_check@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh28:
	adrp	x25, _Wn3_Options@GOTPAGE
Lloh29:
	ldr	x25, [x25, _Wn3_Options@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x23
	mov	w0, #32832
	bl	_outw
	mov	w27, #1
	mov	w0, #1
	bl	_mdelay
	ldr	x8, [x25]
	add	x1, x8, x23
	mov	w0, #49216
	bl	_outw
Lloh30:
	adrp	x8, _TxReset@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TxReset@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tc574_wait_for_completion
Lloh33:
	adrp	x8, _RxReset@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RxReset@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tc574_wait_for_completion
	mov	w0, #1
	bl	_mdelay
	ldr	x8, [x25]
	add	x1, x8, x23
	mov	w0, #32832
	bl	_outw
	mov	w0, #4
	bl	_EL3WINDOW
	mov	w28, #65535
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #32
	bl	_mdio_sync
	and	w26, w27, #0x1f
	mov	x0, x23
	mov	x1, x26
	mov	w2, #1
	bl	_mdio_read
	cmp	w0, w28
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w27, w27, #1
	cmp	w27, #33
	b.ne	LBB0_11
; %bb.13:
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_14:
	mov	x25, x0
	str	w26, [x22, #8]
	stp	x27, x25, [sp]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	tbnz	w25, #6, LBB0_16
; %bb.15:
Lloh40:
	adrp	x8, _mii_preamble_required@GOTPAGE
Lloh41:
	ldr	x8, [x8, _mii_preamble_required@GOTPAGEOFF]
	mov	w9, #1
Lloh42:
	str	w9, [x8]
LBB0_16:
	ldr	w1, [x22, #8]
	mov	x0, x23
	mov	w2, #16
	bl	_mdio_read
	orr	w3, w0, #0x40
	ldr	w1, [x22, #8]
	mov	x0, x23
	mov	w2, #16
	bl	_mdio_write
	ldr	w1, [x22, #8]
	mov	x0, x23
	mov	w2, #4
	bl	_mdio_read
	str	w0, [x22, #12]
Lloh43:
	adrp	x8, _full_duplex@GOTPAGE
Lloh44:
	ldr	x8, [x8, _full_duplex@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	w8, #-673
	and	w3, w0, w8
	str	w3, [x22, #12]
	ldr	w1, [x22, #8]
	mov	x0, x23
	mov	w2, #4
	bl	_mdio_write
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_register_netdev
	cbz	x0, LBB0_23
; %bb.19:
Lloh46:
	adrp	x0, l_.str.6@PAGE
Lloh47:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_20:
	bl	_pr_notice
LBB0_21:
	mov	x0, x20
	bl	_tc574_release
Lloh48:
	adrp	x8, _ENODEV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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_23:
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	ldr	w10, [x19, #16]
	stp	x10, x8, [sp, #16]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
Lloh53:
	adrp	x8, _Ram_size@GOTPAGE
Lloh54:
	ldr	x8, [x8, _Ram_size@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	and	w8, w8, w24
	mov	w9, #8
	lsl	w8, w9, w8
Lloh56:
	adrp	x9, _ram_split@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ram_split@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
Lloh59:
	adrp	x10, _Ram_split@GOTPAGE
Lloh60:
	ldr	x10, [x10, _Ram_split@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
Lloh62:
	adrp	x11, _Ram_split_shift@GOTPAGE
Lloh63:
	ldr	x11, [x11, _Ram_split_shift@GOTPAGEOFF]
	and	w10, w10, w24
Lloh64:
	ldr	w11, [x11]
	asr	w10, w10, w11
Lloh65:
	adrp	x11, _Autoselect@GOTPAGE
Lloh66:
	ldr	x11, [x11, _Autoselect@GOTPAGEOFF]
Lloh67:
	ldr	w11, [x11]
Lloh68:
	adrp	x12, l_.str.9@PAGE
Lloh69:
	add	x12, x12, l_.str.9@PAGEOFF
Lloh70:
	adrp	x13, l_.str.10@PAGE
Lloh71:
	add	x13, x13, l_.str.10@PAGEOFF
	tst	w11, w24
	csel	x11, x13, x12, eq
	ldr	w9, [x9, w10, sxtw #2]
	stp	x9, x11, [sp, #8]
	str	x8, [sp]
Lloh72:
	adrp	x1, l_.str.8@PAGE
Lloh73:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"3c574_config()\n"

	.comm	_el3_interrupt,4,2              ; @el3_interrupt
l_.str.1:                               ; @.str.1
	.asciz	"IO port conflict at 0x%03lx-0x%03lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"3Com 3c574"

	.comm	_RunnerRdCtrl,8,3               ; @RunnerRdCtrl
l_.str.3:                               ; @.str.3
	.asciz	"  ASIC rev %d,"

	.comm	_Wn3_Config,8,3                 ; @Wn3_Config
	.comm	_Xcvr,4,2                       ; @Xcvr
	.comm	_Xcvr_shift,4,2                 ; @Xcvr_shift
	.comm	_Autoselect,4,2                 ; @Autoselect
	.comm	_media_check,4,2                ; @media_check
	.comm	_Wn3_Options,8,3                ; @Wn3_Options
	.comm	_TxReset,4,2                    ; @TxReset
	.comm	_RxReset,4,2                    ; @RxReset
l_.str.4:                               ; @.str.4
	.asciz	"  MII transceiver at index %d, status %x.\n"

	.comm	_mii_preamble_required,4,2      ; @mii_preamble_required
l_.str.5:                               ; @.str.5
	.asciz	"  No MII transceivers found!\n"

	.comm	_full_duplex,8,3                ; @full_duplex
l_.str.6:                               ; @.str.6
	.asciz	"register_netdev() failed\n"

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

l_.str.8:                               ; @.str.8
	.asciz	" %dK FIFO split %s Rx:Tx, %sMII interface.\n"

	.comm	_Ram_size,4,2                   ; @Ram_size
	.comm	_ram_split,8,3                  ; @ram_split
	.comm	_Ram_split,4,2                  ; @Ram_split
	.comm	_Ram_split_shift,4,2            ; @Ram_split_shift
l_.str.9:                               ; @.str.9
	.asciz	"autoselect "

l_.str.10:                              ; @.str.10
	.space	1

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