	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_link_chg_patch
_rtl_link_chg_patch:                    ## @rtl_link_chg_patch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movq	(%rbx), %rax
	movq	_RTL_GIGA_MAC_VER_34@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_RTL_GIGA_MAC_VER_38@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.9:
	movq	_RTL_GIGA_MAC_VER_35@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_RTL_GIGA_MAC_VER_36@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.14:
	movq	_RTL_GIGA_MAC_VER_37@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.15:
	movq	(%r14), %rax
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	movq	_ERIAR_MASK_0011@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movl	$464, %esi                      ## imm = 0x1D0
	movl	$19714, %ecx                    ## imm = 0x4D02
	callq	_rtl_eri_write
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$476, %esi                      ## imm = 0x1DC
	movl	$1546, %ecx                     ## imm = 0x60A
	jmp	LBB0_18
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %r14
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_5
## %bb.4:
	movq	_ERIAR_MASK_1111@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$444, %esi                      ## imm = 0x1BC
	movl	$17, %ecx
	callq	_rtl_eri_write
	movl	(%r14), %edx
	jmp	LBB0_6
LBB0_11:
	movq	(%r14), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	_ERIAR_MASK_1111@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$444, %esi                      ## imm = 0x1BC
	movl	$17, %ecx
	callq	_rtl_eri_write
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$476, %esi                      ## imm = 0x1DC
	movl	$5, %ecx
	jmp	LBB0_18
LBB0_5:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_ERIAR_MASK_1111@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$444, %esi                      ## imm = 0x1BC
	movl	$31, %ecx
	callq	_rtl_eri_write
	movl	(%r12), %edx
	cmpq	%r15, %r14
	jne	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movl	$476, %esi                      ## imm = 0x1DC
	movl	$5, %ecx
	jmp	LBB0_8
LBB0_13:
	movq	%rbx, %rdi
	movl	$444, %esi                      ## imm = 0x1BC
	movl	$31, %ecx
	callq	_rtl_eri_write
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$476, %esi                      ## imm = 0x1DC
	movl	$63, %ecx
	jmp	LBB0_18
LBB0_7:
	movq	%rbx, %rdi
	movl	$476, %esi                      ## imm = 0x1DC
	movl	$63, %ecx
LBB0_8:
	callq	_rtl_eri_write
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_reset_packet_filter        ## TAILCALL
LBB0_17:
	movq	%rbx, %rdi
	movl	$464, %esi                      ## imm = 0x1D0
	xorl	%ecx, %ecx
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_eri_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_GIGA_MAC_VER_34,8,3        ## @RTL_GIGA_MAC_VER_34
	.comm	_RTL_GIGA_MAC_VER_38,8,3        ## @RTL_GIGA_MAC_VER_38
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_ERIAR_MASK_1111,4,2            ## @ERIAR_MASK_1111
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_RTL_GIGA_MAC_VER_35,8,3        ## @RTL_GIGA_MAC_VER_35
	.comm	_RTL_GIGA_MAC_VER_36,8,3        ## @RTL_GIGA_MAC_VER_36
	.comm	_RTL_GIGA_MAC_VER_37,8,3        ## @RTL_GIGA_MAC_VER_37
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_ERIAR_MASK_0011,4,2            ## @ERIAR_MASK_0011
	.no_dead_strip	_rtl_link_chg_patch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_link_chg_patch
_rtl_link_chg_patch:                    ; @rtl_link_chg_patch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x20, [x19, #8]
	bl	_netif_running
	cbz	w0, LBB0_12
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RTL_GIGA_MAC_VER_34@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_34@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _RTL_GIGA_MAC_VER_38@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RTL_GIGA_MAC_VER_38@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x20, [x20]
Lloh6:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x20, _ERIAR_MASK_1111@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ERIAR_MASK_1111@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #444
	mov	w3, #17
	bl	_rtl_eri_write
	ldr	w2, [x20]
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x9, _RTL_GIGA_MAC_VER_35@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_35@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _RTL_GIGA_MAC_VER_36@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RTL_GIGA_MAC_VER_36@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.5:
Lloh17:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x20, _ERIAR_MASK_1111@GOTPAGE
Lloh21:
	ldr	x20, [x20, _ERIAR_MASK_1111@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #444
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.6:
	mov	w3, #17
	bl	_rtl_eri_write
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #476
	mov	w3, #5
	b	LBB0_17
LBB0_7:
Lloh22:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh24:
	ldr	x21, [x8]
Lloh25:
	adrp	x22, _ERIAR_MASK_1111@GOTPAGE
Lloh26:
	ldr	x22, [x22, _ERIAR_MASK_1111@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #444
	mov	w3, #31
	bl	_rtl_eri_write
	ldr	w2, [x22]
	cmp	x20, x21
	b.ne	LBB0_14
LBB0_8:
	mov	x0, x19
	mov	w1, #476
	mov	w3, #5
	b	LBB0_15
LBB0_9:
Lloh27:
	adrp	x9, _RTL_GIGA_MAC_VER_37@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_37@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
Lloh30:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x20, _ERIAR_MASK_0011@GOTPAGE
Lloh34:
	ldr	x20, [x20, _ERIAR_MASK_0011@GOTPAGEOFF]
	ldr	w2, [x20]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	mov	x0, x19
	mov	w1, #464
	mov	w3, #19714
	bl	_rtl_eri_write
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #476
	mov	w3, #1546
	b	LBB0_17
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w3, #31
	bl	_rtl_eri_write
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #476
	mov	w3, #63
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	mov	w1, #476
	mov	w3, #63
LBB0_15:
	bl	_rtl_eri_write
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rtl_reset_packet_filter
LBB0_16:
	mov	x0, x19
	mov	w1, #464
	mov	w3, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rtl_eri_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_GIGA_MAC_VER_34,8,3        ; @RTL_GIGA_MAC_VER_34
	.comm	_RTL_GIGA_MAC_VER_38,8,3        ; @RTL_GIGA_MAC_VER_38
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_ERIAR_MASK_1111,4,2            ; @ERIAR_MASK_1111
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_RTL_GIGA_MAC_VER_35,8,3        ; @RTL_GIGA_MAC_VER_35
	.comm	_RTL_GIGA_MAC_VER_36,8,3        ; @RTL_GIGA_MAC_VER_36
	.comm	_RTL_GIGA_MAC_VER_37,8,3        ; @RTL_GIGA_MAC_VER_37
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_ERIAR_MASK_0011,4,2            ; @ERIAR_MASK_0011
	.no_dead_strip	_rtl_link_chg_patch
.subsections_via_symbols
