	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_change_mtu
_jme_change_mtu:                        ## @jme_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	xorl	%r14d, %r14d
	cmpl	%ebx, (%rax)
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	movslq	%ebx, %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_MAX_ETHERNET_JUMBO_PACKET_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_3
## %bb.2:
	movq	_IPV6_MIN_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_3
## %bb.4:
	movq	_RXCS_FIFOTHNP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r12), %eax
	cmpl	$4001, %ebx                     ## imm = 0xFA1
	jl	LBB0_6
## %bb.5:
	movq	_RXCS_FIFOTHNP_64QW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_jme_restart_rx_engine
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_6:
	movq	_RXCS_FIFOTHNP_128QW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_jme_restart_rx_engine
	cmpl	$1901, %ebx                     ## imm = 0x76D
	jl	LBB0_8
LBB0_7:
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r15)
LBB0_12:
	movl	%ebx, 4(%r15)
	movq	%r12, %rdi
	callq	_jme_reset_link
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_JME_FLAG_TXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %r13
	addq	$4, %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_10:
	movq	_JME_FLAG_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_MAX_ETHERNET_JUMBO_PACKET_SIZE,8,3 ## @MAX_ETHERNET_JUMBO_PACKET_SIZE
	.comm	_IPV6_MIN_MTU,4,2               ## @IPV6_MIN_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RXCS_FIFOTHNP,4,2              ## @RXCS_FIFOTHNP
	.comm	_RXCS_FIFOTHNP_64QW,4,2         ## @RXCS_FIFOTHNP_64QW
	.comm	_RXCS_FIFOTHNP_128QW,4,2        ## @RXCS_FIFOTHNP_128QW
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_JME_FLAG_TXCSUM,4,2            ## @JME_FLAG_TXCSUM
	.comm	_JME_FLAG_TSO,4,2               ## @JME_FLAG_TSO
	.no_dead_strip	_jme_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_change_mtu
_jme_change_mtu:                        ; @jme_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w8, [x0]
	cmp	w8, w19
	b.eq	LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw
Lloh3:
	adrp	x9, _MAX_ETHERNET_JUMBO_PACKET_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_ETHERNET_JUMBO_PACKET_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IPV6_MIN_MTU@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IPV6_MIN_MTU@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w19, #0, le
	b.le	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	mov	x21, x0
Lloh12:
	adrp	x8, _RXCS_FIFOTHNP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RXCS_FIFOTHNP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	bic	w8, w9, w8
	cmp	w19, #4001
	b.lt	LBB0_5
; %bb.4:
Lloh15:
	adrp	x9, _RXCS_FIFOTHNP_64QW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RXCS_FIFOTHNP_64QW@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_jme_restart_rx_engine
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x9, _RXCS_FIFOTHNP_128QW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RXCS_FIFOTHNP_128QW@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_jme_restart_rx_engine
	cmp	w19, #1901
	b.lt	LBB0_11
LBB0_6:
Lloh21:
	adrp	x8, _NETIF_F_HW_CSUM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh29:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x20]
	bic	w8, w9, w8
LBB0_7:
	str	w8, [x20]
LBB0_8:
	str	w19, [x20, #4]
	mov	x0, x21
	bl	_jme_reset_link
LBB0_9:
	mov	w0, #0
LBB0_10:
	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_11:
Lloh30:
	adrp	x8, _JME_FLAG_TXCSUM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _JME_FLAG_TXCSUM@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x22, x21, #4
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _NETIF_F_HW_CSUM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_13:
Lloh36:
	adrp	x8, _JME_FLAG_TSO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _JME_FLAG_TSO@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.14:
Lloh39:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh41:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_MAX_ETHERNET_JUMBO_PACKET_SIZE,8,3 ; @MAX_ETHERNET_JUMBO_PACKET_SIZE
	.comm	_IPV6_MIN_MTU,4,2               ; @IPV6_MIN_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RXCS_FIFOTHNP,4,2              ; @RXCS_FIFOTHNP
	.comm	_RXCS_FIFOTHNP_64QW,4,2         ; @RXCS_FIFOTHNP_64QW
	.comm	_RXCS_FIFOTHNP_128QW,4,2        ; @RXCS_FIFOTHNP_128QW
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_JME_FLAG_TXCSUM,4,2            ; @JME_FLAG_TXCSUM
	.comm	_JME_FLAG_TSO,4,2               ; @JME_FLAG_TSO
	.no_dead_strip	_jme_change_mtu
.subsections_via_symbols
