	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_change_mtu
_rtl8169_change_mtu:                    ## @rtl8169_change_mtu
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_rtl_chip_infos@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%r15), %rcx
	cmpl	%ebx, (%rax,%rcx,8)
	jge	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_rtl_hw_jumbo_enable
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_rtl_hw_jumbo_disable
LBB0_6:
	movl	%ebx, (%r14)
	movq	_TD_MSS_MAX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_8
## %bb.7:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO_ECN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 4(%r14)
LBB0_8:
	movq	_JUMBO_1K@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%ebx, (%rcx)
	jge	LBB0_11
## %bb.9:
	movq	(%r12), %rcx
	movq	(%r15), %rdx
	cmpl	$0, 4(%rcx,%rdx,8)
	jne	LBB0_11
## %bb.10:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 4(%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_rtl_chip_infos,8,3             ## @rtl_chip_infos
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_TD_MSS_MAX,4,2                 ## @TD_MSS_MAX
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_NETIF_F_TSO_ECN,4,2            ## @NETIF_F_TSO_ECN
	.comm	_JUMBO_1K,4,2                   ## @JUMBO_1K
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.no_dead_strip	_rtl8169_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_change_mtu
_rtl8169_change_mtu:                    ; @rtl8169_change_mtu
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.gt	LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x22, _rtl_chip_infos@GOTPAGE
Lloh4:
	ldr	x22, [x22, _rtl_chip_infos@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x0]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	cmp	w8, w20
	b.ge	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
Lloh8:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x0, x21
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.4:
	bl	_rtl_hw_jumbo_enable
	b	LBB0_6
LBB0_5:
	bl	_rtl_hw_jumbo_disable
LBB0_6:
	str	w20, [x19]
Lloh11:
	adrp	x8, _TD_MSS_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TD_MSS_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _NETIF_F_TSO_ECN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _NETIF_F_TSO_ECN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh22:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_8:
Lloh23:
	adrp	x8, _JUMBO_1K@GOTPAGE
Lloh24:
	ldr	x8, [x8, _JUMBO_1K@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_10
; %bb.9:
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
	mov	w0, #0
Lloh26:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_rtl_chip_infos,8,3             ; @rtl_chip_infos
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_TD_MSS_MAX,4,2                 ; @TD_MSS_MAX
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_NETIF_F_TSO_ECN,4,2            ; @NETIF_F_TSO_ECN
	.comm	_JUMBO_1K,4,2                   ; @JUMBO_1K
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.no_dead_strip	_rtl8169_change_mtu
.subsections_via_symbols
