	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_ccm_communicate            ## -- Begin function nfp_ccm_communicate
	.p2align	4, 0x90
_nfp_ccm_communicate:                   ## @nfp_ccm_communicate
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_nfp_ctrl_lock
	movq	%r12, %rdi
	callq	_nfp_ccm_alloc_tag
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	8(%r14), %r14
	movq	_NFP_CCM_ABI_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	%r13d, (%r14)
	movl	%r15d, %edi
	callq	_cpu_to_be16
	movl	%eax, 4(%r14)
	movl	%r13d, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	___nfp_app_ctrl_tx
	movl	(%r13), %edi
	callq	_nfp_ctrl_unlock
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_nfp_ccm_wait_reply
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	callq	_nfp_ctrl_unlock
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_9
LBB0_3:
	movq	%r12, %rdi
	callq	_nfp_ccm_get_type
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	___NFP_CCM_REPLY
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.6:
	movl	(%r12), %ecx
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ccm_warn
	jmp	LBB0_8
LBB0_4:
	movl	%r14d, %edi
	callq	___NFP_CCM_REPLY
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ccm_warn
LBB0_8:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_CCM_ABI_VERSION,4,2        ## @NFP_CCM_ABI_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmsg drop - wrong type 0x%02x != 0x%02lx!\n"

L_.str.1:                               ## @.str.1
	.asciz	"cmsg drop - type 0x%02x wrong size %d != %d!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_ccm_communicate            ; -- Begin function nfp_ccm_communicate
	.p2align	2
_nfp_ccm_communicate:                   ; @nfp_ccm_communicate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x19, [x0]
	ldr	w0, [x19]
	bl	_nfp_ctrl_lock
	mov	x0, x23
	bl	_nfp_ccm_alloc_tag
	mov	x22, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x25, [x24, #8]
Lloh0:
	adrp	x8, _NFP_CCM_ABI_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_CCM_ABI_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x25, #8]
	str	w20, [x25]
	mov	x0, x22
	bl	_cpu_to_be16
	str	w0, [x25, #4]
	mov	x0, x19
	mov	x1, x24
	bl	___nfp_app_ctrl_tx
	ldr	w0, [x19]
	bl	_nfp_ctrl_unlock
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_nfp_ccm_wait_reply
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	ldr	w0, [x19]
	bl	_nfp_ctrl_unlock
	mov	x0, x24
	bl	_dev_kfree_skb_any
	b	LBB0_10
LBB0_4:
	mov	x0, x22
	bl	_nfp_ccm_get_type
	mov	x23, x0
	mov	x0, x20
	bl	___NFP_CCM_REPLY
	cmp	w23, w0
	b.ne	LBB0_8
; %bb.5:
	cbz	w21, LBB0_2
; %bb.6:
	ldr	w3, [x22]
	cmp	w3, w21
	b.eq	LBB0_2
; %bb.7:
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	___NFP_CCM_REPLY
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
LBB0_9:
	bl	_ccm_warn
	mov	x0, x22
	bl	_dev_kfree_skb_any
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_CCM_ABI_VERSION,4,2        ; @NFP_CCM_ABI_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmsg drop - wrong type 0x%02x != 0x%02lx!\n"

l_.str.1:                               ; @.str.1
	.asciz	"cmsg drop - type 0x%02x wrong size %d != %d!\n"

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