	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_fl_set_eth
_nfp_fl_set_eth:                        ## @nfp_fl_set_eth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
                                        ## kill: def $esi killed $esi def $rsi
	leal	4(%rsi), %eax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%edx, %edx
	cmpl	%edx, %eax
	jg	LBB0_1
## %bb.2:
	movl	(%rdi), %eax
	movl	4(%rdi), %edi
	testl	%eax, %edi
	je	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	notl	%eax
	movslq	%esi, %rcx
	shlq	$2, %rcx
	movq	24(%r14), %rdx
	addq	%rcx, %rdx
	addq	16(%r14), %rcx
	movl	%eax, %esi
	callq	_nfp_fl_set_helper32
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_cpu_to_be16
	movl	%eax, 8(%r14)
	movq	_NFP_FL_ACTION_OPCODE_SET_ETHERNET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_NFP_FL_LW_SIZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$32, %eax
	shrq	%cl, %rax
	movl	%eax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: invalid pedit ethernet action"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_FL_ACTION_OPCODE_SET_ETHERNET,4,2 ## @NFP_FL_ACTION_OPCODE_SET_ETHERNET
	.comm	_NFP_FL_LW_SIZ,4,2              ## @NFP_FL_LW_SIZ
	.no_dead_strip	_nfp_fl_set_eth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_fl_set_eth
_nfp_fl_set_eth:                        ; @nfp_fl_set_eth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	add	w8, w1, #4
Lloh0:
	adrp	x9, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9, lsl #1
	b.gt	LBB0_2
; %bb.1:
	ldp	w8, w0, [x0]
	tst	w0, w8
	b.eq	LBB0_3
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_NL_SET_ERR_MSG_MOD
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x19, x2
	mvn	w8, w8
	sbfiz	x9, x1, #2, #32
	ldp	x11, x10, [x2, #16]
	add	x2, x10, x9
	add	x3, x11, x9
	mov	x1, x8
	bl	_nfp_fl_set_helper32
	mov	w0, #0
	bl	_cpu_to_be16
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
Lloh8:
	adrp	x8, _NFP_FL_ACTION_OPCODE_SET_ETHERNET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_FL_ACTION_OPCODE_SET_ETHERNET@GOTPAGEOFF]
Lloh10:
	adrp	x9, _NFP_FL_LW_SIZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NFP_FL_LW_SIZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	mov	w10, #32
	lsr	x9, x10, x9
	stp	w9, w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: invalid pedit ethernet action"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_FL_ACTION_OPCODE_SET_ETHERNET,4,2 ; @NFP_FL_ACTION_OPCODE_SET_ETHERNET
	.comm	_NFP_FL_LW_SIZ,4,2              ; @NFP_FL_LW_SIZ
	.no_dead_strip	_nfp_fl_set_eth
.subsections_via_symbols
