	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_change_mtu
_mlx4_en_change_mtu:                    ## @mlx4_en_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, %r13
	callq	_netdev_priv
	movq	%rax, %r12
	movq	16(%rax), %r14
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, %rsi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_en_dbg
	movq	_MLX4_EN_MIN_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r12)
	jge	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_en_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, (%r13)
	movq	%r13, %rdi
	callq	_netif_running
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 8(%r14)
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mlx4_en_stop_port
	movq	%r13, %rdi
	callq	_mlx4_en_start_port
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	4(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_en_err
	movl	4(%r14), %edi
	addq	$8, %r12
	movq	%r12, %rsi
	callq	_queue_work
	jmp	LBB0_8
LBB0_5:
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_en_dbg
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change MTU called - current:%d new:%d\n"

	.comm	_MLX4_EN_MIN_MTU,4,2            ## @MLX4_EN_MIN_MTU
L_.str.1:                               ## @.str.1
	.asciz	"Bad MTU size:%d.\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.2:                               ## @.str.2
	.asciz	"Change MTU called with card down!?\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed restarting port:%d\n"

	.no_dead_strip	_mlx4_en_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_change_mtu
_mlx4_en_change_mtu:                    ; @mlx4_en_change_mtu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x23, _DRV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DRV@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x21]
	stp	x8, x22, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_en_dbg
Lloh4:
	adrp	x8, _MLX4_EN_MIN_MTU@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX4_EN_MIN_MTU@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w22
	b.gt	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w22
	b.ge	LBB0_4
LBB0_2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_en_err
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	str	w22, [x21]
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.5:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x0, x21
	mov	w1, #1
	bl	_mlx4_en_stop_port
	mov	x0, x21
	bl	_mlx4_en_start_port
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w2, [x20, #4]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_en_err
	ldr	w0, [x19, #4]
	add	x1, x20, #8
	bl	_queue_work
	b	LBB0_9
LBB0_8:
	ldr	w0, [x23]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_en_dbg
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change MTU called - current:%d new:%d\n"

	.comm	_MLX4_EN_MIN_MTU,4,2            ; @MLX4_EN_MIN_MTU
l_.str.1:                               ; @.str.1
	.asciz	"Bad MTU size:%d.\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.2:                               ; @.str.2
	.asciz	"Change MTU called with card down!?\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed restarting port:%d\n"

	.no_dead_strip	_mlx4_en_change_mtu
.subsections_via_symbols
