	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_change_mtu
_efx_change_mtu:                        ## @efx_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, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_efx_check_disabled
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_EFX_MAX_MTU@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_netif_dbg
	movq	%rbx, %rdi
	callq	_efx_device_detach_sync
	movq	%rbx, %rdi
	callq	_efx_stop_all
	movq	%rbx, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	%r14d, (%r15)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_efx_start_all
	movl	(%rbx), %edi
	callq	_netif_device_attach
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_MAX_MTU,4,2                ## @EFX_MAX_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changing MTU to %d\n"

	.no_dead_strip	_efx_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_change_mtu
_efx_change_mtu:                        ; @efx_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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_efx_check_disabled
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EFX_MAX_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_MAX_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _drv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_dbg
	mov	x0, x19
	bl	_efx_device_detach_sync
	mov	x0, x19
	bl	_efx_stop_all
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	str	w20, [x21]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	bl	_efx_start_all
	ldr	w0, [x19]
	bl	_netif_device_attach
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_MAX_MTU,4,2                ; @EFX_MAX_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changing MTU to %d\n"

	.no_dead_strip	_efx_change_mtu
.subsections_via_symbols
