	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_cmsg_portmod_rx
_nfp_flower_cmsg_portmod_rx:            ## @nfp_flower_cmsg_portmod_rx
	.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
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_nfp_flower_cmsg_get_data
	movq	%rax, %rbx
	movl	(%rax), %r12d
	movq	_NFP_FLOWER_CMSG_PORTMOD_INFO_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_rtnl_lock
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_nfp_app_dev_get
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r13d
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	callq	_be16_to_cpu
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_netif_carrier_on
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_mtu
	jmp	LBB0_6
LBB0_1:
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nfp_flower_cmsg_warn
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_netif_carrier_off
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtnl_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FLOWER_CMSG_PORTMOD_INFO_LINK,4,2 ## @NFP_FLOWER_CMSG_PORTMOD_INFO_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctrl msg for unknown port 0x%08x\n"

	.no_dead_strip	_nfp_flower_cmsg_portmod_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_cmsg_portmod_rx
_nfp_flower_cmsg_portmod_rx:            ; @nfp_flower_cmsg_portmod_rx
	.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	x19, x0
	mov	x0, x1
	bl	_nfp_flower_cmsg_get_data
	mov	x20, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _NFP_FLOWER_CMSG_PORTMOD_INFO_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_PORTMOD_INFO_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_rtnl_lock
	bl	_rcu_read_lock
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_nfp_app_dev_get
	mov	x21, x0
	bl	_rcu_read_unlock
	cbz	x21, LBB0_4
; %bb.1:
	tst	w23, w22
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_be16_to_cpu
	mov	x19, x0
	mov	x0, x21
	bl	_netif_carrier_on
	cbz	x19, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_dev_set_mtu
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nfp_flower_cmsg_warn
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_netif_carrier_off
LBB0_6:
	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
	b	_rtnl_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FLOWER_CMSG_PORTMOD_INFO_LINK,4,2 ; @NFP_FLOWER_CMSG_PORTMOD_INFO_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctrl msg for unknown port 0x%08x\n"

	.no_dead_strip	_nfp_flower_cmsg_portmod_rx
.subsections_via_symbols
