	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fjes_change_mtu
_fjes_change_mtu:                       ## @fjes_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, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_netif_running
	movl	%eax, %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_fjes_support_mtu@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rsi), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.1:
	addq	$4, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %edx
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi), %edx
	addq	$4, %rsi
	testl	%edx, %edx
	jne	LBB0_3
LBB0_7:
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	negl	%eax
	jmp	LBB0_29
LBB0_4:
	xorl	%eax, %eax
	movl	%edx, %r15d
	cmpl	(%r14), %edx
	je	LBB0_29
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.9:
	leaq	16(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_22
## %bb.10:
	movl	12(%r13), %ecx
	cmpl	$1, %r8d
	jne	LBB0_12
## %bb.11:
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_20
	jmp	LBB0_22
LBB0_6:
	movl	%r15d, (%r14)
	jmp	LBB0_28
LBB0_12:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	_FJES_RX_MTU_CHANGING_DONE@GOTPCREL(%rip), %r9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdx
	cmpq	%rsi, %rdx
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	cmpq	%rdx, %rcx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r9), %edx
	notl	%edx
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	andl	%edx, (%rax)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	1(%rbx), %rdx
	cmpq	%rcx, %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r9), %eax
	notl	%eax
	movq	24(%r13), %rdi
	movq	8(%rdi,%rbx,8), %rdi
	andl	%eax, (%rdi)
	jmp	LBB0_17
LBB0_18:
	addq	$2, %rbx
	testb	$1, %r8b
	je	LBB0_22
LBB0_20:
	cmpq	%rcx, %rbx
	je	LBB0_22
## %bb.21:
	movq	_FJES_RX_MTU_CHANGING_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	24(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	andl	%eax, (%rcx)
LBB0_22:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r13, %rdi
	addq	$4, %rdi
	callq	_cancel_work_sync
	movq	%r13, %rdi
	callq	_napi_disable
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movl	%r15d, (%r14)
	movl	8(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.23:
	xorl	%ebx, %ebx
	movq	_FJES_RX_MTU_CHANGING_DONE@GOTPCREL(%rip), %r15
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %ecx
	cmpq	%rcx, %rbx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	(,%rbx,8), %rdi
	addq	24(%r13), %rdi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_fjes_hw_setup_epbuf
	movl	(%r15), %eax
	movq	24(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	orl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%r13), %eax
	jmp	LBB0_26
LBB0_27:
	movq	%r14, %rdi
	callq	_netif_tx_wake_all_queues
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r13, %rdi
	callq	_napi_enable
	movq	%r13, %rdi
	callq	_napi_schedule
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_fjes_support_mtu,8,3           ## @fjes_support_mtu
	.comm	_FJES_RX_MTU_CHANGING_DONE,4,2  ## @FJES_RX_MTU_CHANGING_DONE
	.no_dead_strip	_fjes_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fjes_change_mtu
_fjes_change_mtu:                       ; @fjes_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_running
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _fjes_support_mtu@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fjes_support_mtu@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	ldr	w9, [x10]
	cbz	w9, LBB0_4
; %bb.1:
	add	x10, x10, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w22
	b.ge	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x10], #4
	cbnz	w9, LBB0_2
LBB0_4:
	cbz	w8, LBB0_7
; %bb.5:
	neg	w0, w8
	b	LBB0_21
LBB0_6:
	ldr	w8, [x20]
	mov	x22, x9
	cmp	w9, w8
	b.eq	LBB0_19
LBB0_7:
	cbz	w0, LBB0_20
; %bb.8:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w10, [x19, #8]
Lloh6:
	adrp	x23, _FJES_RX_MTU_CHANGING_DONE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FJES_RX_MTU_CHANGING_DONE@GOTPAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x8, #0
	ldr	w9, [x19, #12]
	lsl	x9, x9, #3
	lsl	x10, x10, #3
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #8
	cmp	x10, x8
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w11, [x23]
	ldr	x12, [x19, #24]
	ldr	x12, [x12, x8]
	ldr	w13, [x12]
	bic	w11, w13, w11
	str	w11, [x12]
	b	LBB0_10
LBB0_13:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	mov	x0, x20
	bl	_netif_carrier_off
	add	x0, x19, #4
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_napi_disable
	mov	w0, #1000
	bl	_msleep
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	str	w22, [x20]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x22, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #12]
	cmp	x22, x9
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	lsl	x24, x22, #3
	add	x0, x8, x24
	ldp	w2, w1, [x20]
	bl	_fjes_hw_setup_epbuf
	ldr	w8, [x23]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x24]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #8]
	b	LBB0_15
LBB0_18:
	mov	x0, x20
	bl	_netif_tx_wake_all_queues
	mov	x0, x20
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_napi_enable
	mov	x0, x19
	bl	_napi_schedule
LBB0_19:
	mov	w0, #0
	b	LBB0_21
LBB0_20:
	str	w22, [x20]
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_fjes_support_mtu,8,3           ; @fjes_support_mtu
	.comm	_FJES_RX_MTU_CHANGING_DONE,4,2  ; @FJES_RX_MTU_CHANGING_DONE
	.no_dead_strip	_fjes_change_mtu
.subsections_via_symbols
