	.file	"extr_cmsg.c_nfp_flower_cmsg_portmod_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ctrl msg for unknown port 0x%08x\n"
	.text
	.p2align 4
	.type	nfp_flower_cmsg_portmod_rx, @function
nfp_flower_cmsg_portmod_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	nfp_flower_cmsg_get_data@PLT
	mov	r13d, DWORD PTR [rax]
	mov	rbx, rax
	xor	eax, eax
	and	r13d, DWORD PTR NFP_FLOWER_CMSG_PORTMOD_INFO_LINK[rip]
	call	rtnl_lock@PLT
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	be32_to_cpu@PLT
	xor	edx, edx
	mov	rdi, r12
	mov	esi, eax
	call	nfp_app_dev_get@PLT
	mov	rbp, rax
	xor	eax, eax
	call	rcu_read_unlock@PLT
	test	rbp, rbp
	je	.L10
	test	r13d, r13d
	jne	.L11
	mov	rdi, rbp
	call	netif_carrier_off@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rtnl_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	be16_to_cpu@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	netif_carrier_on@PLT
	test	r12, r12
	je	.L4
	mov	rsi, r12
	mov	rdi, rbp
	call	dev_set_mtu@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 8[rbx]
	call	be32_to_cpu@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	edx, eax
	call	nfp_flower_cmsg_warn@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	nfp_flower_cmsg_portmod_rx, .-nfp_flower_cmsg_portmod_rx
	.comm	NFP_FLOWER_CMSG_PORTMOD_INFO_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmsg.c_nfp_flower_cmsg_portmod_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ctrl msg for unknown port 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfp_flower_cmsg_portmod_rx, %function
nfp_flower_cmsg_portmod_rx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, r1
	bl	nfp_flower_cmsg_get_data
	mov	r4, r0
	ldr	r2, .L12
	ldr	r3, [r0]
	ldr	r7, [r2]
	and	r7, r7, r3
	bl	rtnl_lock
	bl	rcu_read_lock
	ldr	r0, [r4, #8]
	bl	be32_to_cpu
	mov	r2, #0
	mov	r1, r0
	mov	r0, r6
	bl	nfp_app_dev_get
	mov	r5, r0
	bl	rcu_read_unlock
	cmp	r5, #0
	beq	.L10
	cmp	r7, #0
	bne	.L11
	mov	r0, r5
	bl	netif_carrier_off
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtnl_unlock
.L11:
	ldr	r0, [r4, #4]
	bl	be16_to_cpu
	mov	r4, r0
	mov	r0, r5
	bl	netif_carrier_on
	cmp	r4, #0
	beq	.L4
	mov	r1, r4
	mov	r0, r5
	bl	dev_set_mtu
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtnl_unlock
.L10:
	ldr	r0, [r4, #8]
	bl	be32_to_cpu
	ldr	r1, .L12+4
	mov	r2, r0
	mov	r0, r6
	bl	nfp_flower_cmsg_warn
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtnl_unlock
.L13:
	.align	2
.L12:
	.word	NFP_FLOWER_CMSG_PORTMOD_INFO_LINK
	.word	.LC0
	.size	nfp_flower_cmsg_portmod_rx, .-nfp_flower_cmsg_portmod_rx
	.comm	NFP_FLOWER_CMSG_PORTMOD_INFO_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
