	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_repr_change_mtu
_nfp_flower_repr_change_mtu:            ## @nfp_flower_repr_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_NFP_PORT_PHYS_PORT@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	_NFP_FL_NBI_MTU_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	12(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	$0, 4(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_nfp_flower_cmsg_portmod
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	$0, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %r15d
	jmp	LBB0_8
LBB0_2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nfp_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	16(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_nfp_flower_check_ack
	movq	_NFP_FL_REPLY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %r14
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	$0, 8(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_nfp_warn
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_PORT_PHYS_PORT,8,3         ## @NFP_PORT_PHYS_PORT
	.comm	_NFP_FL_NBI_MTU_SETTING,4,2     ## @NFP_FL_NBI_MTU_SETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Physical port MTU setting not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_FL_REPLY_TIMEOUT,4,2       ## @NFP_FL_REPLY_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"MTU change not verified with fw\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_nfp_flower_repr_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_repr_change_mtu
_nfp_flower_repr_change_mtu:            ; @nfp_flower_repr_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, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NFP_PORT_PHYS_PORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_PORT_PHYS_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _NFP_FL_NBI_MTU_SETTING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_FL_NBI_MTU_SETTING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x24, x0
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_bh
	stp	wzr, w22, [x19, #4]
	ldr	x8, [x24]
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x23
	bl	_netif_carrier_ok
	mov	x1, x0
	mov	x0, x24
	mov	x2, x22
	mov	w3, #1
	bl	_nfp_flower_cmsg_portmod
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x0, x21
	bl	_spin_lock_bh
	str	wzr, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_9
LBB0_4:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w22, [x19, #16]
	mov	x0, x19
	bl	_nfp_flower_check_ack
	mov	x1, x0
Lloh10:
	adrp	x8, _NFP_FL_REPLY_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFP_FL_REPLY_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_wait_event_timeout
	cbz	w0, LBB0_7
LBB0_6:
	mov	w22, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_spin_lock_bh
	str	wzr, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_warn
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_PORT_PHYS_PORT,8,3         ; @NFP_PORT_PHYS_PORT
	.comm	_NFP_FL_NBI_MTU_SETTING,4,2     ; @NFP_FL_NBI_MTU_SETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Physical port MTU setting not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_FL_REPLY_TIMEOUT,4,2       ; @NFP_FL_REPLY_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"MTU change not verified with fw\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_nfp_flower_repr_change_mtu
.subsections_via_symbols
