	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_net_traffic
_enable_net_traffic:                    ## @enable_net_traffic
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	12(%rax), %esi
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_read_mii_word
	movl	$200, -48(%rbp)
	movl	-56(%rbp), %ecx
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%edx, %esi
	xorl	%eax, %eax
	testl	%ecx, %esi
	setne	%al
	shll	$5, %eax
	movl	%eax, -44(%rbp)
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	testl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	orl	$16, %eax
	movl	%eax, -44(%rbp)
LBB0_2:
	movq	_mii_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$0, -44(%rbp)
LBB0_4:
	movq	_loopback@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	leal	1(,%rcx,8), %eax
	movl	%eax, -40(%rbp)
	movl	8(%rbx), %edi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_EthCtrl0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	_set_registers
	movl	%eax, %r14d
	movq	_usb_dev_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_VENDOR_LINKSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_VENDOR_LINKSYS2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_VENDOR_DLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_7:
	leaq	-52(%rbp), %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$27, %edx
	movq	%r15, %rcx
	callq	_read_mii_word
	orb	$4, -52(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$27, %edx
	movq	%r15, %rcx
	callq	_write_mii_word
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_mii_mode,8,3                   ## @mii_mode
	.comm	_loopback,8,3                   ## @loopback
	.comm	_EthCtrl0,4,2                   ## @EthCtrl0
	.comm	_usb_dev_id,8,3                 ## @usb_dev_id
	.comm	_VENDOR_LINKSYS,8,3             ## @VENDOR_LINKSYS
	.comm	_VENDOR_LINKSYS2,8,3            ## @VENDOR_LINKSYS2
	.comm	_VENDOR_DLINK,8,3               ## @VENDOR_DLINK
	.no_dead_strip	_enable_net_traffic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_net_traffic
_enable_net_traffic:                    ; @enable_net_traffic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x0, #12]
Lloh3:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #4
	bl	_read_mii_word
	mov	w9, #200
	ldr	w10, [sp, #4]
Lloh6:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x8]
Lloh9:
	adrp	x8, _ADVERTISE_10FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w11
	tst	w8, w10
	cset	w8, ne
	lsl	w8, w8, #5
	stp	w9, w8, [sp, #8]
Lloh12:
	adrp	x9, _ADVERTISE_100HALF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w9, w9, w11
	tst	w9, w10
	b.eq	LBB0_2
; %bb.1:
	orr	w8, w8, #0x10
	str	w8, [sp, #12]
LBB0_2:
Lloh15:
	adrp	x8, _mii_mode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mii_mode@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	str	wzr, [sp, #12]
LBB0_4:
Lloh18:
	adrp	x8, _loopback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _loopback@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #9
	csinc	w8, w8, wzr, ne
	str	w8, [sp, #16]
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #16
	bl	_memcpy
Lloh21:
	adrp	x8, _EthCtrl0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EthCtrl0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #3
	bl	_set_registers
	mov	x20, x0
Lloh24:
	adrp	x8, _usb_dev_id@GOTPAGE
Lloh25:
	ldr	x8, [x8, _usb_dev_id@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
Lloh27:
	adrp	x9, _VENDOR_LINKSYS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VENDOR_LINKSYS@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
Lloh30:
	adrp	x9, _VENDOR_LINKSYS2@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VENDOR_LINKSYS2@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh33:
	adrp	x9, _VENDOR_DLINK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _VENDOR_DLINK@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
	mov	x3, sp
	mov	x0, x19
	mov	w1, #0
	mov	w2, #27
	bl	_read_mii_word
	ldr	w8, [sp]
	orr	w8, w8, #0x4
	str	w8, [sp]
	mov	x3, sp
	mov	x0, x19
	mov	w1, #0
	mov	w2, #27
	bl	_write_mii_word
LBB0_8:
	ldr	x8, [sp, #24]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_mii_mode,8,3                   ; @mii_mode
	.comm	_loopback,8,3                   ; @loopback
	.comm	_EthCtrl0,4,2                   ; @EthCtrl0
	.comm	_usb_dev_id,8,3                 ; @usb_dev_id
	.comm	_VENDOR_LINKSYS,8,3             ; @VENDOR_LINKSYS
	.comm	_VENDOR_LINKSYS2,8,3            ; @VENDOR_LINKSYS2
	.comm	_VENDOR_DLINK,8,3               ; @VENDOR_DLINK
	.no_dead_strip	_enable_net_traffic
.subsections_via_symbols
