	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_ccm_mbox_copy_in
_nfp_ccm_mbox_copy_in:                  ## @nfp_ccm_mbox_copy_in
	.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
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_NFP_NET_CFG_MBOX_SIMPLE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	4(%rdi), %ebx
	callq	___skb_peek
	movq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_NFP_NET_MBOX_TLV_TYPE_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nfp_ccm_mbox_write_tlv
	movq	8(%r12), %r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	leal	3(%rdi), %r12d
	testl	%edi, %edi
	cmovnsl	%edi, %r12d
	cmpl	$4, %edi
	jl	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	sarl	$2, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	$4, %ebx
	movl	(%r14,%r15,4), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nn_writel
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leal	4(%rbx), %r15d
	testb	$3, %dil
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -44(%rbp)
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	andl	$3, %edx
	leaq	-44(%rbp), %rdi
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_nn_writel
	addl	$8, %ebx
	movl	(%r12), %edi
	movl	%ebx, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	4(%rbx), %r15d
	xorl	%r12d, %r12d
	testb	$3, %dil
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_round_up
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_nfp_ccm_mbox_maxlen
	movl	%eax, %ebx
	subl	%r14d, %ebx
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_NFP_NET_MBOX_TLV_TYPE_RESV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_nfp_ccm_mbox_write_tlv
	addl	%r15d, %ebx
	addl	$4, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %r12
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_skb_queue_next
	movq	%rax, %r12
	jmp	LBB0_1
LBB0_14:
	movq	_NFP_NET_MBOX_TLV_TYPE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_nfp_ccm_mbox_write_tlv
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_MBOX_SIMPLE_VAL,4,2 ## @NFP_NET_CFG_MBOX_SIMPLE_VAL
	.comm	_NFP_NET_MBOX_TLV_TYPE_MSG,4,2  ## @NFP_NET_MBOX_TLV_TYPE_MSG
	.comm	_NFP_NET_MBOX_TLV_TYPE_RESV,4,2 ## @NFP_NET_MBOX_TLV_TYPE_RESV
	.comm	_NFP_NET_MBOX_TLV_TYPE_END,4,2  ## @NFP_NET_MBOX_TLV_TYPE_END
	.no_dead_strip	_nfp_ccm_mbox_copy_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_ccm_mbox_copy_in
_nfp_ccm_mbox_copy_in:                  ; @nfp_ccm_mbox_copy_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _NFP_NET_CFG_MBOX_SIMPLE_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_NET_CFG_MBOX_SIMPLE_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w22, w9, w8
	bl	___skb_peek
	mov	x21, x0
Lloh3:
	adrp	x24, _NFP_NET_MBOX_TLV_TYPE_MSG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NFP_NET_MBOX_TLV_TYPE_MSG@GOTPAGEOFF]
Lloh5:
	adrp	x25, _NFP_NET_MBOX_TLV_TYPE_RESV@GOTPAGE
Lloh6:
	ldr	x25, [x25, _NFP_NET_MBOX_TLV_TYPE_RESV@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w2, [x24]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_nfp_ccm_mbox_write_tlv
	ldr	x26, [x21, #8]
	ldr	w0, [x21]
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	cmp	w0, #4
	b.lt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, #0
	asr	w27, w8, #2
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w22, #4
	ldr	w0, [x26, x23, lsl #2]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_nn_writel
	add	x23, x23, #1
	cmp	x27, x23
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w23, w22, #4
	tst	w0, #0x3
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	str	wzr, [sp, #12]
	add	x1, x26, w27, uxtw #2
	ldr	w8, [x21]
	and	w2, w8, #0x3
	add	x0, sp, #12
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_nn_writel
	add	w23, w22, #8
	ldr	w0, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #4
	bl	_round_up
	mov	x22, x0
	mov	x0, x21
	bl	_nfp_ccm_mbox_maxlen
	sub	w22, w0, w22
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_nfp_ccm_mbox_write_tlv
	add	w8, w23, w22
	add	w22, w8, #4
	cmp	x21, x20
	b.ne	LBB0_11
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x23
	cmp	x21, x20
	b.eq	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_skb_queue_next
	mov	x21, x0
	b	LBB0_1
LBB0_12:
Lloh7:
	adrp	x8, _NFP_NET_MBOX_TLV_TYPE_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NFP_NET_MBOX_TLV_TYPE_END@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_nfp_ccm_mbox_write_tlv
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_MBOX_SIMPLE_VAL,4,2 ; @NFP_NET_CFG_MBOX_SIMPLE_VAL
	.comm	_NFP_NET_MBOX_TLV_TYPE_MSG,4,2  ; @NFP_NET_MBOX_TLV_TYPE_MSG
	.comm	_NFP_NET_MBOX_TLV_TYPE_RESV,4,2 ; @NFP_NET_MBOX_TLV_TYPE_RESV
	.comm	_NFP_NET_MBOX_TLV_TYPE_END,4,2  ; @NFP_NET_MBOX_TLV_TYPE_END
	.no_dead_strip	_nfp_ccm_mbox_copy_in
.subsections_via_symbols
