	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_rtl8150_reset
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	movl	$158, -12(%rbp)
	movl	$216, -16(%rbp)
	movl	$12, -20(%rbp)
	movq	_RCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_set_registers
	movq	_TCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_set_registers
	movq	_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_set_registers
	movq	_MSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_get_registers
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device reset failed\n"

	.comm	_RTL8150_HW_CRC,4,2             ## @RTL8150_HW_CRC
	.comm	_RCR,4,2                        ## @RCR
	.comm	_TCR,4,2                        ## @TCR
	.comm	_CR,4,2                         ## @CR
	.comm	_MSR,4,2                        ## @MSR
	.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rtl8150_reset
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	mov	w9, #158
	mov	w8, #216
	stp	w9, w8, [sp, #4]
	mov	w8, #12
	str	w8, [sp, #12]
Lloh2:
	adrp	x8, _RCR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #4
	mov	x0, x19
	mov	w2, #1
	bl	_set_registers
Lloh5:
	adrp	x8, _TCR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_set_registers
Lloh8:
	adrp	x8, _CR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_set_registers
Lloh11:
	adrp	x8, _MSR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w2, #1
	bl	_get_registers
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device reset failed\n"

	.comm	_RTL8150_HW_CRC,4,2             ; @RTL8150_HW_CRC
	.comm	_RCR,4,2                        ; @RCR
	.comm	_TCR,4,2                        ; @TCR
	.comm	_CR,4,2                         ; @CR
	.comm	_MSR,4,2                        ; @MSR
	.no_dead_strip	_enable_net_traffic
.subsections_via_symbols
