	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_bpf_opt_replace_insn       ## -- Begin function nfp_bpf_opt_replace_insn
	.p2align	4, 0x90
_nfp_bpf_opt_replace_insn:              ## @nfp_bpf_opt_replace_insn
	.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
	movq	%rdx, %r12
	movq	%rsi, %rcx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14,%rcx,8), %rdx
	movq	%rbx, %rdi
	callq	_nfp_bpf_goto_meta
	movq	%rax, %r13
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_is_mbpf_cond_jump
	movl	(%r12), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_BPF_JMP@GOTPCREL(%rip), %rax
	movq	_BPF_JA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_BPF_K@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	cmpl	%edx, %ecx
	jne	LBB0_6
## %bb.2:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %eax
	incl	%eax
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%r14,%rax,8), %r8
	xorl	%ebx, %ebx
	cmpq	%r8, %rcx
	je	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_pr_vlog
	jmp	LBB0_7
LBB0_6:
	movslq	4(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pr_vlog
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_l@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_list_next_entry
	movq	%rax, 8(%r13)
	movl	$0, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BPF_JMP,4,2                    ## @BPF_JMP
	.comm	_BPF_JA,4,2                     ## @BPF_JA
	.comm	_BPF_K,4,2                      ## @BPF_K
	.comm	_l,4,2                          ## @l
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"branch hard wire at %d changes target %d -> %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unsupported instruction replacement %hhx -> %hhx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_bpf_opt_replace_insn       ; -- Begin function nfp_bpf_opt_replace_insn
	.p2align	2
_nfp_bpf_opt_replace_insn:              ; @nfp_bpf_opt_replace_insn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x24, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x23, [x8]
	ldr	x1, [x23]
	ldr	x2, [x24, x20, lsl #3]
	mov	x0, x23
	bl	_nfp_bpf_goto_meta
	mov	x21, x0
	str	x0, [x23]
	bl	_is_mbpf_cond_jump
	ldr	w3, [x22]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _BPF_JMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BPF_JMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BPF_JA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BPF_JA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _BPF_K@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BPF_K@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cmp	w3, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.3:
	add	w8, w20, w8
	add	w8, w8, #1
	ldr	x9, [x21, #8]
	ldr	x3, [x9]
	ldr	x8, [x24, w8, uxtw #3]
	cmp	x3, x8
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	ldrsw	x2, [x21, #4]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_6:
	bl	_pr_vlog
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh14:
	adrp	x8, _l@GOTPAGE
Lloh15:
	ldr	x8, [x8, _l@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_list_next_entry
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21, #8]
	str	wzr, [x21]
	b	LBB0_7
LBB0_9:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BPF_JMP,4,2                    ; @BPF_JMP
	.comm	_BPF_JA,4,2                     ; @BPF_JA
	.comm	_BPF_K,4,2                      ; @BPF_K
	.comm	_l,4,2                          ; @l
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"branch hard wire at %d changes target %d -> %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unsupported instruction replacement %hhx -> %hhx\n"

.subsections_via_symbols
