	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_cmsg_portmod        ## -- Begin function nfp_flower_cmsg_portmod
	.p2align	4, 0x90
_nfp_flower_cmsg_portmod:               ## @nfp_flower_cmsg_portmod
	.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	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movq	_NFP_FLOWER_CMSG_TYPE_PORT_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$24, %esi
	callq	_nfp_flower_cmsg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	callq	_nfp_flower_cmsg_get_data
	movq	%rax, %r14
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	movl	%r15d, (%r14)
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, (%r14)
LBB0_4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be16
	movl	%eax, 4(%r14)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_nfp_ctrl_tx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FLOWER_CMSG_TYPE_PORT_MOD,4,2 ## @NFP_FLOWER_CMSG_TYPE_PORT_MOD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY,4,2 ## @NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_flower_cmsg_portmod        ; -- Begin function nfp_flower_cmsg_portmod
	.p2align	2
_nfp_flower_cmsg_portmod:               ; @nfp_flower_cmsg_portmod
	.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	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _NFP_FLOWER_CMSG_TYPE_PORT_MOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_TYPE_PORT_MOD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #24
	bl	_nfp_flower_cmsg_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_nfp_flower_cmsg_get_data
	mov	x24, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	w0, [x24, #16]
	str	xzr, [x24, #8]
	str	w21, [x24]
	cbz	w23, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w21
	str	w8, [x24]
LBB0_3:
	mov	x0, x20
	bl	_cpu_to_be16
	str	w0, [x24, #4]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_nfp_ctrl_tx
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FLOWER_CMSG_TYPE_PORT_MOD,4,2 ; @NFP_FLOWER_CMSG_TYPE_PORT_MOD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY,4,2 ; @NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY
.subsections_via_symbols
