	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_change_mtu
_enic_change_mtu:                       ## @enic_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, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_netif_running
	movl	%eax, %r14d
	movq	_ENIC_MIN_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_ENIC_MAX_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	callq	_enic_is_dynamic
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_enic_is_sriov_vf
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_enic_stop
LBB0_9:
	movl	%ebx, (%r15)
	movslq	%ebx, %rdx
	movq	(%r12), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_warn
LBB0_11:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_enic_open
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENIC_MIN_MTU,4,2               ## @ENIC_MIN_MTU
	.comm	_ENIC_MAX_MTU,4,2               ## @ENIC_MAX_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interface MTU (%d) set higher than port MTU (%d)\n"

	.no_dead_strip	_enic_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_change_mtu
_enic_change_mtu:                       ; @enic_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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x19
	bl	_netif_running
Lloh0:
	adrp	x8, _ENIC_MIN_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENIC_MIN_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ENIC_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENIC_MAX_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x20, x0
	mov	x0, x22
	bl	_enic_is_dynamic
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_enic_is_sriov_vf
	cbz	x0, LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	cbz	w20, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_enic_stop
LBB0_9:
	str	w21, [x19]
	sxtw	x2, w21
	ldr	x3, [x22]
	cmp	x3, x2
	b.ge	LBB0_11
; %bb.10:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_11:
	cbz	w20, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_enic_open
LBB0_13:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENIC_MIN_MTU,4,2               ; @ENIC_MIN_MTU
	.comm	_ENIC_MAX_MTU,4,2               ; @ENIC_MAX_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interface MTU (%d) set higher than port MTU (%d)\n"

	.no_dead_strip	_enic_change_mtu
.subsections_via_symbols
