	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_prep_tx_meta
_nfp_net_prep_tx_meta:                  ## @nfp_net_prep_tx_meta
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, -40(%rbp)
	callq	_skb_metadata_dst
	movq	%rax, %rbx
	xorl	%edi, %edi
	orq	%r15, %rax
	sete	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	xorl	%r14d, %r14d
	movl	$0, %edi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_METADATA_HW_PORT_MUX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_3:
	callq	_unlikely
	testq	%rax, %rax
	cmovneq	%r14, %rbx
	je	LBB0_5
## %bb.4:
	testq	%r15, %r15
	je	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	testq	%r15, %r15
	setne	%al
	xorl	%ecx, %ecx
	testq	%rbx, %rbx
	setne	%cl
	shll	$3, %eax
	leal	(%rax,%rcx,4), %r14d
	addl	$4, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_cow_head
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_push
	movl	%r14d, %r12d
	addq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:
	addq	$-4, %r12
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	_put_unaligned_be32
	movq	_NFP_NET_META_PORTID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r15, %r15
	je	LBB0_12
LBB0_11:
	addq	$-8, %r12
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	_NFP_NET_META_FIELD_SIZE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_NFP_NET_META_CONN_HANDLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_12:
	addq	$-4, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_put_unaligned_be32
LBB0_13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_METADATA_HW_PORT_MUX,8,3       ## @METADATA_HW_PORT_MUX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NFP_NET_META_PORTID,4,2        ## @NFP_NET_META_PORTID
	.comm	_NFP_NET_META_FIELD_SIZE,4,2    ## @NFP_NET_META_FIELD_SIZE
	.comm	_NFP_NET_META_CONN_HANDLE,4,2   ## @NFP_NET_META_CONN_HANDLE
	.no_dead_strip	_nfp_net_prep_tx_meta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_prep_tx_meta
_nfp_net_prep_tx_meta:                  ; @nfp_net_prep_tx_meta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	str	x1, [sp, #8]
	bl	_skb_metadata_dst
	mov	x20, x0
	orr	x8, x0, x19
	cmp	x8, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_6
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _METADATA_HW_PORT_MUX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _METADATA_HW_PORT_MUX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_unlikely
	cmp	x0, #0
	csel	x22, x20, xzr, eq
	cbz	x0, LBB0_8
; %bb.5:
	cbnz	x19, LBB0_8
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_8:
	cmp	x19, #0
	cset	w8, ne
	cmp	x22, #0
	mov	w9, #8
	mov	w10, #4
	csel	w9, w10, w9, eq
	add	w20, w9, w8, lsl #3
	mov	x0, x21
	mov	x1, x20
	bl	_skb_cow_head
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	bl	_skb_push
	add	x21, x0, w20, uxtw
	cbz	x22, LBB0_12
; %bb.11:
	sub	x21, x21, #4
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_put_unaligned_be32
Lloh6:
	adrp	x8, _NFP_NET_META_PORTID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_NET_META_PORTID@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
LBB0_12:
	cbz	x19, LBB0_14
; %bb.13:
	sub	x21, x21, #8
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #8
	bl	_memcpy
Lloh9:
	adrp	x8, _NFP_NET_META_FIELD_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFP_NET_META_FIELD_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh12:
	adrp	x9, _NFP_NET_META_CONN_HANDLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NFP_NET_META_CONN_HANDLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w22, w8, w9
LBB0_14:
	sub	x1, x21, #4
	mov	x0, x22
	bl	_put_unaligned_be32
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_METADATA_HW_PORT_MUX,8,3       ; @METADATA_HW_PORT_MUX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NFP_NET_META_PORTID,4,2        ; @NFP_NET_META_PORTID
	.comm	_NFP_NET_META_FIELD_SIZE,4,2    ; @NFP_NET_META_FIELD_SIZE
	.comm	_NFP_NET_META_CONN_HANDLE,4,2   ; @NFP_NET_META_CONN_HANDLE
	.no_dead_strip	_nfp_net_prep_tx_meta
.subsections_via_symbols
